Skip to contentSkip to conversation

TMIO NAND driver

MFD ian 2 participants 12 messages Jul 16, 2008 – Aug 1, 2008

Subsystems (2)
lore
Share & tools
lore

ian

author
#0 lore raw

Hi folks,

Here is an updated version of the TMIO nand driver.

It has __correct__ copyright unlike previous versions, and has a writeb() replaced with iowrite8() that seems to have escaped earlier reviews.

Also available from my git tree in the MFD branch:

git://git.mnementh.co.uk/linux-2.6-im.git mfd_push_try_1

Please apply.

Please CC me on replies.

Quoted 1 line

From 256a4b3b641a2bd636f695771cef1a32b5a4c8a9 Mon Sep 17 00:00:00 2001

From: Ian Molton <[email protected]>
Date: Tue, 15 Jul 2008 16:04:22 +0100
Subject: [PATCH] [MFD] Driver for TMIO NAND controller

This patch adds support for the NAND controller commonly found in TMIO based SoCs.

---
 drivers/mtd/nand/Kconfig     |    7 +
 drivers/mtd/nand/Makefile    |    1 +
 drivers/mtd/nand/tmio_nand.c |  559 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 567 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mtd/nand/tmio_nand.c
drivers/mtd/nand/Kconfig +7 -0
index 5076faf..6291748 100644
@@ -338,6 +338,13 @@ config MTD_NAND_PASEMI
 	  Enables support for NAND Flash interface on PA Semi PWRficient
 	  based boards
 
+config MTD_NAND_TMIO
+	tristate "NAND Flash device on Toshiba Mobile IO Controller"
+	depends on MTD_NAND && MFD_CORE
+	help
+	  Support for NAND flash connected to a Toshiba Mobile IO
+	  Controller in some PDAs, including the Sharp SL6000x.
+
 config MTD_NAND_NANDSIM
 	tristate "Support for NAND Flash Simulator"
 	depends on MTD_PARTITIONS
drivers/mtd/nand/Makefile +1 -0
index a6e74a4..c16453f 100644
@@ -28,6 +28,7 @@ obj-$(CONFIG_MTD_NAND_AT91)		+= at91_nand.o
 obj-$(CONFIG_MTD_NAND_CM_X270)		+= cmx270_nand.o
 obj-$(CONFIG_MTD_NAND_BASLER_EXCITE)	+= excite_nandflash.o
 obj-$(CONFIG_MTD_NAND_PXA3xx)		+= pxa3xx_nand.o
+obj-$(CONFIG_MTD_NAND_TMIO)		+= tmio_nand.o
 obj-$(CONFIG_MTD_NAND_PLATFORM)		+= plat_nand.o
 obj-$(CONFIG_MTD_ALAUDA)		+= alauda.o
 obj-$(CONFIG_MTD_NAND_PASEMI)		+= pasemi_nand.o
drivers/mtd/nand/tmio_nand.c new file +559 -0

559 lines not on this page · raw message

Signature · 1 line
1.5.3.5.737.gdee1b
author
#2 lore raw
Quoted 3 lines · ian
Quoted 1 line · ian

Here is an updated version of the TMIO nand driver.

I found problems with this version. Proposed (but untested) fix in the same place but in branch mfd_push_try_5.

Comments welcome.

#3 lore raw
Quoted 2 lines · ian

I found problems with this version. Proposed (but untested) fix in the same place but in branch mfd_push_try_5.

Tested it yet?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
author
#4 lore raw
Quoted 5 lines · David Woodhouse
Quoted 1 line

I found problems with this version. Proposed (but untested) fix in

the

Quoted 1 line

same place but in branch mfd_push_try_5.

Tested it yet?

current version should be OK. Im going to push out a new tree later today.

#5 lore raw
Quoted 9 lines · ian
Quoted 5 lines · David Woodhouse
Quoted 1 line

I found problems with this version. Proposed (but untested) fix in

the

Quoted 1 line

same place but in branch mfd_push_try_5.

Tested it yet?

current version should be OK. Im going to push out a new tree later today.

I'm rounding up the last patches for 2.6.27 as we speak...

Signature · 1 line
dwmw2
#7 lore raw
Quoted 1 line · ian

git://git.mnementh.co.uk/linux-2.6-im.git mfd_push_try_10

There stuff in there which wants to go separately. Do you want me to cherry-pick just the NAND driver and push it through my tree?

Signature · 1 line
dwmw2
author
#8 lore raw
Quoted 4 lines · David Woodhouse
Quoted 1 line

git://git.mnementh.co.uk/linux-2.6-im.git mfd_push_try_10

There stuff in there which wants to go separately. Do you want me to cherry-pick just the NAND driver and push it through my tree?

Yes please.

author
#9 lore raw
Quoted 7 lines · ian
Quoted 4 lines · David Woodhouse
Quoted 1 line

git://git.mnementh.co.uk/linux-2.6-im.git mfd_push_try_10

There stuff in there which wants to go separately. Do you want me to cherry-pick just the NAND driver and push it through my tree?

Yes please.

Ok, theres been discussion about accessors on LAKML with regards to the TMIO devices.

I've made an updated version of this driver using tmio specific accessors that should allow the driver to be used more easily on other MFDs.

Trouble is this causes a dependancy on a patch that needs to go via RMKs tree.

Theres two ways to handle this

1) You merge the version I already gave you and I send a later patch to convert it to the new accessors

2) We push everything via RMKs tree, all in one go.

I'd prefer 2) if theres still time and its not too much trouble. It causes less breakage.

All it'd need is your acked-by:

Let me know what you'd prefer to do.

#10 lore raw
Quoted 7 lines · ian

2) We push everything via RMKs tree, all in one go.

I'd prefer 2) if theres still time and its not too much trouble. It causes less breakage.

All it'd need is your acked-by:

Signature · 1 line
dwmw2
author
#11 lore raw
Quoted 8 lines · David Woodhouse
Quoted 6 lines

2) We push everything via RMKs tree, all in one go.

I'd prefer 2) if theres still time and its not too much trouble. It causes less breakage.

All it'd need is your acked-by:

Thanks for that (although now it may go via the MFD tree as samuel seems active again.)

(I just got back from holiday)