1274079Sngie/*	$NetBSD: sun6i-a31-ccu.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
2272343Sngie
3272343Sngie/*
4272343Sngie * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
5272343Sngie *
6272343Sngie * This file is dual-licensed: you can use it either under the terms
7272343Sngie * of the GPL or the X11 license, at your option. Note that this dual
8272343Sngie * licensing only applies to this file, and not this project as a
9272343Sngie * whole.
10272343Sngie *
11272343Sngie *  a) This file is free software; you can redistribute it and/or
12272343Sngie *     modify it under the terms of the GNU General Public License as
13272343Sngie *     published by the Free Software Foundation; either version 2 of the
14272343Sngie *     License, or (at your option) any later version.
15272343Sngie *
16272343Sngie *     This file is distributed in the hope that it will be useful,
17272343Sngie *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18272343Sngie *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19272343Sngie *     GNU General Public License for more details.
20272343Sngie *
21272343Sngie * Or, alternatively,
22272343Sngie *
23272343Sngie *  b) Permission is hereby granted, free of charge, to any person
24272343Sngie *     obtaining a copy of this software and associated documentation
25272343Sngie *     files (the "Software"), to deal in the Software without
26272343Sngie *     restriction, including without limitation the rights to use,
27272343Sngie *     copy, modify, merge, publish, distribute, sublicense, and/or
28272343Sngie *     sell copies of the Software, and to permit persons to whom the
29272343Sngie *     Software is furnished to do so, subject to the following
30272343Sngie *     conditions:
31272343Sngie *
32274079Sngie *     The above copyright notice and this permission notice shall be
33272343Sngie *     included in all copies or substantial portions of the Software.
34272343Sngie *
35272343Sngie *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36272343Sngie *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37272343Sngie *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38272343Sngie *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39272343Sngie *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40272343Sngie *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41272343Sngie *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42272343Sngie *     OTHER DEALINGS IN THE SOFTWARE.
43272343Sngie */
44272343Sngie
45272343Sngie#ifndef _DT_BINDINGS_RST_SUN6I_A31_H_
46272343Sngie#define _DT_BINDINGS_RST_SUN6I_A31_H_
47272343Sngie
48272343Sngie#define RST_USB_PHY0		0
49272343Sngie#define RST_USB_PHY1		1
50272343Sngie#define RST_USB_PHY2		2
51272343Sngie
52272343Sngie#define RST_AHB1_MIPI_DSI	3
53272343Sngie#define RST_AHB1_SS		4
54272343Sngie#define RST_AHB1_DMA		5
55272343Sngie#define RST_AHB1_MMC0		6
56272343Sngie#define RST_AHB1_MMC1		7
57272343Sngie#define RST_AHB1_MMC2		8
58272343Sngie#define RST_AHB1_MMC3		9
59272343Sngie#define RST_AHB1_NAND1		10
60272343Sngie#define RST_AHB1_NAND0		11
61272343Sngie#define RST_AHB1_SDRAM		12
62272343Sngie#define RST_AHB1_EMAC		13
63272343Sngie#define RST_AHB1_TS		14
64272343Sngie#define RST_AHB1_HSTIMER	15
65272343Sngie#define RST_AHB1_SPI0		16
66272343Sngie#define RST_AHB1_SPI1		17
67272343Sngie#define RST_AHB1_SPI2		18
68272343Sngie#define RST_AHB1_SPI3		19
69272343Sngie#define RST_AHB1_OTG		20
70272343Sngie#define RST_AHB1_EHCI0		21
71272343Sngie#define RST_AHB1_EHCI1		22
72272343Sngie#define RST_AHB1_OHCI0		23
73272343Sngie#define RST_AHB1_OHCI1		24
74272343Sngie#define RST_AHB1_OHCI2		25
75272343Sngie#define RST_AHB1_VE		26
76272343Sngie#define RST_AHB1_LCD0		27
77272343Sngie#define RST_AHB1_LCD1		28
78272343Sngie#define RST_AHB1_CSI		29
79272343Sngie#define RST_AHB1_HDMI		30
80272343Sngie#define RST_AHB1_BE0		31
81272343Sngie#define RST_AHB1_BE1		32
82272343Sngie#define RST_AHB1_FE0		33
83272343Sngie#define RST_AHB1_FE1		34
84272343Sngie#define RST_AHB1_MP		35
85272343Sngie#define RST_AHB1_GPU		36
86272343Sngie#define RST_AHB1_DEU0		37
87272343Sngie#define RST_AHB1_DEU1		38
88272343Sngie#define RST_AHB1_DRC0		39
89272343Sngie#define RST_AHB1_DRC1		40
90272343Sngie#define RST_AHB1_LVDS		41
91272343Sngie
92272343Sngie#define RST_APB1_CODEC		42
93272343Sngie#define RST_APB1_SPDIF		43
94272343Sngie#define RST_APB1_DIGITAL_MIC	44
95272343Sngie#define RST_APB1_DAUDIO0	45
96272343Sngie#define RST_APB1_DAUDIO1	46
97272343Sngie#define RST_APB2_I2C0		47
98272343Sngie#define RST_APB2_I2C1		48
99272343Sngie#define RST_APB2_I2C2		49
100272343Sngie#define RST_APB2_I2C3		50
101272343Sngie#define RST_APB2_UART0		51
102272343Sngie#define RST_APB2_UART1		52
103272343Sngie#define RST_APB2_UART2		53
104272343Sngie#define RST_APB2_UART3		54
105272343Sngie#define RST_APB2_UART4		55
106272343Sngie#define RST_APB2_UART5		56
107272343Sngie
108272343Sngie#endif /* _DT_BINDINGS_RST_SUN6I_A31_H_ */
109272343Sngie