From: Siew Chin Lim <[email protected]>

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: Teik Heng Chong <[email protected]>
Signed-off-by: Tingting Meng <[email protected]>
---
 arch/arm/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a0842e1933..56e190adf6 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -21,6 +21,9 @@ config ARM64_CRC32
          not be present on all ARMv8.0, but is always present on ARMv8.1 and
          newer.
 
+config BOOTFILE
+       default kernel.itb if SPL_ATF && TARGET_SOCFPGA_SOC64
+
 config COUNTER_FREQUENCY
        int "Timer clock frequency"
        depends on ARM64 || CPU_V7A
-- 
2.25.1

Reply via email to