linux-imx/drivers/clk/starfive
Xingyu Wu 72f4fc5fb2 clk: starfive: jh7110-sys: Add notifier for PLL0 clock
commit 538d5477b2 upstream.

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: e2c510d6d6 ("riscv: dts: starfive: Add cpu scaling for JH7110 SoC")
Cc: stable@vger.kernel.org
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Link: https://lore.kernel.org/r/20240826080430.179788-2-xingyu.wu@starfivetech.com
Reviewed-by: Hal Feng <hal.feng@starfivetech.com>
Tested-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:11:26 +02:00
..
clk-starfive-jh71x0.c clk: starfive: Simplify .determine_rate() 2023-07-19 12:50:42 -07:00
clk-starfive-jh71x0.h clk: starfive: jh7110-sys: Add notifier for PLL0 clock 2024-09-12 11:11:26 +02:00
clk-starfive-jh7100-audio.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-starfive-jh7100.c clk: starfive: Rename "jh7100" to "jh71x0" for the common code 2023-04-05 15:43:42 +01:00
clk-starfive-jh7110-aon.c clk: starfive: Delete the redundant dev_set_drvdata() in JH7110 clock drivers 2023-04-17 18:14:10 -07:00
clk-starfive-jh7110-isp.c clk: starfive: Add StarFive JH7110 Image-Signal-Process clock driver 2023-07-19 18:08:05 +01:00
clk-starfive-jh7110-pll.c clk: starfive: Add StarFive JH7110 PLL clock driver 2023-07-19 18:08:00 +01:00
clk-starfive-jh7110-stg.c clk: starfive: Add StarFive JH7110 System-Top-Group clock driver 2023-07-19 18:08:05 +01:00
clk-starfive-jh7110-sys.c clk: starfive: jh7110-sys: Add notifier for PLL0 clock 2024-09-12 11:11:26 +02:00
clk-starfive-jh7110-vout.c clk: starfive: Add StarFive JH7110 Video-Output clock driver 2023-07-19 18:08:05 +01:00
clk-starfive-jh7110.h clk: starfive: Add StarFive JH7110 Image-Signal-Process clock driver 2023-07-19 18:08:05 +01:00
Kconfig clk: starfive: Add StarFive JH7110 Video-Output clock driver 2023-07-19 18:08:05 +01:00
Makefile clk: starfive: Add StarFive JH7110 Video-Output clock driver 2023-07-19 18:08:05 +01:00