Skip to content

Commit c1380ad

Browse files
Xianwei Zhaojbrun3t
authored andcommitted
clk: meson: s4: fix fixed_pll_dco clock
The fixed_pll_dco output frequency is not accurate, add frac factor for fixed_pll_dco clk to fix it. Fixes: 57b55c7 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller") Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jerome Brunet <[email protected]>
1 parent 1613e60 commit c1380ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/clk/meson/s4-pll.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ static struct clk_regmap s4_fixed_pll_dco = {
3838
.shift = 0,
3939
.width = 8,
4040
},
41+
.frac = {
42+
.reg_off = ANACTRL_FIXPLL_CTRL1,
43+
.shift = 0,
44+
.width = 17,
45+
},
4146
.n = {
4247
.reg_off = ANACTRL_FIXPLL_CTRL0,
4348
.shift = 10,

0 commit comments

Comments
 (0)