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