diff options
author | Nikita Shubin | 2022-09-02 11:47:39 +0300 |
---|---|---|
committer | Leo Yu-Chi Liang | 2022-09-26 14:28:43 +0800 |
commit | c2bdf02c9d40da7154fea46b7d10343fe9f14209 (patch) | |
tree | 362d3715d67989f0d7208a674422dd9e79681eaf /configs/ae350_rv32_spl_xip_defconfig | |
parent | 435596d57f8beedf36b5dc858fe7ba9d6c03334b (diff) |
spl: introduce SPL_XIP to config
U-Boot and SPL don't necessary share the same location, so we might end
with U-Boot SPL in read-only memory (XIP) and U-Boot in read-write memory.
In case of non XIP boot mode, we rely on such variables as "hart_lottery"
and "available_harts_lock" which we use as atomics.
The problem is that CONFIG_XIP also propagate to main U-Boot, not only SPL,
so we need CONFIG_SPL_XIP to distinguish SPL XIP from other XIP modes.
This adds an option special for SPL to behave it in XIP manner and we don't
use hart_lottery and available_harts_lock, during start proccess.
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'configs/ae350_rv32_spl_xip_defconfig')
-rw-r--r-- | configs/ae350_rv32_spl_xip_defconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/ae350_rv32_spl_xip_defconfig b/configs/ae350_rv32_spl_xip_defconfig index c7b6ea4730d..67c1e35c557 100644 --- a/configs/ae350_rv32_spl_xip_defconfig +++ b/configs/ae350_rv32_spl_xip_defconfig @@ -11,7 +11,7 @@ CONFIG_SPL=y CONFIG_SYS_LOAD_ADDR=0x100000 CONFIG_TARGET_AX25_AE350=y CONFIG_RISCV_SMODE=y -CONFIG_XIP=y +CONFIG_SPL_XIP=y CONFIG_DISTRO_DEFAULTS=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xffff00 |