From 9b71c6f5fa0d96680a3329e24afab8b09ad685fb Mon Sep 17 00:00:00 2001 From: Samin Guo Date: Wed, 14 Dec 2022 18:10:59 +0800 Subject: board:starfive:jh7110: default cpufreq is 1000Mhz. The frequency of pll0 is set to 1000Mhz in the bootrom Signed-off-by: Samin Guo --- arch/riscv/cpu/jh7110/pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/cpu/jh7110/pll.c b/arch/riscv/cpu/jh7110/pll.c index decb0eede8..563259476a 100644 --- a/arch/riscv/cpu/jh7110/pll.c +++ b/arch/riscv/cpu/jh7110/pll.c @@ -279,7 +279,7 @@ static u64 pll_get_rate(enum starfive_pll_type pll, fbdiv = GET_PLL(PLL0, FBDIV); postdiv1 = 1 << GET_PLL(PLL0, POSTDIV1); frac = GET_PLL(PLL0, FRAC); - deffreq = 1250000000; + deffreq = 1000000000; break; case PLL1: -- cgit v1.2.3 From 699c0a80340c59f6c68253966b0914cefd89baa2 Mon Sep 17 00:00:00 2001 From: Samin Guo Date: Wed, 14 Dec 2022 18:10:09 +0800 Subject: board:starfive:jh7110: Set the CPU default frequency to 1000MHz Set to 1000M to ensure the CPU can work normally under 0.8V` voltage Signed-off-by: Samin Guo --- board/starfive/evb/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/starfive/evb/spl.c b/board/starfive/evb/spl.c index 8cab704031..8d07122719 100644 --- a/board/starfive/evb/spl.c +++ b/board/starfive/evb/spl.c @@ -61,8 +61,8 @@ void board_init_f(ulong dummy) { int ret; - /* Adjust cpu frequency, the default is 1.25GHz */ - starfive_jh7110_pll_set_rate(PLL0, 1250000000); + /* Set pll0 cpufreq to 1000M */ + starfive_jh7110_pll_set_rate(PLL0, 1000000000); /*change pll2 to 1188MHz*/ starfive_jh7110_pll_set_rate(PLL2, 1188000000); -- cgit v1.2.3