diff options
author | Tom Rini <trini@konsulko.com> | 2024-01-10 13:46:10 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-22 14:18:54 -0500 |
commit | db04ff42c764329c12e96afc4d9f1acf4d44b6d4 (patch) | |
tree | 054b4ca78905489c0ef431196e0f5d658293c179 /arch | |
parent | cda3f81b06f5cbc6e96a1a4f1e70884fa41ef5a7 (diff) | |
download | u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.zip u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.tar.gz u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.tar.bz2 |
mtd: Make CONFIG_MTD be the gate symbol for the menu
The help for CONFIG_MTD explains that it needs to be enabled for various
things like NAND, etc to be available. It however then doesn't enforce
this dependency and so if you have none of these systems present you
still need to disable a number of options. Fix this by making places
that select/imply one type of flash, but did not do the same, also do
this for "MTD". Make boards which hadn't been enabling MTD already but
need it now, do so. In a few places, disable CONFIG_CMD_MTDPARTS as it
wasn't previously enabled but was now being implied.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/Kconfig | 11 | ||||
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx6/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/am33xx/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 1 | ||||
-rw-r--r-- | arch/microblaze/Kconfig | 1 | ||||
-rw-r--r-- | arch/mips/Kconfig | 2 |
8 files changed, 23 insertions, 1 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index c23d57e..b6fb9e9 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -149,6 +149,7 @@ config SANDBOX select GZIP_COMPRESSED select IO_TRACE select LZO + select MTD select OF_BOARD_SETUP select PCI_ENDPOINT select SPI @@ -254,6 +255,7 @@ config X86 imply DM_RTC imply SCSI imply DM_SERIAL + imply MTD imply DM_SPI imply DM_SPI_FLASH imply DM_USB diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index efb7053..abd7c6c 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -614,6 +614,7 @@ config ARCH_MVEBU select DM_SPI select DM_SPI_FLASH select GPIO_EXTRA_HEADER + select MTD select SPL_DM_SPI if SPL select SPL_DM_SPI_FLASH if SPL select SPL_TIMER if SPL @@ -639,6 +640,7 @@ config TARGET_STV0991 select DM_SPI_FLASH select GPIO_EXTRA_HEADER select PL01X_SERIAL + select MTD select SPI select SPI_FLASH imply CMD_DM @@ -724,6 +726,7 @@ config ARCH_EXYNOS select DM_SERIAL select DM_SPI select DM_SPI_FLASH + select MTD select SPI select GPIO_EXTRA_HEADER imply SYS_THUMB_BUILD @@ -1008,6 +1011,7 @@ config ARCH_APPLE select VIDEO select IOMMU select LINUX_KERNEL_IMAGE_HEADER + select MTD select OF_BOARD_SETUP select OF_CONTROL select PCI @@ -1120,6 +1124,7 @@ config ARCH_SOCFPGA imply DM_SPI imply DM_SPI_FLASH imply FAT_WRITE + imply MTD imply SPL imply SPL_DM imply SPL_DM_SPI @@ -1143,7 +1148,7 @@ config ARCH_SUNXI select DM_GPIO select DM_I2C if I2C select DM_SPI if SPI - select DM_SPI_FLASH if SPI + select DM_SPI_FLASH if SPI && MTD select DM_KEYBOARD select DM_MMC if MMC select DM_SERIAL @@ -1261,6 +1266,7 @@ config ARCH_ZYNQ select DM_SPI select DM_SPI_FLASH select OF_CONTROL + select MTD select SPI select SPL_BOARD_INIT if SPL select SPL_CLK if SPL @@ -1299,6 +1305,7 @@ config ARCH_ZYNQMP imply DM_MAILBOX select DM_MMC if MMC select DM_SERIAL + select MTD select DM_SPI if SPI select DM_SPI_FLASH if DM_SPI imply FIRMWARE @@ -1845,6 +1852,7 @@ config TARGET_SL28 select DM_GPIO select DM_I2C select DM_MMC + select MTD select DM_SPI_FLASH select DM_MDIO select PCI @@ -1989,6 +1997,7 @@ config ARCH_ROCKCHIP select DM_USB_GADGET if USB_DWC3_GADGET select ENABLE_ARM_SOC_BOOT0_HOOK select OF_CONTROL + select MTD select SPI select SPL_DM if SPL select SPL_DM_SPI if SPL diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 37ef2d6..c5fd869 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -88,6 +88,7 @@ config TARGET_GURNARD select DM_GPIO select DM_SERIAL select DM_SPI + select MTD select SPI imply CMD_DM @@ -294,6 +295,7 @@ config TARGET_TAURUS select DM_GPIO select DM_SERIAL select DM_SPI + select MTD select SPI select SUPPORT_SPL imply CMD_DM @@ -312,6 +314,7 @@ config TARGET_VINCO bool "Support VINCO" select DM select DM_SPI + select MTD select SAMA5D4 select SPI select SUPPORT_SPL diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 50a9c3e..114cce4 100644 --- a/arch/arm/mach-imx/mx6/Kconfig +++ b/arch/arm/mach-imx/mx6/Kconfig @@ -201,6 +201,7 @@ config TARGET_DISPLAY5 select DM_SPI select DM_GPIO select DM_SERIAL + select MTD select SUPPORT_SPL imply CMD_DM @@ -261,6 +262,7 @@ config TARGET_MCCMON6 select DM_SERIAL select DM_I2C select DM_SPI + select MTD imply CMD_DM config TARGET_MX6CUBOXI @@ -602,6 +604,7 @@ config TARGET_TQMA6 imply DM imply DM_GPIO imply DM_MMC + imply MTD imply DM_SPI imply DM_SPI_FLASH imply DM_I2C diff --git a/arch/arm/mach-omap2/am33xx/Kconfig b/arch/arm/mach-omap2/am33xx/Kconfig index bd5129b..46abf07 100644 --- a/arch/arm/mach-omap2/am33xx/Kconfig +++ b/arch/arm/mach-omap2/am33xx/Kconfig @@ -204,6 +204,7 @@ config TARGET_AM43XX_EVM imply DM_I2C imply DM_SPI imply DM_SPI_FLASH + imply MTD imply SPL_ENV_SUPPORT imply SPL_FS_EXT4 imply SPL_FS_FAT diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index c8907bc..05e194d 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -55,6 +55,7 @@ config TEGRA_COMMON select DM_SPI select DM_SPI_FLASH select MISC + select MTD select OF_CONTROL select SPI select SYSRESET diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index e38c9f6..4261e50 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -23,6 +23,7 @@ config TARGET_MICROBLAZE_GENERIC select SYSRESET select DM_SPI select DM_SPI_FLASH + select MTD select SPI imply CMD_DM diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 569f5f4..f0704d9 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -77,6 +77,7 @@ config ARCH_MTMIPS select PINMUX select PINCONF select RESET_MTMIPS + imply MTD imply DM_SPI imply DM_SPI_FLASH select LAST_STAGE_INIT @@ -109,6 +110,7 @@ config ARCH_OCTEON select MIPS_L2_CACHE select MIPS_MACH_EARLY_INIT select MIPS_TUNE_OCTEON3 + select MTD select ROM_EXCEPTION_VECTORS select SUPPORTS_BIG_ENDIAN select SUPPORTS_CPU_MIPS64_OCTEON |