xref: /rk3399_ARM-atf/plat/rockchip/rk3576/drivers/secure/secure.h (revision 2d3b44e3073e8d6ec49dde45ec353d6f41290917)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3  * Copyright (c) 2025, Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef SECURE_H
7 #define SECURE_H
8 
9 #include <firewall.h>
10 
11 /* PMU0SGRF */
12 #define PMU0SGRF_SOC_CON(i)		((i) * 4)
13 
14  /* PMU1SGRF */
15 #define PMU1SGRF_SOC_CON(i)		((i) * 4)
16 
17   /* CCISGRF */
18 #define CCISGRF_SOC_CON(i)		(0x20 + (i) * 4)
19 #define CCISGRF_DDR_HASH_CON(i)		(0x40 + (i) * 4)
20 
21  /* SGRF */
22 #define SYSSGRF_DDR_BANK_MSK(i)		(0x04 + (i) * 4)
23 #define SYSSGRF_DDR_CH_MSK(i)		(0x18 + (i) * 4)
24 #define SYSSGRF_SOC_CON(i)		(0x20 + (i) * 4)
25 #define SYSSGRF_DMAC_CON(i)		(0x80 + (i) * 4)
26 #define SYSSGRF_SOC_STATUS		0x240
27 
28 void secure_init(void);
29 
30 #endif /* SECURE_H */
31