2 * Copyright (c) 2013 Tomasz Figa <tomasz.figa at gmail.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * Device Tree binding constants for Samsung S3C64xx clock controller.
11 #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C64XX_CLOCK_H
12 #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C64XX_CLOCK_H
15 * Let each exported clock get a unique index, which is used on DT-enabled
16 * platforms to lookup the clock from a clock specifier. These indices are
17 * therefore considered an ABI and so must not be changed. This implies
18 * that new clocks should be added either in free spaces between clock groups
33 /* HCLK bus clocks. */
44 #define HCLK_HSMMC2 26
45 #define HCLK_HSMMC1 27
46 #define HCLK_HSMMC0 28
54 #define HCLK_SCALER 36
65 /* PCLK bus clocks. */
69 #define PCLK_CHIPID 51
81 #define PCLK_KEYPAD 63
96 #define SCLK_MMC2_48 81
97 #define SCLK_MMC1_48 82
98 #define SCLK_MMC0_48 83
102 #define SCLK_SPI1_48 87
103 #define SCLK_SPI0_48 88
106 #define SCLK_DAC27 91
108 #define SCLK_SCALER27 93
109 #define SCLK_SCALER 94
110 #define SCLK_LCD27 95
113 #define SCLK_POST0_27 98
114 #define SCLK_AUDIO2 99
115 #define SCLK_POST0 100
116 #define SCLK_AUDIO1 101
117 #define SCLK_AUDIO0 102
118 #define SCLK_SECUR 103
119 #define SCLK_IRDA 104
120 #define SCLK_UART 105
123 #define SCLK_JPEG 108
124 #define SCLK_ONENAND 109
126 /* MEM0 bus clocks - S3C6410-specific. */
127 #define MEM0_CFCON 112
128 #define MEM0_ONENAND1 113
129 #define MEM0_ONENAND0 114
130 #define MEM0_NFCON 115
131 #define MEM0_SROM 116
134 #define MOUT_APLL 128
135 #define MOUT_MPLL 129
136 #define MOUT_EPLL 130
138 #define MOUT_AUDIO0 132
139 #define MOUT_AUDIO1 133
140 #define MOUT_UART 134
141 #define MOUT_SPI0 135
142 #define MOUT_SPI1 136
143 #define MOUT_MMC0 137
144 #define MOUT_MMC1 138
145 #define MOUT_MMC2 139
146 #define MOUT_UHOST 140
147 #define MOUT_IRDA 141
149 #define MOUT_SCALER 143
150 #define MOUT_DAC27 144
151 #define MOUT_TV27 145
152 #define MOUT_AUDIO2 146
155 #define DOUT_MPLL 160
156 #define DOUT_SECUR 161
158 #define DOUT_JPEG 163
160 #define DOUT_MMC0 165
161 #define DOUT_MMC1 166
162 #define DOUT_MMC2 167
164 #define DOUT_SCALER 169
165 #define DOUT_UHOST 170
166 #define DOUT_SPI0 171
167 #define DOUT_SPI1 172
168 #define DOUT_AUDIO0 173
169 #define DOUT_AUDIO1 174
170 #define DOUT_UART 175
171 #define DOUT_IRDA 176
172 #define DOUT_FIMC 177
173 #define DOUT_AUDIO2 178
175 /* Total number of clocks. */
176 #define NR_CLKS (DOUT_AUDIO2 + 1)
178 #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C64XX_CLOCK_H */