Commit 0897d02c authored by Sandrine Bailleux's avatar Sandrine Bailleux
Browse files

juno: Define the extents of all bootloader images

Define:
 - Extents of BL1 RO and RW sections
 - BL2 limit address
 - BL3-1 limit address
 - BL3-2 limit address

Change-Id: Id86243c4d5b1f769a9b0d5a639665c3cb5e14aee
parent 0babea93
...@@ -171,16 +171,27 @@ ...@@ -171,16 +171,27 @@
#define SYS_LED_EL_SHIFT 0x1 #define SYS_LED_EL_SHIFT 0x1
#define SYS_LED_EC_SHIFT 0x3 #define SYS_LED_EC_SHIFT 0x3
/*******************************************************************************
* BL1 specific defines.
* BL1 RW data is relocated from ROM to RAM at runtime so we need 2 base
* addresses.
******************************************************************************/
#define BL1_RO_BASE (FLASH_BASE + BL1_ROM_BYPASS_OFFSET)
#define BL1_RO_LIMIT (FLASH_BASE + FLASH_SIZE)
#define BL1_RW_BASE TZRAM_BASE
#define BL1_RW_LIMIT BL31_BASE
/******************************************************************************* /*******************************************************************************
* BL2 specific defines. * BL2 specific defines.
******************************************************************************/ ******************************************************************************/
#define BL2_BASE (TZRAM_BASE + TZRAM_SIZE - 0xd000) #define BL2_BASE (TZRAM_BASE + TZRAM_SIZE - 0xd000)
#define BL2_LIMIT (TZRAM_BASE + TZRAM_SIZE)
/******************************************************************************* /*******************************************************************************
* BL3-1 specific defines. * BL3-1 specific defines.
******************************************************************************/ ******************************************************************************/
#define BL31_BASE (TZRAM_BASE + 0x8000) #define BL31_BASE (TZRAM_BASE + 0x8000)
#define BL31_LIMIT BL32_BASE
/******************************************************************************* /*******************************************************************************
* BL3-0 specific defines. * BL3-0 specific defines.
...@@ -195,6 +206,7 @@ ...@@ -195,6 +206,7 @@
#define TSP_SEC_MEM_BASE TZRAM_BASE #define TSP_SEC_MEM_BASE TZRAM_BASE
#define TSP_SEC_MEM_SIZE TZRAM_SIZE #define TSP_SEC_MEM_SIZE TZRAM_SIZE
#define BL32_BASE (TZRAM_BASE + TZRAM_SIZE - 0x1d000) #define BL32_BASE (TZRAM_BASE + TZRAM_SIZE - 0x1d000)
#define BL32_LIMIT BL2_BASE
/******************************************************************************* /*******************************************************************************
* Platform specific page table and MMU setup constants * Platform specific page table and MMU setup constants
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment