From bad5188be2e9ef233d581a00b0dc2c8e6487b50d Mon Sep 17 00:00:00 2001 From: Michael Kurz Date: Sun, 22 Jan 2017 16:04:24 +0100 Subject: ARM: stm32: cleanup stm32f7 files Cleanup stm32f7 files: - use BIT macro - use GENMASK macro - use rcc struct instead of macro additions Add missing stm32f7 register in rcc struct Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA --- board/st/stm32f746-disco/stm32f746-disco.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'board/st/stm32f746-disco') diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 404fdfa..c769da0 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -114,11 +114,6 @@ out: return rv; } -/* - * STM32 RCC FMC specific definitions - */ -#define RCC_ENR_FMC (1 << 0) /* FMC module clock */ - static inline u32 _ns2clk(u32 ns, u32 freq) { u32 tmp = freq/1000000; @@ -176,7 +171,7 @@ int dram_init(void) if (rv) return rv; - setbits_le32(RCC_BASE + RCC_AHB3ENR, RCC_ENR_FMC); + setbits_le32(&STM32_RCC->ahb3enr, RCC_AHB3ENR_FMC_EN); /* * Get frequency for NS2CLK calculation. -- cgit v1.1