summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/Kconfig
diff options
context:
space:
mode:
authorHuang Shijie2014-02-24 11:37:37 +0100
committerBrian Norris2014-04-14 20:22:58 +0200
commitb199489d37b21c5e294f95bf265acc5dde3fc3a2 (patch)
treea498f39ae5035cdb9091eb96d95662db3fc54a82 /drivers/mtd/spi-nor/Kconfig
parentmtd: spi-nor: add the basic data structures (diff)
downloadkernel-qcow2-linux-b199489d37b21c5e294f95bf265acc5dde3fc3a2.tar.gz
kernel-qcow2-linux-b199489d37b21c5e294f95bf265acc5dde3fc3a2.tar.xz
kernel-qcow2-linux-b199489d37b21c5e294f95bf265acc5dde3fc3a2.zip
mtd: spi-nor: add the framework for SPI NOR
This patch cloned most of the m25p80.c. In theory, it adds a new spi-nor layer. Before this patch, the layer is like: MTD ------------------------ m25p80 ------------------------ spi bus driver ------------------------ SPI NOR chip After this patch, the layer is like: MTD ------------------------ spi-nor ------------------------ m25p80 ------------------------ spi bus driver ------------------------ SPI NOR chip With the spi-nor controller driver(Freescale Quadspi), it looks like: MTD ------------------------ spi-nor ------------------------ fsl-quadspi ------------------------ SPI NOR chip New APIs: spi_nor_scan: used to scan a spi-nor flash. Signed-off-by: Huang Shijie <b32955@freescale.com> Acked-by: Marek Vasut <marex@denx.de> [Brian: rebased to include additional m25p_ids[] entry] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/spi-nor/Kconfig')
-rw-r--r--drivers/mtd/spi-nor/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
new file mode 100644
index 000000000000..41591af67aca
--- /dev/null
+++ b/drivers/mtd/spi-nor/Kconfig
@@ -0,0 +1,6 @@
+config MTD_SPI_NOR_BASE
+ bool "the framework for SPI-NOR support"
+ depends on MTD
+ help
+ This is the framework for the SPI NOR which can be used by the SPI
+ device drivers and the SPI-NOR device driver.