diff options
author | Yangbo Lu <yangbo.lu@freescale.com> | 2014-10-16 10:58:55 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-11-14 11:13:12 -0800 |
commit | 94b383e7d843efe2618535f01776921751dd756b (patch) | |
tree | d3b5d715b235706a59f16ce80240803f3a9a53ad /include/configs/P1022DS.h | |
parent | a0744285eeb90ecc72f75d2fc6901f9ce9db967c (diff) | |
download | u-boot-imx-94b383e7d843efe2618535f01776921751dd756b.zip u-boot-imx-94b383e7d843efe2618535f01776921751dd756b.tar.gz u-boot-imx-94b383e7d843efe2618535f01776921751dd756b.tar.bz2 |
powerpc/85xx: enable some P1/P2 boards mtdparts for nor flash
Enable these boards mtdparts for nor flash:
p1020rdb-pd, p1021rdb-pc, p1022ds, p1025twr, and p2020rdb-pc.
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Cc: York Sun <yorksun@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/configs/P1022DS.h')
-rw-r--r-- | include/configs/P1022DS.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h index 54e2569..bd08090 100644 --- a/include/configs/P1022DS.h +++ b/include/configs/P1022DS.h @@ -616,6 +616,25 @@ #endif /* + * Dynamic MTD Partition support with mtdparts + */ +#define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS +#define CONFIG_CMD_MTDPARTS +#define CONFIG_FLASH_CFI_MTD +#ifdef CONFIG_PHYS_64BIT +#define MTDIDS_DEFAULT "nor0=fe8000000.nor" +#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:48m(ramdisk)," \ + "14m(diagnostic),2m(dink),6m(kernel),58112k(fs)," \ + "512k(dtb),768k(u-boot)" +#else +#define MTDIDS_DEFAULT "nor0=e8000000.nor" +#define MTDPARTS_DEFAULT "mtdparts=e8000000.nor:48m(ramdisk)," \ + "14m(diagnostic),2m(dink),6m(kernel),58112k(fs)," \ + "512k(dtb),768k(u-boot)" +#endif + +/* * Environment */ #ifdef CONFIG_SPIFLASH |