Browse Source

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 <[email protected]>
Jigarkumar Zala 4 years ago
parent
commit
2dbc434daa

+ 0 - 3
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;

+ 4 - 1
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