xref: /rk3399_ARM-atf/plat/renesas/common/include/registers/cpg_registers.h (revision d6b458e82a06d92a50b6a2abad7a835aabfa2686)
1011a4c2fSBiju Das /*
2*69c371bcSToshiyuki Ogasahara  * Copyright (c) 2015-2023, Renesas Electronics Corporation. All rights reserved.
3011a4c2fSBiju Das  *
4011a4c2fSBiju Das  * SPDX-License-Identifier: BSD-3-Clause
5011a4c2fSBiju Das  */
6011a4c2fSBiju Das 
7011a4c2fSBiju Das #ifndef CPG_REGISTERS_H
8011a4c2fSBiju Das #define CPG_REGISTERS_H
9011a4c2fSBiju Das 
10011a4c2fSBiju Das /* CPG base address */
11011a4c2fSBiju Das #define	CPG_BASE	(0xE6150000U)
12011a4c2fSBiju Das 
13011a4c2fSBiju Das /* CPG system module stop control 2 */
14011a4c2fSBiju Das #define CPG_SMSTPCR2	(CPG_BASE + 0x0138U)
15011a4c2fSBiju Das /* CPG software reset 2 */
16011a4c2fSBiju Das #define CPG_SRCR2	(CPG_BASE + 0x00B0U)
17011a4c2fSBiju Das /* CPG module stop status 2 */
18011a4c2fSBiju Das #define CPG_MSTPSR2	(CPG_BASE + 0x0040U)
19*69c371bcSToshiyuki Ogasahara /* CPG module stop status 3 */
200dae56bbSToshiyuki Ogasahara #define CPG_MSTPSR3	(CPG_BASE + 0x0048U)
21011a4c2fSBiju Das /* CPG write protect */
22011a4c2fSBiju Das #define CPG_CPGWPR	(CPG_BASE + 0x0900U)
23011a4c2fSBiju Das /* CPG write protect control */
24011a4c2fSBiju Das #define CPG_CPGWPCR	(CPG_BASE + 0x0904U)
25011a4c2fSBiju Das /* CPG system module stop control 9 */
26011a4c2fSBiju Das #define CPG_SMSTPCR9    (CPG_BASE + 0x0994U)
27011a4c2fSBiju Das /* CPG module stop status 9 */
28011a4c2fSBiju Das #define CPG_MSTPSR9     (CPG_BASE + 0x09A4U)
290dae56bbSToshiyuki Ogasahara /* SDHI2 clock frequency control register */
300dae56bbSToshiyuki Ogasahara #define	CPG_SD2CKCR	(CPG_BASE + 0x0268U)
310dae56bbSToshiyuki Ogasahara /* SDHI3 clock frequency control register */
320dae56bbSToshiyuki Ogasahara #define CPG_SD3CKCR	(CPG_BASE + 0x026CU)
33011a4c2fSBiju Das 
34011a4c2fSBiju Das /* CPG (SECURITY) registers */
35011a4c2fSBiju Das 
36011a4c2fSBiju Das /* Secure Module Stop Control Register 0 */
37011a4c2fSBiju Das #define	SCMSTPCR0	(CPG_BASE + 0x0B20U)
38011a4c2fSBiju Das /* Secure Module Stop Control Register 1 */
39011a4c2fSBiju Das #define	SCMSTPCR1	(CPG_BASE + 0x0B24U)
40011a4c2fSBiju Das /* Secure Module Stop Control Register 2 */
41011a4c2fSBiju Das #define	SCMSTPCR2	(CPG_BASE + 0x0B28U)
42011a4c2fSBiju Das /* Secure Module Stop Control Register 3 */
43011a4c2fSBiju Das #define	SCMSTPCR3	(CPG_BASE + 0x0B2CU)
44011a4c2fSBiju Das /* Secure Module Stop Control Register 4 */
45011a4c2fSBiju Das #define	SCMSTPCR4	(CPG_BASE + 0x0B30U)
46011a4c2fSBiju Das /* Secure Module Stop Control Register 5 */
47011a4c2fSBiju Das #define	SCMSTPCR5	(CPG_BASE + 0x0B34U)
48011a4c2fSBiju Das /* Secure Module Stop Control Register 6 */
49011a4c2fSBiju Das #define	SCMSTPCR6	(CPG_BASE + 0x0B38U)
50011a4c2fSBiju Das /* Secure Module Stop Control Register 7 */
51011a4c2fSBiju Das #define	SCMSTPCR7	(CPG_BASE + 0x0B3CU)
52011a4c2fSBiju Das /* Secure Module Stop Control Register 8 */
53011a4c2fSBiju Das #define	SCMSTPCR8	(CPG_BASE + 0x0B40U)
54011a4c2fSBiju Das /* Secure Module Stop Control Register 9 */
55011a4c2fSBiju Das #define	SCMSTPCR9	(CPG_BASE + 0x0B44U)
56011a4c2fSBiju Das /* Secure Module Stop Control Register 10 */
57011a4c2fSBiju Das #define	SCMSTPCR10	(CPG_BASE + 0x0B48U)
58011a4c2fSBiju Das /* Secure Module Stop Control Register 11 */
59011a4c2fSBiju Das #define	SCMSTPCR11	(CPG_BASE + 0x0B4CU)
60011a4c2fSBiju Das 
61011a4c2fSBiju Das /* CPG (SECURITY) registers */
62011a4c2fSBiju Das 
63011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 0 */
64011a4c2fSBiju Das #define	SCSRSTECR0	(CPG_BASE + 0x0B80U)
65011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 1 */
66011a4c2fSBiju Das #define	SCSRSTECR1	(CPG_BASE + 0x0B84U)
67011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 2 */
68011a4c2fSBiju Das #define	SCSRSTECR2	(CPG_BASE + 0x0B88U)
69011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 3 */
70011a4c2fSBiju Das #define	SCSRSTECR3	(CPG_BASE + 0x0B8CU)
71011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 4 */
72011a4c2fSBiju Das #define	SCSRSTECR4	(CPG_BASE + 0x0B90U)
73011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 5 */
74011a4c2fSBiju Das #define	SCSRSTECR5	(CPG_BASE + 0x0B94U)
75011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 6 */
76011a4c2fSBiju Das #define	SCSRSTECR6	(CPG_BASE + 0x0B98U)
77011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 7 */
78011a4c2fSBiju Das #define	SCSRSTECR7	(CPG_BASE + 0x0B9CU)
79011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 8 */
80011a4c2fSBiju Das #define	SCSRSTECR8	(CPG_BASE + 0x0BA0U)
81011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 9 */
82011a4c2fSBiju Das #define	SCSRSTECR9	(CPG_BASE + 0x0BA4U)
83011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 10 */
84011a4c2fSBiju Das #define	SCSRSTECR10	(CPG_BASE + 0x0BA8U)
85011a4c2fSBiju Das /* Secure Software Reset Access Enable Control Register 11 */
86011a4c2fSBiju Das #define	SCSRSTECR11	(CPG_BASE + 0x0BACU)
87011a4c2fSBiju Das 
88011a4c2fSBiju Das /* CPG (REALTIME) registers */
89011a4c2fSBiju Das 
90011a4c2fSBiju Das /* Realtime Module Stop Control Register 0 */
91011a4c2fSBiju Das #define	RMSTPCR0	(CPG_BASE + 0x0110U)
92011a4c2fSBiju Das /* Realtime Module Stop Control Register 1 */
93011a4c2fSBiju Das #define	RMSTPCR1	(CPG_BASE + 0x0114U)
94011a4c2fSBiju Das /* Realtime Module Stop Control Register 2 */
95011a4c2fSBiju Das #define	RMSTPCR2	(CPG_BASE + 0x0118U)
96011a4c2fSBiju Das /* Realtime Module Stop Control Register 3 */
97011a4c2fSBiju Das #define	RMSTPCR3	(CPG_BASE + 0x011CU)
98011a4c2fSBiju Das /* Realtime Module Stop Control Register 4 */
99011a4c2fSBiju Das #define	RMSTPCR4	(CPG_BASE + 0x0120U)
100011a4c2fSBiju Das /* Realtime Module Stop Control Register 5 */
101011a4c2fSBiju Das #define	RMSTPCR5	(CPG_BASE + 0x0124U)
102011a4c2fSBiju Das /* Realtime Module Stop Control Register 6 */
103011a4c2fSBiju Das #define	RMSTPCR6	(CPG_BASE + 0x0128U)
104011a4c2fSBiju Das /* Realtime Module Stop Control Register 7 */
105011a4c2fSBiju Das #define	RMSTPCR7	(CPG_BASE + 0x012CU)
106011a4c2fSBiju Das /* Realtime Module Stop Control Register 8 */
107011a4c2fSBiju Das #define	RMSTPCR8	(CPG_BASE + 0x0980U)
108011a4c2fSBiju Das /* Realtime Module Stop Control Register 9 */
109011a4c2fSBiju Das #define	RMSTPCR9	(CPG_BASE + 0x0984U)
110011a4c2fSBiju Das /* Realtime Module Stop Control Register 10 */
111011a4c2fSBiju Das #define	RMSTPCR10	(CPG_BASE + 0x0988U)
112011a4c2fSBiju Das /* Realtime Module Stop Control Register 11 */
113011a4c2fSBiju Das #define	RMSTPCR11	(CPG_BASE + 0x098CU)
114011a4c2fSBiju Das 
115011a4c2fSBiju Das /* CPG (SYSTEM) registers */
116011a4c2fSBiju Das 
117011a4c2fSBiju Das /* System Module Stop Control Register 0 */
118011a4c2fSBiju Das #define	SMSTPCR0	(CPG_BASE + 0x0130U)
119011a4c2fSBiju Das /* System Module Stop Control Register 1 */
120011a4c2fSBiju Das #define	SMSTPCR1	(CPG_BASE + 0x0134U)
121011a4c2fSBiju Das /* System Module Stop Control Register 2 */
122011a4c2fSBiju Das #define	SMSTPCR2	(CPG_BASE + 0x0138U)
123011a4c2fSBiju Das /* System Module Stop Control Register 3 */
124011a4c2fSBiju Das #define	SMSTPCR3	(CPG_BASE + 0x013CU)
125011a4c2fSBiju Das /* System Module Stop Control Register 4 */
126011a4c2fSBiju Das #define	SMSTPCR4	(CPG_BASE + 0x0140U)
127011a4c2fSBiju Das /* System Module Stop Control Register 5 */
128011a4c2fSBiju Das #define	SMSTPCR5	(CPG_BASE + 0x0144U)
129011a4c2fSBiju Das /* System Module Stop Control Register 6 */
130011a4c2fSBiju Das #define	SMSTPCR6	(CPG_BASE + 0x0148U)
131011a4c2fSBiju Das /* System Module Stop Control Register 7 */
132011a4c2fSBiju Das #define	SMSTPCR7	(CPG_BASE + 0x014CU)
133011a4c2fSBiju Das /* System Module Stop Control Register 8 */
134011a4c2fSBiju Das #define	SMSTPCR8	(CPG_BASE + 0x0990U)
135011a4c2fSBiju Das /* System Module Stop Control Register 9 */
136011a4c2fSBiju Das #define	SMSTPCR9	(CPG_BASE + 0x0994U)
137011a4c2fSBiju Das /* System Module Stop Control Register 10 */
138011a4c2fSBiju Das #define	SMSTPCR10	(CPG_BASE + 0x0998U)
139011a4c2fSBiju Das /* System Module Stop Control Register 11 */
140011a4c2fSBiju Das #define	SMSTPCR11	(CPG_BASE + 0x099CU)
141011a4c2fSBiju Das 
142011a4c2fSBiju Das #endif /* CPG_REGISTERS_H */
143