diff mbox

[U-Boot,v9,03/21] mtd: spi-nor: Kconfig: Add MTD_SPI_NOR entry

Message ID 1477851833-23960-4-git-send-email-jagan@openedev.com
State Deferred
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Jagan Teki Oct. 30, 2016, 6:23 p.m. UTC
Added CONFIG_MTD_SPI_NOR kconfig entry

Signed-off-by: Jagan Teki <jagan@openedev.com>
---
 drivers/mtd/Kconfig         |  2 ++
 drivers/mtd/spi-nor/Kconfig | 14 ++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 drivers/mtd/spi-nor/Kconfig

Comments

Simon Glass Nov. 5, 2016, 4:09 p.m. UTC | #1
On 30 October 2016 at 12:23, Jagan Teki <jagan@openedev.com> wrote:
> Added CONFIG_MTD_SPI_NOR kconfig entry
>
> Signed-off-by: Jagan Teki <jagan@openedev.com>
> ---
>  drivers/mtd/Kconfig         |  2 ++
>  drivers/mtd/spi-nor/Kconfig | 14 ++++++++++++++
>  2 files changed, 16 insertions(+)
>  create mode 100644 drivers/mtd/spi-nor/Kconfig

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 3a9705c..3dc4221 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -41,4 +41,6 @@  source "drivers/mtd/nand/Kconfig"
 
 source "drivers/mtd/spi/Kconfig"
 
+source "drivers/mtd/spi-nor/Kconfig"
+
 source "drivers/mtd/ubi/Kconfig"
diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
new file mode 100644
index 0000000..130b0a4
--- /dev/null
+++ b/drivers/mtd/spi-nor/Kconfig
@@ -0,0 +1,14 @@ 
+menuconfig MTD_SPI_NOR
+	tristate "SPI-NOR device support"
+	depends on MTD
+	help
+	  This is the core SPI NOR framework which can be used to interact SPI-NOR
+	  to SPI driver interface layer and the SPI-NOR controller driver.
+
+	  Unlike normal/generic spi controllers, they are few controllers which are
+	  exclusively used to connect SPI-NOR devices, called SPI-NOR controllers.
+	  So technically these controllers shouldn't reside at drivers/spi as these
+	  may effect the generic SPI bus functionalities, so this SPI-NOR core acts
+	  as a common core framework between the generic SPI controller drivers vs
+	  SPI-NOR controller drivers for SPI-NOR device access. Note that from SPI-NOR
+	  core to SPI drivers there should be an interface layer.