Skip to content

Commit 53517a7

Browse files
Varada Pavanikrzk
authored andcommitted
clk: samsung: update PLL locktime for PLL142XX used on FSD platform
Currently PLL142XX locktime is 270. As per spec, it should be 150. Hence update PLL142XX controller locktime to 150. Cc: stable@vger.kernel.org Fixes: 4f34600 ("clk: samsung: fsd: Add initial clock support") Signed-off-by: Varada Pavani <v.pavani@samsung.com> Link: https://lore.kernel.org/r/20250225131918.50925-3-v.pavani@samsung.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent f2052a4 commit 53517a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/clk/samsung/clk-pll.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ static const struct clk_ops samsung_pll3000_clk_ops = {
206206
*/
207207
/* Maximum lock time can be 270 * PDIV cycles */
208208
#define PLL35XX_LOCK_FACTOR (270)
209+
#define PLL142XX_LOCK_FACTOR (150)
209210

210211
#define PLL35XX_MDIV_MASK (0x3FF)
211212
#define PLL35XX_PDIV_MASK (0x3F)
@@ -272,7 +273,11 @@ static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate,
272273
}
273274

274275
/* Set PLL lock time. */
275-
writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR,
276+
if (pll->type == pll_142xx)
277+
writel_relaxed(rate->pdiv * PLL142XX_LOCK_FACTOR,
278+
pll->lock_reg);
279+
else
280+
writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR,
276281
pll->lock_reg);
277282

278283
/* Change PLL PMS values */

0 commit comments

Comments
 (0)