rk3328_cru.h revision 1.2 1 1.2 jmcneill /* $NetBSD: rk3328_cru.h,v 1.2 2020/12/31 11:36:12 jmcneill Exp $ */
2 1.1 jmcneill
3 1.1 jmcneill /*-
4 1.1 jmcneill * Copyright (c) 2018 Jared McNeill <jmcneill (at) invisible.ca>
5 1.1 jmcneill * All rights reserved.
6 1.1 jmcneill *
7 1.1 jmcneill * Redistribution and use in source and binary forms, with or without
8 1.1 jmcneill * modification, are permitted provided that the following conditions
9 1.1 jmcneill * are met:
10 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright
11 1.1 jmcneill * notice, this list of conditions and the following disclaimer.
12 1.1 jmcneill * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 jmcneill * notice, this list of conditions and the following disclaimer in the
14 1.1 jmcneill * documentation and/or other materials provided with the distribution.
15 1.1 jmcneill *
16 1.1 jmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 jmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 jmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 jmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 jmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 1.1 jmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 1.1 jmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 1.1 jmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 1.1 jmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.1 jmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.1 jmcneill * SUCH DAMAGE.
27 1.1 jmcneill */
28 1.1 jmcneill
29 1.1 jmcneill #ifndef _RK3328_CRU_H
30 1.1 jmcneill #define _RK3328_CRU_H
31 1.1 jmcneill
32 1.1 jmcneill #define RK3328_PLL_APLL 1
33 1.1 jmcneill #define RK3328_PLL_DPLL 2
34 1.1 jmcneill #define RK3328_PLL_CPLL 3
35 1.1 jmcneill #define RK3328_PLL_GPLL 4
36 1.1 jmcneill #define RK3328_PLL_NPLL 5
37 1.1 jmcneill #define RK3328_ARMCLK 6
38 1.1 jmcneill #define RK3328_SCLK_RTC32K 30
39 1.1 jmcneill #define RK3328_SCLK_SDMMC_EXT 31
40 1.1 jmcneill #define RK3328_SCLK_SPI 32
41 1.1 jmcneill #define RK3328_SCLK_SDMMC 33
42 1.1 jmcneill #define RK3328_SCLK_SDIO 34
43 1.1 jmcneill #define RK3328_SCLK_EMMC 35
44 1.1 jmcneill #define RK3328_SCLK_TSADC 36
45 1.1 jmcneill #define RK3328_SCLK_SARADC 37
46 1.1 jmcneill #define RK3328_SCLK_UART0 38
47 1.1 jmcneill #define RK3328_SCLK_UART1 39
48 1.1 jmcneill #define RK3328_SCLK_UART2 40
49 1.1 jmcneill #define RK3328_SCLK_I2S0 41
50 1.1 jmcneill #define RK3328_SCLK_I2S1 42
51 1.1 jmcneill #define RK3328_SCLK_I2S2 43
52 1.1 jmcneill #define RK3328_SCLK_I2S1_OUT 44
53 1.1 jmcneill #define RK3328_SCLK_I2S2_OUT 45
54 1.1 jmcneill #define RK3328_SCLK_SPDIF 46
55 1.1 jmcneill #define RK3328_SCLK_TIMER0 47
56 1.1 jmcneill #define RK3328_SCLK_TIMER1 48
57 1.1 jmcneill #define RK3328_SCLK_TIMER2 49
58 1.1 jmcneill #define RK3328_SCLK_TIMER3 50
59 1.1 jmcneill #define RK3328_SCLK_TIMER4 51
60 1.1 jmcneill #define RK3328_SCLK_TIMER5 52
61 1.1 jmcneill #define RK3328_SCLK_WIFI 53
62 1.1 jmcneill #define RK3328_SCLK_CIF_OUT 54
63 1.1 jmcneill #define RK3328_SCLK_I2C0 55
64 1.1 jmcneill #define RK3328_SCLK_I2C1 56
65 1.1 jmcneill #define RK3328_SCLK_I2C2 57
66 1.1 jmcneill #define RK3328_SCLK_I2C3 58
67 1.1 jmcneill #define RK3328_SCLK_CRYPTO 59
68 1.1 jmcneill #define RK3328_SCLK_PWM 60
69 1.1 jmcneill #define RK3328_SCLK_PDM 61
70 1.1 jmcneill #define RK3328_SCLK_EFUSE 62
71 1.1 jmcneill #define RK3328_SCLK_OTP 63
72 1.1 jmcneill #define RK3328_SCLK_DDRCLK 64
73 1.1 jmcneill #define RK3328_SCLK_VDEC_CABAC 65
74 1.1 jmcneill #define RK3328_SCLK_VDEC_CORE 66
75 1.1 jmcneill #define RK3328_SCLK_VENC_DSP 67
76 1.1 jmcneill #define RK3328_SCLK_VENC_CORE 68
77 1.1 jmcneill #define RK3328_SCLK_RGA 69
78 1.1 jmcneill #define RK3328_SCLK_HDMI_SFC 70
79 1.1 jmcneill #define RK3328_SCLK_HDMI_CEC 71
80 1.1 jmcneill #define RK3328_SCLK_USB3_REF 72
81 1.1 jmcneill #define RK3328_SCLK_USB3_SUSPEND 73
82 1.1 jmcneill #define RK3328_SCLK_SDMMC_DRV 74
83 1.1 jmcneill #define RK3328_SCLK_SDIO_DRV 75
84 1.1 jmcneill #define RK3328_SCLK_EMMC_DRV 76
85 1.1 jmcneill #define RK3328_SCLK_SDMMC_EXT_DRV 77
86 1.1 jmcneill #define RK3328_SCLK_SDMMC_SAMPLE 78
87 1.1 jmcneill #define RK3328_SCLK_SDIO_SAMPLE 79
88 1.1 jmcneill #define RK3328_SCLK_EMMC_SAMPLE 80
89 1.1 jmcneill #define RK3328_SCLK_SDMMC_EXT_SAMPLE 81
90 1.1 jmcneill #define RK3328_SCLK_VOP 82
91 1.1 jmcneill #define RK3328_SCLK_MAC2PHY_RXTX 83
92 1.1 jmcneill #define RK3328_SCLK_MAC2PHY_SRC 84
93 1.1 jmcneill #define RK3328_SCLK_MAC2PHY_REF 85
94 1.1 jmcneill #define RK3328_SCLK_MAC2PHY_OUT 86
95 1.1 jmcneill #define RK3328_SCLK_MAC2IO_RX 87
96 1.1 jmcneill #define RK3328_SCLK_MAC2IO_TX 88
97 1.1 jmcneill #define RK3328_SCLK_MAC2IO_REFOUT 89
98 1.1 jmcneill #define RK3328_SCLK_MAC2IO_REF 90
99 1.1 jmcneill #define RK3328_SCLK_MAC2IO_OUT 91
100 1.1 jmcneill #define RK3328_SCLK_TSP 92
101 1.1 jmcneill #define RK3328_SCLK_HSADC_TSP 93
102 1.1 jmcneill #define RK3328_SCLK_USB3PHY_REF 94
103 1.1 jmcneill #define RK3328_SCLK_REF_USB3OTG 95
104 1.1 jmcneill #define RK3328_SCLK_USB3OTG_REF 96
105 1.1 jmcneill #define RK3328_SCLK_USB3OTG_SUSPEND 97
106 1.1 jmcneill #define RK3328_SCLK_REF_USB3OTG_SRC 98
107 1.1 jmcneill #define RK3328_SCLK_MAC2IO_SRC 99
108 1.1 jmcneill #define RK3328_SCLK_MAC2IO 100
109 1.1 jmcneill #define RK3328_SCLK_MAC2PHY 101
110 1.1 jmcneill #define RK3328_SCLK_MAC2IO_EXT 102
111 1.1 jmcneill #define RK3328_DCLK_LCDC 120
112 1.1 jmcneill #define RK3328_DCLK_HDMIPHY 121
113 1.1 jmcneill #define RK3328_HDMIPHY 122
114 1.1 jmcneill #define RK3328_USB480M 123
115 1.1 jmcneill #define RK3328_DCLK_LCDC_SRC 124
116 1.1 jmcneill #define RK3328_ACLK_AXISRAM 130
117 1.1 jmcneill #define RK3328_ACLK_VOP_PRE 131
118 1.1 jmcneill #define RK3328_ACLK_USB3OTG 132
119 1.1 jmcneill #define RK3328_ACLK_RGA_PRE 133
120 1.1 jmcneill #define RK3328_ACLK_DMAC 134
121 1.1 jmcneill #define RK3328_ACLK_GPU 135
122 1.1 jmcneill #define RK3328_ACLK_BUS_PRE 136
123 1.1 jmcneill #define RK3328_ACLK_PERI_PRE 137
124 1.1 jmcneill #define RK3328_ACLK_RKVDEC_PRE 138
125 1.1 jmcneill #define RK3328_ACLK_RKVDEC 139
126 1.1 jmcneill #define RK3328_ACLK_RKVENC 140
127 1.1 jmcneill #define RK3328_ACLK_VPU_PRE 141
128 1.1 jmcneill #define RK3328_ACLK_VIO_PRE 142
129 1.1 jmcneill #define RK3328_ACLK_VPU 143
130 1.1 jmcneill #define RK3328_ACLK_VIO 144
131 1.1 jmcneill #define RK3328_ACLK_VOP 145
132 1.1 jmcneill #define RK3328_ACLK_GMAC 146
133 1.1 jmcneill #define RK3328_ACLK_H265 147
134 1.1 jmcneill #define RK3328_ACLK_H264 148
135 1.1 jmcneill #define RK3328_ACLK_MAC2PHY 149
136 1.1 jmcneill #define RK3328_ACLK_MAC2IO 150
137 1.1 jmcneill #define RK3328_ACLK_DCF 151
138 1.1 jmcneill #define RK3328_ACLK_TSP 152
139 1.1 jmcneill #define RK3328_ACLK_PERI 153
140 1.1 jmcneill #define RK3328_ACLK_RGA 154
141 1.1 jmcneill #define RK3328_ACLK_IEP 155
142 1.1 jmcneill #define RK3328_ACLK_CIF 156
143 1.1 jmcneill #define RK3328_ACLK_HDCP 157
144 1.1 jmcneill #define RK3328_PCLK_GPIO0 200
145 1.1 jmcneill #define RK3328_PCLK_GPIO1 201
146 1.1 jmcneill #define RK3328_PCLK_GPIO2 202
147 1.1 jmcneill #define RK3328_PCLK_GPIO3 203
148 1.1 jmcneill #define RK3328_PCLK_GRF 204
149 1.1 jmcneill #define RK3328_PCLK_I2C0 205
150 1.1 jmcneill #define RK3328_PCLK_I2C1 206
151 1.1 jmcneill #define RK3328_PCLK_I2C2 207
152 1.1 jmcneill #define RK3328_PCLK_I2C3 208
153 1.1 jmcneill #define RK3328_PCLK_SPI 209
154 1.1 jmcneill #define RK3328_PCLK_UART0 210
155 1.1 jmcneill #define RK3328_PCLK_UART1 211
156 1.1 jmcneill #define RK3328_PCLK_UART2 212
157 1.1 jmcneill #define RK3328_PCLK_TSADC 213
158 1.1 jmcneill #define RK3328_PCLK_PWM 214
159 1.1 jmcneill #define RK3328_PCLK_TIMER 215
160 1.1 jmcneill #define RK3328_PCLK_BUS_PRE 216
161 1.1 jmcneill #define RK3328_PCLK_PERI_PRE 217
162 1.1 jmcneill #define RK3328_PCLK_HDMI_CTRL 218
163 1.1 jmcneill #define RK3328_PCLK_HDMI_PHY 219
164 1.1 jmcneill #define RK3328_PCLK_GMAC 220
165 1.1 jmcneill #define RK3328_PCLK_H265 221
166 1.1 jmcneill #define RK3328_PCLK_MAC2PHY 222
167 1.1 jmcneill #define RK3328_PCLK_MAC2IO 223
168 1.1 jmcneill #define RK3328_PCLK_USB3PHY_OTG 224
169 1.1 jmcneill #define RK3328_PCLK_USB3PHY_PIPE 225
170 1.1 jmcneill #define RK3328_PCLK_USB3_GRF 226
171 1.1 jmcneill #define RK3328_PCLK_USB2_GRF 227
172 1.1 jmcneill #define RK3328_PCLK_HDMIPHY 228
173 1.1 jmcneill #define RK3328_PCLK_DDR 229
174 1.1 jmcneill #define RK3328_PCLK_PERI 230
175 1.1 jmcneill #define RK3328_PCLK_HDMI 231
176 1.1 jmcneill #define RK3328_PCLK_HDCP 232
177 1.1 jmcneill #define RK3328_PCLK_DCF 233
178 1.1 jmcneill #define RK3328_PCLK_SARADC 234
179 1.1 jmcneill #define RK3328_HCLK_PERI 308
180 1.1 jmcneill #define RK3328_HCLK_TSP 309
181 1.1 jmcneill #define RK3328_HCLK_GMAC 310
182 1.1 jmcneill #define RK3328_HCLK_I2S0_8CH 311
183 1.2 jmcneill #define RK3328_HCLK_I2S1_8CH 312
184 1.1 jmcneill #define RK3328_HCLK_I2S2_2CH 313
185 1.1 jmcneill #define RK3328_HCLK_SPDIF_8CH 314
186 1.1 jmcneill #define RK3328_HCLK_VOP 315
187 1.1 jmcneill #define RK3328_HCLK_NANDC 316
188 1.1 jmcneill #define RK3328_HCLK_SDMMC 317
189 1.1 jmcneill #define RK3328_HCLK_SDIO 318
190 1.1 jmcneill #define RK3328_HCLK_EMMC 319
191 1.1 jmcneill #define RK3328_HCLK_SDMMC_EXT 320
192 1.1 jmcneill #define RK3328_HCLK_RKVDEC_PRE 321
193 1.1 jmcneill #define RK3328_HCLK_RKVDEC 322
194 1.1 jmcneill #define RK3328_HCLK_RKVENC 323
195 1.1 jmcneill #define RK3328_HCLK_VPU_PRE 324
196 1.1 jmcneill #define RK3328_HCLK_VIO_PRE 325
197 1.1 jmcneill #define RK3328_HCLK_VPU 326
198 1.1 jmcneill #define RK3328_HCLK_BUS_PRE 328
199 1.1 jmcneill #define RK3328_HCLK_PERI_PRE 329
200 1.1 jmcneill #define RK3328_HCLK_H264 330
201 1.1 jmcneill #define RK3328_HCLK_CIF 331
202 1.1 jmcneill #define RK3328_HCLK_OTG_PMU 332
203 1.1 jmcneill #define RK3328_HCLK_OTG 333
204 1.1 jmcneill #define RK3328_HCLK_HOST0 334
205 1.1 jmcneill #define RK3328_HCLK_HOST0_ARB 335
206 1.1 jmcneill #define RK3328_HCLK_CRYPTO_MST 336
207 1.1 jmcneill #define RK3328_HCLK_CRYPTO_SLV 337
208 1.1 jmcneill #define RK3328_HCLK_PDM 338
209 1.1 jmcneill #define RK3328_HCLK_IEP 339
210 1.1 jmcneill #define RK3328_HCLK_RGA 340
211 1.1 jmcneill #define RK3328_HCLK_HDCP 341
212 1.1 jmcneill
213 1.1 jmcneill #endif /* !_RK3328_CRU_H */
214