summaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorMichael Kurz <michi.kurz@gmail.com>2017-01-22 16:04:24 +0100
committerTom Rini <trini@konsulko.com>2017-01-28 14:04:43 -0500
commitbad5188be2e9ef233d581a00b0dc2c8e6487b50d (patch)
tree623c3137730902e494b55a5351cfef301ad24445 /board/st
parentb1a8de7e07a6b40e7c5920566836862cd07df08a (diff)
downloadu-boot-imx-bad5188be2e9ef233d581a00b0dc2c8e6487b50d.zip
u-boot-imx-bad5188be2e9ef233d581a00b0dc2c8e6487b50d.tar.gz
u-boot-imx-bad5188be2e9ef233d581a00b0dc2c8e6487b50d.tar.bz2
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 <michi.kurz@gmail.com> Acked-by: Vikas MANOCHA<vikas.manocha@st.com>
Diffstat (limited to 'board/st')
-rw-r--r--board/st/stm32f746-disco/stm32f746-disco.c7
1 files changed, 1 insertions, 6 deletions
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.