From f4962c8d00f00f989b0ecfa0211dc6ec44ec2878 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Mon, 4 Oct 2021 12:20:33 +0100 Subject: MLECO-2344: Documentation improvement Documenting how the target platform's SRAM size impacts configuration files, sources and linker scripts. Change-Id: I8647ab67b73bafd0c44e6c586a1b5f2602bf03f5 --- .../cmake/subsystem-profiles/corstone-sse-300.cmake | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'scripts/cmake/subsystem-profiles/corstone-sse-300.cmake') diff --git a/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake b/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake index 38930af..7e27f3c 100644 --- a/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake +++ b/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake @@ -16,15 +16,6 @@ #---------------------------------------------------------------------------- # CMake configuration file for peripheral memory map for MPS3 as per SSE-300 design -################################################################################################### -# Application specific config # -################################################################################################### - -# This parameter is based on the linker/scatter script for SSE-300. Do not change this parameter -# in isolation. -set(ACTIVATION_BUF_SRAM_SZ "0x00400000" CACHE STRING "Maximum SRAM size for activation buffers") -set(DESIGN_NAME "Arm Corstone-300 (SSE-300)" CACHE STRING "Design name") - ################################################################################################### # Mem sizes # ################################################################################################### @@ -66,6 +57,17 @@ set(DDR4_BLK1_BASE_S "0x90000000" CACHE STRING "DDR4 block 1 Secure base ad set(DDR4_BLK2_BASE_S "0xB0000000" CACHE STRING "DDR4 block 2 Secure base address") set(DDR4_BLK3_BASE_S "0xD0000000" CACHE STRING "DDR4 block 3 Secure base address") +################################################################################################### +# Application specific config # +################################################################################################### + +# This parameter is based on the linker/scatter script for SSE-300. Do not change this parameter +# in isolation. +set(DESIGN_NAME "Arm Corstone-300 (SSE-300)" CACHE STRING "Design name") + +# SRAM size reserved for activation buffers +math(EXPR ACTIVATION_BUF_SRAM_SZ "${ISRAM0_SIZE} + ${ISRAM1_SIZE}" OUTPUT_FORMAT HEXADECIMAL) + ################################################################################################### # Base addresses for dynamic loads (to be used for FVP form only) # ################################################################################################### -- cgit v1.2.1