diff options
author | Mason Huo <mason.huo@starfivetech.com> | 2023-03-09 11:51:05 +0300 |
---|---|---|
committer | Mason Huo <mason.huo@starfivetech.com> | 2023-03-09 11:57:41 +0300 |
commit | 98b917bd0c39fd2375889ab4501edb7c86cd96da (patch) | |
tree | 674d789bddbd17a85950f0a39d2649f06097921d /board | |
parent | 6db3920fc403d7842bdecc660dc4df7e1cc32d3c (diff) | |
download | u-boot-98b917bd0c39fd2375889ab4501edb7c86cd96da.tar.xz |
board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltage
Add two more binning IC types, and set add their
max cpu voltage accordingly.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/starfive/visionfive2/starfive_visionfive2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c index a2e6e5ec3e..25b139b27c 100644 --- a/board/starfive/visionfive2/starfive_visionfive2.c +++ b/board/starfive/visionfive2/starfive_visionfive2.c @@ -50,9 +50,11 @@ enum board_type_t { enum cpu_voltage_type_t { + CPU_VOL_1020 = 0x0e, CPU_VOL_1040 = 0xff, CPU_VOL_1060 = 0xf0, CPU_VOL_1080 = 0xf1, + CPU_VOL_1100 = 0xf2, }; static void sys_reset_clear(ulong assert, ulong status, u32 rst) @@ -307,13 +309,18 @@ static void get_cpu_voltage_type(struct udevice *dev) printf("%s: error reading CPU vol from OTP\n", __func__); else { switch ((buf & 0xff)) { + case CPU_VOL_1100: + env_set("cpu_max_vol", "1100000"); + break; case CPU_VOL_1080: env_set("cpu_max_vol", "1080000"); break; case CPU_VOL_1060: env_set("cpu_max_vol", "1060000"); break; - case CPU_VOL_1040: + case CPU_VOL_1020: + env_set("cpu_max_vol", "1020000"); + break; default: env_set("cpu_max_vol", "1040000"); break; |