]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc831xerdb: enable mtdparts for NAND
authorScott Wood <scottwood@freescale.com>
Mon, 30 Aug 2010 23:04:52 +0000 (18:04 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 23 Sep 2010 19:13:22 +0000 (21:13 +0200)
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>
include/configs/MPC8313ERDB.h
include/configs/MPC8315ERDB.h

index 524afa5c6e01f3b560cbd709e000eea08afe67bd..adf05ee439a23b747d4da7fa2ddfc64472a308d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) Freescale Semiconductor, Inc. 2006.
+ * Copyright (C) Freescale Semiconductor, Inc. 2006, 2010.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
 #define CONFIG_SYS_NAND_BASE           0xE2800000
 #endif
 
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITION
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT                 "nand0=e2800000.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
 #define CONFIG_CMD_NAND 1
index 70072555e57643375276dcb005d1a94e5aa012fc..a5d4375ae1a27718c5802fa851041b7cafb0b55e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2009 Freescale Semiconductor, Inc.
+ * Copyright (C) 2007-2010 Freescale Semiconductor, Inc.
  *
  * Dave Liu <daveliu@freescale.com>
  *
 #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