aboutsummaryrefslogtreecommitdiff
path: root/plat/arm/css/sgm/include/sgm_base_platform_def.h
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2020-03-12 13:50:26 +0000
committerChris Kay <chris.kay@arm.com>2020-03-12 15:12:23 +0000
commitddc93cbaa42bba08afd5041822a386876518446b (patch)
tree84c76a874c2738210f39a0aad8d2935c13d7b2f8 /plat/arm/css/sgm/include/sgm_base_platform_def.h
parentf9ea3a6291b45bddda0564e8ff654a615933b173 (diff)
downloadtrusted-firmware-a-ddc93cbaa42bba08afd5041822a386876518446b.tar.gz
juno/sgm: Maximize space allocated to SCP_BL2
To accommodate the increasing size of the SCP_BL2 binary, the base address of the memory region allocated to SCP_BL2 has been moved downwards from its current (mostly) arbitrary address to the beginning of the non-shared trusted SRAM. Change-Id: I086a3765bf3ea88f45525223d765dc0dbad6b434 Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'plat/arm/css/sgm/include/sgm_base_platform_def.h')
-rw-r--r--plat/arm/css/sgm/include/sgm_base_platform_def.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/plat/arm/css/sgm/include/sgm_base_platform_def.h b/plat/arm/css/sgm/include/sgm_base_platform_def.h
index 90511ac6a7..0ac0c2b3c4 100644
--- a/plat/arm/css/sgm/include/sgm_base_platform_def.h
+++ b/plat/arm/css/sgm/include/sgm_base_platform_def.h
@@ -133,16 +133,12 @@
#endif
/*
- * PLAT_CSS_MAX_SCP_BL2_SIZE is calculated using the current
- * SCP_BL2 size plus a little space for growth.
+ * SCP_BL2 uses up whatever remaining space is available as it is loaded before
+ * anything else in this memory region and is handed over to the SCP before
+ * BL31 is loaded over the top.
*/
-#define PLAT_CSS_MAX_SCP_BL2_SIZE 0x15000
-
-/*
- * PLAT_CSS_MAX_SCP_BL2U_SIZE is calculated using the current
- * SCP_BL2U size plus a little space for growth.
- */
-#define PLAT_CSS_MAX_SCP_BL2U_SIZE 0x15000
+#define PLAT_CSS_MAX_SCP_BL2_SIZE (SCP_BL2_LIMIT - ARM_TB_FW_CONFIG_LIMIT)
+#define PLAT_CSS_MAX_SCP_BL2U_SIZE PLAT_CSS_MAX_SCP_BL2_SIZE
/*
* Most platform porting definitions provided by included headers