summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAndy Hu <andy.hu@starfivetech.com>2023-03-19 12:14:03 +0300
committerAndy Hu <andy.hu@starfivetech.com>2023-03-19 12:14:03 +0300
commitd72f5788dffe9c78447abb4303c367ed1f12e5bb (patch)
tree6cce4befde8d48f8990bd7dbd0b7a6c31628d309 /board
parent983201916d87c1462a2998cdcb6d676cf862b474 (diff)
parent6be2d0ba531e9ece412cc58545d01ff654563e20 (diff)
downloadu-boot-d72f5788dffe9c78447abb4303c367ed1f12e5bb.tar.xz
Merge tag 'JH7110_515_SDK_v4.5.1' into vf2-devel
version JH7110_515_SDK_v4.5.1 for JH7110 EVB board 1. #4094: u-boot: update uboot logo display function 2. #3910: u-boot: add 1.1 & 1.02v max cpu voltage to enhance cpu binning voltage type
Diffstat (limited to 'board')
-rw-r--r--board/starfive/evb/starfive_evb.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c
index 85881d28d6..dc02aad206 100644
--- a/board/starfive/evb/starfive_evb.c
+++ b/board/starfive/evb/starfive_evb.c
@@ -27,9 +27,11 @@ enum chip_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,
};
#define SYS_CLOCK_ENABLE(clk) \
@@ -210,14 +212,20 @@ static void get_cpu_voltage_type(struct udevice *dev)
if (ret != sizeof(buf))
printf("%s: error reading CPU vol from OTP\n", __func__);
else {
+ buf = 0x0e;
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;