Browse Source

Merge branch 'CR_2876_SET_CPU_FREQ_samin.guo' into 'jh7110-master'

CR_2876: board:starfive:evb: Set the CPU default frequency to 1.0GHz

See merge request sdk/u-boot!19
andy.hu 1 year ago
parent
commit
8a4e190ee2
2 changed files with 3 additions and 3 deletions
  1. 1 1
      arch/riscv/cpu/jh7110/pll.c
  2. 2 2
      board/starfive/evb/spl.c

+ 1 - 1
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:

+ 2 - 2
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);