Răsfoiți Sursa

disp: msm: dsi: update DSI PHY post divider for slave PLL

The change ensures that for the slave PLL the PHY post divider
always needs to be configured to 0x1.

Change-Id: I481b4fd206d9f8e05af724687beb2e89fd6c2ea6
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 4 ani în urmă
părinte
comite
ef4dd310a4
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      msm/dsi/dsi_pll_5nm.c

+ 3 - 2
msm/dsi/dsi_pll_5nm.c

@@ -107,10 +107,11 @@ static inline void dsi_pll_set_phy_post_div(struct dsi_pll_resource *pll, u32
 	reg_val &= ~0x0F;
 	reg_val |= phy_post_div;
 	DSI_PLL_REG_W(pll->phy_base, PHY_CMN_CLK_CFG0, reg_val);
+	/* For slave PLL, this divider always should be set to 1 */
 	if (pll->slave) {
-		reg_val = DSI_PLL_REG_R(pll->slave->phy_base, PHY_CMN_CLK_CFG0);
+		reg_val = DSI_PLL_REG_R(pll->phy_base, PHY_CMN_CLK_CFG0);
 		reg_val &= ~0x0F;
-		reg_val |= phy_post_div;
+		reg_val |= 0x1;
 		DSI_PLL_REG_W(pll->slave->phy_base, PHY_CMN_CLK_CFG0, reg_val);
 	}
 }