diff options
author | Rick Chen <rick@andestech.com> | 2019-11-14 13:52:22 +0800 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2019-12-10 08:23:10 +0800 |
commit | cd61e86e6d2a86b3affd90eeae3f5c97fe990b04 (patch) | |
tree | 20bd23136a31ee67a6c3d72dc64f907b4054ab7f /include | |
parent | ca06444aac2c643db3a3f2eb37afc60fae15177e (diff) | |
download | u-boot-cd61e86e6d2a86b3affd90eeae3f5c97fe990b04.zip u-boot-cd61e86e6d2a86b3affd90eeae3f5c97fe990b04.tar.gz u-boot-cd61e86e6d2a86b3affd90eeae3f5c97fe990b04.tar.bz2 |
riscv: ax25-ae350: add SPL configuration
This patch provides four configurations which can support U-Boot SPL
to boot from RAM or FLASH and then boot FIT image including OpenSBI
FW_DYNAMIC firmware and U-Boot proper images from RAM or MMC boot devices.
With ae350_rv[32|64]_spl_defconfigs:
U-Boot SPL will be loaded by gdb or FSBL and runs in RAM in machine mode
and then load FIT image from RAM device on AE350.
With ae350_rv[32|64]_spl_xip_defconfigs:
U-Boot SPL can be burned into SPI flash and run in flash in machine mode
and then load FIT image from SPI flash or MMC device on AE350.
Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Cc: Alan Kao <alankao@andestech.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ax25-ae350.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/ax25-ae350.h b/include/configs/ax25-ae350.h index 5fd7a60..4504962 100644 --- a/include/configs/ax25-ae350.h +++ b/include/configs/ax25-ae350.h @@ -7,6 +7,23 @@ #ifndef __CONFIG_H #define __CONFIG_H +#ifdef CONFIG_SPL +#define CONFIG_SPL_MAX_SIZE 0x00100000 +#define CONFIG_SPL_BSS_START_ADDR 0x04000000 +#define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 + +#ifndef CONFIG_XIP +#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x00200000 +#else +#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80010000 +#endif + +#ifdef CONFIG_SPL_MMC_SUPPORT +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 +#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.itb" +#endif +#endif + /* * CPU and Board Configuration Options */ |