summaryrefslogtreecommitdiff
path: root/include/configs/starfive-visionfive2.h
diff options
context:
space:
mode:
authorMason Huo <mason.huo@starfivetech.com>2023-04-07 04:34:08 +0300
committerMason Huo <mason.huo@starfivetech.com>2023-04-07 04:57:01 +0300
commitc8f3d1842a51e6321e4cf0ac93243873f3e6b522 (patch)
treed534df75cd5616a4e03a6dd249684afdc88e5271 /include/configs/starfive-visionfive2.h
parent231dd9d11bb6626cf3650462a84da898cf2c35ce (diff)
downloadu-boot-c8f3d1842a51e6321e4cf0ac93243873f3e6b522.tar.xz
board: starfive: jh7110: Modify cpu voltage set commands
Update the cpu voltage set commands per binning information from OTP. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Diffstat (limited to 'include/configs/starfive-visionfive2.h')
-rw-r--r--include/configs/starfive-visionfive2.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/configs/starfive-visionfive2.h b/include/configs/starfive-visionfive2.h
index fafd1f9de6..405829faf5 100644
--- a/include/configs/starfive-visionfive2.h
+++ b/include/configs/starfive-visionfive2.h
@@ -118,9 +118,15 @@
"cpu_vol_1100_set=" \
"fdt set /opp-table-0/opp-1500000000 opp-microvolt <1100000>;\0"
+#define CPU_VOL_1120_SET \
+ "cpu_vol_1120_set=" \
+ "fdt set /opp-table-0/opp-1500000000 opp-microvolt <1120000>;\0"
+
#define CPU_VOL_SET \
- "cpu_vol_set=" \
- "if test ${cpu_max_vol} = 1100000; then " \
+ "cpu_vol_set=" \
+ "if test ${cpu_max_vol} = 1120000; then " \
+ "run cpu_vol_1120_set;" \
+ "elif test ${cpu_max_vol} = 1100000; then " \
"run cpu_vol_1100_set;" \
"elif test ${cpu_max_vol} = 1080000; then " \
"run cpu_vol_1080_set;" \
@@ -273,6 +279,7 @@
CPU_VOL_1060_SET \
CPU_VOL_1080_SET \
CPU_VOL_1100_SET \
+ CPU_VOL_1120_SET \
CPU_VOL_SET \
CHIPA_SET_FORCE \
VISIONFIVE2_MEM_SET \