From c729fb258a49943a1a63b3b466f5db02fab6c336 Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Thu, 16 Nov 2017 08:59:21 +0100 Subject: mach-stm32: Factorize MPU's region config for STM32 SoCs MPU's region setup can be factorized between STM32F4/F7/H7 SoCs family and used a common MPU's region config. Only one exception for STM32H7 which doesn't have device area located at 0xA000 0000. For STM32F4, configure_clocks() need to be moved from arch_cpu_init() to board_early_init_f(). Signed-off-by: Patrice Chotard Reviewed-by: Vikas Manocha --- board/st/stm32f429-discovery/stm32f429-discovery.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board') diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c index 6f19a0563d..1c34a8efe1 100644 --- a/board/st/stm32f429-discovery/stm32f429-discovery.c +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c @@ -294,6 +294,8 @@ int board_early_init_f(void) { int res; + configure_clocks(); + res = uart_setup_gpio(); if (res) return res; -- cgit v1.2.3