1 /*
2  * Renesas SCP/MCP Software
3  * Copyright (c) 2020-2021, Renesas Electronics Corporation. All rights
4  * reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef RCAR_MMAP_H
10 #define RCAR_MMAP_H
11 
12 #include <rcar_def.h>
13 
14 #include <stdint.h>
15 
16 /*
17  * Top-level base addresses
18  */
19 #define PERIPHERAL_BASE UINT64_C(0xE6000000)
20 
21 /*
22  * Peripherals
23  */
24 #define CPG_BASE (PERIPHERAL_BASE + 0x00150000)
25 #define MFIS_BASE (PERIPHERAL_BASE + 0x00260000)
26 
27 #define MFISAREICR_BASE (MFIS_BASE + 0x0400)
28 
29 /* Memory */
30 #define TRUSTED_RAM_BASE UINT64_C(0x040000000)
31 #define NONTRUSTED_RAM_BASE UINT64_C(0x040002000)
32 
33 #define SCP_SRAM_BASE (0xE6302000U)
34 #define SCP_SRAM_SIZE (0x00001000U)
35 #define SCP_SRAM_STACK_BASE (SCP_SRAM_BASE + SCP_SRAM_SIZE)
36 #define SCP_SRAM_STACK_SIZE (0x00001000U)
37 
38 #endif /* RCAR_MMAP_H */
39