summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2017-11-16 08:59:21 +0100
committerTom Rini <trini@konsulko.com>2017-11-29 22:30:50 -0500
commitc729fb258a49943a1a63b3b466f5db02fab6c336 (patch)
treecdf1bb2557596a93810be4f381801c04799688f7 /board
parent014a953c4ab644f600e4507354f2ef603bb50f46 (diff)
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 <patrice.chotard@st.com> Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'board')
-rw-r--r--board/st/stm32f429-discovery/stm32f429-discovery.c2
1 files changed, 2 insertions, 0 deletions
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;