public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/T208xQDS: add mtdparts suppport
@ 2013-12-25  6:50 Shengzhou Liu
  2013-12-30  8:17 ` Shengzhou.Liu at freescale.com
  0 siblings, 1 reply; 3+ messages in thread
From: Shengzhou Liu @ 2013-12-25  6:50 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>
---
 include/configs/T2080QDS.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/include/configs/T2080QDS.h b/include/configs/T2080QDS.h
index bff001f..ccb3c08 100644
--- a/include/configs/T2080QDS.h
+++ b/include/configs/T2080QDS.h
@@ -637,6 +637,19 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_DOS_PARTITION
 #endif
 
+
+/*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nor0=fe8000000.nor,nand0=ff800000.flash"
+#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(boot),5m(linux),96m(fs)," \
+			 "128k(dtb),-(user);ff800000.flash:1m(boot)," \
+			 "5m(linux),96m(fs),128k(dtb),-(user);"
+
 /*
  * Environment
  */
-- 
1.8.0

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

end of thread, other threads:[~2014-01-29 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25  6:50 [U-Boot] [PATCH] powerpc/T208xQDS: add mtdparts suppport Shengzhou Liu
2013-12-30  8:17 ` Shengzhou.Liu at freescale.com
2014-01-29 21:58   ` York Sun

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