Skip to content
Snippets Groups Projects
Commit dd3f0ebf authored by Michael Kurz's avatar Michael Kurz Committed by Tom Rini
Browse files

ARM: stm32: fix stm32f7 sdram fmc base address


The fmc base address is defined twice, once in fmc.h and once in stm32.h.
Fix wrong definition in stm32.h.
Remove the definiton in fmc.h.

Signed-off-by: default avatarMichael Kurz <michi.kurz@gmail.com>
Acked-by: default avatarVikas Manocha <vikas.manocha@st.com>
parent bad5188b
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,7 @@ struct stm32_fmc_regs {
/*
* FMC registers base
*/
#define STM32_SDRAM_FMC_BASE 0xA0000140
#define STM32_SDRAM_FMC ((struct stm32_fmc_regs *)STM32_SDRAM_FMC_BASE)
#define STM32_SDRAM_FMC ((struct stm32_fmc_regs *)SDRAM_FMC_BASE)
/* Control register SDCR */
#define FMC_SDCR_RPIPE_SHIFT 13 /* RPIPE bit shift */
......
......@@ -49,7 +49,7 @@
#define FLASH_CNTL_BASE (AHB1_PERIPH_BASE + 0x3C00)
#define SDRAM_FMC_BASE (AHB3_PERIPH_BASE + 0x4A0000140)
#define SDRAM_FMC_BASE (AHB3_PERIPH_BASE + 0x40000140)
static const u32 sect_sz_kb[CONFIG_SYS_MAX_FLASH_SECT] = {
[0 ... 3] = 32 * 1024,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment