From: Soby Mathew Date: Tue, 13 Jun 2017 16:59:17 +0000 (+0100) Subject: Resize the BL2 size limit for Juno X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6c401f316f94faac8e0b2fc63c112fe85e01a995;p=project%2Fbcm63xx%2Fatf.git Resize the BL2 size limit for Juno Recent patches to reduce the memory footprint of BL images have resulted in saving several pages of memory. This patch reduces the BL2 size limit by 20KB for Juno when ARM_BOARD_OPTIMISE_MEM=1 so that more free space can be freed up for Trusted OS (BL32). Also SCP_BL2/SCP_BL2U size is now restricted to 80K. Change-Id: I1573d7a34e24d15e4abce8a14da40dbb5dc81e37 Signed-off-by: Soby Mathew --- diff --git a/plat/arm/board/juno/include/platform_def.h b/plat/arm/board/juno/include/platform_def.h index ea128b6e..46afb71e 100644 --- a/plat/arm/board/juno/include/platform_def.h +++ b/plat/arm/board/juno/include/platform_def.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -106,7 +106,7 @@ * little space for growth. */ #if TRUSTED_BOARD_BOOT -# define PLAT_ARM_MAX_BL2_SIZE 0x1D000 +# define PLAT_ARM_MAX_BL2_SIZE 0x18000 #else # define PLAT_ARM_MAX_BL2_SIZE 0xC000 #endif @@ -172,13 +172,13 @@ * PLAT_CSS_MAX_SCP_BL2_SIZE is calculated using the current * SCP_BL2 size plus a little space for growth. */ -#define PLAT_CSS_MAX_SCP_BL2_SIZE 0x1D000 +#define PLAT_CSS_MAX_SCP_BL2_SIZE 0x14000 /* * 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 0x1D000 +#define PLAT_CSS_MAX_SCP_BL2U_SIZE 0x14000 /* * Define a list of Group 1 Secure and Group 0 interrupts as per GICv3