]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/configs/platinum.h
Kconfig: Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT
[people/ms/u-boot.git] / include / configs / platinum.h
index bb0e9294046011ce1c54b983a9c6c26951d30096..453c37d3f84f7fb3b8bd3f8a0df5f3e898fc63c6 100644 (file)
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 
-#if (CONFIG_SYS_NAND_MAX_CHIPS == 1)
-#define MTDIDS_DEFAULT         "nand0=gpmi-nand"
-#define MTDPARTS_DEFAULT       "mtdparts=gpmi-nand:14M(spl),2M(uboot)," \
-                               "512k(env1),512k(env2),-(ubi)"
-#elif (CONFIG_SYS_NAND_MAX_CHIPS == 2)
-#define MTDIDS_DEFAULT         "nand0=gpmi-nand"
-#define MTDPARTS_DEFAULT       "mtdparts=gpmi-nand:14M(spl),2M(uboot)," \
-                               "512k(env1),512k(env2),495M(ubi0)," \
-                               "14M(res0),2M(res1)," \
-                               "512k(res2),512k(res3),-(ubi1)"
-#endif
-
 /*
  * Environment configuration
  */
        "baudrate=115200\0"                                             \
        "boot_scr=boot.uboot\0"                                         \
        "boot_vol=0\0"                                                  \
-       "mtdids="MTDIDS_DEFAULT"\0"                                     \
-       "mtdparts="MTDPARTS_DEFAULT"\0"                                 \
+       "mtdids="CONFIG_MTDIDS_DEFAULT"\0"                                      \
+       "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0"                                  \
        "mmcfs=ext2\0"                                                  \
        "mmcrootpart=1\0"                                               \
        \