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

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 */

-----Original Message----- From: Shengzhou Liu [mailto:Shengzhou.Liu@freescale.com] Sent: Wednesday, December 25, 2013 2:50 PM To: u-boot@lists.denx.de; Sun York-R58495 Cc: Liu Shengzhou-B36685 Subject: [PATCH] powerpc/T208xQDS: add mtdparts suppport
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
Signed-off-by: Shengzhou Liu Shengzhou.Liu@freescale.com
Please hold on the patch due to compiling issue until we finish the transition from size 512KB to 768KB. -Shengzhou

On 12/30/2013 12:17 AM, Liu Shengzhou-B36685 wrote:
-----Original Message----- From: Shengzhou Liu [mailto:Shengzhou.Liu@freescale.com] Sent: Wednesday, December 25, 2013 2:50 PM To: u-boot@lists.denx.de; Sun York-R58495 Cc: Liu Shengzhou-B36685 Subject: [PATCH] powerpc/T208xQDS: add mtdparts suppport
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
Signed-off-by: Shengzhou Liu Shengzhou.Liu@freescale.com
Please hold on the patch due to compiling issue until we finish the transition from size 512KB to 768KB.
Shengzhou,
Do you want to update this patch now?
York
participants (3)
-
Shengzhou Liu
-
Shengzhou.Liuļ¼ freescale.com
-
York Sun