diff mbox

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

Message ID 1387954221-28570-1-git-send-email-Shengzhou.Liu@freescale.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

Shengzhou Liu Dec. 25, 2013, 6:50 a.m. UTC
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(+)

Comments

Shengzhou Liu Dec. 30, 2013, 8:17 a.m. UTC | #1
> -----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
York Sun Jan. 29, 2014, 9:58 p.m. UTC | #2
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
diff mbox

Patch

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