Skip to contentSkip to conversation

powerpc/BSC9131RDB: add mtdparts suppport

PATCH New Ashish Kumar 1 participant 2 messages Sep 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/BSC9131RDB: add mtdparts suppport

Use mtdparts to create partitions dynamically rather than using static partitions in device tree

---
 include/configs/BSC9131RDB.h |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
include/configs/BSC9131RDB.h +15 -0
index 56a3e94..5c7b64e 100644
@@ -393,6 +393,21 @@ extern unsigned long get_sdram_size(void);
 #endif
 
 /*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#ifndef CONFIG_SYS_NO_FLASH
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nand0=ff800000.flash," \
+			"spi0=SPIFLASH0"
+#define MTDPARTS_DEFAULT "mtdparts=ff800000.flash:3m(uboot)," \
+			"8m(kernel),1m(dtb),-(user);SPIFLASH0:" \
+			"1m(uboot),4m(kernel),512k(dtb),11m(fs),-(user)"
+#endif
+
+/*
  * Environment Configuration
  */
 
Signature · 1 line
1.7.6.GIT
#1 lore raw

PATCH 1/1 powerpc/BSC9132qds: add mtdparts suppport

Use mtdparts to create partitions dynamically rather than using static partitions in device tree

---
 include/configs/BSC9132QDS.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
include/configs/BSC9132QDS.h +16 -0
index aeded6d..9015b76 100644
@@ -630,6 +630,22 @@ combinations. this should be removed later
 #endif
 
 /*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#ifndef CONFIG_SYS_NO_FLASH
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nor0=88000000.nor,nand0=ff800000.flash," \
+			"spi0=spiff707000.0"
+#define MTDPARTS_DEFAULT "mtdparts=88000000.nor:128k(dtb),1m(uboot)," \
+			"7m(kernel),55m(fs);ff800000.flash:3m(uboot)," \
+			"8m(kernel),1m(dtb),-(user);spiff707000.0:" \
+			"1m(uboot),4m(kernel),512k(dtb),8m(fs),-(user)"
+#endif
+
+/*
  * Environment Configuration
  */
 
Signature · 1 line
1.7.6.GIT