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 /drivers/mtd | |
parent | cda3f81b06f5cbc6e96a1a4f1e70884fa41ef5a7 (diff) | |
download | u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.tar.gz u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.tar.bz2 u-boot-db04ff42c764329c12e96afc4d9f1acf4d44b6d4.zip |
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 'drivers/mtd')
-rw-r--r-- | drivers/mtd/Kconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index c56840c849..4fdc9645d0 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -9,6 +9,8 @@ config MTD Enable the MTD stack, necessary to interact with NAND, NOR, SPI-NOR, SPI-NAND, OneNAND, etc. +if MTD + config DM_MTD bool "Enable Driver Model for MTD drivers" depends on DM @@ -24,7 +26,6 @@ config MTD_NOR_FLASH config MTD_CONCAT bool "Enable MTD device concatenation" - depends on MTD help Enable support for concatenating multiple physical MTD devices into a single logical device. The larger logical device can then @@ -32,7 +33,6 @@ config MTD_CONCAT config SYS_MTDPARTS_RUNTIME bool "Allow MTDPARTS to be configured at runtime" - depends on MTD help This option allows to call the function board_mtdparts_default to dynamically build the variables mtdids and mtdparts at runtime. @@ -272,4 +272,6 @@ source "drivers/mtd/ubi/Kconfig" source "drivers/mtd/nvmxip/Kconfig" +endif + endmenu |