/*
 * Arm SCP/MCP Software
 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *
 * Description:
 *     RAM firmware memory layout for the linker script.
 */

#ifndef FMW_MEMORY_H
#define FMW_MEMORY_H

#include "scp_mmap.h"
#include "scp_software_mmap.h"

#define FIRMWARE_MEM_MODE FWK_MEM_MODE_DUAL_REGION_RELOCATION

/*
 * RAM instruction memory
 */
#define FIRMWARE_MEM0_SIZE  SCP_ITC_RAM_SIZE
#define FIRMWARE_MEM0_BASE  SCP_ITC_RAM_BASE

/*
 * RAM data memory
 */
#define FIRMWARE_MEM1_SIZE  SCP_DTC_RAM_SIZE
#define FIRMWARE_MEM1_BASE  SCP_DTC_RAM_BASE

#define FIRMWARE_STACK_SIZE (1 * 1024)

#endif /* FMW_MEMORY_H */
