1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef SCP_CSS_MMAP_H
9 #define SCP_CSS_MMAP_H
10 
11 #include "scp_mmap.h"
12 
13 #define SCP_CMN700_BASE (SCP_SYSTEM_ACCESS_PORT0_BASE)
14 
15 #define SCP_REFCLK_CNTCONTROL_BASE (SCP_SYSTEM_ACCESS_PORT1_BASE + 0x2A430000)
16 #define SCP_SID_BASE (SCP_SYSTEM_ACCESS_PORT1_BASE + 0x2A4A0000)
17 
18 #define SCP_REFCLK_CNTCTL_BASE   (SCP_PERIPHERAL_BASE + 0x0000)
19 #define SCP_REFCLK_CNTBASE0_BASE (SCP_PERIPHERAL_BASE + 0x1000)
20 #define SCP_UART_BASE            (SCP_PERIPHERAL_BASE + 0x2000)
21 #define SCP_SP805_WDOG_BASE      (SCP_PERIPHERAL_BASE + 0x6000)
22 #define SCP_MHU_AP_BASE          (SCP_PERIPHERAL_BASE + 0x1000000)
23 
24 #define SCP_PIK_SCP_BASE (SCP_PIK_BASE)
25 
26 #define SCP_PIK_SYSTEM_BASE (SCP_PIK_SCP_BASE + 0x40000)
27 
28 #define SCP_PIK_CLUSTER_BASE(n) \
29     (SCP_SYSTEM_ACCESS_PORT1_BASE + 0x20000000 + (n * 0x100000) + 0x50000)
30 
31 #define SCP_PPU_SCP_BASE (SCP_PIK_SCP_BASE + 0x1000)
32 
33 #define SCP_PPU_SYS0_BASE (SCP_PIK_SYSTEM_BASE + 0x1000)
34 
35 #define SCP_CLUSTER_PPU_BASE(n) \
36     (SCP_SYSTEM_ACCESS_PORT1_BASE + 0x20000000 + (n * 0x100000) + 0x30000)
37 
38 #define SCP_CORE_PPU_BASE(n) \
39     (SCP_SYSTEM_ACCESS_PORT1_BASE + 0x20000000 + (n * 0x100000) + 0x80000)
40 
41 #define SCP_MHU_SCP_AP_SND_S_CLUS0 (0x45020000)
42 #define SCP_MHU_SCP_AP_RCV_S_CLUS0 (0x45030000)
43 
44 /*
45  * Macro to convert the AP address to SCP address to access through System
46  * Access Port 0
47  */
48 #define SCP_SYSTEM_ACCESS_PORT0_ADDR(addr) (addr + 0x20000000)
49 
50 /* PCIe Related memory map */
51 #define PCIE_INTEG_CTRL_REG_BASE(idx) \
52     (SCP_SYSTEM_ACCESS_PORT0_ADDR(0x40D00000 + (idx * 0x2000000)))
53 
54 #endif /* SCP_CSS_MMAP_H */
55