Skip to content

Commit

Permalink
drm/msm/dsi_pll_10nm: Fix variable usage for pll_lockdet_rate
Browse files Browse the repository at this point in the history
The PLL_LOCKDET_RATE_1 was being programmed with a hardcoded value
directly, but the same value was also being specified in the
dsi_pll_regs struct pll_lockdet_rate variable: let's use it!

Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
kholk authored and robclark committed Feb 1, 2021
1 parent 196145e commit 362cadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ static void dsi_pll_commit(struct dsi_pll_10nm *pll)
reg->frac_div_start_mid);
pll_write(base + REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_HIGH_1,
reg->frac_div_start_high);
pll_write(base + REG_DSI_10nm_PHY_PLL_PLL_LOCKDET_RATE_1, 0x40);
pll_write(base + REG_DSI_10nm_PHY_PLL_PLL_LOCKDET_RATE_1,
reg->pll_lockdet_rate);
pll_write(base + REG_DSI_10nm_PHY_PLL_PLL_LOCK_DELAY, 0x06);
pll_write(base + REG_DSI_10nm_PHY_PLL_CMODE, 0x10);
pll_write(base + REG_DSI_10nm_PHY_PLL_CLOCK_INVERTERS,
Expand Down

0 comments on commit 362cadf

Please sign in to comment.