xref: /netbsd-src/sys/arch/arm/sunxi/sun4i_a10_ccu.h (revision 6dec99e3f11725b5ae291561ae43305452a520c3)
1*6dec99e3Sjmcneill /* $NetBSD: sun4i_a10_ccu.h,v 1.1 2017/10/06 21:09:21 jmcneill Exp $ */
2*6dec99e3Sjmcneill 
3*6dec99e3Sjmcneill /*-
4*6dec99e3Sjmcneill  * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
5*6dec99e3Sjmcneill  * All rights reserved.
6*6dec99e3Sjmcneill  *
7*6dec99e3Sjmcneill  * Redistribution and use in source and binary forms, with or without
8*6dec99e3Sjmcneill  * modification, are permitted provided that the following conditions
9*6dec99e3Sjmcneill  * are met:
10*6dec99e3Sjmcneill  * 1. Redistributions of source code must retain the above copyright
11*6dec99e3Sjmcneill  *    notice, this list of conditions and the following disclaimer.
12*6dec99e3Sjmcneill  * 2. Redistributions in binary form must reproduce the above copyright
13*6dec99e3Sjmcneill  *    notice, this list of conditions and the following disclaimer in the
14*6dec99e3Sjmcneill  *    documentation and/or other materials provided with the distribution.
15*6dec99e3Sjmcneill  *
16*6dec99e3Sjmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17*6dec99e3Sjmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18*6dec99e3Sjmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19*6dec99e3Sjmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20*6dec99e3Sjmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21*6dec99e3Sjmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22*6dec99e3Sjmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23*6dec99e3Sjmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24*6dec99e3Sjmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*6dec99e3Sjmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*6dec99e3Sjmcneill  * SUCH DAMAGE.
27*6dec99e3Sjmcneill  */
28*6dec99e3Sjmcneill 
29*6dec99e3Sjmcneill #ifndef _SUN4I_A10_CCU_H
30*6dec99e3Sjmcneill #define _SUN4I_A10_CCU_H
31*6dec99e3Sjmcneill 
32*6dec99e3Sjmcneill #define	A10_RST_USB_PHY0	1
33*6dec99e3Sjmcneill #define	A10_RST_USB_PHY1	2
34*6dec99e3Sjmcneill #define	A10_RST_USB_PHY2	3
35*6dec99e3Sjmcneill #define	A10_RST_GPS		4
36*6dec99e3Sjmcneill #define	A10_RST_DE_BE0		5
37*6dec99e3Sjmcneill #define	A10_RST_DE_BE1		6
38*6dec99e3Sjmcneill #define	A10_RST_DE_FE0		7
39*6dec99e3Sjmcneill #define	A10_RST_DE_FE1		8
40*6dec99e3Sjmcneill #define	A10_RST_DE_MP		9
41*6dec99e3Sjmcneill #define	A10_RST_TVE0		10
42*6dec99e3Sjmcneill #define	A10_RST_TCON0		11
43*6dec99e3Sjmcneill #define	A10_RST_TVE1		12
44*6dec99e3Sjmcneill #define	A10_RST_TCON1		13
45*6dec99e3Sjmcneill #define	A10_RST_CSI0		14
46*6dec99e3Sjmcneill #define	A10_RST_CSI1		15
47*6dec99e3Sjmcneill #define	A10_RST_VE		16
48*6dec99e3Sjmcneill #define	A10_RST_ACE		17
49*6dec99e3Sjmcneill #define	A10_RST_LVDS		18
50*6dec99e3Sjmcneill #define	A10_RST_GPU		19
51*6dec99e3Sjmcneill #define	A10_RST_HDMI_H		20
52*6dec99e3Sjmcneill #define	A10_RST_HDMI_SYS	21
53*6dec99e3Sjmcneill #define	A10_RST_HDMI_AUDIO_DM	22
54*6dec99e3Sjmcneill 
55*6dec99e3Sjmcneill #define	A10_CLK_HOSC		1
56*6dec99e3Sjmcneill #define	A10_CLK_PLL_CORE	2
57*6dec99e3Sjmcneill #define	A10_CLK_PLL_AUDIO_BASE	3
58*6dec99e3Sjmcneill #define	A10_CLK_PLL_AUDIO	4
59*6dec99e3Sjmcneill #define	A10_CLK_PLL_AUDIO_2X	5
60*6dec99e3Sjmcneill #define	A10_CLK_PLL_AUDIO_4X	6
61*6dec99e3Sjmcneill #define	A10_CLK_PLL_AUDIO_8X	7
62*6dec99e3Sjmcneill #define	A10_CLK_PLL_VIDEO0	8
63*6dec99e3Sjmcneill #define	A10_CLK_PLL_VIDEO0_2X	9
64*6dec99e3Sjmcneill #define	A10_CLK_PLL_VE		10
65*6dec99e3Sjmcneill #define	A10_CLK_PLL_DDR_BASE	11
66*6dec99e3Sjmcneill #define	A10_CLK_PLL_DDR		12
67*6dec99e3Sjmcneill #define	A10_CLK_PLL_DDR_OTHER	13
68*6dec99e3Sjmcneill #define	A10_CLK_PLL_PERIPH_BASE	14
69*6dec99e3Sjmcneill #define	A10_CLK_PLL_PERIPH	15
70*6dec99e3Sjmcneill #define	A10_CLK_PLL_PERIPH_SATA	16
71*6dec99e3Sjmcneill #define	A10_CLK_PLL_VIDEO1	17
72*6dec99e3Sjmcneill #define	A10_CLK_PLL_VIDEO1_2X	18
73*6dec99e3Sjmcneill #define	A10_CLK_PLL_GPU		19
74*6dec99e3Sjmcneill #define	A10_CLK_CPU		20
75*6dec99e3Sjmcneill #define	A10_CLK_AXI		21
76*6dec99e3Sjmcneill #define	A10_CLK_AXI_DRAM	22
77*6dec99e3Sjmcneill #define	A10_CLK_AHB		23
78*6dec99e3Sjmcneill #define	A10_CLK_APB0		24
79*6dec99e3Sjmcneill #define	A10_CLK_APB1		25
80*6dec99e3Sjmcneill #define	A10_CLK_AHB_OTG		26
81*6dec99e3Sjmcneill #define	A10_CLK_AHB_EHCI0	27
82*6dec99e3Sjmcneill #define	A10_CLK_AHB_OHCI0	28
83*6dec99e3Sjmcneill #define	A10_CLK_AHB_EHCI1	29
84*6dec99e3Sjmcneill #define	A10_CLK_AHB_OHCI1	30
85*6dec99e3Sjmcneill #define	A10_CLK_AHB_SS		31
86*6dec99e3Sjmcneill #define	A10_CLK_AHB_DMA		32
87*6dec99e3Sjmcneill #define	A10_CLK_AHB_BIST	33
88*6dec99e3Sjmcneill #define	A10_CLK_AHB_MMC0	34
89*6dec99e3Sjmcneill #define	A10_CLK_AHB_MMC1	35
90*6dec99e3Sjmcneill #define	A10_CLK_AHB_MMC2	36
91*6dec99e3Sjmcneill #define	A10_CLK_AHB_MMC3	37
92*6dec99e3Sjmcneill #define	A10_CLK_AHB_MS		38
93*6dec99e3Sjmcneill #define	A10_CLK_AHB_NAND	39
94*6dec99e3Sjmcneill #define	A10_CLK_AHB_SDRAM	40
95*6dec99e3Sjmcneill #define	A10_CLK_AHB_ACE		41
96*6dec99e3Sjmcneill #define	A10_CLK_AHB_EMAC	42
97*6dec99e3Sjmcneill #define	A10_CLK_AHB_TS		43
98*6dec99e3Sjmcneill #define	A10_CLK_AHB_SPI0	44
99*6dec99e3Sjmcneill #define	A10_CLK_AHB_SPI1	45
100*6dec99e3Sjmcneill #define	A10_CLK_AHB_SPI2	46
101*6dec99e3Sjmcneill #define	A10_CLK_AHB_SPI3	47
102*6dec99e3Sjmcneill #define	A10_CLK_AHB_PATA	48
103*6dec99e3Sjmcneill #define	A10_CLK_AHB_SATA	49
104*6dec99e3Sjmcneill #define	A10_CLK_AHB_GPS		50
105*6dec99e3Sjmcneill #define	A10_CLK_AHB_HSTIMER	51
106*6dec99e3Sjmcneill #define	A10_CLK_AHB_VE		52
107*6dec99e3Sjmcneill #define	A10_CLK_AHB_TVD		53
108*6dec99e3Sjmcneill #define	A10_CLK_AHB_TVE0	54
109*6dec99e3Sjmcneill #define	A10_CLK_AHB_TVE1	55
110*6dec99e3Sjmcneill #define	A10_CLK_AHB_LCD0	56
111*6dec99e3Sjmcneill #define	A10_CLK_AHB_LCD1	57
112*6dec99e3Sjmcneill #define	A10_CLK_AHB_CSI0	58
113*6dec99e3Sjmcneill #define	A10_CLK_AHB_CSI1	59
114*6dec99e3Sjmcneill #define	A10_CLK_AHB_HDMI0	60
115*6dec99e3Sjmcneill #define	A10_CLK_AHB_HDMI1	61
116*6dec99e3Sjmcneill #define	A10_CLK_AHB_DE_BE0	62
117*6dec99e3Sjmcneill #define	A10_CLK_AHB_DE_BE1	63
118*6dec99e3Sjmcneill #define	A10_CLK_AHB_DE_FE0	64
119*6dec99e3Sjmcneill #define	A10_CLK_AHB_DE_FE1	65
120*6dec99e3Sjmcneill #define	A10_CLK_AHB_GMAC	66
121*6dec99e3Sjmcneill #define	A10_CLK_AHB_MP		67
122*6dec99e3Sjmcneill #define	A10_CLK_AHB_GPU		68
123*6dec99e3Sjmcneill #define	A10_CLK_APB0_CODEC	69
124*6dec99e3Sjmcneill #define	A10_CLK_APB0_SPDIF	70
125*6dec99e3Sjmcneill #define	A10_CLK_APB0_I2S0	71
126*6dec99e3Sjmcneill #define	A10_CLK_APB0_AC97	72
127*6dec99e3Sjmcneill #define	A10_CLK_APB0_I2S1	73
128*6dec99e3Sjmcneill #define	A10_CLK_APB0_PIO	74
129*6dec99e3Sjmcneill #define	A10_CLK_APB0_IR0	75
130*6dec99e3Sjmcneill #define	A10_CLK_APB0_IR1	76
131*6dec99e3Sjmcneill #define	A10_CLK_APB0_I2S2	77
132*6dec99e3Sjmcneill #define	A10_CLK_APB0_KEYPAD	78
133*6dec99e3Sjmcneill #define	A10_CLK_APB1_I2C0	79
134*6dec99e3Sjmcneill #define	A10_CLK_APB1_I2C1	80
135*6dec99e3Sjmcneill #define	A10_CLK_APB1_I2C2	81
136*6dec99e3Sjmcneill #define	A10_CLK_APB1_I2C3	82
137*6dec99e3Sjmcneill #define	A10_CLK_APB1_CAN	83
138*6dec99e3Sjmcneill #define	A10_CLK_APB1_SCR	84
139*6dec99e3Sjmcneill #define	A10_CLK_APB1_PS20	85
140*6dec99e3Sjmcneill #define	A10_CLK_APB1_PS21	86
141*6dec99e3Sjmcneill #define	A10_CLK_APB1_I2C4	87
142*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART0	88
143*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART1	89
144*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART2	90
145*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART3	91
146*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART4	92
147*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART5	93
148*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART6	94
149*6dec99e3Sjmcneill #define	A10_CLK_APB1_UART7	95
150*6dec99e3Sjmcneill #define	A10_CLK_NAND		96
151*6dec99e3Sjmcneill #define	A10_CLK_MS		97
152*6dec99e3Sjmcneill #define	A10_CLK_MMC0		98
153*6dec99e3Sjmcneill #define	A10_CLK_MMC0_OUTPUT	99
154*6dec99e3Sjmcneill #define	A10_CLK_MMC0_SAMPLE	100
155*6dec99e3Sjmcneill #define	A10_CLK_MMC1		101
156*6dec99e3Sjmcneill #define	A10_CLK_MMC1_OUTPUT	102
157*6dec99e3Sjmcneill #define	A10_CLK_MMC1_SAMPLE	103
158*6dec99e3Sjmcneill #define	A10_CLK_MMC2		104
159*6dec99e3Sjmcneill #define	A10_CLK_MMC2_OUTPUT	105
160*6dec99e3Sjmcneill #define	A10_CLK_MMC2_SAMPLE	106
161*6dec99e3Sjmcneill #define	A10_CLK_MMC3		107
162*6dec99e3Sjmcneill #define	A10_CLK_MMC3_OUTPUT	108
163*6dec99e3Sjmcneill #define	A10_CLK_MMC3_SAMPLE	109
164*6dec99e3Sjmcneill #define	A10_CLK_TS		110
165*6dec99e3Sjmcneill #define	A10_CLK_SS		111
166*6dec99e3Sjmcneill #define	A10_CLK_SPI0		112
167*6dec99e3Sjmcneill #define	A10_CLK_SPI1		113
168*6dec99e3Sjmcneill #define	A10_CLK_SPI2		114
169*6dec99e3Sjmcneill #define	A10_CLK_PATA		115
170*6dec99e3Sjmcneill #define	A10_CLK_IR0		116
171*6dec99e3Sjmcneill #define	A10_CLK_IR1		117
172*6dec99e3Sjmcneill #define	A10_CLK_I2S0		118
173*6dec99e3Sjmcneill #define	A10_CLK_AC97		119
174*6dec99e3Sjmcneill #define	A10_CLK_SPDIF		120
175*6dec99e3Sjmcneill #define	A10_CLK_KEYPAD		121
176*6dec99e3Sjmcneill #define	A10_CLK_SATA		122
177*6dec99e3Sjmcneill #define	A10_CLK_USB_OHCI0	123
178*6dec99e3Sjmcneill #define	A10_CLK_USB_OHCI1	124
179*6dec99e3Sjmcneill #define	A10_CLK_USB_PHY		125
180*6dec99e3Sjmcneill #define	A10_CLK_GPS		126
181*6dec99e3Sjmcneill #define	A10_CLK_SPI3		127
182*6dec99e3Sjmcneill #define	A10_CLK_I2S1		128
183*6dec99e3Sjmcneill #define	A10_CLK_I2S2		129
184*6dec99e3Sjmcneill #define	A10_CLK_DRAM_VE		130
185*6dec99e3Sjmcneill #define	A10_CLK_DRAM_CSI0	131
186*6dec99e3Sjmcneill #define	A10_CLK_DRAM_CSI1	132
187*6dec99e3Sjmcneill #define	A10_CLK_DRAM_TS		133
188*6dec99e3Sjmcneill #define	A10_CLK_DRAM_TVD	134
189*6dec99e3Sjmcneill #define	A10_CLK_DRAM_TVE0	135
190*6dec99e3Sjmcneill #define	A10_CLK_DRAM_TVE1	136
191*6dec99e3Sjmcneill #define	A10_CLK_DRAM_OUT	137
192*6dec99e3Sjmcneill #define	A10_CLK_DRAM_DE_FE1	138
193*6dec99e3Sjmcneill #define	A10_CLK_DRAM_DE_FE0	139
194*6dec99e3Sjmcneill #define	A10_CLK_DRAM_DE_BE0	140
195*6dec99e3Sjmcneill #define	A10_CLK_DRAM_DE_BE1	141
196*6dec99e3Sjmcneill #define	A10_CLK_DRAM_MP		142
197*6dec99e3Sjmcneill #define	A10_CLK_DRAM_ACE	143
198*6dec99e3Sjmcneill #define	A10_CLK_DE_BE0		144
199*6dec99e3Sjmcneill #define	A10_CLK_DE_BE1		145
200*6dec99e3Sjmcneill #define	A10_CLK_DE_FE0		146
201*6dec99e3Sjmcneill #define	A10_CLK_DE_FE1		147
202*6dec99e3Sjmcneill #define	A10_CLK_DE_MP		148
203*6dec99e3Sjmcneill #define	A10_CLK_TCON0_CH0	149
204*6dec99e3Sjmcneill #define	A10_CLK_TCON1_CH0	150
205*6dec99e3Sjmcneill #define	A10_CLK_CSI_SCLK	151
206*6dec99e3Sjmcneill #define	A10_CLK_TVD_SCLK2	152
207*6dec99e3Sjmcneill #define	A10_CLK_TVD		153
208*6dec99e3Sjmcneill #define	A10_CLK_TCON0_CH1_SCLK2	154
209*6dec99e3Sjmcneill #define	A10_CLK_TCON0_CH1	155
210*6dec99e3Sjmcneill #define	A10_CLK_TCON1_CH1_SCLK2	156
211*6dec99e3Sjmcneill #define	A10_CLK_TCON1_CH1	157
212*6dec99e3Sjmcneill #define	A10_CLK_CSI0		158
213*6dec99e3Sjmcneill #define	A10_CLK_CSI1		159
214*6dec99e3Sjmcneill #define	A10_CLK_CODEC		160
215*6dec99e3Sjmcneill #define	A10_CLK_VE		161
216*6dec99e3Sjmcneill #define	A10_CLK_AVS		162
217*6dec99e3Sjmcneill #define	A10_CLK_ACE		163
218*6dec99e3Sjmcneill #define	A10_CLK_HDMI		164
219*6dec99e3Sjmcneill #define	A10_CLK_GPU		165
220*6dec99e3Sjmcneill 
221*6dec99e3Sjmcneill #endif /* !_SUN4I_A10_CCU_H */
222