xref: /rk3399_ARM-atf/plat/renesas/common/include/registers/cpg_registers.h (revision 011a4c2f049a422e91ac26d5c146f3a1c7d2d16d)
1*011a4c2fSBiju Das /*
2*011a4c2fSBiju Das  * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
3*011a4c2fSBiju Das  *
4*011a4c2fSBiju Das  * SPDX-License-Identifier: BSD-3-Clause
5*011a4c2fSBiju Das  */
6*011a4c2fSBiju Das 
7*011a4c2fSBiju Das #ifndef CPG_REGISTERS_H
8*011a4c2fSBiju Das #define CPG_REGISTERS_H
9*011a4c2fSBiju Das 
10*011a4c2fSBiju Das /* CPG base address */
11*011a4c2fSBiju Das #define	CPG_BASE	(0xE6150000U)
12*011a4c2fSBiju Das 
13*011a4c2fSBiju Das /* CPG system module stop control 2 */
14*011a4c2fSBiju Das #define CPG_SMSTPCR2	(CPG_BASE + 0x0138U)
15*011a4c2fSBiju Das /* CPG software reset 2 */
16*011a4c2fSBiju Das #define CPG_SRCR2	(CPG_BASE + 0x00B0U)
17*011a4c2fSBiju Das /* CPG module stop status 2 */
18*011a4c2fSBiju Das #define CPG_MSTPSR2	(CPG_BASE + 0x0040U)
19*011a4c2fSBiju Das /* CPG write protect */
20*011a4c2fSBiju Das #define CPG_CPGWPR	(CPG_BASE + 0x0900U)
21*011a4c2fSBiju Das /* CPG write protect control */
22*011a4c2fSBiju Das #define CPG_CPGWPCR	(CPG_BASE + 0x0904U)
23*011a4c2fSBiju Das /* CPG system module stop control 9 */
24*011a4c2fSBiju Das #define CPG_SMSTPCR9    (CPG_BASE + 0x0994U)
25*011a4c2fSBiju Das /* CPG module stop status 9 */
26*011a4c2fSBiju Das #define CPG_MSTPSR9     (CPG_BASE + 0x09A4U)
27*011a4c2fSBiju Das 
28*011a4c2fSBiju Das /* CPG (SECURITY) registers */
29*011a4c2fSBiju Das 
30*011a4c2fSBiju Das /* Secure Module Stop Control Register 0 */
31*011a4c2fSBiju Das #define	SCMSTPCR0	(CPG_BASE + 0x0B20U)
32*011a4c2fSBiju Das /* Secure Module Stop Control Register 1 */
33*011a4c2fSBiju Das #define	SCMSTPCR1	(CPG_BASE + 0x0B24U)
34*011a4c2fSBiju Das /* Secure Module Stop Control Register 2 */
35*011a4c2fSBiju Das #define	SCMSTPCR2	(CPG_BASE + 0x0B28U)
36*011a4c2fSBiju Das /* Secure Module Stop Control Register 3 */
37*011a4c2fSBiju Das #define	SCMSTPCR3	(CPG_BASE + 0x0B2CU)
38*011a4c2fSBiju Das /* Secure Module Stop Control Register 4 */
39*011a4c2fSBiju Das #define	SCMSTPCR4	(CPG_BASE + 0x0B30U)
40*011a4c2fSBiju Das /* Secure Module Stop Control Register 5 */
41*011a4c2fSBiju Das #define	SCMSTPCR5	(CPG_BASE + 0x0B34U)
42*011a4c2fSBiju Das /* Secure Module Stop Control Register 6 */
43*011a4c2fSBiju Das #define	SCMSTPCR6	(CPG_BASE + 0x0B38U)
44*011a4c2fSBiju Das /* Secure Module Stop Control Register 7 */
45*011a4c2fSBiju Das #define	SCMSTPCR7	(CPG_BASE + 0x0B3CU)
46*011a4c2fSBiju Das /* Secure Module Stop Control Register 8 */
47*011a4c2fSBiju Das #define	SCMSTPCR8	(CPG_BASE + 0x0B40U)
48*011a4c2fSBiju Das /* Secure Module Stop Control Register 9 */
49*011a4c2fSBiju Das #define	SCMSTPCR9	(CPG_BASE + 0x0B44U)
50*011a4c2fSBiju Das /* Secure Module Stop Control Register 10 */
51*011a4c2fSBiju Das #define	SCMSTPCR10	(CPG_BASE + 0x0B48U)
52*011a4c2fSBiju Das /* Secure Module Stop Control Register 11 */
53*011a4c2fSBiju Das #define	SCMSTPCR11	(CPG_BASE + 0x0B4CU)
54*011a4c2fSBiju Das 
55*011a4c2fSBiju Das /* CPG (SECURITY) registers */
56*011a4c2fSBiju Das 
57*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 0 */
58*011a4c2fSBiju Das #define	SCSRSTECR0	(CPG_BASE + 0x0B80U)
59*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 1 */
60*011a4c2fSBiju Das #define	SCSRSTECR1	(CPG_BASE + 0x0B84U)
61*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 2 */
62*011a4c2fSBiju Das #define	SCSRSTECR2	(CPG_BASE + 0x0B88U)
63*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 3 */
64*011a4c2fSBiju Das #define	SCSRSTECR3	(CPG_BASE + 0x0B8CU)
65*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 4 */
66*011a4c2fSBiju Das #define	SCSRSTECR4	(CPG_BASE + 0x0B90U)
67*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 5 */
68*011a4c2fSBiju Das #define	SCSRSTECR5	(CPG_BASE + 0x0B94U)
69*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 6 */
70*011a4c2fSBiju Das #define	SCSRSTECR6	(CPG_BASE + 0x0B98U)
71*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 7 */
72*011a4c2fSBiju Das #define	SCSRSTECR7	(CPG_BASE + 0x0B9CU)
73*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 8 */
74*011a4c2fSBiju Das #define	SCSRSTECR8	(CPG_BASE + 0x0BA0U)
75*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 9 */
76*011a4c2fSBiju Das #define	SCSRSTECR9	(CPG_BASE + 0x0BA4U)
77*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 10 */
78*011a4c2fSBiju Das #define	SCSRSTECR10	(CPG_BASE + 0x0BA8U)
79*011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 11 */
80*011a4c2fSBiju Das #define	SCSRSTECR11	(CPG_BASE + 0x0BACU)
81*011a4c2fSBiju Das 
82*011a4c2fSBiju Das /* CPG (REALTIME) registers */
83*011a4c2fSBiju Das 
84*011a4c2fSBiju Das /* Realtime Module Stop Control Register 0 */
85*011a4c2fSBiju Das #define	RMSTPCR0	(CPG_BASE + 0x0110U)
86*011a4c2fSBiju Das /* Realtime Module Stop Control Register 1 */
87*011a4c2fSBiju Das #define	RMSTPCR1	(CPG_BASE + 0x0114U)
88*011a4c2fSBiju Das /* Realtime Module Stop Control Register 2 */
89*011a4c2fSBiju Das #define	RMSTPCR2	(CPG_BASE + 0x0118U)
90*011a4c2fSBiju Das /* Realtime Module Stop Control Register 3 */
91*011a4c2fSBiju Das #define	RMSTPCR3	(CPG_BASE + 0x011CU)
92*011a4c2fSBiju Das /* Realtime Module Stop Control Register 4 */
93*011a4c2fSBiju Das #define	RMSTPCR4	(CPG_BASE + 0x0120U)
94*011a4c2fSBiju Das /* Realtime Module Stop Control Register 5 */
95*011a4c2fSBiju Das #define	RMSTPCR5	(CPG_BASE + 0x0124U)
96*011a4c2fSBiju Das /* Realtime Module Stop Control Register 6 */
97*011a4c2fSBiju Das #define	RMSTPCR6	(CPG_BASE + 0x0128U)
98*011a4c2fSBiju Das /* Realtime Module Stop Control Register 7 */
99*011a4c2fSBiju Das #define	RMSTPCR7	(CPG_BASE + 0x012CU)
100*011a4c2fSBiju Das /* Realtime Module Stop Control Register 8 */
101*011a4c2fSBiju Das #define	RMSTPCR8	(CPG_BASE + 0x0980U)
102*011a4c2fSBiju Das /* Realtime Module Stop Control Register 9 */
103*011a4c2fSBiju Das #define	RMSTPCR9	(CPG_BASE + 0x0984U)
104*011a4c2fSBiju Das /* Realtime Module Stop Control Register 10 */
105*011a4c2fSBiju Das #define	RMSTPCR10	(CPG_BASE + 0x0988U)
106*011a4c2fSBiju Das /* Realtime Module Stop Control Register 11 */
107*011a4c2fSBiju Das #define	RMSTPCR11	(CPG_BASE + 0x098CU)
108*011a4c2fSBiju Das 
109*011a4c2fSBiju Das /* CPG (SYSTEM) registers */
110*011a4c2fSBiju Das 
111*011a4c2fSBiju Das /* System Module Stop Control Register 0 */
112*011a4c2fSBiju Das #define	SMSTPCR0	(CPG_BASE + 0x0130U)
113*011a4c2fSBiju Das /* System Module Stop Control Register 1 */
114*011a4c2fSBiju Das #define	SMSTPCR1	(CPG_BASE + 0x0134U)
115*011a4c2fSBiju Das /* System Module Stop Control Register 2 */
116*011a4c2fSBiju Das #define	SMSTPCR2	(CPG_BASE + 0x0138U)
117*011a4c2fSBiju Das /* System Module Stop Control Register 3 */
118*011a4c2fSBiju Das #define	SMSTPCR3	(CPG_BASE + 0x013CU)
119*011a4c2fSBiju Das /* System Module Stop Control Register 4 */
120*011a4c2fSBiju Das #define	SMSTPCR4	(CPG_BASE + 0x0140U)
121*011a4c2fSBiju Das /* System Module Stop Control Register 5 */
122*011a4c2fSBiju Das #define	SMSTPCR5	(CPG_BASE + 0x0144U)
123*011a4c2fSBiju Das /* System Module Stop Control Register 6 */
124*011a4c2fSBiju Das #define	SMSTPCR6	(CPG_BASE + 0x0148U)
125*011a4c2fSBiju Das /* System Module Stop Control Register 7 */
126*011a4c2fSBiju Das #define	SMSTPCR7	(CPG_BASE + 0x014CU)
127*011a4c2fSBiju Das /* System Module Stop Control Register 8 */
128*011a4c2fSBiju Das #define	SMSTPCR8	(CPG_BASE + 0x0990U)
129*011a4c2fSBiju Das /* System Module Stop Control Register 9 */
130*011a4c2fSBiju Das #define	SMSTPCR9	(CPG_BASE + 0x0994U)
131*011a4c2fSBiju Das /* System Module Stop Control Register 10 */
132*011a4c2fSBiju Das #define	SMSTPCR10	(CPG_BASE + 0x0998U)
133*011a4c2fSBiju Das /* System Module Stop Control Register 11 */
134*011a4c2fSBiju Das #define	SMSTPCR11	(CPG_BASE + 0x099CU)
135*011a4c2fSBiju Das 
136*011a4c2fSBiju Das #endif /* CPG_REGISTERS_H */
137