1 /* 2 * Copyright (c) 2020-2022, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SGI_SOC_PLATFORM_DEF_H 8 #define SGI_SOC_PLATFORM_DEF_H 9 10 #include <plat/arm/board/common/v2m_def.h> 11 #include <plat/arm/soc/common/soc_css_def.h> 12 #include <sgi_base_platform_def.h> 13 #include <sgi_soc_css_def.h> 14 15 /* Map the System registers to access from S-EL0 */ 16 #define CSS_SYSTEMREG_DEVICE_BASE (0x1C010000) 17 #define CSS_SYSTEMREG_DEVICE_SIZE (0x00010000) 18 #define PLAT_ARM_SECURE_MAP_SYSTEMREG MAP_REGION_FLAT( \ 19 CSS_SYSTEMREG_DEVICE_BASE, \ 20 CSS_SYSTEMREG_DEVICE_SIZE, \ 21 (MT_DEVICE | MT_RW | \ 22 MT_SECURE | MT_USER)) 23 24 /* Map the NOR2 Flash to access from S-EL0 */ 25 #define CSS_NOR2_FLASH_DEVICE_BASE (0x10000000) 26 #define CSS_NOR2_FLASH_DEVICE_SIZE (0x04000000) 27 #define PLAT_ARM_SECURE_MAP_NOR2 MAP_REGION_FLAT( \ 28 CSS_NOR2_FLASH_DEVICE_BASE, \ 29 CSS_NOR2_FLASH_DEVICE_SIZE, \ 30 (MT_DEVICE | MT_RW | \ 31 MT_SECURE | MT_USER)) 32 33 #endif /* SGI_SOC_PLATFORM_DEF_H */ 34