Skip to contentSkip to conversation

mtd: lantiq: Add NAND support on Lantiq Falcon SoC.

PATCH In review John Crispin 2 participants 2 messages Jan 30, 2013 – Feb 12, 2013

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

PATCH 1/1 mtd: lantiq: Add NAND support on Lantiq Falcon SoC.

The driver uses plat_nand. As the platform_device is loaded from DT, we need to lookup the node and attach our falcon specific "struct platform_nand_data" to it.

---
 drivers/mtd/nand/Kconfig       |    8 ++++
 drivers/mtd/nand/Makefile      |    1 +
 drivers/mtd/nand/falcon_nand.c |   83 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+)
 create mode 100644 drivers/mtd/nand/falcon_nand.c
drivers/mtd/nand/Kconfig +8 -0
index 5819eb5..058939d 100644
@@ -575,4 +575,12 @@ config MTD_NAND_XWAY
 	  Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
 	  to the External Bus Unit (EBU).
 
+config MTD_NAND_FALCON
+	tristate "Support for NAND on Lantiq FALC-ON SoC"
+	depends on LANTIQ && SOC_FALCON
+	select MTD_NAND_PLATFORM
+	help
+	  Enables support for NAND Flash chips on Lantiq FALC-ON SoCs. NAND is
+	  attached to the External Bus Unit (EBU).
+
 endif # MTD_NAND
drivers/mtd/nand/Makefile +1 -0
index d76d912..1a61bf0 100644
@@ -53,5 +53,6 @@ obj-$(CONFIG_MTD_NAND_JZ4740)		+= jz4740_nand.o
 obj-$(CONFIG_MTD_NAND_GPMI_NAND)	+= gpmi-nand/
 obj-$(CONFIG_MTD_NAND_XWAY)		+= xway_nand.o
 obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)	+= bcm47xxnflash/
+obj-$(CONFIG_MTD_NAND_FALCON)		+= falcon_nand.o
 
 nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/falcon_nand.c new file +83 -0

83 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · John Crispin

The driver uses plat_nand. As the platform_device is loaded from DT, we need to lookup the node and attach our falcon specific "struct platform_nand_data" to it.

Would you please send me or point to the defconfig file which I can use to compile-test this?

Signature · 2 lines
Best Regards,
Artem Bityutskiy