diff options
author | Samin Guo <samin.guo@starfivetech.com> | 2023-08-16 10:38:02 +0300 |
---|---|---|
committer | Samin Guo <samin.guo@starfivetech.com> | 2023-08-16 10:38:02 +0300 |
commit | b46afd08fd56e2cec9763b9cac62cbd0a82588d0 (patch) | |
tree | 0b3bfce04e1a00ed5cf06fa3eed6398439cad644 | |
parent | c814e8bc9d7b0408aabed9607f2c4bcbc3b0e7c3 (diff) | |
download | u-boot-b46afd08fd56e2cec9763b9cac62cbd0a82588d0.tar.xz |
riscv: starfive: evb: add get_boot_mode
add get_boot_mode function to support Multi-device boot
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
-rw-r--r-- | board/starfive/evb/starfive_evb.c | 8 |
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, |