Go to the documentation of this file.
29 #ifndef __ARCH_ARM_MACH_OMAP2_OPP2XXX_H
30 #define __ARCH_ARM_MACH_OMAP2_OPP2XXX_H
59 #define RX_CLKSEL_DSS1 (0x10 << 8)
60 #define RX_CLKSEL_DSS2 (0x0 << 13)
61 #define RX_CLKSEL_SSI (0x5 << 20)
68 #define R1_CLKSEL_L3 (4 << 0)
69 #define R1_CLKSEL_L4 (2 << 5)
70 #define R1_CLKSEL_USB (4 << 25)
71 #define R1_CM_CLKSEL1_CORE_VAL (R1_CLKSEL_USB | RX_CLKSEL_SSI | \
72 RX_CLKSEL_DSS2 | RX_CLKSEL_DSS1 | \
73 R1_CLKSEL_L4 | R1_CLKSEL_L3)
74 #define R1_CLKSEL_MPU (2 << 0)
75 #define R1_CM_CLKSEL_MPU_VAL R1_CLKSEL_MPU
76 #define R1_CLKSEL_DSP (2 << 0)
77 #define R1_CLKSEL_DSP_IF (2 << 5)
78 #define R1_CM_CLKSEL_DSP_VAL (R1_CLKSEL_DSP | R1_CLKSEL_DSP_IF)
79 #define R1_CLKSEL_GFX (2 << 0)
80 #define R1_CM_CLKSEL_GFX_VAL R1_CLKSEL_GFX
81 #define R1_CLKSEL_MDM (4 << 0)
82 #define R1_CM_CLKSEL_MDM_VAL R1_CLKSEL_MDM
85 #define R2_CLKSEL_L3 (6 << 0)
86 #define R2_CLKSEL_L4 (2 << 5)
87 #define R2_CLKSEL_USB (2 << 25)
88 #define R2_CM_CLKSEL1_CORE_VAL (R2_CLKSEL_USB | RX_CLKSEL_SSI | \
89 RX_CLKSEL_DSS2 | RX_CLKSEL_DSS1 | \
90 R2_CLKSEL_L4 | R2_CLKSEL_L3)
91 #define R2_CLKSEL_MPU (2 << 0)
92 #define R2_CM_CLKSEL_MPU_VAL R2_CLKSEL_MPU
93 #define R2_CLKSEL_DSP (2 << 0)
94 #define R2_CLKSEL_DSP_IF (3 << 5)
95 #define R2_CM_CLKSEL_DSP_VAL (R2_CLKSEL_DSP | R2_CLKSEL_DSP_IF)
96 #define R2_CLKSEL_GFX (2 << 0)
97 #define R2_CM_CLKSEL_GFX_VAL R2_CLKSEL_GFX
98 #define R2_CLKSEL_MDM (6 << 0)
99 #define R2_CM_CLKSEL_MDM_VAL R2_CLKSEL_MDM
102 #define RB_CLKSEL_L3 (1 << 0)
103 #define RB_CLKSEL_L4 (1 << 5)
104 #define RB_CLKSEL_USB (1 << 25)
105 #define RB_CM_CLKSEL1_CORE_VAL (RB_CLKSEL_USB | RX_CLKSEL_SSI | \
106 RX_CLKSEL_DSS2 | RX_CLKSEL_DSS1 | \
107 RB_CLKSEL_L4 | RB_CLKSEL_L3)
108 #define RB_CLKSEL_MPU (1 << 0)
109 #define RB_CM_CLKSEL_MPU_VAL RB_CLKSEL_MPU
110 #define RB_CLKSEL_DSP (1 << 0)
111 #define RB_CLKSEL_DSP_IF (1 << 5)
112 #define RB_CM_CLKSEL_DSP_VAL (RB_CLKSEL_DSP | RB_CLKSEL_DSP_IF)
113 #define RB_CLKSEL_GFX (1 << 0)
114 #define RB_CM_CLKSEL_GFX_VAL RB_CLKSEL_GFX
115 #define RB_CLKSEL_MDM (1 << 0)
116 #define RB_CM_CLKSEL_MDM_VAL RB_CLKSEL_MDM
119 #define RXX_CLKSEL_VLYNQ (0x12 << 15)
120 #define RXX_CLKSEL_SSI (0x8 << 20)
123 #define RIII_CLKSEL_L3 (4 << 0)
124 #define RIII_CLKSEL_L4 (2 << 5)
125 #define RIII_CLKSEL_USB (4 << 25)
126 #define RIII_CM_CLKSEL1_CORE_VAL (RIII_CLKSEL_USB | RXX_CLKSEL_SSI | \
127 RXX_CLKSEL_VLYNQ | RX_CLKSEL_DSS2 | \
128 RX_CLKSEL_DSS1 | RIII_CLKSEL_L4 | \
130 #define RIII_CLKSEL_MPU (2 << 0)
131 #define RIII_CM_CLKSEL_MPU_VAL RIII_CLKSEL_MPU
132 #define RIII_CLKSEL_DSP (3 << 0)
133 #define RIII_CLKSEL_DSP_IF (2 << 5)
134 #define RIII_SYNC_DSP (1 << 7)
135 #define RIII_CLKSEL_IVA (6 << 8)
136 #define RIII_SYNC_IVA (1 << 13)
137 #define RIII_CM_CLKSEL_DSP_VAL (RIII_SYNC_IVA | RIII_CLKSEL_IVA | \
138 RIII_SYNC_DSP | RIII_CLKSEL_DSP_IF | \
140 #define RIII_CLKSEL_GFX (2 << 0)
141 #define RIII_CM_CLKSEL_GFX_VAL RIII_CLKSEL_GFX
144 #define RII_CLKSEL_L3 (6 << 0)
145 #define RII_CLKSEL_L4 (2 << 5)
146 #define RII_CLKSEL_USB (2 << 25)
147 #define RII_CM_CLKSEL1_CORE_VAL (RII_CLKSEL_USB | RXX_CLKSEL_SSI | \
148 RXX_CLKSEL_VLYNQ | RX_CLKSEL_DSS2 | \
149 RX_CLKSEL_DSS1 | RII_CLKSEL_L4 | \
151 #define RII_CLKSEL_MPU (2 << 0)
152 #define RII_CM_CLKSEL_MPU_VAL RII_CLKSEL_MPU
153 #define RII_CLKSEL_DSP (3 << 0)
154 #define RII_CLKSEL_DSP_IF (2 << 5)
155 #define RII_SYNC_DSP (0 << 7)
156 #define RII_CLKSEL_IVA (3 << 8)
157 #define RII_SYNC_IVA (0 << 13)
158 #define RII_CM_CLKSEL_DSP_VAL (RII_SYNC_IVA | RII_CLKSEL_IVA | \
159 RII_SYNC_DSP | RII_CLKSEL_DSP_IF | \
161 #define RII_CLKSEL_GFX (2 << 0)
162 #define RII_CM_CLKSEL_GFX_VAL RII_CLKSEL_GFX
165 #define RI_CLKSEL_L3 (4 << 0)
166 #define RI_CLKSEL_L4 (2 << 5)
167 #define RI_CLKSEL_USB (4 << 25)
168 #define RI_CM_CLKSEL1_CORE_VAL (RI_CLKSEL_USB | \
169 RXX_CLKSEL_SSI | RXX_CLKSEL_VLYNQ | \
170 RX_CLKSEL_DSS2 | RX_CLKSEL_DSS1 | \
171 RI_CLKSEL_L4 | RI_CLKSEL_L3)
172 #define RI_CLKSEL_MPU (2 << 0)
173 #define RI_CM_CLKSEL_MPU_VAL RI_CLKSEL_MPU
174 #define RI_CLKSEL_DSP (3 << 0)
175 #define RI_CLKSEL_DSP_IF (2 << 5)
176 #define RI_SYNC_DSP (1 << 7)
177 #define RI_CLKSEL_IVA (4 << 8)
178 #define RI_SYNC_IVA (0 << 13)
179 #define RI_CM_CLKSEL_DSP_VAL (RI_SYNC_IVA | RI_CLKSEL_IVA | \
180 RI_SYNC_DSP | RI_CLKSEL_DSP_IF | \
182 #define RI_CLKSEL_GFX (1 << 0)
183 #define RI_CM_CLKSEL_GFX_VAL RI_CLKSEL_GFX
186 #define RVII_CLKSEL_L3 (1 << 0)
187 #define RVII_CLKSEL_L4 (1 << 5)
188 #define RVII_CLKSEL_DSS1 (1 << 8)
189 #define RVII_CLKSEL_DSS2 (0 << 13)
190 #define RVII_CLKSEL_VLYNQ (1 << 15)
191 #define RVII_CLKSEL_SSI (1 << 20)
192 #define RVII_CLKSEL_USB (1 << 25)
194 #define RVII_CM_CLKSEL1_CORE_VAL (RVII_CLKSEL_USB | RVII_CLKSEL_SSI | \
195 RVII_CLKSEL_VLYNQ | \
196 RVII_CLKSEL_DSS2 | RVII_CLKSEL_DSS1 | \
197 RVII_CLKSEL_L4 | RVII_CLKSEL_L3)
199 #define RVII_CLKSEL_MPU (1 << 0)
200 #define RVII_CM_CLKSEL_MPU_VAL RVII_CLKSEL_MPU
202 #define RVII_CLKSEL_DSP (1 << 0)
203 #define RVII_CLKSEL_DSP_IF (1 << 5)
204 #define RVII_SYNC_DSP (0 << 7)
205 #define RVII_CLKSEL_IVA (1 << 8)
206 #define RVII_SYNC_IVA (0 << 13)
207 #define RVII_CM_CLKSEL_DSP_VAL (RVII_SYNC_IVA | RVII_CLKSEL_IVA | \
208 RVII_SYNC_DSP | RVII_CLKSEL_DSP_IF | \
211 #define RVII_CLKSEL_GFX (1 << 0)
212 #define RVII_CM_CLKSEL_GFX_VAL RVII_CLKSEL_GFX
221 #define MX_48M_SRC (0 << 3)
222 #define MX_54M_SRC (0 << 5)
223 #define MX_APLLS_CLIKIN_12 (3 << 23)
224 #define MX_APLLS_CLIKIN_13 (2 << 23)
225 #define MX_APLLS_CLIKIN_19_2 (0 << 23)
231 #define M5A_DPLL_MULT_12 (133 << 12)
232 #define M5A_DPLL_DIV_12 (5 << 8)
233 #define M5A_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
234 M5A_DPLL_DIV_12 | M5A_DPLL_MULT_12 | \
236 #define M5A_DPLL_MULT_13 (61 << 12)
237 #define M5A_DPLL_DIV_13 (2 << 8)
238 #define M5A_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
239 M5A_DPLL_DIV_13 | M5A_DPLL_MULT_13 | \
241 #define M5A_DPLL_MULT_19 (55 << 12)
242 #define M5A_DPLL_DIV_19 (3 << 8)
243 #define M5A_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
244 M5A_DPLL_DIV_19 | M5A_DPLL_MULT_19 | \
245 MX_APLLS_CLIKIN_19_2)
247 #define M5B_DPLL_MULT_12 (50 << 12)
248 #define M5B_DPLL_DIV_12 (2 << 8)
249 #define M5B_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
250 M5B_DPLL_DIV_12 | M5B_DPLL_MULT_12 | \
252 #define M5B_DPLL_MULT_13 (200 << 12)
253 #define M5B_DPLL_DIV_13 (12 << 8)
255 #define M5B_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
256 M5B_DPLL_DIV_13 | M5B_DPLL_MULT_13 | \
258 #define M5B_DPLL_MULT_19 (125 << 12)
259 #define M5B_DPLL_DIV_19 (31 << 8)
260 #define M5B_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
261 M5B_DPLL_DIV_19 | M5B_DPLL_MULT_19 | \
262 MX_APLLS_CLIKIN_19_2)
266 #define M4_DPLL_MULT_12 (133 << 12)
267 #define M4_DPLL_DIV_12 (3 << 8)
268 #define M4_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
269 M4_DPLL_DIV_12 | M4_DPLL_MULT_12 | \
272 #define M4_DPLL_MULT_13 (399 << 12)
273 #define M4_DPLL_DIV_13 (12 << 8)
274 #define M4_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
275 M4_DPLL_DIV_13 | M4_DPLL_MULT_13 | \
278 #define M4_DPLL_MULT_19 (145 << 12)
279 #define M4_DPLL_DIV_19 (6 << 8)
280 #define M4_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
281 M4_DPLL_DIV_19 | M4_DPLL_MULT_19 | \
282 MX_APLLS_CLIKIN_19_2)
287 #define M3_DPLL_MULT_12 (55 << 12)
288 #define M3_DPLL_DIV_12 (1 << 8)
289 #define M3_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
290 M3_DPLL_DIV_12 | M3_DPLL_MULT_12 | \
292 #define M3_DPLL_MULT_13 (76 << 12)
293 #define M3_DPLL_DIV_13 (2 << 8)
294 #define M3_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
295 M3_DPLL_DIV_13 | M3_DPLL_MULT_13 | \
297 #define M3_DPLL_MULT_19 (17 << 12)
298 #define M3_DPLL_DIV_19 (0 << 8)
299 #define M3_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
300 M3_DPLL_DIV_19 | M3_DPLL_MULT_19 | \
301 MX_APLLS_CLIKIN_19_2)
306 #define M2_DPLL_MULT_12 (55 << 12)
307 #define M2_DPLL_DIV_12 (1 << 8)
308 #define M2_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
309 M2_DPLL_DIV_12 | M2_DPLL_MULT_12 | \
315 #define M2_DPLL_MULT_13 (76 << 12)
316 #define M2_DPLL_DIV_13 (2 << 8)
317 #define M2_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
318 M2_DPLL_DIV_13 | M2_DPLL_MULT_13 | \
321 #define M2_DPLL_MULT_19 (17 << 12)
322 #define M2_DPLL_DIV_19 (0 << 8)
323 #define M2_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
324 M2_DPLL_DIV_19 | M2_DPLL_MULT_19 | \
325 MX_APLLS_CLIKIN_19_2)
328 #define MB_DPLL_MULT (1 << 12)
329 #define MB_DPLL_DIV (0 << 8)
330 #define MB_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
331 MB_DPLL_DIV | MB_DPLL_MULT | \
334 #define MB_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
335 MB_DPLL_DIV | MB_DPLL_MULT | \
338 #define MB_CM_CLKSEL1_PLL_19_VAL (MX_48M_SRC | MX_54M_SRC | \
339 MB_DPLL_DIV | MB_DPLL_MULT | \
353 #define MI_DPLL_MULT_12 (55 << 12)
354 #define MI_DPLL_DIV_12 (1 << 8)
355 #define MI_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
356 MI_DPLL_DIV_12 | MI_DPLL_MULT_12 | \
363 #define MII_DPLL_MULT_12 (50 << 12)
364 #define MII_DPLL_DIV_12 (1 << 8)
365 #define MII_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
366 MII_DPLL_DIV_12 | MII_DPLL_MULT_12 | \
368 #define MII_DPLL_MULT_13 (300 << 12)
369 #define MII_DPLL_DIV_13 (12 << 8)
370 #define MII_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
371 MII_DPLL_DIV_13 | MII_DPLL_MULT_13 | \
375 #define MIII_DPLL_MULT_12 (133 << 12)
376 #define MIII_DPLL_DIV_12 (5 << 8)
377 #define MIII_CM_CLKSEL1_PLL_12_VAL (MX_48M_SRC | MX_54M_SRC | \
379 MIII_DPLL_MULT_12 | MX_APLLS_CLIKIN_12)
380 #define MIII_DPLL_MULT_13 (266 << 12)
381 #define MIII_DPLL_DIV_13 (12 << 8)
382 #define MIII_CM_CLKSEL1_PLL_13_VAL (MX_48M_SRC | MX_54M_SRC | \
384 MIII_DPLL_MULT_13 | MX_APLLS_CLIKIN_13)
387 #define MVII_CM_CLKSEL1_PLL_12_VAL MB_CM_CLKSEL1_PLL_12_VAL
388 #define MVII_CM_CLKSEL1_PLL_13_VAL MB_CM_CLKSEL1_PLL_13_VAL
391 #define MX_CLKSEL2_PLL_2x_VAL (2 << 0)
392 #define MX_CLKSEL2_PLL_1x_VAL (1 << 0)
395 #define S12M 12000000
396 #define S13M 13000000
397 #define S19M 19200000
398 #define S26M 26000000
399 #define S100M 100000000
400 #define S133M 133000000
401 #define S150M 150000000
402 #define S164M 164000000
403 #define S165M 165000000
404 #define S199M 199000000
405 #define S200M 200000000
406 #define S266M 266000000
407 #define S300M 300000000
408 #define S329M 329000000
409 #define S330M 330000000
410 #define S399M 399000000
411 #define S400M 400000000
412 #define S532M 532000000
413 #define S600M 600000000
414 #define S658M 658000000
415 #define S660M 660000000
416 #define S798M 798000000
421 #ifdef CONFIG_SOC_OMAP2430
424 #define omap2430_rate_table NULL