summaryrefslogtreecommitdiff
path: root/board/starfive/evb
diff options
context:
space:
mode:
authorAndy Hu <andy.hu@starfivetech.com>2023-08-17 11:12:27 +0300
committerAndy Hu <andy.hu@starfivetech.com>2023-08-17 11:12:27 +0300
commit063ca7d1a799cf50fea9e0ca913c1e93cb5ff361 (patch)
tree81c869050149ba8f6f26c542ceb288824acbaa1d /board/starfive/evb
parentd93511fb5e47136b1340c6a46aea6f54093ab593 (diff)
parent0b2f3140a5602cc7f6555a06c8aa4723ec60e396 (diff)
downloadu-boot-063ca7d1a799cf50fea9e0ca913c1e93cb5ff361.tar.xz
Merge tag 'JH7110_515_SDK_v5.6.0' into vf2-devel
Diffstat (limited to 'board/starfive/evb')
-rw-r--r--board/starfive/evb/starfive_evb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c
index 3fdbb29b6c..6d3ef222b7 100644
--- a/board/starfive/evb/starfive_evb.c
+++ b/board/starfive/evb/starfive_evb.c
@@ -202,6 +202,12 @@ static u32 get_chip_type(void)
return value;
}
+static void get_boot_mode(void)
+{
+ /* evb only support flash boot */
+ env_set("bootmode", "flash");
+}
+
#if CONFIG_IS_ENABLED(STARFIVE_OTP)
static void get_cpu_voltage_type(struct udevice *dev)
{
@@ -289,6 +295,8 @@ int board_late_init(void)
struct udevice *dev;
int ret;
+ get_boot_mode();
+
/*
* save the memory info by environment variable in u-boot,
* It will used to update the memory configuration in dts,