]> git.sur5r.net Git - u-boot/blobdiff - include/configs/nokia_rx51.h
Kconfig: Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT
[u-boot] / include / configs / nokia_rx51.h
index 20b8c345f06620210d4852f547b1e64c54e48904..b7fe7341e407fd16275ed06d2cd399a3a2fc0e6a 100644 (file)
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 
-#define MTDIDS_DEFAULT                 "onenand0=onenand"
-#define MTDPARTS_DEFAULT               "mtdparts=onenand:" \
-               __stringify(PART1_SIZE) PART1_SUFF "(" PART1_NAME ")ro," \
-               __stringify(PART2_SIZE) PART2_SUFF "(" PART2_NAME ")," \
-               __stringify(PART3_SIZE) PART3_SUFF "(" PART3_NAME ")," \
-               __stringify(PART4_SIZE) PART4_SUFF "(" PART4_NAME ")," \
-               __stringify(PART5_SIZE) PART5_SUFF "(" PART5_NAME ")," \
-               "-(" PART6_NAME ")"
-
 #endif
 
 /* Watchdog support */
@@ -198,13 +189,14 @@ int rx51_kp_tstc(struct stdio_dev *sdev);
 int rx51_kp_getc(struct stdio_dev *sdev);
 #endif
 
-#ifndef MTDPARTS_DEFAULT
-#define MTDPARTS_DEFAULT
-#endif
-
 /* Environment information */
+#ifdef CONFIG_MTDPARTS_DEFAULT
+#define MTDPARTS "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
+#else
+#define MTDPARTS
+#endif
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "mtdparts=" MTDPARTS_DEFAULT "\0" \
+       MTDPARTS \
        "usbtty=cdc_acm\0" \
        "stdin=vga\0" \
        "stdout=vga\0" \