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