[COMMON] fimc-is2: kane: update dw9839 init setting
authorwangdw10 <wangdw10@lenovo.com>
Tue, 7 May 2019 05:56:54 +0000 (13:56 +0800)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 13:00:25 +0000 (22:00 +0900)
- 0x18 0x03 0x01
- 0x18 0x40 0xF1
- 0x18 0x54 0x0E
- 0x18 0x03 0x11
Delay 3ms
- 0x18 0x04 0x00

Change-Id: I89b3b3d7e091cbc0fac65f5ac0e433ed72a11c77
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c

index 735e17018b446ae2c0f8648f563e26f410880997..c2629082a2ebb41b60c6cb1538ecf347a58bc08b 100644 (file)
@@ -124,15 +124,15 @@ static int sensor_dw9839_init(struct fimc_is_actuator *actuator)
 
 skip_cal:
        /* set Active Mode */
-       ret = fimc_is_sensor_addr8_write8(client, REG_ACTIVE_EN, 0x00);
        ret = fimc_is_sensor_addr8_write8(client, REG_ACTIVE_EN, 0x01);
-       usleep_range(5000, 5010);
+       ret = fimc_is_sensor_addr8_write8(client, 0x40, 0xF1);
+       ret = fimc_is_sensor_addr8_write8(client, 0x54, 0x0E);
        ret = fimc_is_sensor_addr8_write8(client, REG_ACTIVE_EN, 0x11);
        if (ret < 0)
                goto p_err;
 
        /* delay after active mode */
-       usleep_range(5000, 5010);
+       usleep_range(3000, 3010);
        ret = fimc_is_sensor_addr8_write8(client, REG_ACT_MODE, 0x00);
        if (ret < 0)
                goto p_err;