Skip to content
Commit f4512618 authored by Leo Yu-Chi Liang's avatar Leo Yu-Chi Liang
Browse files

riscv: ae350: Fix XIP config boot failure



The booting flow is SPL -> OpenSBI -> U-Boot.
The boot hart may change after OpenSBI and may not always be hart0,
so wrap the related branch instruction with M-MODE.

Current DTB setup for XIP is not valid.
There is no chance for CONFIG_SYS_FDT_BASE, the DTB address used
in XIP mode, to be returned. Fix this.

Fixes: 2e8d2f88 ("riscv: Remove OF_PRIOR_STAGE from RISC-V boards")
Signed-off-by: default avatarRick Chen <rick@andestech.com>
Signed-off-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent a5041e33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment