powerpc/T208xQDS: add mtdparts suppport
PATCH v2 1/2 powerpc/T208xQDS: add mtdparts suppport
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
---
v2: update nand name to u64.
include/configs/T208xQDS.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
include/configs/T208xQDS.h +17 -0
@@ -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 */
Signature · 1 line
1.8.0
PATCH v2 2/2 powerpc/T208xRDB: add mtdparts suppport
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
---
v2: update nand name to u64.
include/configs/T208xRDB.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
include/configs/T208xRDB.h +16 -0
@@ -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 */
Signature · 1 line
1.8.0
PATCH v2 2/2 powerpc/T208xRDB: add mtdparts suppport
Quoted 6 lines · Shengzhou Liu
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
Signed-off-by Shengzhou Liu <[email protected]>---
v2: update nand name to u64.
Applied to u-boot-mpc85xx/master, thanks.
York
PATCH v2 1/2 powerpc/T208xQDS: add mtdparts suppport
In reply to Shengzhou LiuQuoted 7 lines · Shengzhou Liu
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree.
Signed-off-by Shengzhou Liu <[email protected]>---
v2: update nand name to u64.
Applied to u-boot-mpc85xx/master, thanks.
York