Browse Source

Merge "msm: camera: isp: Add new CDM BL Type" into camera-kernel.lnx.5.0

Savita Patted 3 years ago
parent
commit
2136c63c8c

+ 9 - 9
drivers/cam_isp/isp_hw_mgr/hw_utils/cam_isp_packet_parser.c

@@ -66,8 +66,8 @@ int cam_isp_add_change_base(
 			hw_entry[num_ent].len    = get_base.cmd.used_bytes;
 			hw_entry[num_ent].len    = get_base.cmd.used_bytes;
 			hw_entry[num_ent].offset = kmd_buf_info->offset;
 			hw_entry[num_ent].offset = kmd_buf_info->offset;
 
 
-			/* Marking change base as IOCFG to reapply on bubble */
-			hw_entry[num_ent].flags  = CAM_ISP_IOCFG_BL;
+			/* Marking change base as COMMON_CFG */
+			hw_entry[num_ent].flags  = CAM_ISP_COMMON_CFG_BL;
 			CAM_DBG(CAM_ISP,
 			CAM_DBG(CAM_ISP,
 				"num_ent=%d handle=0x%x, len=%u, offset=%u",
 				"num_ent=%d handle=0x%x, len=%u, offset=%u",
 				num_ent,
 				num_ent,
@@ -1238,8 +1238,8 @@ int cam_isp_add_reg_update(
 		prepare->hw_update_entries[num_ent].offset =
 		prepare->hw_update_entries[num_ent].offset =
 			kmd_buf_info->offset;
 			kmd_buf_info->offset;
 
 
-		/* Marking reg update as IOCFG to reapply on bubble */
-		prepare->hw_update_entries[num_ent].flags = CAM_ISP_IOCFG_BL;
+		/* Marking reg update as COMMON */
+		prepare->hw_update_entries[num_ent].flags = CAM_ISP_COMMON_CFG_BL;
 		CAM_DBG(CAM_ISP,
 		CAM_DBG(CAM_ISP,
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			num_ent,
 			num_ent,
@@ -1333,7 +1333,7 @@ int cam_isp_add_go_cmd(
 		prepare->hw_update_entries[num_ent].len = reg_update_size;
 		prepare->hw_update_entries[num_ent].len = reg_update_size;
 		prepare->hw_update_entries[num_ent].offset =
 		prepare->hw_update_entries[num_ent].offset =
 			kmd_buf_info->offset;
 			kmd_buf_info->offset;
-		prepare->hw_update_entries[num_ent].flags = CAM_ISP_IOCFG_BL;
+		prepare->hw_update_entries[num_ent].flags = CAM_ISP_COMMON_CFG_BL;
 		CAM_DBG(CAM_ISP,
 		CAM_DBG(CAM_ISP,
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			num_ent,
 			num_ent,
@@ -1748,8 +1748,8 @@ int cam_isp_add_csid_reg_update(
 		prepare->hw_update_entries[num_ent].offset =
 		prepare->hw_update_entries[num_ent].offset =
 			kmd_buf_info->offset;
 			kmd_buf_info->offset;
 
 
-		/* Marking reg update as IOCFG to reapply on bubble */
-		prepare->hw_update_entries[num_ent].flags = CAM_ISP_IOCFG_BL;
+		/* Marking reg update as COMMON */
+		prepare->hw_update_entries[num_ent].flags = CAM_ISP_COMMON_CFG_BL;
 		CAM_DBG(CAM_ISP,
 		CAM_DBG(CAM_ISP,
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			num_ent,
 			num_ent,
@@ -1846,8 +1846,8 @@ go_cmd_added:
 		prepare->hw_update_entries[num_ent].offset =
 		prepare->hw_update_entries[num_ent].offset =
 			kmd_buf_info->offset;
 			kmd_buf_info->offset;
 
 
-		/* Marking go update as IOCFG to reapply on bubble */
-		prepare->hw_update_entries[num_ent].flags = CAM_ISP_IOCFG_BL;
+		/* Marking go update as COMMON */
+		prepare->hw_update_entries[num_ent].flags = CAM_ISP_COMMON_CFG_BL;
 		CAM_DBG(CAM_ISP,
 		CAM_DBG(CAM_ISP,
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			"num_ent=%d handle=0x%x, len=%u, offset=%u",
 			num_ent,
 			num_ent,

+ 2 - 1
drivers/cam_isp/isp_hw_mgr/hw_utils/include/cam_isp_packet_parser.h

@@ -14,9 +14,10 @@
 #include "cam_packet_util.h"
 #include "cam_packet_util.h"
 #include "cam_cdm_intf_api.h"
 #include "cam_cdm_intf_api.h"
 
 
-/* enum cam_isp_cdm_bl_type - isp cdm packet type*/
+/* enum cam_isp_cdm_bl_type - isp cdm packet type */
 enum cam_isp_cdm_bl_type {
 enum cam_isp_cdm_bl_type {
 	CAM_ISP_UNUSED_BL,
 	CAM_ISP_UNUSED_BL,
+	CAM_ISP_COMMON_CFG_BL,
 	CAM_ISP_IQ_BL,
 	CAM_ISP_IQ_BL,
 	CAM_ISP_IOCFG_BL,
 	CAM_ISP_IOCFG_BL,
 	CAM_ISP_BL_MAX,
 	CAM_ISP_BL_MAX,