1 /* 2 * Copyright (c) 2022-2024 Arm Limited. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * \file host_base_address.h 19 * \brief This file defines the host memory map addresses accessed by RSE. 20 */ 21 22 #ifndef __HOST_BASE_ADDRESS_H__ 23 #define __HOST_BASE_ADDRESS_H__ 24 25 /* Host addresses */ 26 #define AP_BOOT_SRAM_BASE 0x0UL /* AP initial boot SRAM base address */ 27 #define AP_BOOT_SRAM_SIZE 0x80000U /* 512KB */ 28 29 #define SCP_BOOT_SRAM_BASE 0x40000000UL /* SCP initial boot SRAM base address */ 30 #define SCP_BOOT_SRAM_SIZE 0x80000U /* 512KB */ 31 32 #define HOST_UART_BASE 0x7FF80000UL /* Host UART base address */ 33 #define HOST_UART_SIZE 0x2000U /* 8KB */ 34 35 #define HOST_FLASH0_BASE 0x08000000UL /* Host flash base address */ 36 #define HOST_FLASH0_SIZE 0x4000000 /* 64 MiB */ 37 38 #define AP_TRUSTED_SRAM_BASE 0x4000000UL /* AP trusted SRAM base address */ 39 #define AP_SHARED_RAM_BASE AP_TRUSTED_SRAM_BASE 40 41 #define PLAT_SCP_AP_SDS_SIZE 0xDC0U /* 3520 bytes */ 42 #define PLAT_SCP_SCMI_S_PAYLOAD_SIZE 0x100U /* 256 bytes */ 43 #define PLAT_RSE_AP_SDS_BASE (AP_SHARED_RAM_BASE \ 44 + PLAT_SCP_AP_SDS_SIZE \ 45 + PLAT_SCP_SCMI_S_PAYLOAD_SIZE) 46 #define PLAT_RSE_AP_SDS_SIZE (64U) 47 48 #endif /* __HOST_BASE_ADDRESS_H__ */ 49