drivers/disk: sdmmc_stm32: Add Hardware FC Kconfig option

Add a Kconfig symbol to enable use of SDMMC hardware flow control.
In specific cases, this feature could help to avoid FIFO ovderrun
and underrun errors.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-10-12 14:20:53 +02:00 committed by Christopher Friedt
commit 9f6246c325
2 changed files with 21 additions and 0 deletions

View file

@ -51,6 +51,14 @@ config SDMMC_STM32
help
File system on sdmmc accessed through stm32 sdmmc.
config SDMMC_STM32_HWFC
bool "STM32 SDMMC Hardware Flow control"
depends on SDMMC_STM32
depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32L4X
help
Enable SDMMC Hardware Flow Control to avoid FIFO underrun (TX mode) and
overrun (RX mode) errors.
module = SDMMC
module-str = sdmmc
source "subsys/logging/Kconfig.template.log_config"