From db04ff42c764329c12e96afc4d9f1acf4d44b6d4 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 10 Jan 2024 13:46:10 -0500 Subject: 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 --- arch/mips/Kconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/mips') diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 569f5f48bc6..f0704d97f79 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 -- cgit v1.2.3