소스 검색

msm: camera: isp: Update Phy source for CPHY TPG

Update phy resource in case of external TPG.

Change-Id: I36795a31ae0211034a705352fe5e8fea77a2b8b2
CRs-Fixed: 2830502
Signed-off-by: Chandan Kumar Jha <[email protected]>
Chandan Kumar Jha 4 년 전
부모
커밋
714539813b
2개의 변경된 파일3개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 7
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c
  2. 3 3
      drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver1.c

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

@@ -2779,13 +2779,6 @@ static int cam_ife_hw_mgr_acquire_csid_hw(
 
 
 	ife_hw_mgr = ife_ctx->hw_mgr;
 	ife_hw_mgr = ife_ctx->hw_mgr;
 
 
-	if (ife_ctx->is_tpg) {
-		if (ife_ctx->res_list_tpg.hw_res[0]->hw_intf->hw_idx == 0)
-			csid_acquire->phy_sel = CAM_ISP_IFE_IN_RES_PHY_0;
-		else
-			csid_acquire->phy_sel = CAM_ISP_IFE_IN_RES_PHY_1;
-	}
-
 	if (ife_ctx->is_rdi_only_context)
 	if (ife_ctx->is_rdi_only_context)
 		csid_acquire->can_use_lite = true;
 		csid_acquire->can_use_lite = true;
 
 

+ 3 - 3
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver1.c

@@ -1458,13 +1458,13 @@ static int cam_ife_csid_hw_ver1_rx_cfg(
 		csid_hw->rx_cfg.phy_sel = 0;
 		csid_hw->rx_cfg.phy_sel = 0;
 		break;
 		break;
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_0:
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_0:
-		csid_hw->rx_cfg.phy_sel = 1;
+		csid_hw->rx_cfg.phy_sel = 0;
 		break;
 		break;
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_1:
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_1:
-		csid_hw->rx_cfg.phy_sel = 2;
+		csid_hw->rx_cfg.phy_sel = 1;
 		break;
 		break;
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_2:
 	case CAM_ISP_IFE_IN_RES_CPHY_TPG_2:
-		csid_hw->rx_cfg.phy_sel = 3;
+		csid_hw->rx_cfg.phy_sel = 2;
 		break;
 		break;
 	default:
 	default:
 		csid_hw->rx_cfg.phy_sel =
 		csid_hw->rx_cfg.phy_sel =