Skip to content
Snippets Groups Projects
Commit a72dd8ed authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

mmc: stm32: sdmmc2: add hardware flow control support


The hardware flow control functionality is used to avoid
FIFO underrun (TX mode) and overrun (RX mode) errors.
The behavior is to stop SDMMC_CK during data transfer and
freeze the SDMMC state machines.

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent aa5e3e22
No related branches found
No related tags found
No related merge requests found
...@@ -495,7 +495,8 @@ static int stm32_sdmmc2_set_ios(struct udevice *dev) ...@@ -495,7 +495,8 @@ static int stm32_sdmmc2_set_ios(struct udevice *dev)
if (mmc->bus_width == 8) if (mmc->bus_width == 8)
clk |= SDMMC_CLKCR_WIDBUS_8; clk |= SDMMC_CLKCR_WIDBUS_8;
writel(clk | priv->clk_reg_msk, priv->base + SDMMC_CLKCR); writel(clk | priv->clk_reg_msk | SDMMC_CLKCR_HWFC_EN,
priv->base + SDMMC_CLKCR);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment