From 081de09d493e648f38b71180ca83fdf9f5c657e7 Mon Sep 17 00:00:00 2001 From: Michael Kurz Date: Sun, 22 Jan 2017 16:04:26 +0100 Subject: 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 Reviewed-by: Joe Hershberger Reviewed-by: Vikas Manocha --- board/st/stm32f746-disco/stm32f746-disco.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'board/st') diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index c769da06ae..929ccb42e0 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -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. -- cgit v1.2.3