1 /* 2 * Arm SCP/MCP Software 3 * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Description: 8 * ROM firmware memory layout for the linker script. 9 */ 10 11 #ifndef FMW_MEMORY_H 12 #define FMW_MEMORY_H 13 14 #include "system_mmap_scp.h" 15 16 #define FMW_MEM_MODE ARCH_MEM_MODE_DUAL_REGION_RELOCATION 17 18 /* 19 * ROM memory 20 */ 21 #define FMW_MEM0_SIZE SCP_ROM_SIZE 22 #define FMW_MEM0_BASE SCP_ROM_BASE 23 24 /* 25 * RAM memory (16 KiB block at the top of the RAM) 26 * 27 * Note: The sections that must go into the RAM memory (i.e. stack, heap, bss 28 * and data) are placed at the end of the RAM memory to avoid being overwritten 29 * by the bootloader when loading the RAM firmware image. 30 */ 31 #define FMW_MEM1_SIZE (16 * 1024) 32 #define FMW_MEM1_BASE (SCP_RAM_BASE + SCP_RAM_SIZE - FMW_MEM1_SIZE) 33 34 #endif /* FMW_MEMORY_H */ 35