]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: Consider SPL size limitations for FIT loading
authorSamuel Holland <samuel@sholland.org>
Tue, 31 Oct 2023 05:17:41 +0000 (00:17 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 29 Jan 2024 14:31:00 +0000 (14:31 +0000)
Now that 32-bit SoCs can load U-Boot proper (and possibly other firmware)
from a FIT, people can use that by enabling CONFIG_SPL_LOAD_FIT.
However 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@sholland.org>
[Andre: drop unconditional FIT image enablement for all SoCs]
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
common/spl/Kconfig

index ff7753483d1f3a7a2a7d34f12eb4ae71c8bb9df5..6a4772eea90e5b86dc205e9dad95f877a716cdfc 100644 (file)
@@ -584,8 +584,7 @@ config SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION
 config SPL_FIT_IMAGE_TINY
        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
        help
          Enable this to reduce the size of the FIT image loading code
          in SPL, if space for the SPL binary is very tight.