]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: stm32: retrieve external oscillator frequency from DT
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 18 Jan 2018 12:39:30 +0000 (13:39 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:05 +0000 (09:39 -0500)
commitcb97ff9d3d0d4f9c6ff5a09878f0946a678430b2
treea197838fd36c94ac80cd8123059cfd06d6ca686d
parentbaf20a7d1ae95859c8414c4a22bc4493ce230b13
clk: stm32: retrieve external oscillator frequency from DT

All current STM32F4 supported boards uses a 8MHz external oscillator.
All current STM32F7 supported boards uses a 25MHz external oscillator.

In order to introduce the new stm32f429-evaluation board which uses a
25MHz external oscillator without creating a dedicated struct
stm32_clk_info for this board, retrieve the external oscillator
frequency from DT and set pll_m accordingly to obtain 1MHz for the VCO.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/clk/clk_stm32f.c