Skip to content

Commit eb61a12

Browse files
Chuan Liujbrun3t
authored andcommitted
clk: meson: s4: pll: hifi_pll support fractional multiplier
The s4's hifi_pll supports a fractional frequency multiplier, but frac parameters are not configured in the driver. Signed-off-by: Chuan Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jerome Brunet <[email protected]>
1 parent adac147 commit eb61a12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/clk/meson/s4-pll.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ static struct clk_regmap s4_gp0_pll = {
329329
* Internal hifi pll emulation configuration parameters
330330
*/
331331
static const struct reg_sequence s4_hifi_init_regs[] = {
332-
{ .reg = ANACTRL_HIFIPLL_CTRL1, .def = 0x00010e56 },
333332
{ .reg = ANACTRL_HIFIPLL_CTRL2, .def = 0x00000000 },
334333
{ .reg = ANACTRL_HIFIPLL_CTRL3, .def = 0x6a285c00 },
335334
{ .reg = ANACTRL_HIFIPLL_CTRL4, .def = 0x65771290 },
@@ -354,6 +353,11 @@ static struct clk_regmap s4_hifi_pll_dco = {
354353
.shift = 10,
355354
.width = 5,
356355
},
356+
.frac = {
357+
.reg_off = ANACTRL_HIFIPLL_CTRL1,
358+
.shift = 0,
359+
.width = 17,
360+
},
357361
.l = {
358362
.reg_off = ANACTRL_HIFIPLL_CTRL0,
359363
.shift = 31,

0 commit comments

Comments
 (0)