mmc: stm32_sdmmc2: manage max-frequency property from DT
authorYann Gautier <yann.gautier@st.com>
Tue, 28 May 2019 09:54:50 +0000 (11:54 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 2 Sep 2019 15:53:14 +0000 (17:53 +0200)
commit2c2c9f1eb1596793dd590cfc19d65488fd286dfc
treefdbde4627bdf7ab8e36e92cea4b478f607dc47b6
parent1e91952942f5063d57e21bd1e9a2e968003b935f
mmc: stm32_sdmmc2: manage max-frequency property from DT

If the max-frequency property is provided in the device tree mmc node,
it should be managed. The max allowed frequency will be the min between
this property value and what the card can support.

Change-Id: I885b676c3300d2670a0fe4c6ecab87758b5893ad
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/st/mmc/stm32_sdmmc2.c
include/drivers/st/stm32_sdmmc2.h