Commit 538d5477 authored by Xingyu Wu's avatar Xingyu Wu Committed by Stephen Boyd
Browse files

clk: starfive: jh7110-sys: Add notifier for PLL0 clock



Add notifier function for PLL0 clock. In the function, the cpu_root clock
should be operated by saving its current parent and setting a new safe
parent (osc clock) before setting the PLL0 clock rate. After setting PLL0
rate, it should be switched back to the original parent clock.

Fixes: e2c510d6 ("riscv: dts: starfive: Add cpu scaling for JH7110 SoC")
Cc: stable@vger.kernel.org
Reviewed-by: default avatarEmil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: default avatarXingyu Wu <xingyu.wu@starfivetech.com>
Link: https://lore.kernel.org/r/20240826080430.179788-2-xingyu.wu@starfivetech.com


Reviewed-by: default avatarHal Feng <hal.feng@starfivetech.com>
Tested-by: default avatarMichael Jeanson <mjeanson@efficios.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent aa2eb2c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment