From: Patrick Delaunay Date: Tue, 30 Jul 2019 17:16:27 +0000 (+0200) Subject: stm32mp1: configs: support MTDPARTS only if needed X-Git-Tag: v2019.10-rc4~31^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a9a34ff48662de7396a50084a4a5e060fb798d5;p=platform%2Fkernel%2Fu-boot.git stm32mp1: configs: support MTDPARTS only if needed MTD is only use if NAND or NOR driver is activated. Signed-off-by: Patrick Delaunay --- diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index 033291e..b2b8660 100644 --- a/include/configs/stm32mp1.h +++ b/include/configs/stm32mp1.h @@ -79,7 +79,9 @@ #endif /* Dynamic MTD partition support */ +#if defined(CONFIG_STM32_QSPI) || defined(CONFIG_NAND_STM32_FMC2) #define CONFIG_SYS_MTDPARTS_RUNTIME +#endif /*****************************************************************************/ #ifdef CONFIG_DISTRO_DEFAULTS