]> git.sur5r.net Git - u-boot/commit
clk: clk_stm32f: Move SYSCFG clock setup into configure_clocks()
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 18 Jan 2018 13:10:05 +0000 (14:10 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:15 +0000 (09:39 -0500)
commit20fe38e75abcf67488b88dd04d3febf13c9d0715
tree3464baa7bb585da850cb900b37bd23441bb605d1
parent68a69ed2a41551063f012e1ef5f18f2eb4d07f34
clk: clk_stm32f: Move SYSCFG clock setup into configure_clocks()

Move SYSCFG clock setup into configure_clocks() instead of calling
clock_setup() from board file.

As this clock is only needed in case of ethernet enabled and as
both stm32f4 and stm32f7 are using the Designware ethernet IP,
we use CONFIG_ETH_DESIGNWARE to only enable this clock if needed.

Move the RMII setup from board_early_init_f() to board_init()
to insure that RMII bit is set only when clock driver is initialized.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/include/asm/arch-stm32f7/stm32_periph.h
board/st/stm32f746-disco/stm32f746-disco.c
drivers/clk/clk_stm32f.c