[U-Boot] [PATCH 19/48] stm32mp1: configs: support MTDPARTS only if needed

Patrick Delaunay patrick.delaunay at st.com
Tue Jul 30 17:16:27 UTC 2019


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

Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---

 include/configs/stm32mp1.h | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the U-Boot mailing list