Skip to contentSkip to conversation

mpc831xerdb: enable mtdparts for NAND

PATCH New Scott Wood 2 participants 2 messages Aug 30, 2010 – Sep 22, 2010

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 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.

---
 include/configs/MPC8313ERDB.h |    9 ++++++++-
 include/configs/MPC8315ERDB.h |    9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)
include/configs/MPC8313ERDB.h +8 -1
index 524afa5..adf05ee 100644
@@ -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.
@@ -232,6 +232,13 @@
 #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 at 1m(kernel),-(fs)"
+
 #define CONFIG_SYS_MAX_NAND_DEVICE	1
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_CMD_NAND 1
include/configs/MPC8315ERDB.h +8 -1
index f1b110b..321ae9d 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2009 Freescale Semiconductor, Inc.
+ * Copyright (C) 2007-2010 Freescale Semiconductor, Inc.
  *
  * Dave Liu <[email protected]>
  *
@@ -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 at 1m(kernel),-(fs)"
+
 #define CONFIG_SYS_MAX_NAND_DEVICE	1
 #define CONFIG_MTD_NAND_VERIFY_WRITE	1
 #define CONFIG_CMD_NAND			1
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 mpc831xerdb: enable mtdparts for NAND

Quoted 6 lines · On Mon, 30 Aug 2010 18:04:52 -0500 Scott Wood <[email protected]> wrote:

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.

---

applied to u-boot-mpc83xx/next.

Thanks,

Kim