public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: add mtdparts suppport
@ 2014-04-02  6:28 Shengzhou Liu
  2014-04-02  6:28 ` [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: " Shengzhou Liu
  2014-04-23 22:05 ` [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: " York Sun
  0 siblings, 2 replies; 4+ messages in thread
From: Shengzhou Liu @ 2014-04-02  6:28 UTC (permalink / raw)
  To: u-boot

We use dynamical mtdparts partition instead of directly puting
mtd partitions nodes in device tree.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
v2: update nand name to u64.

 include/configs/T208xQDS.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h
index 5ab4de6..639cc4e 100644
--- a/include/configs/T208xQDS.h
+++ b/include/configs/T208xQDS.h
@@ -708,6 +708,23 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_DOS_PARTITION
 #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=fe8000000.nor,nand0=fff800000.flash," \
+			"spi0=spife110000.0"
+#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \
+			"128k(dtb),96m(fs),-(user);fff800000.flash:1m(uboot)," \
+			"5m(kernel),128k(dtb),96m(fs),-(user);spife110000.0:" \
+			"1m(uboot),5m(kernel),128k(dtb),-(user)"
+#endif
+
 /*
  * Environment
  */
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: add mtdparts suppport
  2014-04-02  6:28 [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: add mtdparts suppport Shengzhou Liu
@ 2014-04-02  6:28 ` Shengzhou Liu
  2014-04-23 22:06   ` York Sun
  2014-04-23 22:05 ` [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: " York Sun
  1 sibling, 1 reply; 4+ messages in thread
From: Shengzhou Liu @ 2014-04-02  6:28 UTC (permalink / raw)
  To: u-boot

We use dynamical mtdparts partition instead of directly puting
mtd partitions nodes in device tree.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
v2: update nand name to u64.

 include/configs/T208xRDB.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
index 011b835..b9d0e56 100644
--- a/include/configs/T208xRDB.h
+++ b/include/configs/T208xRDB.h
@@ -665,6 +665,22 @@ unsigned long get_board_ddr_clk(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 "nor0=fe8000000.nor,nand0=fff800000.flash," \
+			"spi0=spife110000.1"
+#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \
+			"128k(dtb),96m(fs),-(user);fff800000.flash:1m(uboot)," \
+			"5m(kernel),128k(dtb),96m(fs),-(user);spife110000.1:" \
+			"1m(uboot),5m(kernel),128k(dtb),-(user)"
+#endif
+
+/*
  * Environment
  */
 
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: add mtdparts suppport
  2014-04-02  6:28 [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: add mtdparts suppport Shengzhou Liu
  2014-04-02  6:28 ` [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: " Shengzhou Liu
@ 2014-04-23 22:05 ` York Sun
  1 sibling, 0 replies; 4+ messages in thread
From: York Sun @ 2014-04-23 22:05 UTC (permalink / raw)
  To: u-boot

On 04/01/2014 11:28 PM, Shengzhou Liu wrote:
> We use dynamical mtdparts partition instead of directly puting
> mtd partitions nodes in device tree.
> 
> Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
> ---
> v2: update nand name to u64.
> 

Applied to u-boot-mpc85xx/master, thanks.

York

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: add mtdparts suppport
  2014-04-02  6:28 ` [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: " Shengzhou Liu
@ 2014-04-23 22:06   ` York Sun
  0 siblings, 0 replies; 4+ messages in thread
From: York Sun @ 2014-04-23 22:06 UTC (permalink / raw)
  To: u-boot

On 04/01/2014 11:28 PM, Shengzhou Liu wrote:
> We use dynamical mtdparts partition instead of directly puting
> mtd partitions nodes in device tree.
> 
> Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
> ---
> v2: update nand name to u64.

Applied to u-boot-mpc85xx/master, thanks.

York

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-23 22:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02  6:28 [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: add mtdparts suppport Shengzhou Liu
2014-04-02  6:28 ` [U-Boot] [PATCH 2/2 v2] powerpc/T208xRDB: " Shengzhou Liu
2014-04-23 22:06   ` York Sun
2014-04-23 22:05 ` [U-Boot] [PATCH 1/2 v2] powerpc/T208xQDS: " York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox