[COMMON] fimc-s2: modify hw sync registers of OV12A10
authorxff <fangfang.xu@samsung.com>
Mon, 18 Mar 2019 00:59:28 +0000 (08:59 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:00 +0000 (17:37 +0800)
CRs-fixed: (CR)

Change-Id: I1168adc20f4aecb37ba1b278be8cb8a085b4461c
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1321973
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c

index f7e409f24aedd1814f111c11cfdc8a1ed6fe0958..e996add62eef3bb0899726880a14d15340520aa0 100755 (executable)
@@ -880,15 +880,6 @@ int sensor_12a10_cis_set_frame_duration(struct v4l2_subdev *subdev, u32 frame_du
        ret = fimc_is_sensor_write16(client, 0x380e, frame_length_lines);
        if (ret < 0)
                goto p_err;
-       if(cis_data->dual_sync_enable)
-       {
-               ret = fimc_is_sensor_write8(client, 0x3826, ((frame_length_lines * 2 - 4) & 0xFF00) >> 8);
-               if (ret < 0)
-                       goto p_err;
-               ret = fimc_is_sensor_write8(client, 0x3827, (frame_length_lines * 2 - 4) & 0xFF);
-               if (ret < 0)
-                       goto p_err;
-       }
 
        cis_data->cur_frame_us_time = frame_duration;
        cis_data->frame_length_lines = frame_length_lines;
@@ -1789,10 +1780,10 @@ static int sensor_12a10_cis_set_dual_slave_setting(struct fimc_is_cis *cis)
        fimc_is_sensor_write8(client, 0x3643, 0x22);
        fimc_is_sensor_write8(client, 0x3822, 0xa1);
        fimc_is_sensor_write8(client, 0x3823, 0x78);
-       fimc_is_sensor_write8(client, 0x3824, 0x02);
-       fimc_is_sensor_write8(client, 0x3825, 0x14);
-       fimc_is_sensor_write8(client, 0x3826, 0x1A);// 2 * 0xD40 - 4 = 0x1A7C
-       fimc_is_sensor_write8(client, 0x3827, 0x7C);
+       fimc_is_sensor_write8(client, 0x3824, 0x00);// frame start sync
+       fimc_is_sensor_write8(client, 0x3825, 0x20);
+       fimc_is_sensor_write8(client, 0x3826, 0x00);
+       fimc_is_sensor_write8(client, 0x3827, 0x08);
        fimc_is_sensor_write8(client, 0x3c80, 0x08);
 
 p_err: