Skip to contentSkip to conversation

arm: socfpga: imply SPL options instead of select

PATCH New Simon Goldschmidt 2 participants 2 messages Nov 29, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: imply SPL options instead of select

For a small SPL, it should be possible to build without SPI(-flash) drivers or wihout MMC drivers.

For this to work, we have to change from 'select'ing options to 'imply'ing them.

With this change, I can have SPL trimmed to my hard-wired starting method (SPI-NOR or MMC) while still including all drivers in U-Boot.

---

 arch/arm/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/Kconfig +4 -4
index 96eadb6fd6..d0acb5a622 100644
@@ -816,15 +816,11 @@ config ARCH_SOCFPGA
 	select SPL_DM_RESET if DM_RESET
 	select SPL_DM_SERIAL
 	select SPL_LIBCOMMON_SUPPORT
-	select SPL_LIBDISK_SUPPORT
 	select SPL_LIBGENERIC_SUPPORT
-	select SPL_MMC_SUPPORT if DM_MMC
 	select SPL_NAND_SUPPORT if SPL_NAND_DENALI
 	select SPL_OF_CONTROL
 	select SPL_SEPARATE_BSS if TARGET_SOCFPGA_STRATIX10
 	select SPL_SERIAL_SUPPORT
-	select SPL_SPI_FLASH_SUPPORT if SPL_SPI_SUPPORT
-	select SPL_SPI_SUPPORT if DM_SPI
 	select SPL_WATCHDOG_SUPPORT
 	select SUPPORT_SPL
 	select SYS_NS16550
@@ -835,8 +831,12 @@ config ARCH_SOCFPGA
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply FAT_WRITE
+	imply SPL_LIBDISK_SUPPORT
+	imply SPL_MMC_SUPPORT
 	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
 	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
+	imply SPL_SPI_FLASH_SUPPORT
+	imply SPL_SPI_SUPPORT
 
 config ARCH_SUNXI
 	bool "Support sunxi (Allwinner) SoCs"
Signature · 1 line
2.17.1
Applied
#1 lore raw

PATCH 1/1 arm: socfpga: imply SPL options instead of select

Quoted 10 lines · Simon Goldschmidt

For a small SPL, it should be possible to build without SPI(-flash) drivers or wihout MMC drivers.

For this to work, we have to change from 'select'ing options to 'imply'ing them.

With this change, I can have SPL trimmed to my hard-wired starting method (SPI-NOR or MMC) while still including all drivers in U-Boot.

Applied, thanks.

Signature · 2 lines
Best regards,
Marek Vasut