diff options
author | Shengzhou Liu <Shengzhou.Liu@freescale.com> | 2014-04-02 14:28:34 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-04-22 17:58:48 -0700 |
commit | 9941cf781fe5487c12aefe7ec5f2c6933dced803 (patch) | |
tree | 0c027bf4b4c2abc7c0555a3ca410be72ff02690a /include | |
parent | f4c3917a3c8e7fe3222c61ae799dc7dc0c147985 (diff) | |
download | u-boot-imx-9941cf781fe5487c12aefe7ec5f2c6933dced803.zip u-boot-imx-9941cf781fe5487c12aefe7ec5f2c6933dced803.tar.gz u-boot-imx-9941cf781fe5487c12aefe7ec5f2c6933dced803.tar.bz2 |
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>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/T208xQDS.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h index 1222d99..070c93f 100644 --- a/include/configs/T208xQDS.h +++ b/include/configs/T208xQDS.h @@ -657,6 +657,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 */ |