Patchwork [U-Boot,23/31] M28: Enable NAND

login
register
mail settings
Submitter Marek Vasut
Date Sept. 8, 2011, 8:42 p.m.
Message ID <1315514579-19215-24-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/113974/
State Changes Requested
Headers show

Comments

Marek Vasut - Sept. 8, 2011, 8:42 p.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
---
 include/configs/m28evk.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index dee276c..5cf62a2 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -53,6 +53,7 @@ 
 #define	CONFIG_CMD_I2C
 #define	CONFIG_CMD_MII
 #define	CONFIG_CMD_MMC
+#define	CONFIG_CMD_NAND
 #define	CONFIG_CMD_NET
 #define	CONFIG_CMD_NFS
 #define	CONFIG_CMD_PING
@@ -120,6 +121,18 @@ 
 #endif
 
 /*
+ * NAND
+ */
+#ifdef	CONFIG_CMD_NAND
+#define	CONFIG_NAND_MXS
+#define CONFIG_APBH_DMA
+#define	CONFIG_SYS_MAX_NAND_DEVICE	1
+#define	CONFIG_SYS_NAND_BASE		0x60000000
+#define	CONFIG_SYS_NAND_5_ADDR_CYCLE
+#define	NAND_MAX_CHIPS			8
+#endif
+
+/*
  * Ethernet on SOC (FEC)
  */
 #ifdef	CONFIG_CMD_NET