All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH 3/5] mtd: Add SPL_DM_MTD option
Date: Thu,  9 Jul 2020 16:47:07 +0530	[thread overview]
Message-ID: <20200709111709.68904-4-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200709111709.68904-1-jagan@amarulasolutions.com>

Add SPL option for DM_MTD.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 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
-- 
2.25.1

  parent reply	other threads:[~2020-07-09 11:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-09 11:17 [PATCH 0/5] mtd: Implement MTD UCLASS (use SPINOR) Jagan Teki
2020-07-09 11:17 ` [PATCH 1/5] mtd: spi: Drop redundent SPI flash driver Jagan Teki
2020-07-13  8:32   ` Vignesh Raghavendra
2020-07-09 11:17 ` [PATCH 2/5] mtd: Add dm-mtd core ops Jagan Teki
2020-07-09 11:17 ` Jagan Teki [this message]
2020-07-09 11:17 ` [PATCH 4/5] mtd: Build mtd-uclass as obj Jagan Teki
2020-07-09 11:17 ` [PATCH 5/5] mtd: spi: Switch to MTD uclass (absolute UCLASS_SPI_FLASH) Jagan Teki
2020-07-13  9:00   ` Vignesh Raghavendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200709111709.68904-4-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.