summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/stm32_flash.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2018-02-09 13:09:55 +0100
committerTom Rini <trini@konsulko.com>2018-03-13 21:45:37 -0400
commit2536f18bfa22eacc8d39d5b68762374f4bca8986 (patch)
treec17928ffef06807747a6e4ae26229d2091e206b7 /drivers/mtd/stm32_flash.c
parentf36bcf23901df0ac607a7457ac0e08a1c81b6e34 (diff)
downloadu-boot-2536f18bfa22eacc8d39d5b68762374f4bca8986.tar.gz
u-boot-2536f18bfa22eacc8d39d5b68762374f4bca8986.tar.xz
u-boot-2536f18bfa22eacc8d39d5b68762374f4bca8986.zip
arch-stm32: Factorize stm32.h for STM32F4 and F7
For STM32F4 and F7 SoCx family, a specific stm32.h file exists. Some common defines are duplicated or even unused in each of these stm32.h. Factorize all common definition in arch/arm/include/asm/stm32f.h and keep specific definitions in each arch/arm/include/asm/arch-stm32fx/stm32.h. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/mtd/stm32_flash.c')
-rw-r--r--drivers/mtd/stm32_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/stm32_flash.c b/drivers/mtd/stm32_flash.c
index 472499d83c..a82814272e 100644
--- a/drivers/mtd/stm32_flash.c
+++ b/drivers/mtd/stm32_flash.c
@@ -12,7 +12,7 @@
flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
-#define STM32_FLASH ((struct stm32_flash_regs *)FLASH_CNTL_BASE)
+#define STM32_FLASH ((struct stm32_flash_regs *)STM32_FLASH_CNTL_BASE)
void stm32_flash_latency_cfg(int latency)
{