• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision35ed176af24484dbea064266be75aefdc88d79ec (tree)
Time2022-07-21 17:14:04
AuthorPali Rohár <pali@kern...>
CommiterStefan Roese

Log Message

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>

Change Summary

Incremental Difference

--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -294,6 +294,7 @@ config SPL_BOOTCOUNT_LIMIT
294294
295295 config SPL_RAW_IMAGE_SUPPORT
296296 bool "Support SPL loading and booting of RAW images"
297+ default n if ARCH_MVEBU
297298 default n if (ARCH_MX6 && (SPL_MMC || SPL_SATA))
298299 default y
299300 depends on !TI_SECURE_DEVICE
@@ -304,6 +305,7 @@ config SPL_RAW_IMAGE_SUPPORT
304305
305306 config SPL_LEGACY_IMAGE_FORMAT
306307 bool "Support SPL loading and booting of Legacy images"
308+ default n if ARCH_MVEBU
307309 default y if !SPL_LOAD_FIT
308310 depends on !TI_SECURE_DEVICE
309311 help
--- a/disk/Kconfig
+++ b/disk/Kconfig
@@ -60,6 +60,7 @@ config DOS_PARTITION
6060 config SPL_DOS_PARTITION
6161 bool "Enable MS Dos partition table for SPL"
6262 depends on SPL
63+ default n if ARCH_MVEBU
6364 default n if ARCH_SUNXI
6465 default y if DOS_PARTITION
6566 select SPL_PARTITIONS
@@ -130,6 +131,7 @@ config EFI_PARTITION_ENTRIES_OFF
130131 config SPL_EFI_PARTITION
131132 bool "Enable EFI GPT partition table for SPL"
132133 depends on SPL
134+ default n if ARCH_MVEBU
133135 default n if ARCH_SUNXI
134136 default y if EFI_PARTITION
135137 select SPL_PARTITIONS
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -45,6 +45,7 @@ config DM_MMC
4545 config SPL_DM_MMC
4646 bool "Enable MMC controllers using Driver Model in SPL"
4747 depends on SPL_DM && DM_MMC
48+ default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
4849 default y
4950 help
5051 This enables the MultiMediaCard (MMC) uclass which supports MMC and
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -50,6 +50,7 @@ config DM_USB
5050 config SPL_DM_USB
5151 bool "Enable driver model for USB host most in SPL"
5252 depends on SPL_DM && DM_USB
53+ default n if ARCH_MVEBU
5354 default y
5455
5556 config DM_USB_GADGET