瀏覽代碼

disp: msm: dsi: update DSI PHY programming

The change updates DSI DPHY and CPHY programming for
PHY version 4_3.

Change-Id: Id6b5cfefdce9530891e1e0f5a34814606954d843
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 4 年之前
父節點
當前提交
1d0cb57f98
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      msm/dsi/dsi_phy_hw_v4_0.c

+ 2 - 2
msm/dsi/dsi_phy_hw_v4_0.c

@@ -228,7 +228,7 @@ static void dsi_phy_hw_cphy_enable(struct dsi_phy_hw *phy,
 	if (cfg->bit_clk_rate_hz <= 1500000000)
 		less_than_1500_mhz = true;
 
-	if (phy->version == DSI_PHY_VERSION_4_2) {
+	if (phy->version >= DSI_PHY_VERSION_4_2) {
 		glbl_rescode_top_ctrl = less_than_1500_mhz ? 0x3d : 0x01;
 		glbl_rescode_bot_ctrl = less_than_1500_mhz ? 0x38 : 0x3b;
 	} else if (phy->version == DSI_PHY_VERSION_4_1) {
@@ -336,7 +336,7 @@ static void dsi_phy_hw_dphy_enable(struct dsi_phy_hw *phy,
 	if (cfg->bit_clk_rate_hz <= 1500000000)
 		less_than_1500_mhz = true;
 
-	if (phy->version == DSI_PHY_VERSION_4_2) {
+	if (phy->version >= DSI_PHY_VERSION_4_2) {
 		vreg_ctrl_0 = less_than_1500_mhz ? 0x53 : 0x52;
 		glbl_rescode_top_ctrl = less_than_1500_mhz ? 0x3c : 0x00;
 		glbl_rescode_bot_ctrl = less_than_1500_mhz ? 0x38 : 0x39;