diff options
author | Mason Huo <mason.huo@starfivetech.com> | 2023-06-05 11:09:51 +0300 |
---|---|---|
committer | Mason Huo <mason.huo@starfivetech.com> | 2023-06-05 11:09:55 +0300 |
commit | 25951fb946194206188682276d0c6d7ca0422e77 (patch) | |
tree | 565212fb4d5ee34f809710da1f11d287831f7065 /board/starfive | |
parent | d64059f32b47568913ac1f71096d0734386f2d44 (diff) | |
download | u-boot-25951fb946194206188682276d0c6d7ca0422e77.tar.xz |
board: starfive: jh7110: Add support for 1.25GHz chips
Remove max cpu voltages: 1.12v, 1.10v, 1.08v.
Set the cpu max frequency to 1.25G per OTP value.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Diffstat (limited to 'board/starfive')
-rw-r--r-- | board/starfive/evb/starfive_evb.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c index 915ed1d4f9..6e3fc641ba 100644 --- a/board/starfive/evb/starfive_evb.c +++ b/board/starfive/evb/starfive_evb.c @@ -30,9 +30,7 @@ enum cpu_voltage_type_t { CPU_VOL_1020 = 0xef0, CPU_VOL_1040 = 0xfff, CPU_VOL_1060 = 0xff0, - CPU_VOL_1080 = 0xfe0, - CPU_VOL_1100 = 0xf80, - CPU_VOL_1120 = 0xf00, + CPU_VOL_1000 = 0x8f0, }; #define CPU_VOL_MASK 0xfff @@ -215,14 +213,8 @@ static void get_cpu_voltage_type(struct udevice *dev) printf("%s: error reading CPU vol from OTP\n", __func__); else { switch ((buf & CPU_VOL_MASK)) { - case CPU_VOL_1120: - env_set("cpu_max_vol", "1120000"); - break; - case CPU_VOL_1100: - env_set("cpu_max_vol", "1100000"); - break; - case CPU_VOL_1080: - env_set("cpu_max_vol", "1080000"); + case CPU_VOL_1000: + env_set("cpu_max_vol", "1000000"); break; case CPU_VOL_1060: env_set("cpu_max_vol", "1060000"); |