stm32mp1: configs: support MTDPARTS only if needed

MTD is only use if NAND or NOR driver is activated.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
Patrick Delaunay 2019-07-30 19:16:27 +02:00 committed by Patrice Chotard
parent a67d958177
commit 6a9a34ff48

View File

@ -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