MTD: ST SPEAr: Add SMI driver for serial NOR flash
PATCH v3 1/1 MTD: ST SPEAr: Add SMI driver for serial NOR flash
From: Shiraz Hashim <[email protected]>
SPEAr platforms (spear3xx/spear6xx/spear13xx) provide SMI (Serial Memory Interface) controller to access serial NOR flash. SMI provides a simple interface for SPI/serial NOR flashes and has certain inbuilt commands and features to support these flashes easily. It also makes it possible to map an address range in order to directly access (read/write) the SNOR over address bus. This patch intends to provide serial nor driver support for spear platforms which are accessed through SMI.
---
Artem, this is another attemt to get this driver into mainline.
Here a link to the last discussion on the list:
http://lists.infradead.org/pipermail/linux-mtd/2010-December/033471.html
http://lists.infradead.org/pipermail/linux-mtd/2010-December/033477.html
I ported the driver to 3.2 and removed the internal partitioning stuff and replaced it with the new infrastructure. Additionally I moved the header from the arm directory to include/linux/mtd/.
Thanks,
Stefan
drivers/mtd/devices/Kconfig | 7 + drivers/mtd/devices/Makefile | 1 + drivers/mtd/devices/spear_smi.c | 1114 +++++++++++++++++++++++++++++++++++++++ include/linux/mtd/spear_smi.h | 62 +++ 4 files changed, 1184 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/devices/spear_smi.c create mode 100644 include/linux/mtd/spear_smi.h
drivers/mtd/devices/Kconfig +7 -0
@@ -102,6 +102,13 @@ config M25PXX_USE_FAST_READ help This option enables FAST_READ access supported by ST M25Pxx. +config MTD_SPEAR_SMI + tristate "SPEAR MTD NOR Support through SMI controller" + depends on PLAT_SPEAR + default y + help + This enable SNOR support on SPEAR platforms using SMI controller + config MTD_SST25L tristate "Support SST25L (non JEDEC) SPI Flash chips" depends on SPI_MASTER
drivers/mtd/devices/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_MTD_LART) += lart.o obj-$(CONFIG_MTD_BLOCK2MTD) += block2mtd.o obj-$(CONFIG_MTD_DATAFLASH) += mtd_dataflash.o obj-$(CONFIG_MTD_M25P80) += m25p80.o +obj-$(CONFIG_MTD_SPEAR_SMI) += spear_smi.o obj-$(CONFIG_MTD_SST25L) += sst25l.o CFLAGS_docg3.o += -I$(src)
drivers/mtd/devices/spear_smi.c new file +1114 -0
1,114 lines not on this page · raw message
include/linux/mtd/spear_smi.h new file +62 -0
62 lines not on this page · raw message
Signature · 1 line
1.7.8.3
Artem Bityutskiy
AppliedQuoted 10 lines · Stefan Roese
From: Shiraz Hashim <[email protected]>
SPEAr platforms (spear3xx/spear6xx/spear13xx) provide SMI (Serial Memory Interface) controller to access serial NOR flash. SMI provides a simple interface for SPI/serial NOR flashes and has certain inbuilt commands and features to support these flashes easily. It also makes it possible to map an address range in order to directly access (read/write) the SNOR over address bus. This patch intends to provide serial nor driver support for spear platforms which are accessed through SMI.
Quoted 4 lines
Signed-off-by Shiraz Hashim <[email protected]>Signed-off-by Viresh Kumar <[email protected]>Signed-off-by Stefan Roese <[email protected]>Cc Artem Bityutskiy <[email protected]>
Pushed to l2-mtd.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy