From f7a4e1ba180489a3c4f72a516f787e16ecfe29c1 Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Wed, 3 Aug 2022 14:34:17 +0800 Subject: [PATCH] penang: Actuator noise reduction detalis: Add MOT_DEVICE_PENANG for workaround, follow rhodec Change-Id: I29ce4af36ebc4024f3152a0f7215e117a6ead3c2 Reviewed-on: https://gerrit.mot.com/2352675 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Zhuoran Xu Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- .../cam_actuator/mot_actuator.c | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c index 72f9f4a4909f..8cae9dbba8af 100644 --- a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c +++ b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c @@ -65,6 +65,7 @@ typedef enum { MOT_DEVICE_CORFUR, MOT_DEVICE_RHODEC, MOT_DEVICE_RHODEI, + MOT_DEVICE_PENANG, MOT_DEVICE_NUM, } mot_dev_type; @@ -499,6 +500,32 @@ static const mot_dev_info mot_dev_list[MOT_DEVICE_NUM] = { }, }, + { + .dev_type = MOT_DEVICE_PENANG, + .actuator_num = 1, + .dev_name = "penang", + .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 = {"camera_ldo_dovdd", "pm6125_l21"}, + .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;