diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-07-30 19:16:27 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-08-27 09:36:56 +0200 |
commit | 6a9a34ff48662de7396a50084a4a5e060fb798d5 (patch) | |
tree | 95a1364be866e8bd46841b376406f33566e6a44b /include/configs/stm32mp1.h | |
parent | a67d958177bb4440fad60176cd0252b441412a96 (diff) |
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>
Diffstat (limited to 'include/configs/stm32mp1.h')
-rw-r--r-- | include/configs/stm32mp1.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index 033291efcc..b2b86602bb 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 |