Skip to contentSkip to conversation

Rodan NAND controller

PATCH In review Justin Treon 2 participants 2 messages May 2, 2008 – May 5, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rodan NAND controller

Adds support for the custom add-on card for Marvell PXA27x Applications Processor Developer Kit we call "Rodan".

---
This "Rodan" card provides a flexible Flash bus configuration. There are only several dozen of these in use with Linux, but they are in constant use. They are used internally by Numonyx and have been donated to various MTD and Flash filesystem developers. Merging would let us test the MTD, JFFS2, LOGFS, and UBIFS on unmodified kernels straight from git. Various recent JFFS2 bugs and regressions were caught using this system.

 Kconfig  |    6 ++
 Makefile |    1
 rodan.c  |  157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 164 insertions(+)
drivers/mtd/nand/Kconfig +6 -0
diff -Nurp a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
@@ -69,6 +69,12 @@ config MTD_NAND_AMS_DELTA
 	help
 	  Support for NAND flash on Amstrad E3 (Delta).
 
+config MTD_NAND_RODAN
+	tristate "NAND Flash device on Rodan extension for Mainstone II board"
+	depends on ARM && ARCH_PXA && MTD_NAND
+	help
+	  If you had to ask, you don't have one. Say 'N'.
+
 config MTD_NAND_TOTO
 	tristate "NAND Flash device on TOTO board"
 	depends on ARCH_OMAP && BROKEN
drivers/mtd/nand/Makefile +1 -0
diff -Nurp a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
@@ -6,6 +6,7 @@
 obj-$(CONFIG_MTD_NAND)			+= nand.o nand_ecc.o
 obj-$(CONFIG_MTD_NAND_IDS)		+= nand_ids.o
 
+obj-$(CONFIG_MTD_NAND_RODAN)		+= rodan.o
 obj-$(CONFIG_MTD_NAND_CAFE)		+= cafe_nand.o
 obj-$(CONFIG_MTD_NAND_SPIA)		+= spia.o
 obj-$(CONFIG_MTD_NAND_AMS_DELTA)	+= ams-delta.o
drivers/mtd/nand/rodan.c +157 -0

157 lines not on this page · raw message

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Acked-by on v1 1/1
#1 lore raw

drivers/mtd/nand/rodan.c line 39

Quoted 7 lines · Justin Treon
drivers/mtd/nand/rodan.c +6 -0
+const static struct mtd_partition partition_info[] = {
+	{
+	 .name = "IMFT NAND",
+	 .offset = 0,
+	 .size = 256 * 1024 * 1024}
+};

It took me a third look to find the closing brace.

drivers/mtd/nand/rodan.c line 89

Quoted 3 lines
drivers/mtd/nand/rodan.c +3 -0
+	/* Initialize structures */
+	memset((char *)rodan_mtd, 0, sizeof(struct mtd_info));
+	memset((char *)this, 0, sizeof(struct nand_chip));

The casts don't seem necessary.

Otherwise looks fine to me. So module the cosmetics, it is

Jörn

Signature · 2 lines
Do not stop an army on its way home.
-- Sun Tzu