瀏覽代碼

msm: camera: common: Add support of PHY TPG deinitialization

Add support of phy tpg deinit in ife HW manager.
Change print statement in shima camera config.

CRs-Fixed: 2732941
Change-Id: I572b19b76afdb89bda4bb1cbad7fd94bb5aa8097
Signed-off-by: Chandan Kumar Jha <[email protected]>
Chandan Kumar Jha 5 年之前
父節點
當前提交
bfa65377f8

+ 1 - 1
config/shimacamera.conf

@@ -3,7 +3,7 @@
 
 ifeq ($(CONFIG_QGKI),y)
 export CONFIG_SPECTRA_CAMERA=m
-$(info "SPECTRA_CAMERA IS STATIC")
+$(info "SPECTRA_CAMERA IS MODULAR")
 else
 $(info "SPECTRA_CAMERA IS MODULAR")
 export CONFIG_SPECTRA_CAMERA=m

+ 3 - 0
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -484,6 +484,9 @@ static void cam_ife_hw_mgr_deinit_hw(
 		return;
 	}
 
+	if (ctx->is_tpg)
+		cam_ife_hw_mgr_deinit_hw_res(&ctx->res_list_tpg);
+
 	/* Deinit IFE CID */
 	list_for_each_entry(hw_mgr_res, &ctx->res_list_ife_cid, list) {
 		CAM_DBG(CAM_ISP, "%s: Going to DeInit IFE CID\n", __func__);

+ 2 - 1
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c

@@ -1877,7 +1877,8 @@ static int cam_ife_csid_init_config_pxl_path(
 		 */
 		if (!(csid_hw->csid_debug & CSID_DEBUG_DISABLE_EARLY_EOF) &&
 			(camera_hw_version != CAM_CPAS_TITAN_480_V100) &&
-			(camera_hw_version != CAM_CPAS_TITAN_580_V100)) {
+			(camera_hw_version != CAM_CPAS_TITAN_580_V100) &&
+			(camera_hw_version != CAM_CPAS_TITAN_570_V200)) {
 			val = cam_io_r_mb(soc_info->reg_map[0].mem_base +
 				pxl_reg->csid_pxl_cfg0_addr);
 			val |= (1 << pxl_reg->early_eof_en_shift_val);