diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-10-03 19:50:04 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 23:04:10 -0500 |
commit | 1de770d5442769778c96bdac271590b44b2c7b78 (patch) | |
tree | b35b1b0fae01ea4af15f852dd16d8b01c76ea5ee /drivers | |
parent | 88718be3001055fa2801a44ab10570279b3f2cb7 (diff) | |
download | u-boot-1de770d5442769778c96bdac271590b44b2c7b78.tar.gz |
mtd: rename CONFIG_MTD -> CONFIG_DM_MTD
CONFIG_MTD must be reserved for the MTD core. Like any other
subsystem, prefix the symbol by DM when it comes to DM support.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
[trini: Add Kconfig files]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dfu/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mtd/Kconfig | 10 | ||||
-rw-r--r-- | drivers/mtd/Makefile | 2 | ||||
-rw-r--r-- | drivers/mtd/mtd_uboot.c | 2 | ||||
-rw-r--r-- | drivers/mtd/nand/raw/Kconfig | 6 | ||||
-rw-r--r-- | drivers/mtd/nand/spi/Kconfig | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index 9fe5bc0f58..02bc28f4b4 100644 --- a/drivers/dfu/Kconfig +++ b/drivers/dfu/Kconfig @@ -56,7 +56,7 @@ config DFU_SF_PART config DFU_MTD bool "MTD back end for DFU" - depends on MTD + depends on DM_MTD help This option enables using DFU to read and write to on any MTD device. diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 37f379d478..fe3127334e 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -3,7 +3,7 @@ menu "MTD Support" config MTD_PARTITIONS bool -config MTD +config DM_MTD bool "Enable Driver Model for MTD drivers" depends on DM help @@ -34,7 +34,7 @@ config FLASH_CFI_DRIVER config CFI_FLASH bool "Enable Driver Model for CFI Flash driver" - depends on MTD + depends on DM_MTD help The Common Flash Interface specification was developed by Intel, AMD and other flash manufactures. It provides a universal method @@ -73,7 +73,7 @@ config SYS_FLASH_CFI config ALTERA_QSPI bool "Altera Generic Quad SPI Controller" - depends on MTD + depends on DM_MTD help This enables access to Altera EPCQ/EPCS flash chips using the Altera Generic Quad SPI Controller. The controller converts SPI @@ -82,14 +82,14 @@ config ALTERA_QSPI config FLASH_PIC32 bool "Microchip PIC32 Flash driver" - depends on MACH_PIC32 && MTD + depends on MACH_PIC32 && DM_MTD help This enables access to Microchip PIC32 internal non-CFI flash chips through PIC32 Non-Volatile-Memory Controller. config RENESAS_RPC_HF bool "Renesas RCar Gen3 RPC Hyperflash driver" - depends on RCAR_GEN3 && MTD + depends on RCAR_GEN3 && DM_MTD help This enables access to Hyperflash memory through the Renesas RCar Gen3 RPC controller. diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 293079d709..88e57118ba 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -6,7 +6,7 @@ ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)$(CONFIG_CMD_SF)$(CONFIG_CMD_MTD))) obj-y += mtdcore.o mtd_uboot.o endif -obj-$(CONFIG_MTD) += mtd-uclass.o +obj-$(CONFIG_DM_MTD) += mtd-uclass.o obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o obj-$(CONFIG_ALTERA_QSPI) += altera_qspi.o diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index 5574227598..7c6c9ac0bc 100644 --- a/drivers/mtd/mtd_uboot.c +++ b/drivers/mtd/mtd_uboot.c @@ -99,7 +99,7 @@ int mtd_search_alternate_name(const char *mtdname, char *altname, return -EINVAL; } -#if IS_ENABLED(CONFIG_MTD) +#if IS_ENABLED(CONFIG_DM_MTD) static void mtd_probe_uclass_mtd_devs(void) { struct udevice *dev; diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 26cc91ad4c..16165f8839 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -67,7 +67,7 @@ endif config NAND_BRCMNAND bool "Support Broadcom NAND controller" - depends on OF_CONTROL && DM && MTD + depends on OF_CONTROL && DM && DM_MTD help Enable the driver for NAND flash on platforms using a Broadcom NAND controller. @@ -173,7 +173,7 @@ if NAND_VF610_NFC config NAND_VF610_NFC_DT bool "Support Vybrid's vf610 NAND controller as a DT device" - depends on OF_CONTROL && MTD + depends on OF_CONTROL && DM_MTD help Enable the driver for Vybrid's vf610 NAND flash on platforms using device tree. @@ -266,7 +266,7 @@ if NAND_MXS config NAND_MXS_DT bool "Support MXS NAND controller as a DT device" - depends on OF_CONTROL && MTD + depends on OF_CONTROL && DM_MTD help Enable the driver for MXS NAND flash on platforms using device tree. diff --git a/drivers/mtd/nand/spi/Kconfig b/drivers/mtd/nand/spi/Kconfig index 2197cb531f..0777dfdf0a 100644 --- a/drivers/mtd/nand/spi/Kconfig +++ b/drivers/mtd/nand/spi/Kconfig @@ -1,6 +1,6 @@ menuconfig MTD_SPI_NAND bool "SPI NAND device Support" - depends on MTD && DM_SPI + depends on DM_MTD && DM_SPI select MTD_NAND_CORE select SPI_MEM help |