MIPS: lantiq: add NOR flash support
Subsystems (2)
PATCH v9 1/1 MIPS: lantiq: add NOR flash support
This patch adds the driver/map for NOR devices attached to the SoC via the External Bus Unit (EBU).
---
Changes in V2
* handle the endianess bug inside the map code and not in the generic cfi code
* remove the addr swizzle patch
Changes in V3
* whitespace
* change __iomem void to void __iomem
Changes in V4
* fixes a checkpatch.pl bug, the second is a false positive
* whitespace cleanups
* remove unused typecasts
* cleanup ltq_copy_from and ltq_copy_to
Changes in V6
* cleanup/add comments
* fix line breaks
* properly handle return code of add_mtd_partitions()
* use pr_err instead of printk
Changes in V7
* remove bogus KERN_INFO from pr_err() call
Changes in V8
* dynamically allocate the instance of map_info allowing the use of .addr_unlock1 for indication of the probing state, thus eliminating the need for a global variable
Changes in V9
* fixes spelling errors
* adds proper exit path to init function
* adds remove function
This patch should be merged via the MIPS tree
drivers/mtd/maps/Kconfig | 9 ++ drivers/mtd/maps/Makefile | 1 + drivers/mtd/maps/lantiq-flash.c | 251 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 261 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/maps/lantiq-flash.c
drivers/mtd/maps/Kconfig +9 -0
@@ -260,6 +260,15 @@ config MTD_BCM963XX Support for parsing CFE image tag and creating MTD partitions on Broadcom BCM63xx boards. +config MTD_LANTIQ + tristate "Lantiq SoC NOR support" + depends on LANTIQ + select MTD_PARTITIONS + help + Lantiq SoCs have a EBU (External Bus Unit). This IP allows to attach + a number of different peripherals to the SoC. This driver adds + support for NOR chips to be added. + config MTD_DILNETPC tristate "CFI Flash device mapped on DIL/Net PC" depends on X86 && MTD_PARTITIONS && MTD_CFI_INTELEXT && BROKEN
drivers/mtd/maps/Makefile +1 -0
@@ -60,3 +60,4 @@ obj-$(CONFIG_MTD_VMU) += vmu-flash.o obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o obj-$(CONFIG_MTD_BCM963XX) += bcm963xx-flash.o obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o +obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o
drivers/mtd/maps/lantiq-flash.c new file +251 -0
251 lines not on this page · raw message
Signature · 1 line
1.7.2.3
On Tue, Apr 12, 2011 at 06:10:01PM +0200, John Crispin wrote:
Queued for 2.6.40 with the trailing whitespace fixed up as this was already pre-acked by Artem on IRC. Thanks!
Ralf