From patchwork Thu Jul 9 11:17:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 241121 List-Id: U-Boot discussion From: jagan at amarulasolutions.com (Jagan Teki) Date: Thu, 9 Jul 2020 16:47:07 +0530 Subject: [PATCH 3/5] mtd: Add SPL_DM_MTD option In-Reply-To: <20200709111709.68904-1-jagan@amarulasolutions.com> References: <20200709111709.68904-1-jagan@amarulasolutions.com> Message-ID: <20200709111709.68904-4-jagan@amarulasolutions.com> Add SPL option for DM_MTD. Cc: Simon Glass Cc: Vignesh R Signed-off-by: Jagan Teki --- drivers/mtd/Kconfig | 8 ++++++++ drivers/mtd/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 348b43e653..3feedf311f 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -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 diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 318788c5e2..f6b0719746 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -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