@@ -17,6 +17,14 @@ config DM_MTD
flash, RAM and similar chips, often used for solid state file
systems on embedded devices.
+config SPL_DM_MTD
+ bool "Enable Driver Model for MTD drivers in SPL"
+ depends on SPL_DM
+ help
+ Enable driver model for Memory Technology Devices (MTD), such as
+ flash, RAM and similar chips, often used for solid state file
+ systems on embedded devices.
+
config MTD_NOR_FLASH
bool "Enable parallel NOR flash support"
help
@@ -4,7 +4,7 @@
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o
-mtd-$(CONFIG_DM_MTD) += mtd-uclass.o
+mtd-$(CONFIG_$(SPL_)DM_MTD) += mtd-uclass.o
mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o
mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o
Add SPL option for DM_MTD. Cc: Simon Glass <sjg at chromium.org> Cc: Vignesh R <vigneshr at ti.com> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com> --- drivers/mtd/Kconfig | 8 ++++++++ drivers/mtd/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)