From 2536f18bfa22eacc8d39d5b68762374f4bca8986 Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Fri, 9 Feb 2018 13:09:55 +0100 Subject: 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 --- drivers/mtd/stm32_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mtd') 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) { -- cgit