[COMMON] fimc-is2: update eeprom map of OV12A10
authorxff <fangfang.xu@samsung.com>
Thu, 14 Mar 2019 08:50:44 +0000 (16:50 +0800)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 13:00:09 +0000 (22:00 +0900)
1. Robusat2Play_Calibration_map_20190226.xls
2. only dump 2k size for dual camera cal data

Change-Id: I6a65502edb388333e490f880be1ae6eb86309cc8
Signed-off-by: xff <fangfang.xu@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/eeprom/fimc-is-sensor-eeprom-12a10.h

index dacee13df433181b3d784058e10ce4beed192047..ef3096e808fd03f5daa4aa51dd1242c1c7e2a2fc 100644 (file)
@@ -392,6 +392,14 @@ static int fimc_is_eeprom_12a10_check_dual(struct v4l2_subdev *subdev)
        else
                info("DUAL CRC16: 0x%x, cal_buffer CRC: 0x%x\n", crc16, crc_value);
 
+       crc_value = ((eeprom->data[EEPROM_DUAL_VER_CRC_SEC] << 8) | (eeprom->data[EEPROM_DUAL_VER_CRC_FST]));
+
+       crc16 = fimc_is_sensor_eeprom_check_crc(&eeprom->data[EEPROM_DUAL_VER_CRC_CHK_START], EEPROM_DUAL_VER_CRC_CHK_SIZE);
+       if (crc_value != crc16)
+               err("Error to DUAL VER CRC16: 0x%x, cal_buffer CRC: 0x%x", crc16, crc_value);
+       else
+               info("DUAL VER CRC16: 0x%x, cal_buffer CRC: 0x%x\n", crc16, crc_value);
+
        return ret;
 }
 
index e267749b977d2df8ea14a3b1875c2c1ee2d49a61..0f6e94e639761d4203b656981c9524ea4eb5ab2b 100644 (file)
 #define EEPROM_DUAL_CRC_FST            0x2100
 #define EEPROM_DUAL_CRC_SEC            0x2101
 #define EEPROM_DUAL_CRC_CHK_START      0x2104
-#define EEPROM_DUAL_CRC_CHK_SIZE       0x800
-#define EEPROM_DUAL_CAL_SIZE           0x804
+#define EEPROM_DUAL_CRC_CHK_SIZE       0x804
+#define EEPROM_DUAL_VER_CRC_FST                0x2102
+#define EEPROM_DUAL_VER_CRC_SEC                0x2103
+#define EEPROM_DUAL_VER_CRC_CHK_START  0x2908
+#define EEPROM_DUAL_VER_CRC_CHK_SIZE   0x4
+#define EEPROM_DUAL_CAL_SIZE           SZ_2K
 
 /* SFR Cal */
 #define EEPROM_SFR_CRC_FST             0x3000