[PATCH v2 4/4] sunxi: Enable SPL FIT loading for 32-bit SoCs

Samuel Holland samuel at sholland.org
Sun Jan 22 22:15:30 CET 2023

Now that 32-bit SoCs can load U-Boot proper (and possibly other
firmware) from a FIT, use this method by default. SPL_FIT_IMAGE_TINY is
required to stay within the 24 or 32 KiB SPL size limit on early SoCs;
for consistency, enable it everywhere.

Signed-off-by: Samuel Holland <samuel at sholland.org>

Changes in v2:
 - New patch for v2, split from the .dtsi changes

 arch/arm/Kconfig   | 1 +
 common/spl/Kconfig | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c9a44ebc22..f150bc3903 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1135,6 +1135,7 @@ config ARCH_SUNXI
 	imply SPL_GPIO
+	imply SPL_LOAD_FIT
 	imply SPL_MMC if MMC
 	imply SPL_POWER
 	imply SPL_SERIAL
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index a7c55f8c4c..502b0f27b8 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -575,8 +575,7 @@ config SPL_MD5
 	bool "Remove functionality from SPL FIT loading to reduce size"
 	depends on SPL_FIT
-	default y if MACH_SUN50I || MACH_SUN50I_H5 || SUN50I_GEN_H6
-	default y if ARCH_IMX8M || ARCH_IMX9
+	default y if ARCH_IMX8M || ARCH_IMX9 || ARCH_SUNXI
 	  Enable this to reduce the size of the FIT image loading code
 	  in SPL, if space for the SPL binary is very tight.

More information about the U-Boot mailing list