From 69731acb03ffaff6ed6b5c0fcba45274aca2f1cf Mon Sep 17 00:00:00 2001 From: qiaopf1 Date: Thu, 31 Mar 2022 13:40:10 +0800 Subject: [PATCH] devon: Actuator noise reduction details: To eliminate the resonance noise during system vibrator vibrating, set actuator to DAC 0 position,then the resonance noise can be obviously improved. To achieve the combination between vibrator and camera AF actuator,we implement: - Actuator separately control during camera power off. Change-Id: I33c04bc917b55e68dc8481ed9d1c4fa6151c2059 Signed-off-by: qiaopf1 Reviewed-on: https://gerrit.mot.com/2230485 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- .../cam_actuator/mot_actuator.c | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c index 9d6756af2772..688c5e6e04bc 100644 --- a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c +++ b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c @@ -30,7 +30,7 @@ /*=================ACTUATOR HW INFO====================*/ #define DEVICE_NAME_LEN 32 -#define MAX_ACTUATOR_NUM 4 +#define MAX_ACTUATOR_NUM 5 #define REGULATOR_NAME_MAX_LEN 32 #define LENS_MAX_STAGES 10 @@ -54,6 +54,7 @@ typedef enum { MOT_DEVICE_CAPRIP, MOT_DEVICE_RHODE, MOT_DEVICE_HAWAO, + MOT_DEVICE_DEVON, MOT_DEVICE_NUM, } mot_dev_type; @@ -268,6 +269,31 @@ static const mot_dev_info mot_dev_list[MOT_DEVICE_NUM] = { }, }, }, + { + .dev_type = MOT_DEVICE_DEVON, + .dev_name = "devon", + .actuator_info = { + [0] = { + .actuator_type = MOT_ACTUATOR_DW9800V, + .dac_pos = 0, + .init_pos = 512, + .cci_addr = 0x0c, + .cci_dev = 0x00, + .cci_master = 0x0, + .regulator_list = {"camera_iovdd", "camera_main_afvdd"}, + .regulator_volt_uv = {1800000, 2800000}, + .park_lens_needed = true, + .launch_lens = { + .launch_lens_needed = true, + .launch_lens_step = { + {300, 150}, + {200, 100}, + {100, 62} + }, + }, + }, + }, + }, }; static uint32_t mot_device_index = MOT_DEVICE_NUM;