summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJason <r64343@freescale.com>2009-03-18 18:24:24 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 15:08:50 +0800
commit512c7938d979e2b0cdc9271c6745ef1d7a2cf213 (patch)
tree2cb4f9333167ab0978151f69d4fc50c13621f29a /include/configs
parente4f2035ea5507b954fcf0bc0e1362b61245de68c (diff)
downloadu-boot-imx-512c7938d979e2b0cdc9271c6745ef1d7a2cf213.zip
u-boot-imx-512c7938d979e2b0cdc9271c6745ef1d7a2cf213.tar.gz
u-boot-imx-512c7938d979e2b0cdc9271c6745ef1d7a2cf213.tar.bz2
ENGR00109851 Add nand driver for MX51 uboot
Add nand driver for MX51 uboot Signed-off-by:Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx51_3stack.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/configs/mx51_3stack.h b/include/configs/mx51_3stack.h
index ae91982..7446c39 100644
--- a/include/configs/mx51_3stack.h
+++ b/include/configs/mx51_3stack.h
@@ -58,7 +58,7 @@
/*
* Size of malloc() pool
*/
-#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 512 * 1024)
+#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
/* size in bytes reserved for initial data */
#define CONFIG_SYS_GBL_DATA_SIZE 128
@@ -83,7 +83,8 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_DHCP
/* Enable below configure when supporting nand */
-/* #define CONFIG_CMD_NAND */
+#define CONFIG_CMD_NAND
+#define CONFIG_CMD_ENV
#undef CONFIG_CMD_IMLS
#define CONFIG_BOOTDELAY 3
@@ -172,16 +173,15 @@
/*-----------------------------------------------------------------------
* NAND FLASH driver setup
*/
-#define NAND_MAX_CHIPS 1
+#define NAND_MAX_CHIPS 8
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_SYS_NAND_BASE 0x40000000
/* Monitor at beginning of flash */
-#define CONFIG_ENV_IS_NOWHERE 1
-#define CONFIG_ENV_SECT_SIZE (128 * 1024)
+#define CONFIG_ENV_IS_IN_NAND 1
+#define CONFIG_ENV_SECT_SIZE (1024 * 1024)
#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
-/* #define CFG_ENV_ADDR (CFG_MONITOR_BASE + CFG_ENV_SECT_SIZE) */
-#define CONFIG_ENV_OFFSET 0x40000
+#define CONFIG_ENV_OFFSET 0x100000
/*
* JFFS2 partitions
*/