xref: /linux/include/dt-bindings/clock/sun5i-ccu.h (revision bfd5bb6f90af092aa345b15cd78143956a13c2a8)
1 /*
2  * Copyright 2016 Maxime Ripard
3  *
4  * Maxime Ripard <maxime.ripard@free-electrons.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  */
16 
17 #ifndef _DT_BINDINGS_CLK_SUN5I_H_
18 #define _DT_BINDINGS_CLK_SUN5I_H_
19 
20 #define CLK_HOSC		1
21 
22 #define CLK_PLL_VIDEO0_2X	9
23 
24 #define CLK_PLL_VIDEO1_2X	16
25 #define CLK_CPU			17
26 
27 #define CLK_AHB_OTG		23
28 #define CLK_AHB_EHCI		24
29 #define CLK_AHB_OHCI		25
30 #define CLK_AHB_SS		26
31 #define CLK_AHB_DMA		27
32 #define CLK_AHB_BIST		28
33 #define CLK_AHB_MMC0		29
34 #define CLK_AHB_MMC1		30
35 #define CLK_AHB_MMC2		31
36 #define CLK_AHB_NAND		32
37 #define CLK_AHB_SDRAM		33
38 #define CLK_AHB_EMAC		34
39 #define CLK_AHB_TS		35
40 #define CLK_AHB_SPI0		36
41 #define CLK_AHB_SPI1		37
42 #define CLK_AHB_SPI2		38
43 #define CLK_AHB_GPS		39
44 #define CLK_AHB_HSTIMER		40
45 #define CLK_AHB_VE		41
46 #define CLK_AHB_TVE		42
47 #define CLK_AHB_LCD		43
48 #define CLK_AHB_CSI		44
49 #define CLK_AHB_HDMI		45
50 #define CLK_AHB_DE_BE		46
51 #define CLK_AHB_DE_FE		47
52 #define CLK_AHB_IEP		48
53 #define CLK_AHB_GPU		49
54 #define CLK_APB0_CODEC		50
55 #define CLK_APB0_SPDIF		51
56 #define CLK_APB0_I2S		52
57 #define CLK_APB0_PIO		53
58 #define CLK_APB0_IR		54
59 #define CLK_APB0_KEYPAD		55
60 #define CLK_APB1_I2C0		56
61 #define CLK_APB1_I2C1		57
62 #define CLK_APB1_I2C2		58
63 #define CLK_APB1_UART0		59
64 #define CLK_APB1_UART1		60
65 #define CLK_APB1_UART2		61
66 #define CLK_APB1_UART3		62
67 #define CLK_NAND		63
68 #define CLK_MMC0		64
69 #define CLK_MMC1		65
70 #define CLK_MMC2		66
71 #define CLK_TS			67
72 #define CLK_SS			68
73 #define CLK_SPI0		69
74 #define CLK_SPI1		70
75 #define CLK_SPI2		71
76 #define CLK_IR			72
77 #define CLK_I2S			73
78 #define CLK_SPDIF		74
79 #define CLK_KEYPAD		75
80 #define CLK_USB_OHCI		76
81 #define CLK_USB_PHY0		77
82 #define CLK_USB_PHY1		78
83 #define CLK_GPS			79
84 #define CLK_DRAM_VE		80
85 #define CLK_DRAM_CSI		81
86 #define CLK_DRAM_TS		82
87 #define CLK_DRAM_TVE		83
88 #define CLK_DRAM_DE_FE		84
89 #define CLK_DRAM_DE_BE		85
90 #define CLK_DRAM_ACE		86
91 #define CLK_DRAM_IEP		87
92 #define CLK_DE_BE		88
93 #define CLK_DE_FE		89
94 #define CLK_TCON_CH0		90
95 
96 #define CLK_TCON_CH1		92
97 #define CLK_CSI			93
98 #define CLK_VE			94
99 #define CLK_CODEC		95
100 #define CLK_AVS			96
101 #define CLK_HDMI		97
102 #define CLK_GPU			98
103 
104 #define CLK_IEP			100
105 
106 #endif /* _DT_BINDINGS_CLK_SUN5I_H_ */
107