[U-Boot] [PATCH] powerpc/T208xQDS: add mtdparts suppport

Shengzhou Liu Shengzhou.Liu at freescale.com
Wed Dec 25 07:50:21 CET 2013


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

Signed-off-by: Shengzhou Liu <Shengzhou.Liu at 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




More information about the U-Boot mailing list