diff options
author | Prabhakar Kushwaha <prabhakar@freescale.com> | 2014-04-02 17:26:23 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-04-22 17:58:48 -0700 |
commit | 68b747397b9313cb476858413d817d9cd807803e (patch) | |
tree | 86387bed3c3e938af2add10d515d7aadb40e3d53 | |
parent | 4feac1c661d13b86bca8eef289c55c81ed2989ca (diff) | |
download | u-boot-imx-68b747397b9313cb476858413d817d9cd807803e.zip u-boot-imx-68b747397b9313cb476858413d817d9cd807803e.tar.gz u-boot-imx-68b747397b9313cb476858413d817d9cd807803e.tar.bz2 |
powerpc/T1040: add mtdparts suppport for T104xRDB and T1040QDS
We use dynamical mtdparts partition instead of directly puting
mtd partitions nodes in device tree.
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r-- | include/configs/T1040QDS.h | 17 | ||||
-rw-r--r-- | include/configs/T104xRDB.h | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index 63a7efc..030ea7e 100644 --- a/include/configs/T1040QDS.h +++ b/include/configs/T1040QDS.h @@ -651,6 +651,23 @@ 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.0" +#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \ + "128k(dtb),96m(fs),-(user);"\ + "fff800000.flash:2m(uboot),9m(kernel),"\ + "128k(dtb),96m(fs),-(user);spife110000.0:" \ + "2m(uboot),9m(kernel),128k(dtb),-(user)" +#endif + +/* * Environment */ #define CONFIG_LOADS_ECHO /* echo on for serial download */ diff --git a/include/configs/T104xRDB.h b/include/configs/T104xRDB.h index eacbdf0..ffc96f1 100644 --- a/include/configs/T104xRDB.h +++ b/include/configs/T104xRDB.h @@ -615,6 +615,23 @@ #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:2m(uboot),9m(kernel),"\ + "128k(dtb),96m(fs),-(user);spife110000.0:" \ + "2m(uboot),9m(kernel),128k(dtb),-(user)" +#endif + +/* * Environment Configuration */ #define CONFIG_ROOTPATH "/opt/nfsroot" |