Skip to content

Commit

Permalink
clk: starfive: Change divider value of cpu_core clock
Browse files Browse the repository at this point in the history
Change divider value to make sure the frequency is half of PLL0.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
  • Loading branch information
SFxingyuwu committed Dec 15, 2022
1 parent 5e6efe0 commit 25fbb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/starfive/clk-starfive-jh7110-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int __init clk_starfive_jh7110_probe(struct platform_device *pdev)
if (PLL0_DEFAULT_FREQ >= PLL0_FREQ_1500_VALUE) {
struct clk *cpu_core = priv->reg[JH7110_CPU_CORE].hw.clk;

if (clk_set_rate(cpu_core, PLL0_FREQ_1500_VALUE / 2)) {
if (clk_set_rate(cpu_core, clk_get_rate(pll0_clk) / 2)) {
dev_err(&pdev->dev, "set cpu_core rate failed\n");
goto failed_set;
}
Expand Down

0 comments on commit 25fbb71

Please sign in to comment.