clk: samsung: Fixes PLL locktime for PLL142XX used on FSD platfom
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/2 clk: samsung: Fixes PLL locktime for PLL142XX used on FSD platfom
Add PLL locktime for PLL142XX controller.
Fixes 4f346005aaed ("clk: samsung: fsd: Add initial clock support")
Signed-off-by Varada Pavani <[email protected]>
--- drivers/clk/samsung/clk-pll.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/clk/samsung/clk-pll.c +6 -1
@@ -206,6 +206,7 @@ static const struct clk_ops samsung_pll3000_clk_ops = {*/ /* Maximum lock time can be 270 * PDIV cycles */ #define PLL35XX_LOCK_FACTOR (270) +#define PLL142XX_LOCK_FACTOR (150)#define PLL35XX_MDIV_MASK (0x3FF)#define PLL35XX_PDIV_MASK (0x3F)
@@ -272,7 +273,11 @@ static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, }/* Set PLL lock time. */ -writel_relaxed (rate->pdiv *PLL35XX_LOCK_FACTOR , +if (pll->type == pll_142xx) +writel_relaxed (rate->pdiv *PLL142XX_LOCK_FACTOR , + pll->lock_reg); +else +writel_relaxed (rate->pdiv *PLL35XX_LOCK_FACTOR , pll->lock_reg);/* Change PLL PMS values */
Signature · 1 line
2.17.1