Browse Source

disp: msms: dsi: avoid hardcoding pll_lockdet_rate

This change avoids hardcoding the PLL_LOCKDET_RATE_1 register
value, rather using the variable with the same name that has
been initialized in dsi_pll_regs.

Change-Id: Ideb2c2b593156a4361feeb071df41f65e52c3beb
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 4 years ago
parent
commit
7eef141621
1 changed files with 1 additions and 1 deletions
  1. 1 1
      msm/dsi/dsi_pll_5nm.c

+ 1 - 1
msm/dsi/dsi_pll_5nm.c

@@ -584,7 +584,7 @@ static void dsi_pll_commit(struct dsi_pll_5nm *pll,
 		       reg->frac_div_start_mid);
 	DSI_PLL_REG_W(pll_base, PLL_FRAC_DIV_START_HIGH_1,
 		       reg->frac_div_start_high);
-	DSI_PLL_REG_W(pll_base, PLL_PLL_LOCKDET_RATE_1, 0x40);
+	DSI_PLL_REG_W(pll_base, PLL_PLL_LOCKDET_RATE_1, reg->pll_lockdet_rate);
 	DSI_PLL_REG_W(pll_base, PLL_PLL_LOCK_DELAY, 0x06);
 	DSI_PLL_REG_W(pll_base, PLL_CMODE_1,
 			pll->cphy_enabled ? 0x00 : 0x10);