xref: /rk3399_ARM-atf/plat/arm/board/neoverse_rd/common/include/nrd3/nrd_ros_fw_def3.h (revision 378025e20ce9406f2b6634996cba3f518c5d25ac)
1 /*
2  * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  * This file is limited to include the RoS firmware specific definitions for the
7  * third generation of platforms. RoS (Rest Of System) is used to refer to the
8  * part of the reference design platform that excludes CSS.
9  */
10 
11 #ifndef NRD_ROS_FW_DEF3_H
12 #define NRD_ROS_FW_DEF3_H
13 
14 #include <nrd_ros_def3.h>
15 
16 /*******************************************************************************
17  * MMU mapping
18  ******************************************************************************/
19 
20 #define NRD_ROS_PLATFORM_PERIPH_MMAP					\
21 		MAP_REGION_FLAT(					\
22 			NRD_ROS_PLATFORM_PERIPH_BASE,			\
23 			NRD_ROS_PLATFORM_PERIPH_SIZE,			\
24 			MT_DEVICE | MT_RW | MT_SECURE)
25 
26 #define NRD_ROS_SYSTEM_PERIPH_MMAP					\
27 		MAP_REGION_FLAT(					\
28 			NRD_ROS_SYSTEM_PERIPH_BASE,			\
29 			NRD_ROS_SYSTEM_PERIPH_SIZE,			\
30 			MT_DEVICE | MT_RW | MT_SECURE)
31 
32 #define NRD_ROS_V2M_MEM_PROTECT_MMAP					\
33 		MAP_REGION_FLAT(					\
34 			PLAT_ARM_MEM_PROT_ADDR,				\
35 			V2M_FLASH_BLOCK_SIZE,				\
36 			MT_DEVICE | MT_RW | EL3_PAS)
37 
38 #define NRD_ROS_FLASH0_RO_MMAP						\
39 		MAP_REGION_FLAT(					\
40 			V2M_FLASH0_BASE,				\
41 			V2M_FLASH0_SIZE,				\
42 			MT_DEVICE | MT_RO | MT_SECURE)
43 
44 #endif /* NRD_ROS_FW_DEF3_H */
45