configs: migrate CONFIG_SYS_MTDPARTS_RUNTIME to defconfigs
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 26 Feb 2020 09:28:42 +0000 (10:28 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2020 13:16:26 +0000 (09:16 -0400)
Move CONFIG_SYS_MTDPARTS_RUNTIME into Kconfig done by moveconfig.py.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
configs/igep00x0_defconfig
configs/stm32mp15_basic_defconfig
configs/stm32mp15_dhcom_basic_defconfig
configs/stm32mp15_optee_defconfig
configs/stm32mp15_trusted_defconfig
drivers/mtd/Kconfig
include/configs/omap3_igep00x0.h
include/configs/stm32mp1.h
scripts/config_whitelist.txt

index e273f35e84046e6469d28a4a20bbdd488194d65f..a5c301dbdbffc8954bcf8d82a89a381d16c33033 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD=y
+CONFIG_SYS_MTDPARTS_RUNTIME=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_SPL_NAND_SIMPLE=y
index d42153a9566a09913ebcad46208889bbcee7d47a..a9b996c0a3f8935bf86634a861cc3a8f8d8e4bb8 100644 (file)
@@ -88,6 +88,7 @@ CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_STM32_SDMMC2=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
+CONFIG_SYS_MTDPARTS_RUNTIME=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_STM32_FMC2=y
 CONFIG_MTD_SPI_NAND=y
index 753b88463c5fdfa648f2679e77f82945732219c4..661c054494873855f7abc2b85f338ef5a7719158 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_DM_MMC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_STM32_SDMMC2=y
 CONFIG_MTD=y
+CONFIG_SYS_MTDPARTS_RUNTIME=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_SPANSION=y
index 5317504843161594ccdfb46862b5dcd98427368b..9f886fb0e7dc82a86ced56ef148c1297bc91f942 100644 (file)
@@ -79,6 +79,7 @@ CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_STM32_SDMMC2=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
+CONFIG_SYS_MTDPARTS_RUNTIME=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_STM32_FMC2=y
 CONFIG_MTD_SPI_NAND=y
index cff11333481a0d878283f81b3ea8d8e9d73a12d9..a4ea8c82297f958d49450e615d158c5a7cfdca8b 100644 (file)
@@ -75,6 +75,7 @@ CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_STM32_SDMMC2=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
+CONFIG_SYS_MTDPARTS_RUNTIME=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_STM32_FMC2=y
 CONFIG_MTD_SPI_NAND=y
index 5e7571cf3da3f93738fd31921ae01c616bdd49e9..348b43e653f988a233bb45cf73caa8f8eff379ef 100644 (file)
@@ -22,6 +22,13 @@ config MTD_NOR_FLASH
        help
          Enable support for parallel NOR flash.
 
+config SYS_MTDPARTS_RUNTIME
+       bool "Allow MTDPARTS to be configured at runtime"
+       depends on MTD
+       help
+         This option allows to call the function board_mtdparts_default to
+         dynamically build the variables mtdids and mtdparts at runtime.
+
 config FLASH_CFI_DRIVER
        bool "Enable CFI Flash driver"
        help
index 4ad7dc18b104c2a081affa43acf2684ffb8a0b36..8dc30be8b72d26201931b3f60ba4bf70e6232bfe 100644 (file)
@@ -71,8 +71,6 @@
 
 #endif
 
-#define CONFIG_SYS_MTDPARTS_RUNTIME
-
 /* OneNAND config */
 #define CONFIG_USE_ONENAND_BOARD_INIT
 #define CONFIG_SYS_ONENAND_BASE                ONENAND_MAP
index baec6d7e6f0793dd887ea0707f45c011e9e7afc4..ae9631ebccdea6c54a782ab2fdaf68c096d5e6c4 100644 (file)
 #define CONFIG_SYS_AUTOLOAD            "no"
 #endif
 
-/* Dynamic MTD partition support */
-#if defined(CONFIG_STM32_QSPI) || defined(CONFIG_NAND_STM32_FMC2)
-#define CONFIG_SYS_MTDPARTS_RUNTIME
-#endif
-
 #ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_BMP_RLE8
 #define CONFIG_BMP_16BPP
index 7c18b2481ce4e84d426c7f1dced60a8dae73c789..2678626b59d474ad0c6438633d3e7ed9b9117634 100644 (file)
@@ -3191,7 +3191,6 @@ CONFIG_SYS_MRAM_SIZE
 CONFIG_SYS_MSC0_VAL
 CONFIG_SYS_MSC1_VAL
 CONFIG_SYS_MSC2_VAL
-CONFIG_SYS_MTDPARTS_RUNTIME
 CONFIG_SYS_MX5_CLK32
 CONFIG_SYS_MX5_HCLK
 CONFIG_SYS_MX6_CLK32