Skip to content

Commit c77de0e

Browse files
jbrun3tsuperna9999
authored andcommitted
clk: meson: add gp0 frac parameter for axg and gxl
Add the frac parameter for the gp0 pll of the axg and gxl. This allows to achieve rates between the fixed settings provided by the table. Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Neil Armstrong <[email protected]>
1 parent 8289aaf commit c77de0e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

drivers/clk/meson/axg.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static const struct pll_rate_table axg_gp0_pll_rate_table[] = {
193193
};
194194

195195
const struct reg_sequence axg_gp0_init_regs[] = {
196-
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084a000 },
196+
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 },
197197
{ .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be },
198198
{ .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 },
199199
{ .reg = HHI_GP0_PLL_CNTL4, .def = 0xc000004d },
@@ -218,6 +218,11 @@ static struct clk_regmap axg_gp0_pll = {
218218
.shift = 16,
219219
.width = 2,
220220
},
221+
.frac = {
222+
.reg_off = HHI_GP0_PLL_CNTL1,
223+
.shift = 0,
224+
.width = 10,
225+
},
221226
.l = {
222227
.reg_off = HHI_GP0_PLL_CNTL,
223228
.shift = 31,

drivers/clk/meson/gxbb.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static struct clk_regmap gxbb_gp0_pll = {
437437
};
438438

439439
const struct reg_sequence gxl_gp0_init_regs[] = {
440-
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084a000 },
440+
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 },
441441
{ .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be },
442442
{ .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 },
443443
{ .reg = HHI_GP0_PLL_CNTL4, .def = 0xc000004d },
@@ -462,6 +462,11 @@ static struct clk_regmap gxl_gp0_pll = {
462462
.shift = 16,
463463
.width = 2,
464464
},
465+
.frac = {
466+
.reg_off = HHI_GP0_PLL_CNTL1,
467+
.shift = 0,
468+
.width = 10,
469+
},
465470
.l = {
466471
.reg_off = HHI_GP0_PLL_CNTL,
467472
.shift = 31,

0 commit comments

Comments
 (0)