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 <psraditya30@codeaurora.org>
此提交包含在:
Satya Rama Aditya Pinapala
2021-03-02 10:39:09 -08:00
提交者 Gerrit - the friendly Code Review server
父節點 75037208b6
當前提交 7eef141621

查看文件

@@ -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);