platform NAND driver: add driver
Subsystems (2)
PATCH 2/2 platform NAND driver: add driver
This patch adds support for generic platform NAND driver. Updated after tglx's review/discussion in IRC #mtd channel.
drivers/mtd/nand/Kconfig | 9 ++ drivers/mtd/nand/Makefile | 1 drivers/mtd/nand/plat_nand.c | 150 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+)
Signed-off-by Vitaly Wool <[email protected]>
drivers/mtd/nand/Kconfig +0 -0
@@ -270,4 +270,13 @@ config MTD_NAND_NANDSIM
The simulator may simulate various NAND flash chips for the MTD nand layer.
+config MTD_NAND_PLATFORM
+ tristate "Support for generic platform NAND driver"
+ depends on MTD_NAND
+ help
+ This implements a generic NAND driver for on-SOC platform + devices. You will need to provide platform-specific functions + via platform_data.
+
+
endif # MTD_NAND
drivers/mtd/nand/Makefile +0 -0
@@ -26,6 +26,7 @@ obj-$(CONFIG_MTD_NAND_NDFC) += ndfc.o
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_PLATFORM) += plat_nand.o
nand-objs := nand_base.o nand_bbt.o
cafe_nand-objs := cafe.o cafe_ecc.o
drivers/mtd/nand/plat_nand.c new file +150 -0
150 lines not on this page · raw message