From 543572a53a443c1fa97ceff4e78b45b5084d1dc9 Mon Sep 17 00:00:00 2001 From: hansx3 Date: Mon, 28 Mar 2022 15:08:42 +0800 Subject: [PATCH] rhodei: Actuator noise reduction detalis: add MOT_DEVICE_RHODEI for workaround Change-Id: I158117f91479a3e6c63cbc070de2f9dad5f337e9 Signed-off-by: hansx3 Reviewed-on: https://gerrit.mot.com/2227387 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Reviewed-by: XiaoFeng Wang Reviewed-by: Zhichao Chen Tested-by: Jira Key Submit-Approved: Jira Key --- .../cam_actuator/mot_actuator.c | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c index fe036ce1bbf6..72f9f4a4909f 100644 --- a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c +++ b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c @@ -64,6 +64,7 @@ typedef enum { MOT_DEVICE_CORFUQ, MOT_DEVICE_CORFUR, MOT_DEVICE_RHODEC, + MOT_DEVICE_RHODEI, MOT_DEVICE_NUM, } mot_dev_type; @@ -471,6 +472,33 @@ static const mot_dev_info mot_dev_list[MOT_DEVICE_NUM] = { }, }, }, + + { + .dev_type = MOT_DEVICE_RHODEI, + .actuator_num = 1, + .dev_name = "rhodei", + .actuator_info = { + [0] = { + .actuator_type = MOT_ACTUATOR_DW9800V, + .dac_pos = 0, + .init_pos = 512, + .cci_addr = 0x0c, + .cci_dev = 0x00, + .cci_master = 0x1, + .regulator_list = {"pm6125_l9", "cam_rear_af"}, + .regulator_volt_uv = {1800000, 2800000}, + .launch_lens = { + .launch_lens_needed = true, + .launch_lens_step = { + {200, 100}, + {100, 60}, + {50, 30}, + }, + }, + }, + }, + }, + }; static uint32_t mot_device_index = MOT_DEVICE_NUM;