2 * Copyright (c) 2016 Rockchip Electronics Co. Ltd.
3 * Author: Shawn Lin <shawn.lin@rock-chips.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK1108_H
17 #define _DT_BINDINGS_CLK_ROCKCHIP_RK1108_H
25 /* sclk gates (special clocks) */
37 #define SCLK_TIMER0 78
38 #define SCLK_TIMER1 79
40 #define SCLK_SDMMC_DRV 81
41 #define SCLK_SDIO_DRV 82
42 #define SCLK_EMMC_DRV 83
43 #define SCLK_SDMMC_SAMPLE 84
44 #define SCLK_SDIO_SAMPLE 85
45 #define SCLK_EMMC_SAMPLE 86
51 #define ACLK_ENMCORE 195
54 #define PCLK_GPIO1 256
55 #define PCLK_GPIO2 257
56 #define PCLK_GPIO3 258
63 #define PCLK_UART0 265
64 #define PCLK_UART1 266
65 #define PCLK_UART2 267
66 #define PCLK_TSADC 268
68 #define PCLK_TIMER 270
72 #define HCLK_I2S0_8CH 320
73 #define HCLK_I2S1_8CH 321
74 #define HCLK_I2S2_2CH 322
75 #define HCLK_NANDC 323
76 #define HCLK_SDMMC 324
82 #define CLK_NR_CLKS (HCLK_SFC + 1)
85 #define SRST_CORE_PO_AD 0
86 #define SRST_CORE_AD 1
88 #define SRST_CPU_NIU_AD 3
89 #define SRST_CORE_PO 4
92 #define SRST_CORE_DBG 8
95 #define PRST_DBG_NIU 11
96 #define ARST_STRC_SYS_AD 15
98 #define SRST_DDRPHY_CLKDIV 16
99 #define SRST_DDRPHY 17
100 #define PRST_DDRPHY 18
101 #define PRST_HDMIPHY 19
102 #define PRST_VDACPHY 20
103 #define PRST_VADCPHY 21
104 #define PRST_MIPI_CSI_PHY 22
105 #define PRST_MIPI_DSI_PHY 23
106 #define PRST_ACODEC 24
107 #define ARST_BUS_NIU 25
108 #define PRST_TOP_NIU 26
109 #define ARST_INTMEM 27
112 #define SRST_MSCH_NIU 30
113 #define PRST_MSCH_NIU 31
115 #define PRST_DDRUPCTL 32
116 #define NRST_DDRUPCTL 33
117 #define PRST_DDRMON 34
118 #define HRST_I2S0_8CH 35
119 #define MRST_I2S0_8CH 36
120 #define HRST_I2S1_2CH 37
121 #define MRST_IS21_2CH 38
122 #define HRST_I2S2_2CH 39
123 #define MRST_I2S2_2CH 40
124 #define HRST_CRYPTO 41
125 #define SRST_CRYPTO 42
128 #define PRST_UART0 45
129 #define PRST_UART1 46
130 #define PRST_UART2 47
132 #define SRST_UART0 48
133 #define SRST_UART1 49
134 #define SRST_UART2 50
144 #define PRST_GPIO1 62
145 #define PRST_GPIO2 63
147 #define PRST_GPIO3 64
149 #define PRST_EFUSE 66
150 #define PRST_EFUSE512 67
151 #define PRST_TIMER0 68
152 #define SRST_TIMER0 69
153 #define SRST_TIMER1 70
154 #define PRST_TSADC 71
155 #define SRST_TSADC 72
156 #define PRST_SARADC 73
157 #define SRST_SARADC 74
158 #define HRST_SYSBUS 75
159 #define PRST_USBGRF 76
161 #define ARST_PERIPH_NIU 80
162 #define HRST_PERIPH_NIU 81
163 #define PRST_PERIPH_NIU 82
164 #define HRST_PERIPH 83
165 #define HRST_SDMMC 84
168 #define HRST_NANDC 87
169 #define NRST_NANDC 88
175 #define SRST_OTG_ADP 94
176 #define HRST_HOST0 95
178 #define HRST_HOST0_AUX 96
179 #define HRST_HOST0_ARB 97
180 #define SRST_HOST0_EHCIPHY 98
181 #define SRST_HOST0_UTMI 99
182 #define SRST_USBPOR 100
183 #define SRST_UTMI0 101
184 #define SRST_UTMI1 102
186 #define ARST_VIO0_NIU 102
187 #define ARST_VIO1_NIU 103
188 #define HRST_VIO_NIU 104
189 #define PRST_VIO_NIU 105
198 #define PRST_CVBS 114
199 #define PRST_HDMI 115
200 #define SRST_HDMI 116
201 #define PRST_MIPI_DSI 117
203 #define ARST_ISP_NIU 118
204 #define HRST_ISP_NIU 119
207 #define ARST_VIP0 122
208 #define HRST_VIP0 123
209 #define PRST_VIP0 124
210 #define ARST_VIP1 125
211 #define HRST_VIP1 126
212 #define PRST_VIP1 127
213 #define ARST_VIP2 128
214 #define HRST_VIP2 129
215 #define PRST_VIP2 120
216 #define ARST_VIP3 121
217 #define HRST_VIP3 122
218 #define PRST_VIP4 123
220 #define PRST_CIF1TO4 124
221 #define SRST_CVBS_CLK 125
222 #define HRST_CVBS 126
224 #define ARST_VPU_NIU 140
225 #define HRST_VPU_NIU 141
228 #define ARST_RKVDEC_NIU 144
229 #define HRST_RKVDEC_NIU 145
230 #define ARST_RKVDEC 146
231 #define HRST_RKVDEC 147
232 #define SRST_RKVDEC_CABAC 148
233 #define SRST_RKVDEC_CORE 149
234 #define ARST_RKVENC_NIU 150
235 #define HRST_RKVENC_NIU 151
236 #define ARST_RKVENC 152
237 #define HRST_RKVENC 153
238 #define SRST_RKVENC_CORE 154
240 #define SRST_DSP_CORE 156
241 #define SRST_DSP_SYS 157
242 #define SRST_DSP_GLOBAL 158
243 #define SRST_DSP_OECM 159
244 #define PRST_DSP_IOP_NIU 160
245 #define ARST_DSP_EPP_NIU 161
246 #define ARST_DSP_EDP_NIU 162
247 #define PRST_DSP_DBG_NIU 163
248 #define PRST_DSP_CFG_NIU 164
249 #define PRST_DSP_GRF 165
250 #define PRST_DSP_MAILBOX 166
251 #define PRST_DSP_INTC 167
252 #define PRST_DSP_PFM_MON 169
253 #define SRST_DSP_PFM_MON 170
254 #define ARST_DSP_EDAP_NIU 171
257 #define SRST_PMU_I2C0 173
258 #define PRST_PMU_I2C0 174
259 #define PRST_PMU_GPIO0 175
260 #define PRST_PMU_INTMEM 176
261 #define PRST_PMU_PWM0 177
262 #define SRST_PMU_PWM0 178
263 #define PRST_PMU_GRF 179
264 #define SRST_PMU_NIU 180
265 #define SRST_PMU_PVTM 181
266 #define ARST_DSP_EDP_PERF 184
267 #define ARST_DSP_EPP_PERF 185
269 #endif /* _DT_BINDINGS_CLK_ROCKCHIP_RK1108_H */