diff --git a/arch/arm/src/stm32f7/Kconfig b/arch/arm/src/stm32f7/Kconfig index c909a1d980..ced8f62ca3 100644 --- a/arch/arm/src/stm32f7/Kconfig +++ b/arch/arm/src/stm32f7/Kconfig @@ -1751,7 +1751,7 @@ menu "SDMMC1 Configuration" config SDMMC1_DMA bool "Support DMA data transfers on SDMMC1" default y if STM32F7_DMA2 - depends on STM32F7_DMA2 + depends on STM32F7_SDMMC_DMA && STM32F7_DMA2 ---help--- Support DMA data transfers on SDMMC1. Requires STM32F7_SDMMC1 and config STM32F7_DMA2. @@ -1785,7 +1785,7 @@ menu "SDMMC2 Configuration" config SDMMC2_DMA bool "Support DMA data transfers on SDMMC2" default y if STM32F7_DMA2 - depends on STM32F7_DMA2 + depends on STM32F7_SDMMC_DMA && STM32F7_DMA2 ---help--- Support DMA data transfers on SDMMC2. Requires STM32F7_SDMMC2 and config STM32F7_DMA2. diff --git a/configs/stm32f746-ws/nsh/defconfig b/configs/stm32f746-ws/nsh/defconfig index 94ab01db9f..4ba7dddad4 100644 --- a/configs/stm32f746-ws/nsh/defconfig +++ b/configs/stm32f746-ws/nsh/defconfig @@ -280,6 +280,7 @@ CONFIG_STM32F7_ADC=y CONFIG_STM32F7_DMA=y CONFIG_STM32F7_I2C=y # CONFIG_STM32F7_SAI is not set +CONFIG_STM32F7_SDMMC=y CONFIG_STM32F7_SPI=y # CONFIG_STM32F7_TIM is not set CONFIG_STM32F7_USART=y @@ -366,6 +367,11 @@ CONFIG_STM32F7_I2CTIMEOMS=500 CONFIG_STM32F7_I2CTIMEOTICKS=500 # CONFIG_STM32F7_I2C_DUTY16_9 is not set +# +# SD/MMC Configuration +# +CONFIG_STM32F7_SDMMC_DMA=y + # # SDMMC1 Configuration #