From: xff Date: Mon, 18 Mar 2019 00:59:28 +0000 (+0800) Subject: [COMMON] fimc-s2: modify hw sync registers of OV12A10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ef550ecb8f6a1f8caca197ea6578c2d4093b6e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-s2: modify hw sync registers of OV12A10 CRs-fixed: (CR) Change-Id: I1168adc20f4aecb37ba1b278be8cb8a085b4461c Signed-off-by: xff Reviewed-on: https://gerrit.mot.com/1321973 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c index f7e409f24aed..e996add62eef 100755 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c @@ -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: