xref: /openbmc/linux/scripts/dtc/include-prefixes/dt-bindings/clock/sun9i-a80-usb.h (revision 0337966d121ebebf73a1c346123e8112796e684e)
1*439b65c4SChen-Yu Tsai /*
2*439b65c4SChen-Yu Tsai  * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
3*439b65c4SChen-Yu Tsai  *
4*439b65c4SChen-Yu Tsai  * This file is dual-licensed: you can use it either under the terms
5*439b65c4SChen-Yu Tsai  * of the GPL or the X11 license, at your option. Note that this dual
6*439b65c4SChen-Yu Tsai  * licensing only applies to this file, and not this project as a
7*439b65c4SChen-Yu Tsai  * whole.
8*439b65c4SChen-Yu Tsai  *
9*439b65c4SChen-Yu Tsai  *  a) This file is free software; you can redistribute it and/or
10*439b65c4SChen-Yu Tsai  *     modify it under the terms of the GNU General Public License as
11*439b65c4SChen-Yu Tsai  *     published by the Free Software Foundation; either version 2 of the
12*439b65c4SChen-Yu Tsai  *     License, or (at your option) any later version.
13*439b65c4SChen-Yu Tsai  *
14*439b65c4SChen-Yu Tsai  *     This file is distributed in the hope that it will be useful,
15*439b65c4SChen-Yu Tsai  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*439b65c4SChen-Yu Tsai  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*439b65c4SChen-Yu Tsai  *     GNU General Public License for more details.
18*439b65c4SChen-Yu Tsai  *
19*439b65c4SChen-Yu Tsai  * Or, alternatively,
20*439b65c4SChen-Yu Tsai  *
21*439b65c4SChen-Yu Tsai  *  b) Permission is hereby granted, free of charge, to any person
22*439b65c4SChen-Yu Tsai  *     obtaining a copy of this software and associated documentation
23*439b65c4SChen-Yu Tsai  *     files (the "Software"), to deal in the Software without
24*439b65c4SChen-Yu Tsai  *     restriction, including without limitation the rights to use,
25*439b65c4SChen-Yu Tsai  *     copy, modify, merge, publish, distribute, sublicense, and/or
26*439b65c4SChen-Yu Tsai  *     sell copies of the Software, and to permit persons to whom the
27*439b65c4SChen-Yu Tsai  *     Software is furnished to do so, subject to the following
28*439b65c4SChen-Yu Tsai  *     conditions:
29*439b65c4SChen-Yu Tsai  *
30*439b65c4SChen-Yu Tsai  *     The above copyright notice and this permission notice shall be
31*439b65c4SChen-Yu Tsai  *     included in all copies or substantial portions of the Software.
32*439b65c4SChen-Yu Tsai  *
33*439b65c4SChen-Yu Tsai  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*439b65c4SChen-Yu Tsai  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*439b65c4SChen-Yu Tsai  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*439b65c4SChen-Yu Tsai  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*439b65c4SChen-Yu Tsai  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*439b65c4SChen-Yu Tsai  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*439b65c4SChen-Yu Tsai  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*439b65c4SChen-Yu Tsai  *     OTHER DEALINGS IN THE SOFTWARE.
41*439b65c4SChen-Yu Tsai  */
42*439b65c4SChen-Yu Tsai 
43*439b65c4SChen-Yu Tsai #ifndef _DT_BINDINGS_CLOCK_SUN9I_A80_USB_H_
44*439b65c4SChen-Yu Tsai #define _DT_BINDINGS_CLOCK_SUN9I_A80_USB_H_
45*439b65c4SChen-Yu Tsai 
46*439b65c4SChen-Yu Tsai #define CLK_BUS_HCI0	0
47*439b65c4SChen-Yu Tsai #define CLK_USB_OHCI0	1
48*439b65c4SChen-Yu Tsai #define CLK_BUS_HCI1	2
49*439b65c4SChen-Yu Tsai #define CLK_BUS_HCI2	3
50*439b65c4SChen-Yu Tsai #define CLK_USB_OHCI2	4
51*439b65c4SChen-Yu Tsai 
52*439b65c4SChen-Yu Tsai #define CLK_USB0_PHY	5
53*439b65c4SChen-Yu Tsai #define CLK_USB1_HSIC	6
54*439b65c4SChen-Yu Tsai #define CLK_USB1_PHY	7
55*439b65c4SChen-Yu Tsai #define CLK_USB2_HSIC	8
56*439b65c4SChen-Yu Tsai #define CLK_USB2_PHY	9
57*439b65c4SChen-Yu Tsai #define CLK_USB_HSIC	10
58*439b65c4SChen-Yu Tsai 
59*439b65c4SChen-Yu Tsai #endif /* _DT_BINDINGS_CLOCK_SUN9I_A80_USB_H_ */
60