diff options
author | Ludovic Barre <ludovic.barre@st.com> | 2018-10-08 14:08:52 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-10-09 09:13:04 +0200 |
commit | 00e930d87d196ae70e225eee88957441c10ff872 (patch) | |
tree | 1c57b0715577d330fa4c6bc0d51593002bffedce /drivers/mmc/host/mmci.c | |
parent | 15878e58461bbb4def541b72b835be410e1a9cf4 (diff) | |
download | linux-00e930d87d196ae70e225eee88957441c10ff872.tar.bz2 |
mmc: mmci: add clock divider for stm32 sdmmc
The STM32 sdmmc variant has a different clock divider.
Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r-- | drivers/mmc/host/mmci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index d636a0e6aa9f..ad2f62fc0af8 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1862,6 +1862,8 @@ static int mmci_probe(struct amba_device *dev, */ if (variant->st_clkdiv) mmc->f_min = DIV_ROUND_UP(host->mclk, 257); + else if (variant->stm32_clkdiv) + mmc->f_min = DIV_ROUND_UP(host->mclk, 2046); else if (variant->explicit_mclk_control) mmc->f_min = clk_round_rate(host->clk, 100000); else |