|
@@ -219,7 +219,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;
|
|
|
}
|
|
|
}
|
|
@@ -361,6 +360,8 @@ err:
|
|
|
eth_env_set_enetaddr("eth0addr", mac0);
|
|
|
eth_env_set_enetaddr("eth1addr", mac1);
|
|
|
|
|
|
+ /* Set the default cpu max voltage. */
|
|
|
+ env_set("cpu_max_vol", "1040000");
|
|
|
#if CONFIG_IS_ENABLED(STARFIVE_OTP)
|
|
|
get_cpu_voltage_type(dev);
|
|
|
#endif
|