From 2dbc434daac524d8e2831359bb31d8307cbf98c2 Mon Sep 17 00:00:00 2001 From: Jigarkumar Zala Date: Thu, 28 Jan 2021 14:43:53 -0800 Subject: [PATCH] msm: camera: uapi: Enable preamble control notification Enable preamble control notificaion for disable preprogrammed CDR setting for certain resolution sensor mode. CRs-Fixed: 2943640 Change-Id: I31705cd14239d5610c4f12c2d9e9417eead3c886 Signed-off-by: Jigarkumar Zala --- drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c | 3 --- include/uapi/camera/media/cam_sensor.h | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c b/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c index f8deb0049b..a911a58df7 100644 --- a/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +++ b/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c @@ -32,9 +32,6 @@ */ #define MAX_PHY_MSK_PER_REG 4 -/* Mask to enable skew calibration registers */ -#define SKEW_CAL_MASK 0x2 - static DEFINE_MUTEX(active_csiphy_cnt_mutex); static int csiphy_dump; diff --git a/include/uapi/camera/media/cam_sensor.h b/include/uapi/camera/media/cam_sensor.h index c02cadda02..2a287b599c 100644 --- a/include/uapi/camera/media/cam_sensor.h +++ b/include/uapi/camera/media/cam_sensor.h @@ -16,6 +16,9 @@ #define CAM_CSIPHY_SECURE_MODE_ENABLED 1 #define CAM_SENSOR_NAME_MAX_SIZE 32 +#define SKEW_CAL_MASK BIT(1) +#define PREAMBLE_PATTEN_CAL_MASK BIT(2) + enum camera_sensor_cmd_type { CAMERA_SENSOR_CMD_TYPE_INVALID, CAMERA_SENSOR_CMD_TYPE_PROBE, @@ -432,7 +435,7 @@ struct cam_cmd_unconditional_wait { /** * cam_csiphy_info : Provides cmdbuffer structre * @lane_assign : Lane sensor will be using - * @mipi_flags : MIPI phy flags + * @mipi_flags : Phy flags for differnt calibration operations * @lane_cnt : Total number of lanes * @secure_mode : Secure mode flag to enable / disable * @settle_time : Settling time in ms