mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
refactor(stm32mp1): reduce MMU memory regions and split XLAT by context
Simplify the BL2 MMU mapping and reduce the memory regions number. Split the XLAT define between BL2 and BL32 as binaries do not share the same tables anymore. Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Change-Id: Iaf09e72b4cc29acbe376f6f1cd2a8116c793ba26
This commit is contained in:
parent
1697ad8cc8
commit
ac1b24d58a
1 changed files with 13 additions and 3 deletions
|
@ -111,15 +111,25 @@ enum ddr_type {
|
|||
(STM32MP_PARAM_LOAD_SIZE + \
|
||||
STM32MP_HEADER_SIZE))
|
||||
|
||||
/* BL2 and BL32/sp_min require 4 tables */
|
||||
#define MAX_XLAT_TABLES U(4) /* 16 KB for mapping */
|
||||
/* BL2 and BL32/sp_min require finer granularity tables */
|
||||
#if defined(IMAGE_BL2)
|
||||
#define MAX_XLAT_TABLES U(2) /* 8 KB for mapping */
|
||||
#endif
|
||||
|
||||
#if defined(IMAGE_BL32)
|
||||
#define MAX_XLAT_TABLES U(4) /* 16 KB for mapping */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MAX_MMAP_REGIONS is usually:
|
||||
* BL stm32mp1_mmap size + mmap regions in *_plat_arch_setup
|
||||
*/
|
||||
#if defined(IMAGE_BL2)
|
||||
#define MAX_MMAP_REGIONS 11
|
||||
#if STM32MP_USB_PROGRAMMER
|
||||
#define MAX_MMAP_REGIONS 8
|
||||
#else
|
||||
#define MAX_MMAP_REGIONS 7
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define STM32MP_BL33_BASE (STM32MP_DDR_BASE + U(0x100000))
|
||||
|
|
Loading…
Add table
Reference in a new issue