Skip to contentSkip to conversation

include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile

PATCH New Jit Loon Lim 1 participant 1 message Nov 21, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 include/configs/socfpga_soc64_common.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/socfpga_soc64_common.h +7 -0
index 12da770077..7edffc3975 100644
@@ -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