Skip to content

Commit 5a33a64

Browse files
juhosgandersson
authored andcommitted
clk: qcom: clk-alpha-pll: set ALPHA_EN bit for Stromer Plus PLLs
The clk_alpha_pll_stromer_plus_set_rate() function does not sets the ALPHA_EN bit in the USER_CTL register, so setting rates which requires using alpha mode works only if the bit gets set already prior calling the function. Extend the function to set the ALPHA_EN bit in order to allow using fractional rates regardless whether the bit gets set previously or not. Fixes: 84da489 ("clk: qcom: clk-alpha-pll: introduce stromer plus ops") Signed-off-by: Gabor Juhos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 3414f41 commit 5a33a64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clk/qcom/clk-alpha-pll.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,9 @@ static int clk_alpha_pll_stromer_plus_set_rate(struct clk_hw *hw,
25742574
regmap_write(pll->clkr.regmap, PLL_ALPHA_VAL_U(pll),
25752575
a >> ALPHA_BITWIDTH);
25762576

2577+
regmap_update_bits(pll->clkr.regmap, PLL_USER_CTL(pll),
2578+
PLL_ALPHA_EN, PLL_ALPHA_EN);
2579+
25772580
regmap_write(pll->clkr.regmap, PLL_MODE(pll), PLL_BYPASSNL);
25782581

25792582
/* Wait five micro seconds or more */

0 commit comments

Comments
 (0)