summaryrefslogtreecommitdiff
path: root/board/starfive/visionfive2/starfive_visionfive2.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/starfive/visionfive2/starfive_visionfive2.c')
-rw-r--r--board/starfive/visionfive2/starfive_visionfive2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c
index 1d14c618dc..a6656dcce1 100644
--- a/board/starfive/visionfive2/starfive_visionfive2.c
+++ b/board/starfive/visionfive2/starfive_visionfive2.c
@@ -322,7 +322,6 @@ static void get_cpu_voltage_type(struct udevice *dev)
env_set("cpu_max_vol", "1020000");
break;
default:
- env_set("cpu_max_vol", "1040000");
break;
}
}
@@ -484,6 +483,9 @@ err:
get_chip_type();
set_uboot_fdt_addr_env();
+
+ /* Set the default cpu max voltage. */
+ env_set("cpu_max_vol", "1040000");
#if CONFIG_IS_ENABLED(STARFIVE_OTP)
get_cpu_voltage_type(dev);
#endif