Revision | 35ed176af24484dbea064266be75aefdc88d79ec (tree) |
---|---|
Time | 2022-07-21 17:14:04 |
Author | Pali Rohár <pali@kern...> |
Commiter | Stefan Roese |
arch: mvebu: Disable by default unused peripherals in SPL
SPL on mvebu loads proper U-Boot from custom Marvell kwbimage format and
therefore support for other binary formats is not required to be present in
SPL. Boot source of proper U-Boot is defined by compile time options and
therefore it is not required to enable all possible and unused peripherals
in SPL by default.
This change decrease size of SPL binaries.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
@@ -294,6 +294,7 @@ config SPL_BOOTCOUNT_LIMIT | ||
294 | 294 | |
295 | 295 | config SPL_RAW_IMAGE_SUPPORT |
296 | 296 | bool "Support SPL loading and booting of RAW images" |
297 | + default n if ARCH_MVEBU | |
297 | 298 | default n if (ARCH_MX6 && (SPL_MMC || SPL_SATA)) |
298 | 299 | default y |
299 | 300 | depends on !TI_SECURE_DEVICE |
@@ -304,6 +305,7 @@ config SPL_RAW_IMAGE_SUPPORT | ||
304 | 305 | |
305 | 306 | config SPL_LEGACY_IMAGE_FORMAT |
306 | 307 | bool "Support SPL loading and booting of Legacy images" |
308 | + default n if ARCH_MVEBU | |
307 | 309 | default y if !SPL_LOAD_FIT |
308 | 310 | depends on !TI_SECURE_DEVICE |
309 | 311 | help |
@@ -60,6 +60,7 @@ config DOS_PARTITION | ||
60 | 60 | config SPL_DOS_PARTITION |
61 | 61 | bool "Enable MS Dos partition table for SPL" |
62 | 62 | depends on SPL |
63 | + default n if ARCH_MVEBU | |
63 | 64 | default n if ARCH_SUNXI |
64 | 65 | default y if DOS_PARTITION |
65 | 66 | select SPL_PARTITIONS |
@@ -130,6 +131,7 @@ config EFI_PARTITION_ENTRIES_OFF | ||
130 | 131 | config SPL_EFI_PARTITION |
131 | 132 | bool "Enable EFI GPT partition table for SPL" |
132 | 133 | depends on SPL |
134 | + default n if ARCH_MVEBU | |
133 | 135 | default n if ARCH_SUNXI |
134 | 136 | default y if EFI_PARTITION |
135 | 137 | select SPL_PARTITIONS |
@@ -45,6 +45,7 @@ config DM_MMC | ||
45 | 45 | config SPL_DM_MMC |
46 | 46 | bool "Enable MMC controllers using Driver Model in SPL" |
47 | 47 | depends on SPL_DM && DM_MMC |
48 | + default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC | |
48 | 49 | default y |
49 | 50 | help |
50 | 51 | This enables the MultiMediaCard (MMC) uclass which supports MMC and |
@@ -50,6 +50,7 @@ config DM_USB | ||
50 | 50 | config SPL_DM_USB |
51 | 51 | bool "Enable driver model for USB host most in SPL" |
52 | 52 | depends on SPL_DM && DM_USB |
53 | + default n if ARCH_MVEBU | |
53 | 54 | default y |
54 | 55 | |
55 | 56 | config DM_USB_GADGET |