Skip to content

Commit 4a07964

Browse files
superna9999jbrun3t
authored andcommitted
clk: meson: g12a: fix cpu clock rate setting
CLK_SET_RATE_NO_REPARENT is wrongly set on the g12a cpu premux0 clocks flags, and CLK_SET_RATE_PARENT is required for the g12a cpu premux0 clock and the g12b cpub premux0 clock, otherwise CCF always selects the SYS_PLL clock to feed the cpu cluster. Fixes: ffae847 ("clk: meson: g12a: add notifiers to handle cpu clock change") Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Jerome Brunet <[email protected]>
1 parent 44b09b1 commit 4a07964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/meson/g12a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ static struct clk_regmap g12a_cpu_clk_premux0 = {
353353
{ .hw = &g12a_fclk_div3.hw },
354354
},
355355
.num_parents = 3,
356-
/* This sub-tree is used a parking clock */
357-
.flags = CLK_SET_RATE_NO_REPARENT,
356+
.flags = CLK_SET_RATE_PARENT,
358357
},
359358
};
360359

@@ -533,6 +532,7 @@ static struct clk_regmap g12b_cpub_clk_premux0 = {
533532
{ .hw = &g12a_fclk_div3.hw },
534533
},
535534
.num_parents = 3,
535+
.flags = CLK_SET_RATE_PARENT,
536536
},
537537
};
538538

0 commit comments

Comments
 (0)