]> git.baikalelectronics.ru Git - uboot.git/commit
clk: clk_stm32fx: add clock configuration for mmc usage
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 15 Nov 2017 12:14:52 +0000 (13:14 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 30 Nov 2017 03:30:50 +0000 (22:30 -0500)
commitd2cfcf6be07af30fcaf0371380476dd145353e93
tree776fe7bae3a58cde68b6b024427436d41c22dfa1
parent9ca71ad374b128861e0ac65b11ba5af4a8d7534d
clk: clk_stm32fx: add clock configuration for mmc usage

MMC block needs 48Mhz source clock, for that we choose
to select the SAI PLL.
Update also stm32_clock_get_rate() to retrieve the MMC
clock source needed in MMC driver.

STM32F4 uses a different RCC variant than STM32F7. For STM32F4
sdmmc clocks bit are located into dckcfgr register whereas there
are located into dckcfgr2 registers on STM32F7.
In both registers, bits CK48MSEL and SDMMC1SEL are located at
the same position.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
arch/arm/include/asm/arch-stm32f7/stm32.h
drivers/clk/clk_stm32f.c
include/dt-bindings/mfd/stm32f7-rcc.h
include/stm32_rcc.h