feat(stm32mp2): add minimal support for BL31
Add the required files to compile BL31 on STM32MP2. Update BL2 configuration to load BL31. The platform boots until BL31, but stops here as no other binaries are loaded as DDR is not initialized. At runtime, BL31 will use only the first half of the SYSRAM, the upper half will be used for non-secure DMA LLIs. To be sure nothing from this area is still in the cache, invalidate the upper SYSRAM before enabling BL31 cache. BL31 should then map only first half of the SYSRAM. But it must temporarily map the upper half read-only, as this is where we will retrieve BL2 parameters, used to fill registers for next boot stages. Signed-off-by:Yann Gautier <yann.gautier@st.com> Signed-off-by:
Maxime Méré <maxime.mere@foss.st.com> Change-Id: Ie91527a7a26625624b4b3c65fb6a0ca9dd355dbd
Showing
- plat/st/stm32mp2/bl2_plat_setup.c 31 additions, 1 deletionplat/st/stm32mp2/bl2_plat_setup.c
- plat/st/stm32mp2/bl31_plat_setup.c 85 additions, 0 deletionsplat/st/stm32mp2/bl31_plat_setup.c
- plat/st/stm32mp2/include/platform_def.h 59 additions, 3 deletionsplat/st/stm32mp2/include/platform_def.h
- plat/st/stm32mp2/plat_bl2_mem_params_desc.c 17 additions, 0 deletionsplat/st/stm32mp2/plat_bl2_mem_params_desc.c
- plat/st/stm32mp2/platform.mk 16 additions, 0 deletionsplat/st/stm32mp2/platform.mk
- plat/st/stm32mp2/stm32mp2_def.h 5 additions, 0 deletionsplat/st/stm32mp2/stm32mp2_def.h
- plat/st/stm32mp2/stm32mp2_pm.c 124 additions, 0 deletionsplat/st/stm32mp2/stm32mp2_pm.c
- plat/st/stm32mp2/stm32mp2_private.c 17 additions, 0 deletionsplat/st/stm32mp2/stm32mp2_private.c
- plat/st/stm32mp2/stm32mp2_topology.c 57 additions, 0 deletionsplat/st/stm32mp2/stm32mp2_topology.c
Please register or sign in to comment