]> git.dujemihanovic.xyz Git - u-boot.git/commit
mach-stm32: Factorize MPU's region config for STM32 SoCs
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 16 Nov 2017 07:59:21 +0000 (08:59 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 30 Nov 2017 03:30:50 +0000 (22:30 -0500)
commitc729fb258a49943a1a63b3b466f5db02fab6c336
treecdf1bb2557596a93810be4f381801c04799688f7
parent014a953c4ab644f600e4507354f2ef603bb50f46
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>
arch/arm/mach-stm32/Makefile
arch/arm/mach-stm32/soc.c [moved from arch/arm/mach-stm32/stm32h7/soc.c with 75% similarity]
arch/arm/mach-stm32/stm32f4/Makefile
arch/arm/mach-stm32/stm32f4/soc.c [deleted file]
arch/arm/mach-stm32/stm32f7/Makefile
arch/arm/mach-stm32/stm32f7/soc.c [deleted file]
arch/arm/mach-stm32/stm32h7/Makefile [deleted file]
board/st/stm32f429-discovery/stm32f429-discovery.c