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