Skip to contentSkip to conversation

MTD Maps: initial driver for using gpios to assist in addressing of parallel flash as is on the tinyboards

PATCH In review Bryan Wu 3 participants 3 messages Aug 15, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 MTD Maps: initial driver for using gpios to assist in addressing of parallel flash as is on the tinyboards

From: Mike Frysinger <[email protected]>

extend driver to handle arbitrary number of gpios

---
 drivers/mtd/maps/Kconfig           |    9 +
 drivers/mtd/maps/Makefile          |    1 +
 drivers/mtd/maps/gpio-addr-flash.c |  419 ++++++++++++++++++++++++++++++++++++
 3 files changed, 429 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mtd/maps/gpio-addr-flash.c
drivers/mtd/maps/Kconfig +9 -0
index 50bb046..76f05ad 100644
@@ -520,6 +520,15 @@ config MTD_BFIN_ASYNC
 
 	  If compiled as a module, it will be called bfin-async-flash.
 
+config MTD_GPIO_ADDR
+	tristate "GPIO-assisted Flash Chip Support"
+	select MTD_PARTITIONS
+	help
+	  Map driver which allows flashes to be partially physically addressed
+	  and assisted by GPIOs.
+
+	  If compiled as a module, it will be called gpio-addr-flash.
+
 config MTD_UCLINUX
 	tristate "Generic uClinux RAM/ROM filesystem support"
 	depends on MTD_PARTITIONS && MTD_RAM && !MMU
drivers/mtd/maps/Makefile +1 -0
index 6cda6df..fdfaa5e 100644
@@ -65,3 +65,4 @@ obj-$(CONFIG_MTD_PLATRAM)	+= plat-ram.o
 obj-$(CONFIG_MTD_OMAP_NOR)	+= omap_nor.o
 obj-$(CONFIG_MTD_INTEL_VR_NOR)	+= intel_vr_nor.o
 obj-$(CONFIG_MTD_BFIN_ASYNC)	+= bfin-async-flash.o
+obj-$(CONFIG_MTD_GPIO_ADDR)	+= gpio-addr-flash.o
drivers/mtd/maps/gpio-addr-flash.c new file +419 -0

419 lines not on this page · raw message

Signature · 1 line
1.5.6
#1 lore raw
Quoted 2 lines · Bryan Wu

+#define pr_devinit(fmt, args...) ({ static const __devinitconst char __fmt[] = fmt; printk(__fmt, ## args); })

You've added that macro twice in MTD code already -- and now you're adding it twice more (although I suspect only one was intentional). Where are we with putting it in include/linux/ where it belongs?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#2 lore raw
Quoted 7 lines · David Woodhouse
Quoted 2 lines · Bryan Wu

+#define pr_devinit(fmt, args...) ({ static const __devinitconst char __fmt[] = fmt; printk(__fmt, ## args); })

You've added that macro twice in MTD code already -- and now you're adding it twice more (although I suspect only one was intentional). Where are we with putting it in include/linux/ where it belongs?

i havent tried since the last thread on the topic went nowhere. guess i could try again.
-mike