Bladeren bron

msm: camera: csiphy: Add version check for secure mask

CSIPHY version 2_1_0, secure phy mask is different for csiphy
hw 0/1/2/3  and hw 4/5. This needs to be configure before enabling
secure lanes. This change adds the appropriate version check to
perform this operation.

CRs-Fixed: 3039500
Change-Id: I8e856757886e880a6bf57ed4083ddf99cd325a7a
Signed-off-by: Jigarkumar Zala <[email protected]>
Jigarkumar Zala 3 jaren geleden
bovenliggende
commit
45bae36861
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c

+ 1 - 0
drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c

@@ -393,6 +393,7 @@ static int32_t cam_csiphy_update_secure_info(
 	case CSIPHY_VERSION_V121:
 	case CSIPHY_VERSION_V123:
 	case CSIPHY_VERSION_V124:
+	case CSIPHY_VERSION_V210:
 		phy_mask_len =
 		(csiphy_dev->soc_info.index < MAX_PHY_MSK_PER_REG) ?
 		(CAM_CSIPHY_MAX_DPHY_LANES + CAM_CSIPHY_MAX_CPHY_LANES) :