From e6c131655fa168ffd1ae738a74ba25e5f850036c Mon Sep 17 00:00:00 2001 From: David Vincze Date: Wed, 4 May 2022 10:11:16 +0200 Subject: [PATCH] feat(tc): increase maximum BL1/BL2/BL31 sizes The maximum size of BL1/BL2/BL31 is increased due to the added new functionalities, such as RSS based measured boot on TC2. Change-Id: I939c7c3da6bf870db46b32cd2836c6737de278bb Signed-off-by: David Vincze Signed-off-by: Tamas Ban --- plat/arm/board/tc/include/platform_def.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/plat/arm/board/tc/include/platform_def.h b/plat/arm/board/tc/include/platform_def.h index b63185c15..bc4f25449 100644 --- a/plat/arm/board/tc/include/platform_def.h +++ b/plat/arm/board/tc/include/platform_def.h @@ -101,7 +101,7 @@ * PLAT_ARM_MAX_BL1_RW_SIZE is calculated using the current BL1 RW debug size * plus a little space for growth. */ -#define PLAT_ARM_MAX_BL1_RW_SIZE 0xC000 +#define PLAT_ARM_MAX_BL1_RW_SIZE 0xD000 /* * PLAT_ARM_MAX_ROMLIB_RW_SIZE is define to use a full page @@ -117,20 +117,19 @@ /* * PLAT_ARM_MAX_BL2_SIZE is calculated using the current BL2 debug size plus a - * little space for growth. + * little space for growth. Current size is considering that TRUSTED_BOARD_BOOT + * and MEASURED_BOOT is enabled. */ -#if TRUSTED_BOARD_BOOT -# define PLAT_ARM_MAX_BL2_SIZE 0x20000 -#else -# define PLAT_ARM_MAX_BL2_SIZE 0x14000 -#endif +# define PLAT_ARM_MAX_BL2_SIZE 0x26000 + /* * Since BL31 NOBITS overlays BL2 and BL1-RW, PLAT_ARM_MAX_BL31_SIZE is * calculated using the current BL31 PROGBITS debug size plus the sizes of - * BL2 and BL1-RW + * BL2 and BL1-RW. Current size is considering that TRUSTED_BOARD_BOOT and + * MEASURED_BOOT is enabled. */ -#define PLAT_ARM_MAX_BL31_SIZE 0x3F000 +#define PLAT_ARM_MAX_BL31_SIZE 0x47000 /* * Size of cacheable stacks -- 2.39.5