]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: thead: licheepi4a: Run proper U-Boot in S-Mode
authorYao Zi <ziyao@disroot.org>
Fri, 30 May 2025 09:48:50 +0000 (09:48 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 9 Jun 2025 02:44:06 +0000 (10:44 +0800)
RISC-V software usually expects S mode when leaving the firmware, e.g.
UEFI applications could only run in S mode. Let's convert proper U-Boot
of Lichee Pi 4A port to run in S mode.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
configs/th1520_lpi4a_defconfig

index 6ced7afe6b1e20931968f340c7a22637bc495ccf..68745395293b883ac6919569fbc3979f7134a734 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_SYS_LOAD_ADDR=0x80200000
 # CONFIG_SMP is not set
 CONFIG_TARGET_TH1520_LPI4A=y
 CONFIG_ARCH_RV64I=y
+CONFIG_RISCV_SMODE=y
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_SYS_BOOT_GET_CMDLINE=y
 CONFIG_SYS_BOOT_GET_KBD=y