mtd: lantiq: Add NAND support on Lantiq Falcon SoC.
Subsystems (2)
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.
Signed-off-by Thomas Langer <[email protected]>
Signed-off-by John Crispin <[email protected]>
--- 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
@@ -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
@@ -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
Quoted 6 lines · John Crispin
The driver uses
plat_nand. As theplatform_deviceis loaded from DT, we need to lookup the node and attach our falcon specific "structplatform_nand_data" to it.Signed-off-by Thomas Langer <[email protected]>Signed-off-by John Crispin <[email protected]>
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