include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile
PATCH 1/1 include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile
From: Siew Chin Lim <[email protected]>
Legacy boot flow (SPL->U-Boot Proper->OS) boot to OS via Kernel Image and dtb files using booti command.
ATF boot flow (SPL->ATF->U-Boot Proper->OS) boot to OS via kernel.itb file using bootm command.
Change to use CONFIG_SPL_ATF to differentiate the bootfile of default environment variable. We shouldn't use CONFIG_FIT because it is enabled by default for U-Boot Proper.
Signed-off-by Siew Chin Lim <[email protected]>
Signed-off-by Jit Loon Lim <[email protected]>
--- include/configs/socfpga_soc64_common.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/configs/socfpga_soc64_common.h +7 -0
@@ -50,6 +50,13 @@/* * Environment variable */ + +#if IS_ENABLED (CONFIG_SPL_ATF ) +#define CONFIG_BOOTFILE "kernel.itb" +#else +#define CONFIG_BOOTFILE "Image" +#endif +#define CONFIG_EXTRA_ENV_SETTINGS \ "qspibootimageaddr=0x020E0000\0" \ "qspifdtaddr=0x020D0000\0" \
Signature · 1 line
2.26.2