diff options
author | Michael Kurz <michi.kurz@gmail.com> | 2017-01-22 16:04:26 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-28 14:04:45 -0500 |
commit | 081de09d493e648f38b71180ca83fdf9f5c657e7 (patch) | |
tree | 26014778bc07babf88e1b7d98b7e4f026eb2ad7c /board | |
parent | dd3f0ebfb78f007c9fae38d9c20e58b9cbd6b3ce (diff) | |
download | u-boot-imx-081de09d493e648f38b71180ca83fdf9f5c657e7.zip u-boot-imx-081de09d493e648f38b71180ca83fdf9f5c657e7.tar.gz u-boot-imx-081de09d493e648f38b71180ca83fdf9f5c657e7.tar.bz2 |
ARM: stm32: use clock setup function defined in clock.c
Use the clock setup function defined in clock.c instead of setting the
clock bits directly in the drivers.
Remove register definitions of RCC in rcc.h as these are already
defined in the struct in stm32.h
Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/st/stm32f746-disco/stm32f746-disco.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index c769da0..929ccb4 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -10,7 +10,6 @@ #include <asm/armv7m.h> #include <asm/arch/stm32.h> #include <asm/arch/gpio.h> -#include <asm/arch/rcc.h> #include <asm/arch/fmc.h> #include <dm/platdata.h> #include <dm/platform_data/serial_stm32x7.h> @@ -171,7 +170,7 @@ int dram_init(void) if (rv) return rv; - setbits_le32(&STM32_RCC->ahb3enr, RCC_AHB3ENR_FMC_EN); + clock_setup(FMC_CLOCK_CFG); /* * Get frequency for NS2CLK calculation. |