]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sunxi: enable automatic FIT build for 64-bit SoCs
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:48 +0000 (01:32 +0100)
committerJagan Teki <jagan@openedev.com>
Wed, 17 May 2017 17:53:25 +0000 (23:23 +0530)
The Allwinner SoCs with 64-bit cores use an ARM Trusted Firmware binary,
which needs to be loaded alongside U-Boot proper.
Set the respective Kconfig options to let them select this feature and
also automatically build the FIT image.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
[Rename Kconfig path to arch/arm/mach-sunxi/Kconfig]
Signed-off-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Kconfig
arch/arm/mach-sunxi/Kconfig
include/configs/sunxi-common.h

diff --git a/Kconfig b/Kconfig
index 335392f02213e2a994fd1d8af7f40de3fcb82e8f..8e773b8a865e4018e54663d57b4bbd39382a89ea 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -252,6 +252,7 @@ config SPL_FIT_SOURCE
 config SPL_FIT_GENERATOR
        string ".its file generator script for U-Boot FIT image"
        depends on SPL_FIT
+       default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI
        help
          Specifies a (platform specific) script file to generate the FIT
          source file used to build the U-Boot FIT image file. This gets
index 8d9900e00b5a6e91de033e2d3f915b3b407add39..7ced838d6a7027cc48371760dd3f021dd1ea96a0 100644 (file)
@@ -143,12 +143,16 @@ config MACH_SUN50I
        select SUNXI_GEN_SUN6I
        select SUNXI_HIGH_SRAM
        select SUPPORT_SPL
+       select FIT
+       select SPL_LOAD_FIT
 
 config MACH_SUN50I_H5
        bool "sun50i (Allwinner H5)"
        select ARM64
        select MACH_SUNXI_H3_H5
        select SUNXI_HIGH_SRAM
+       select FIT
+       select SPL_LOAD_FIT
 
 endchoice
 
index 0511397a5bd28600d5158783dc78616b452f2fad..3f86cefe0f74012df3c24b4ec8912e78c92f29dc 100644 (file)
 # define CONFIG_MACH_TYPE_COMPAT_REV   1
 #endif
 
+#ifdef CONFIG_ARM64
+#define CONFIG_BUILD_TARGET "u-boot.itb"
+#endif
+
 /* Serial & console */
 #define CONFIG_SYS_NS16550_SERIAL
 /* ns16550 reg in the low bits of cpu reg */