summaryrefslogtreecommitdiff
path: root/include/configs/MPC8315ERDB.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2010-08-30 18:04:52 -0500
committerWolfgang Denk <wd@denx.de>2010-09-23 21:13:22 +0200
commite8d3ca8b339a2697d14550790c3a0e3748b2358c (patch)
tree439b2e99d924b67966bf8d791239fd698d26f547 /include/configs/MPC8315ERDB.h
parentad876fff342c67ca4536f7e2fec44c99498d8889 (diff)
downloadu-boot-imx-e8d3ca8b339a2697d14550790c3a0e3748b2358c.zip
u-boot-imx-e8d3ca8b339a2697d14550790c3a0e3748b2358c.tar.gz
u-boot-imx-e8d3ca8b339a2697d14550790c3a0e3748b2358c.tar.bz2
mpc831xerdb: enable mtdparts for NAND
The default partition table matches the .dts files for these boards in Linux. This allows these partitions to be used by name with U-Boot's "nand" command. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include/configs/MPC8315ERDB.h')
-rw-r--r--include/configs/MPC8315ERDB.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h
index 7007255..a5d4375 100644
--- a/include/configs/MPC8315ERDB.h
+++ b/include/configs/MPC8315ERDB.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007-2009 Freescale Semiconductor, Inc.
+ * Copyright (C) 2007-2010 Freescale Semiconductor, Inc.
*
* Dave Liu <daveliu@freescale.com>
*
@@ -243,6 +243,13 @@
#define CONFIG_SYS_NAND_BASE 0xE0600000
#endif
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITION
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT "nand0=e0600000.flash"
+#define MTDPARTS_DEFAULT \
+ "mtdparts=e0600000.flash:512k(uboot),128k(env),3m@1m(kernel),-(fs)"
+
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_MTD_NAND_VERIFY_WRITE 1
#define CONFIG_CMD_NAND 1