diff --git a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c index 03d2bd9f3591..d76a8ec3cf4f 100644 --- a/drivers/cam_sensor_module/cam_actuator/mot_actuator.c +++ b/drivers/cam_sensor_module/cam_actuator/mot_actuator.c @@ -51,6 +51,7 @@ typedef enum { typedef enum { MOT_DEVICE_NIO, MOT_DEVICE_BERLNA, + MOT_DEVICE_BERLIN, MOT_DEVICE_NUM, } mot_dev_type; @@ -207,6 +208,23 @@ static const mot_dev_info mot_dev_list[MOT_DEVICE_NUM] = { }, }, }, + { + .dev_type = MOT_DEVICE_BERLIN, + .actuator_num = 1, + .dev_name = "berlin", + .actuator_info = { + [0] = { + .actuator_type = MOT_ACTUATOR_GT9772, + .dac_pos = 480, + .cci_addr = 0x0c, + .cci_dev = 0x01, + .cci_master = 0x1, + .regulator_list = {"ldo7", "ldo5"}, + .regulator_volt_uv = {1800000, 2800000}, + .park_lens_needed = true, + }, + }, + }, }; static uint32_t mot_device_index = MOT_DEVICE_NUM; @@ -881,7 +899,8 @@ static ssize_t mot_actuator_safe_pos_store(struct device *dev, } lens_safe_pos_dac = input; - + //reinitialize when the safe_pos parameter is manually configured. + runtime_inited = false; retval = count; exit: return retval;