TI DaVinci DM646x: Enable NAND on DM6467 EVM
authorSandeep Paulraj <s-paulraj@ti.com>
Sat, 21 Nov 2009 23:08:49 +0000 (18:08 -0500)
committerTom Rix <Tom.Rix@windriver.com>
Fri, 27 Nov 2009 22:26:17 +0000 (16:26 -0600)
This patch enables NAND on the DM6467 EVM

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
board/davinci/dm6467evm/dm6467evm.c

index ac3b282..994a9aa 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <nand.h>
+#include <asm/arch/nand_defs.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -28,3 +30,12 @@ int board_init(void)
 
        return 0;
 }
+
+#ifdef CONFIG_NAND_DAVINCI
+int board_nand_init(struct nand_chip *nand)
+{
+       davinci_nand_init(nand);
+
+       return 0;
+}
+#endif