u-boot/board/AndesTech/ax25-ae350/Kconfig
Rick Chen c5740bc1b2 riscv: ae350: support OpenSBI 1.0+ which enable FW_PIC
Original OpenSBI (without FW_PIC) will relocate itself
from 0x1000000 to 0x0. After OpenSBI added FW_PIC codes,
it will not relocate any more and always run at 0x1000000.
Hence, it may overlap with Kernel memory region. So it is
necessary to change OpenSBI address from 0x1000000 to 0x0.

More details can refer to commit cb052d7712
("riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+")

Signed-off-by: Rick Chen <rick@andestech.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
2023-02-01 16:17:53 +08:00

44 lines
679 B
Text

if TARGET_AX25_AE350
config SYS_CPU
default "ax25"
config SYS_BOARD
default "ax25-ae350"
config SYS_VENDOR
default "AndesTech"
config SYS_SOC
default "ae350"
config SYS_CONFIG_NAME
default "ax25-ae350"
config ENV_SIZE
default 0x2000 if ENV_IS_IN_SPI_FLASH
config ENV_OFFSET
default 0x140000 if ENV_IS_IN_SPI_FLASH
config SPL_TEXT_BASE
default 0x800000
config SPL_OPENSBI_LOAD_ADDR
default 0x00000000
config SYS_FDT_BASE
hex
default 0x800f0000 if OF_SEPARATE
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select RISCV_NDS
select SUPPORT_SPL
select BINMAN if SPL
imply SMP
imply SPL_RAM_SUPPORT
imply SPL_RAM_DEVICE
imply OF_HAS_PRIOR_STAGE
endif