From 43ede0bca7fc1590b623832b743213b818257a27 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Sun, 22 Oct 2017 17:55:07 -0400 Subject: Kconfig: Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT We move all instances of CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT from the header files to the defconfig files. There's a few cases here where we need to expand upon what was in the header file. Tested-by: Adam Ford #omap3_logic Signed-off-by: Tom Rini --- include/configs/platinum.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'include/configs/platinum.h') diff --git a/include/configs/platinum.h b/include/configs/platinum.h index bb0e929404..453c37d3f8 100644 --- a/include/configs/platinum.h +++ b/include/configs/platinum.h @@ -116,18 +116,6 @@ #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 */ @@ -155,8 +143,8 @@ "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" \ \ -- cgit v1.2.3