summaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorMichael Kurz <michi.kurz@gmail.com>2017-01-22 15:04:26 (GMT)
committerTom Rini <trini@konsulko.com>2017-01-28 19:04:45 (GMT)
commit081de09d493e648f38b71180ca83fdf9f5c657e7 (patch)
tree26014778bc07babf88e1b7d98b7e4f026eb2ad7c /board/st
parentdd3f0ebfb78f007c9fae38d9c20e58b9cbd6b3ce (diff)
downloadu-boot-fsl-qoriq-081de09d493e648f38b71180ca83fdf9f5c657e7.tar.xz
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/st')
-rw-r--r--board/st/stm32f746-disco/stm32f746-disco.c3
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.