Skip to contentSkip to conversation

MTD: pasemi_nand driver

PATCH Superseded Olof Johansson 2 participants 4 messages Nov 28, 2007 – Nov 29, 2007

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

PATCH 1/1 MTD: pasemi_nand driver

Plumbing for NAND connected via localbus on PA Semi PWRficient-based boards.

From: Egor Martovetsky <[email protected]>

drivers/mtd/nand/Kconfig +6 -0
Index: 2.6.24/drivers/mtd/nand/Kconfig
===================================================================
@@ -283,6 +283,12 @@ config MTD_NAND_CM_X270
 	tristate "Support for NAND Flash on CM-X270 modules"
 	depends on MTD_NAND && MACH_ARMCORE
 
+config MTD_NAND_PASEMI
+	tristate "NAND support for PA Semi PWRficient"
+	depends on MTD_NAND && PPC_PASEMI
+	help
+	  Enables support for NAND Flash interface on PA Semi PWRficient
+	  based boards
 
 config MTD_NAND_NANDSIM
 	tristate "Support for NAND Flash Simulator"
drivers/mtd/nand/Makefile +1 -0
Index: 2.6.24/drivers/mtd/nand/Makefile
===================================================================
@@ -29,5 +29,6 @@ obj-$(CONFIG_MTD_NAND_CM_X270)		+= cmx27
 obj-$(CONFIG_MTD_NAND_BASLER_EXCITE)	+= excite_nandflash.o
 obj-$(CONFIG_MTD_NAND_PLATFORM)		+= plat_nand.o
 obj-$(CONFIG_MTD_ALAUDA)		+= alauda.o
+obj-$(CONFIG_MTD_NAND_PASEMI)		+= pasemi_nand.o
 
 nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/pasemi_nand.c new file +241 -0

241 lines not on this page · raw message

#1 lore raw
Quoted 2 lines · Olof Johansson

Plumbing for NAND connected via localbus on PA Semi PWRficient-based boards.

Any reason it lacks MODULE_DEVICE_TABLE() ?

I note electra-ide lacks it too. So no autoload of either.

Signature · 1 line
dwmw2
#2 lore raw
Quoted 8 lines · David Woodhouse
Quoted 2 lines · Olof Johansson

Plumbing for NAND connected via localbus on PA Semi PWRficient-based boards.

Any reason it lacks MODULE_DEVICE_TABLE() ?

I note electra-ide lacks it too. So no autoload of either.

Nope, no good reason. I'll add one. Josh pointed out <stdfeedback.h>, d.v.s of_platform.h as well so I have to repost with that too.

-Olof

#3 lore raw

PATCH v2 1/1 MTD: pasemi_nand driver

In reply to Olof Johansson

Plumbing for NAND connected via localbus on PA Semi PWRficient-based boards.

From: Egor Martovetsky <[email protected]>

---

Changes from original post:

* asm/of_platform.h -> linux/of_platform.h
* MODULE_DEVICE_TABLE()

 drivers/mtd/nand/Kconfig       |    6 
 drivers/mtd/nand/Makefile      |    1 
 drivers/mtd/nand/pasemi_nand.c |  243 +++++++++++++++++++++++++++++++++
 3 files changed, 250 insertions(+)
drivers/mtd/nand/Kconfig +6 -0
Index: 2.6.24/drivers/mtd/nand/Kconfig
===================================================================
@@ -283,6 +283,12 @@ config MTD_NAND_CM_X270
 	tristate "Support for NAND Flash on CM-X270 modules"
 	depends on MTD_NAND && MACH_ARMCORE
 
+config MTD_NAND_PASEMI
+	tristate "NAND support for PA Semi PWRficient"
+	depends on MTD_NAND && PPC_PASEMI
+	help
+	  Enables support for NAND Flash interface on PA Semi PWRficient
+	  based boards
 
 config MTD_NAND_NANDSIM
 	tristate "Support for NAND Flash Simulator"
drivers/mtd/nand/Makefile +1 -0
Index: 2.6.24/drivers/mtd/nand/Makefile
===================================================================
@@ -29,5 +29,6 @@ obj-$(CONFIG_MTD_NAND_CM_X270)		+= cmx27
 obj-$(CONFIG_MTD_NAND_BASLER_EXCITE)	+= excite_nandflash.o
 obj-$(CONFIG_MTD_NAND_PLATFORM)		+= plat_nand.o
 obj-$(CONFIG_MTD_ALAUDA)		+= alauda.o
+obj-$(CONFIG_MTD_NAND_PASEMI)		+= pasemi_nand.o
 
 nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/pasemi_nand.c new file +243 -0

243 lines not on this page · raw message