2 * Copyright (c) 2014 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
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_RK3188_COMMON_H
17 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H
19 /* core clocks from */
28 /* sclk gates (special clocks) */
36 #define SCLK_SARADC 71
46 #define SCLK_OTGPHY0 81
47 #define SCLK_OTGPHY1 82
49 #define SCLK_TIMER0 84
50 #define SCLK_TIMER1 85
51 #define SCLK_TIMER2 86
52 #define SCLK_TIMER3 87
53 #define SCLK_TIMER4 88
54 #define SCLK_TIMER5 89
55 #define SCLK_TIMER6 90
60 #define DCLK_LCDC0 190
61 #define DCLK_LCDC1 191
67 #define ACLK_LCDC0 195
68 #define ACLK_LCDC1 196
81 #define PCLK_TIMER0 322
82 #define PCLK_TIMER1 323
83 #define PCLK_TIMER2 324
84 #define PCLK_TIMER3 325
85 #define PCLK_PWM01 326
86 #define PCLK_PWM23 327
89 #define PCLK_SARADC 330
91 #define PCLK_UART0 332
92 #define PCLK_UART1 333
93 #define PCLK_UART2 334
94 #define PCLK_UART3 335
100 #define PCLK_GPIO0 341
101 #define PCLK_GPIO1 342
102 #define PCLK_GPIO2 343
103 #define PCLK_GPIO3 344
104 #define PCLK_GPIO4 345
105 #define PCLK_GPIO6 346
106 #define PCLK_EFUSE 347
107 #define PCLK_TZPC 348
108 #define PCLK_TSADC 349
110 #define PCLK_PERI 351
113 #define HCLK_SDMMC 448
114 #define HCLK_SDIO 449
115 #define HCLK_EMMC 450
116 #define HCLK_OTG0 451
117 #define HCLK_EMAC 452
118 #define HCLK_SPDIF 453
119 #define HCLK_I2S0 454
120 #define HCLK_I2S1 455
121 #define HCLK_I2S2 456
122 #define HCLK_OTG1 457
123 #define HCLK_HSIC 458
124 #define HCLK_HSADC 459
125 #define HCLK_PIDF 460
126 #define HCLK_LCDC0 461
127 #define HCLK_LCDC1 462
129 #define HCLK_CIF0 464
132 #define HCLK_NANDC0 467
134 #define HCLK_PERI 469
136 #define CLK_NR_CLKS (HCLK_PERI + 1)
138 /* soft-reset indices */
142 #define SRST_MCORE_DBG 7
143 #define SRST_CORE0_DBG 8
144 #define SRST_CORE1_DBG 9
145 #define SRST_CORE0_WDT 12
146 #define SRST_CORE1_WDT 13
147 #define SRST_STRC_SYS 14
150 #define SRST_CPU_AHB 17
151 #define SRST_AHB2APB 19
153 #define SRST_INTMEM 21
155 #define SRST_SPDIF 26
156 #define SRST_TIMER0 27
157 #define SRST_TIMER1 28
158 #define SRST_EFUSE 30
160 #define SRST_GPIO0 32
161 #define SRST_GPIO1 33
162 #define SRST_GPIO2 34
163 #define SRST_GPIO3 35
165 #define SRST_UART0 39
166 #define SRST_UART1 40
167 #define SRST_UART2 41
168 #define SRST_UART3 42
177 #define SRST_DAP_PO 50
179 #define SRST_DAP_SYS 52
180 #define SRST_TPIU_ATB 53
181 #define SRST_PMU_APB 54
184 #define SRST_PERI_AXI 57
185 #define SRST_PERI_AHB 58
186 #define SRST_PERI_APB 59
187 #define SRST_PERI_NIU 60
188 #define SRST_CPU_PERI 61
189 #define SRST_EMEM_PERI 62
190 #define SRST_USB_PERI 63
195 #define SRST_NANC0 68
196 #define SRST_USBOTG0 69
197 #define SRST_USBPHY0 70
198 #define SRST_OTGC0 71
199 #define SRST_USBOTG1 72
200 #define SRST_USBPHY1 73
201 #define SRST_OTGC1 74
202 #define SRST_HSADC 76
203 #define SRST_PIDFILTER 77
204 #define SRST_DDR_MSCH 79
207 #define SRST_SDMMC 81
213 #define SRST_SARADC 87
214 #define SRST_DDRPHY 88
215 #define SRST_DDRPHY_APB 89
216 #define SRST_DDRCTL 90
217 #define SRST_DDRCTL_APB 91
218 #define SRST_DDRPUB 93
220 #define SRST_VIO0_AXI 98
221 #define SRST_VIO0_AHB 99
222 #define SRST_LCDC0_AXI 100
223 #define SRST_LCDC0_AHB 101
224 #define SRST_LCDC0_DCLK 102
225 #define SRST_LCDC1_AXI 103
226 #define SRST_LCDC1_AHB 104
227 #define SRST_LCDC1_DCLK 105
228 #define SRST_IPP_AXI 106
229 #define SRST_IPP_AHB 107
230 #define SRST_RGA_AXI 108
231 #define SRST_RGA_AHB 109
232 #define SRST_CIF0 110
234 #define SRST_VCODEC_AXI 112
235 #define SRST_VCODEC_AHB 113
236 #define SRST_VIO1_AXI 114
237 #define SRST_VCODEC_CPU 115
238 #define SRST_VCODEC_NIU 116
240 #define SRST_GPU_NIU 122
241 #define SRST_TFUN_ATB 125
242 #define SRST_TFUN_APB 126
243 #define SRST_CTI4_APB 127
245 #define SRST_TPIU_APB 128
246 #define SRST_TRACE 129
247 #define SRST_CORE_DBG 130
248 #define SRST_DBG_APB 131
249 #define SRST_CTI0 132
250 #define SRST_CTI0_APB 133
251 #define SRST_CTI1 134
252 #define SRST_CTI1_APB 135
253 #define SRST_PTM_CORE0 136
254 #define SRST_PTM_CORE1 137
255 #define SRST_PTM0 138
256 #define SRST_PTM0_ATB 139
257 #define SRST_PTM1 140
258 #define SRST_PTM1_ATB 141