[PATCH] ARM: ttc_dkb: add nand support

Lei Wen adrian.wenl at gmail.com
Sun Jul 8 20:47:13 EDT 2012


Add NAND support for dkb platform.

Signed-off-by: Lei Wen <leiwen at marvell.com>
---
 arch/arm/mach-mmp/ttc_dkb.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
index 7a7de2b..5a6a1ad 100644
--- a/arch/arm/mach-mmp/ttc_dkb.c
+++ b/arch/arm/mach-mmp/ttc_dkb.c
@@ -177,6 +177,13 @@ static struct mv_usb_platform_data ttc_usb_pdata = {
 #endif
 #endif

+#ifdef CONFIG_MTD_NAND_PXA3xx
+static struct pxa3xx_nand_platform_data dkb_nand_info = {
+       .enable_arbiter = 1,
+       .num_cs = 1,
+};
+#endif
+
 static void __init ttc_dkb_init(void)
 {
        mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config));
@@ -184,6 +191,10 @@ static void __init ttc_dkb_init(void)
        /* on-chip devices */
        pxa910_add_uart(1);

+#ifdef CONFIG_MTD_NAND_PXA3xx
+       pxa910_add_nand(&dkb_nand_info);
+#endif
+
        /* off-chip devices */
        pxa910_add_twsi(0, NULL, ARRAY_AND_SIZE(ttc_dkb_i2c_info));
        platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
--
1.7.5.4



More information about the linux-arm-kernel mailing list