4 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
21 * XXX Some of the ES1 clocks have been removed/changed; once support
22 * is added for discriminating clocks by ES level, these should be added back
26 #include <linux/kernel.h>
27 #include <linux/list.h>
28 #include <linux/clk.h>
29 #include <plat/clkdev_omap.h>
32 #include "clock44xx.h"
34 #include "cm-regbits-44xx.h"
36 #include "prm-regbits-44xx.h"
41 static struct clk extalt_clkin_ck
= {
42 .name
= "extalt_clkin_ck",
47 static struct clk pad_clks_ck
= {
48 .name
= "pad_clks_ck",
53 static struct clk pad_slimbus_core_clks_ck
= {
54 .name
= "pad_slimbus_core_clks_ck",
59 static struct clk secure_32k_clk_src_ck
= {
60 .name
= "secure_32k_clk_src_ck",
65 static struct clk slimbus_clk
= {
66 .name
= "slimbus_clk",
71 static struct clk sys_32k_ck
= {
77 static struct clk virt_12000000_ck
= {
78 .name
= "virt_12000000_ck",
83 static struct clk virt_13000000_ck
= {
84 .name
= "virt_13000000_ck",
89 static struct clk virt_16800000_ck
= {
90 .name
= "virt_16800000_ck",
95 static struct clk virt_19200000_ck
= {
96 .name
= "virt_19200000_ck",
101 static struct clk virt_26000000_ck
= {
102 .name
= "virt_26000000_ck",
107 static struct clk virt_27000000_ck
= {
108 .name
= "virt_27000000_ck",
113 static struct clk virt_38400000_ck
= {
114 .name
= "virt_38400000_ck",
119 static const struct clksel_rate div_1_0_rates
[] = {
120 { .div
= 1, .val
= 0, .flags
= RATE_IN_4430
},
124 static const struct clksel_rate div_1_1_rates
[] = {
125 { .div
= 1, .val
= 1, .flags
= RATE_IN_4430
},
129 static const struct clksel_rate div_1_2_rates
[] = {
130 { .div
= 1, .val
= 2, .flags
= RATE_IN_4430
},
134 static const struct clksel_rate div_1_3_rates
[] = {
135 { .div
= 1, .val
= 3, .flags
= RATE_IN_4430
},
139 static const struct clksel_rate div_1_4_rates
[] = {
140 { .div
= 1, .val
= 4, .flags
= RATE_IN_4430
},
144 static const struct clksel_rate div_1_5_rates
[] = {
145 { .div
= 1, .val
= 5, .flags
= RATE_IN_4430
},
149 static const struct clksel_rate div_1_6_rates
[] = {
150 { .div
= 1, .val
= 6, .flags
= RATE_IN_4430
},
154 static const struct clksel_rate div_1_7_rates
[] = {
155 { .div
= 1, .val
= 7, .flags
= RATE_IN_4430
},
159 static const struct clksel sys_clkin_sel
[] = {
160 { .parent
= &virt_12000000_ck
, .rates
= div_1_1_rates
},
161 { .parent
= &virt_13000000_ck
, .rates
= div_1_2_rates
},
162 { .parent
= &virt_16800000_ck
, .rates
= div_1_3_rates
},
163 { .parent
= &virt_19200000_ck
, .rates
= div_1_4_rates
},
164 { .parent
= &virt_26000000_ck
, .rates
= div_1_5_rates
},
165 { .parent
= &virt_27000000_ck
, .rates
= div_1_6_rates
},
166 { .parent
= &virt_38400000_ck
, .rates
= div_1_7_rates
},
170 static struct clk sys_clkin_ck
= {
171 .name
= "sys_clkin_ck",
173 .clksel
= sys_clkin_sel
,
174 .init
= &omap2_init_clksel_parent
,
175 .clksel_reg
= OMAP4430_CM_SYS_CLKSEL
,
176 .clksel_mask
= OMAP4430_SYS_CLKSEL_MASK
,
178 .recalc
= &omap2_clksel_recalc
,
181 static struct clk tie_low_clock_ck
= {
182 .name
= "tie_low_clock_ck",
187 static struct clk utmi_phy_clkout_ck
= {
188 .name
= "utmi_phy_clkout_ck",
193 static struct clk xclk60mhsp1_ck
= {
194 .name
= "xclk60mhsp1_ck",
199 static struct clk xclk60mhsp2_ck
= {
200 .name
= "xclk60mhsp2_ck",
205 static struct clk xclk60motg_ck
= {
206 .name
= "xclk60motg_ck",
211 /* Module clocks and DPLL outputs */
213 static const struct clksel abe_dpll_bypass_clk_mux_sel
[] = {
214 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
215 { .parent
= &sys_32k_ck
, .rates
= div_1_1_rates
},
219 static struct clk abe_dpll_bypass_clk_mux_ck
= {
220 .name
= "abe_dpll_bypass_clk_mux_ck",
221 .parent
= &sys_clkin_ck
,
223 .recalc
= &followparent_recalc
,
226 static struct clk abe_dpll_refclk_mux_ck
= {
227 .name
= "abe_dpll_refclk_mux_ck",
228 .parent
= &sys_clkin_ck
,
229 .clksel
= abe_dpll_bypass_clk_mux_sel
,
230 .init
= &omap2_init_clksel_parent
,
231 .clksel_reg
= OMAP4430_CM_ABE_PLL_REF_CLKSEL
,
232 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
234 .recalc
= &omap2_clksel_recalc
,
238 static struct dpll_data dpll_abe_dd
= {
239 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_ABE
,
240 .clk_bypass
= &abe_dpll_bypass_clk_mux_ck
,
241 .clk_ref
= &abe_dpll_refclk_mux_ck
,
242 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_ABE
,
243 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
244 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_ABE
,
245 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_ABE
,
246 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
247 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
248 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
249 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
250 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
251 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
252 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
257 static struct clk dpll_abe_ck
= {
258 .name
= "dpll_abe_ck",
259 .parent
= &abe_dpll_refclk_mux_ck
,
260 .dpll_data
= &dpll_abe_dd
,
261 .init
= &omap2_init_dpll_parent
,
262 .ops
= &clkops_omap3_noncore_dpll_ops
,
263 .recalc
= &omap3_dpll_recalc
,
264 .round_rate
= &omap2_dpll_round_rate
,
265 .set_rate
= &omap3_noncore_dpll_set_rate
,
268 static struct clk dpll_abe_m2x2_ck
= {
269 .name
= "dpll_abe_m2x2_ck",
270 .parent
= &dpll_abe_ck
,
272 .recalc
= &followparent_recalc
,
275 static struct clk abe_24m_fclk
= {
276 .name
= "abe_24m_fclk",
277 .parent
= &dpll_abe_m2x2_ck
,
279 .recalc
= &followparent_recalc
,
282 static const struct clksel_rate div3_1to4_rates
[] = {
283 { .div
= 1, .val
= 0, .flags
= RATE_IN_4430
},
284 { .div
= 2, .val
= 1, .flags
= RATE_IN_4430
},
285 { .div
= 4, .val
= 2, .flags
= RATE_IN_4430
},
289 static const struct clksel abe_clk_div
[] = {
290 { .parent
= &dpll_abe_m2x2_ck
, .rates
= div3_1to4_rates
},
294 static struct clk abe_clk
= {
296 .parent
= &dpll_abe_m2x2_ck
,
297 .clksel
= abe_clk_div
,
298 .clksel_reg
= OMAP4430_CM_CLKSEL_ABE
,
299 .clksel_mask
= OMAP4430_CLKSEL_OPP_MASK
,
301 .recalc
= &omap2_clksel_recalc
,
302 .round_rate
= &omap2_clksel_round_rate
,
303 .set_rate
= &omap2_clksel_set_rate
,
306 static const struct clksel_rate div2_1to2_rates
[] = {
307 { .div
= 1, .val
= 0, .flags
= RATE_IN_4430
},
308 { .div
= 2, .val
= 1, .flags
= RATE_IN_4430
},
312 static const struct clksel aess_fclk_div
[] = {
313 { .parent
= &abe_clk
, .rates
= div2_1to2_rates
},
317 static struct clk aess_fclk
= {
320 .clksel
= aess_fclk_div
,
321 .clksel_reg
= OMAP4430_CM1_ABE_AESS_CLKCTRL
,
322 .clksel_mask
= OMAP4430_CLKSEL_AESS_FCLK_MASK
,
324 .recalc
= &omap2_clksel_recalc
,
325 .round_rate
= &omap2_clksel_round_rate
,
326 .set_rate
= &omap2_clksel_set_rate
,
329 static const struct clksel_rate div31_1to31_rates
[] = {
330 { .div
= 1, .val
= 1, .flags
= RATE_IN_4430
},
331 { .div
= 2, .val
= 2, .flags
= RATE_IN_4430
},
332 { .div
= 3, .val
= 3, .flags
= RATE_IN_4430
},
333 { .div
= 4, .val
= 4, .flags
= RATE_IN_4430
},
334 { .div
= 5, .val
= 5, .flags
= RATE_IN_4430
},
335 { .div
= 6, .val
= 6, .flags
= RATE_IN_4430
},
336 { .div
= 7, .val
= 7, .flags
= RATE_IN_4430
},
337 { .div
= 8, .val
= 8, .flags
= RATE_IN_4430
},
338 { .div
= 9, .val
= 9, .flags
= RATE_IN_4430
},
339 { .div
= 10, .val
= 10, .flags
= RATE_IN_4430
},
340 { .div
= 11, .val
= 11, .flags
= RATE_IN_4430
},
341 { .div
= 12, .val
= 12, .flags
= RATE_IN_4430
},
342 { .div
= 13, .val
= 13, .flags
= RATE_IN_4430
},
343 { .div
= 14, .val
= 14, .flags
= RATE_IN_4430
},
344 { .div
= 15, .val
= 15, .flags
= RATE_IN_4430
},
345 { .div
= 16, .val
= 16, .flags
= RATE_IN_4430
},
346 { .div
= 17, .val
= 17, .flags
= RATE_IN_4430
},
347 { .div
= 18, .val
= 18, .flags
= RATE_IN_4430
},
348 { .div
= 19, .val
= 19, .flags
= RATE_IN_4430
},
349 { .div
= 20, .val
= 20, .flags
= RATE_IN_4430
},
350 { .div
= 21, .val
= 21, .flags
= RATE_IN_4430
},
351 { .div
= 22, .val
= 22, .flags
= RATE_IN_4430
},
352 { .div
= 23, .val
= 23, .flags
= RATE_IN_4430
},
353 { .div
= 24, .val
= 24, .flags
= RATE_IN_4430
},
354 { .div
= 25, .val
= 25, .flags
= RATE_IN_4430
},
355 { .div
= 26, .val
= 26, .flags
= RATE_IN_4430
},
356 { .div
= 27, .val
= 27, .flags
= RATE_IN_4430
},
357 { .div
= 28, .val
= 28, .flags
= RATE_IN_4430
},
358 { .div
= 29, .val
= 29, .flags
= RATE_IN_4430
},
359 { .div
= 30, .val
= 30, .flags
= RATE_IN_4430
},
360 { .div
= 31, .val
= 31, .flags
= RATE_IN_4430
},
364 static const struct clksel dpll_abe_m3_div
[] = {
365 { .parent
= &dpll_abe_ck
, .rates
= div31_1to31_rates
},
369 static struct clk dpll_abe_m3_ck
= {
370 .name
= "dpll_abe_m3_ck",
371 .parent
= &dpll_abe_ck
,
372 .clksel
= dpll_abe_m3_div
,
373 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_ABE
,
374 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
376 .recalc
= &omap2_clksel_recalc
,
377 .round_rate
= &omap2_clksel_round_rate
,
378 .set_rate
= &omap2_clksel_set_rate
,
381 static const struct clksel core_hsd_byp_clk_mux_sel
[] = {
382 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
383 { .parent
= &dpll_abe_m3_ck
, .rates
= div_1_1_rates
},
387 static struct clk core_hsd_byp_clk_mux_ck
= {
388 .name
= "core_hsd_byp_clk_mux_ck",
389 .parent
= &sys_clkin_ck
,
390 .clksel
= core_hsd_byp_clk_mux_sel
,
391 .init
= &omap2_init_clksel_parent
,
392 .clksel_reg
= OMAP4430_CM_CLKSEL_DPLL_CORE
,
393 .clksel_mask
= OMAP4430_DPLL_BYP_CLKSEL_MASK
,
395 .recalc
= &omap2_clksel_recalc
,
399 static struct dpll_data dpll_core_dd
= {
400 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_CORE
,
401 .clk_bypass
= &core_hsd_byp_clk_mux_ck
,
402 .clk_ref
= &sys_clkin_ck
,
403 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_CORE
,
404 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
405 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_CORE
,
406 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_CORE
,
407 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
408 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
409 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
410 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
411 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
412 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
413 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
418 static struct clk dpll_core_ck
= {
419 .name
= "dpll_core_ck",
420 .parent
= &sys_clkin_ck
,
421 .dpll_data
= &dpll_core_dd
,
422 .init
= &omap2_init_dpll_parent
,
424 .recalc
= &omap3_dpll_recalc
,
427 static const struct clksel dpll_core_m6_div
[] = {
428 { .parent
= &dpll_core_ck
, .rates
= div31_1to31_rates
},
432 static struct clk dpll_core_m6_ck
= {
433 .name
= "dpll_core_m6_ck",
434 .parent
= &dpll_core_ck
,
435 .clksel
= dpll_core_m6_div
,
436 .clksel_reg
= OMAP4430_CM_DIV_M6_DPLL_CORE
,
437 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK
,
439 .recalc
= &omap2_clksel_recalc
,
440 .round_rate
= &omap2_clksel_round_rate
,
441 .set_rate
= &omap2_clksel_set_rate
,
444 static const struct clksel dbgclk_mux_sel
[] = {
445 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
446 { .parent
= &dpll_core_m6_ck
, .rates
= div_1_1_rates
},
450 static struct clk dbgclk_mux_ck
= {
451 .name
= "dbgclk_mux_ck",
452 .parent
= &sys_clkin_ck
,
454 .recalc
= &followparent_recalc
,
457 static struct clk dpll_core_m2_ck
= {
458 .name
= "dpll_core_m2_ck",
459 .parent
= &dpll_core_ck
,
460 .clksel
= dpll_core_m6_div
,
461 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_CORE
,
462 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
464 .recalc
= &omap2_clksel_recalc
,
465 .round_rate
= &omap2_clksel_round_rate
,
466 .set_rate
= &omap2_clksel_set_rate
,
469 static struct clk ddrphy_ck
= {
471 .parent
= &dpll_core_m2_ck
,
473 .recalc
= &followparent_recalc
,
476 static struct clk dpll_core_m5_ck
= {
477 .name
= "dpll_core_m5_ck",
478 .parent
= &dpll_core_ck
,
479 .clksel
= dpll_core_m6_div
,
480 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_CORE
,
481 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
483 .recalc
= &omap2_clksel_recalc
,
484 .round_rate
= &omap2_clksel_round_rate
,
485 .set_rate
= &omap2_clksel_set_rate
,
488 static const struct clksel div_core_div
[] = {
489 { .parent
= &dpll_core_m5_ck
, .rates
= div2_1to2_rates
},
493 static struct clk div_core_ck
= {
494 .name
= "div_core_ck",
495 .parent
= &dpll_core_m5_ck
,
496 .clksel
= div_core_div
,
497 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
498 .clksel_mask
= OMAP4430_CLKSEL_CORE_MASK
,
500 .recalc
= &omap2_clksel_recalc
,
501 .round_rate
= &omap2_clksel_round_rate
,
502 .set_rate
= &omap2_clksel_set_rate
,
505 static const struct clksel_rate div4_1to8_rates
[] = {
506 { .div
= 1, .val
= 0, .flags
= RATE_IN_4430
},
507 { .div
= 2, .val
= 1, .flags
= RATE_IN_4430
},
508 { .div
= 4, .val
= 2, .flags
= RATE_IN_4430
},
509 { .div
= 8, .val
= 3, .flags
= RATE_IN_4430
},
513 static const struct clksel div_iva_hs_clk_div
[] = {
514 { .parent
= &dpll_core_m5_ck
, .rates
= div4_1to8_rates
},
518 static struct clk div_iva_hs_clk
= {
519 .name
= "div_iva_hs_clk",
520 .parent
= &dpll_core_m5_ck
,
521 .clksel
= div_iva_hs_clk_div
,
522 .clksel_reg
= OMAP4430_CM_BYPCLK_DPLL_IVA
,
523 .clksel_mask
= OMAP4430_CLKSEL_0_1_MASK
,
525 .recalc
= &omap2_clksel_recalc
,
526 .round_rate
= &omap2_clksel_round_rate
,
527 .set_rate
= &omap2_clksel_set_rate
,
530 static struct clk div_mpu_hs_clk
= {
531 .name
= "div_mpu_hs_clk",
532 .parent
= &dpll_core_m5_ck
,
533 .clksel
= div_iva_hs_clk_div
,
534 .clksel_reg
= OMAP4430_CM_BYPCLK_DPLL_MPU
,
535 .clksel_mask
= OMAP4430_CLKSEL_0_1_MASK
,
537 .recalc
= &omap2_clksel_recalc
,
538 .round_rate
= &omap2_clksel_round_rate
,
539 .set_rate
= &omap2_clksel_set_rate
,
542 static struct clk dpll_core_m4_ck
= {
543 .name
= "dpll_core_m4_ck",
544 .parent
= &dpll_core_ck
,
545 .clksel
= dpll_core_m6_div
,
546 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_CORE
,
547 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
549 .recalc
= &omap2_clksel_recalc
,
550 .round_rate
= &omap2_clksel_round_rate
,
551 .set_rate
= &omap2_clksel_set_rate
,
554 static struct clk dll_clk_div_ck
= {
555 .name
= "dll_clk_div_ck",
556 .parent
= &dpll_core_m4_ck
,
558 .recalc
= &followparent_recalc
,
561 static struct clk dpll_abe_m2_ck
= {
562 .name
= "dpll_abe_m2_ck",
563 .parent
= &dpll_abe_ck
,
564 .clksel
= dpll_abe_m3_div
,
565 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_ABE
,
566 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
568 .recalc
= &omap2_clksel_recalc
,
569 .round_rate
= &omap2_clksel_round_rate
,
570 .set_rate
= &omap2_clksel_set_rate
,
573 static struct clk dpll_core_m3_ck
= {
574 .name
= "dpll_core_m3_ck",
575 .parent
= &dpll_core_ck
,
576 .clksel
= dpll_core_m6_div
,
577 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_CORE
,
578 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
580 .recalc
= &omap2_clksel_recalc
,
581 .round_rate
= &omap2_clksel_round_rate
,
582 .set_rate
= &omap2_clksel_set_rate
,
585 static struct clk dpll_core_m7_ck
= {
586 .name
= "dpll_core_m7_ck",
587 .parent
= &dpll_core_ck
,
588 .clksel
= dpll_core_m6_div
,
589 .clksel_reg
= OMAP4430_CM_DIV_M7_DPLL_CORE
,
590 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK
,
592 .recalc
= &omap2_clksel_recalc
,
593 .round_rate
= &omap2_clksel_round_rate
,
594 .set_rate
= &omap2_clksel_set_rate
,
597 static const struct clksel iva_hsd_byp_clk_mux_sel
[] = {
598 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
599 { .parent
= &div_iva_hs_clk
, .rates
= div_1_1_rates
},
603 static struct clk iva_hsd_byp_clk_mux_ck
= {
604 .name
= "iva_hsd_byp_clk_mux_ck",
605 .parent
= &sys_clkin_ck
,
607 .recalc
= &followparent_recalc
,
611 static struct dpll_data dpll_iva_dd
= {
612 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_IVA
,
613 .clk_bypass
= &iva_hsd_byp_clk_mux_ck
,
614 .clk_ref
= &sys_clkin_ck
,
615 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_IVA
,
616 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
617 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_IVA
,
618 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_IVA
,
619 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
620 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
621 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
622 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
623 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
624 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
625 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
630 static struct clk dpll_iva_ck
= {
631 .name
= "dpll_iva_ck",
632 .parent
= &sys_clkin_ck
,
633 .dpll_data
= &dpll_iva_dd
,
634 .init
= &omap2_init_dpll_parent
,
635 .ops
= &clkops_omap3_noncore_dpll_ops
,
636 .recalc
= &omap3_dpll_recalc
,
637 .round_rate
= &omap2_dpll_round_rate
,
638 .set_rate
= &omap3_noncore_dpll_set_rate
,
641 static const struct clksel dpll_iva_m4_div
[] = {
642 { .parent
= &dpll_iva_ck
, .rates
= div31_1to31_rates
},
646 static struct clk dpll_iva_m4_ck
= {
647 .name
= "dpll_iva_m4_ck",
648 .parent
= &dpll_iva_ck
,
649 .clksel
= dpll_iva_m4_div
,
650 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_IVA
,
651 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
653 .recalc
= &omap2_clksel_recalc
,
654 .round_rate
= &omap2_clksel_round_rate
,
655 .set_rate
= &omap2_clksel_set_rate
,
658 static struct clk dpll_iva_m5_ck
= {
659 .name
= "dpll_iva_m5_ck",
660 .parent
= &dpll_iva_ck
,
661 .clksel
= dpll_iva_m4_div
,
662 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_IVA
,
663 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
665 .recalc
= &omap2_clksel_recalc
,
666 .round_rate
= &omap2_clksel_round_rate
,
667 .set_rate
= &omap2_clksel_set_rate
,
671 static struct dpll_data dpll_mpu_dd
= {
672 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_MPU
,
673 .clk_bypass
= &div_mpu_hs_clk
,
674 .clk_ref
= &sys_clkin_ck
,
675 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_MPU
,
676 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
677 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_MPU
,
678 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_MPU
,
679 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
680 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
681 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
682 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
683 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
684 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
685 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
690 static struct clk dpll_mpu_ck
= {
691 .name
= "dpll_mpu_ck",
692 .parent
= &sys_clkin_ck
,
693 .dpll_data
= &dpll_mpu_dd
,
694 .init
= &omap2_init_dpll_parent
,
695 .ops
= &clkops_omap3_noncore_dpll_ops
,
696 .recalc
= &omap3_dpll_recalc
,
697 .round_rate
= &omap2_dpll_round_rate
,
698 .set_rate
= &omap3_noncore_dpll_set_rate
,
701 static const struct clksel dpll_mpu_m2_div
[] = {
702 { .parent
= &dpll_mpu_ck
, .rates
= div31_1to31_rates
},
706 static struct clk dpll_mpu_m2_ck
= {
707 .name
= "dpll_mpu_m2_ck",
708 .parent
= &dpll_mpu_ck
,
709 .clksel
= dpll_mpu_m2_div
,
710 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_MPU
,
711 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
713 .recalc
= &omap2_clksel_recalc
,
714 .round_rate
= &omap2_clksel_round_rate
,
715 .set_rate
= &omap2_clksel_set_rate
,
718 static struct clk per_hs_clk_div_ck
= {
719 .name
= "per_hs_clk_div_ck",
720 .parent
= &dpll_abe_m3_ck
,
722 .recalc
= &followparent_recalc
,
725 static const struct clksel per_hsd_byp_clk_mux_sel
[] = {
726 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
727 { .parent
= &per_hs_clk_div_ck
, .rates
= div_1_1_rates
},
731 static struct clk per_hsd_byp_clk_mux_ck
= {
732 .name
= "per_hsd_byp_clk_mux_ck",
733 .parent
= &sys_clkin_ck
,
734 .clksel
= per_hsd_byp_clk_mux_sel
,
735 .init
= &omap2_init_clksel_parent
,
736 .clksel_reg
= OMAP4430_CM_CLKSEL_DPLL_PER
,
737 .clksel_mask
= OMAP4430_DPLL_BYP_CLKSEL_MASK
,
739 .recalc
= &omap2_clksel_recalc
,
743 static struct dpll_data dpll_per_dd
= {
744 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_PER
,
745 .clk_bypass
= &per_hsd_byp_clk_mux_ck
,
746 .clk_ref
= &sys_clkin_ck
,
747 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_PER
,
748 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
749 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_PER
,
750 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_PER
,
751 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
752 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
753 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
754 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
755 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
756 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
757 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
762 static struct clk dpll_per_ck
= {
763 .name
= "dpll_per_ck",
764 .parent
= &sys_clkin_ck
,
765 .dpll_data
= &dpll_per_dd
,
766 .init
= &omap2_init_dpll_parent
,
767 .ops
= &clkops_omap3_noncore_dpll_ops
,
768 .recalc
= &omap3_dpll_recalc
,
769 .round_rate
= &omap2_dpll_round_rate
,
770 .set_rate
= &omap3_noncore_dpll_set_rate
,
773 static const struct clksel dpll_per_m2_div
[] = {
774 { .parent
= &dpll_per_ck
, .rates
= div31_1to31_rates
},
778 static struct clk dpll_per_m2_ck
= {
779 .name
= "dpll_per_m2_ck",
780 .parent
= &dpll_per_ck
,
781 .clksel
= dpll_per_m2_div
,
782 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_PER
,
783 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
785 .recalc
= &omap2_clksel_recalc
,
786 .round_rate
= &omap2_clksel_round_rate
,
787 .set_rate
= &omap2_clksel_set_rate
,
790 static struct clk dpll_per_m2x2_ck
= {
791 .name
= "dpll_per_m2x2_ck",
792 .parent
= &dpll_per_ck
,
794 .recalc
= &followparent_recalc
,
797 static struct clk dpll_per_m3_ck
= {
798 .name
= "dpll_per_m3_ck",
799 .parent
= &dpll_per_ck
,
800 .clksel
= dpll_per_m2_div
,
801 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_PER
,
802 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
804 .recalc
= &omap2_clksel_recalc
,
805 .round_rate
= &omap2_clksel_round_rate
,
806 .set_rate
= &omap2_clksel_set_rate
,
809 static struct clk dpll_per_m4_ck
= {
810 .name
= "dpll_per_m4_ck",
811 .parent
= &dpll_per_ck
,
812 .clksel
= dpll_per_m2_div
,
813 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_PER
,
814 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
816 .recalc
= &omap2_clksel_recalc
,
817 .round_rate
= &omap2_clksel_round_rate
,
818 .set_rate
= &omap2_clksel_set_rate
,
821 static struct clk dpll_per_m5_ck
= {
822 .name
= "dpll_per_m5_ck",
823 .parent
= &dpll_per_ck
,
824 .clksel
= dpll_per_m2_div
,
825 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_PER
,
826 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
828 .recalc
= &omap2_clksel_recalc
,
829 .round_rate
= &omap2_clksel_round_rate
,
830 .set_rate
= &omap2_clksel_set_rate
,
833 static struct clk dpll_per_m6_ck
= {
834 .name
= "dpll_per_m6_ck",
835 .parent
= &dpll_per_ck
,
836 .clksel
= dpll_per_m2_div
,
837 .clksel_reg
= OMAP4430_CM_DIV_M6_DPLL_PER
,
838 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK
,
840 .recalc
= &omap2_clksel_recalc
,
841 .round_rate
= &omap2_clksel_round_rate
,
842 .set_rate
= &omap2_clksel_set_rate
,
845 static struct clk dpll_per_m7_ck
= {
846 .name
= "dpll_per_m7_ck",
847 .parent
= &dpll_per_ck
,
848 .clksel
= dpll_per_m2_div
,
849 .clksel_reg
= OMAP4430_CM_DIV_M7_DPLL_PER
,
850 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK
,
852 .recalc
= &omap2_clksel_recalc
,
853 .round_rate
= &omap2_clksel_round_rate
,
854 .set_rate
= &omap2_clksel_set_rate
,
858 static struct dpll_data dpll_unipro_dd
= {
859 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_UNIPRO
,
860 .clk_bypass
= &sys_clkin_ck
,
861 .clk_ref
= &sys_clkin_ck
,
862 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_UNIPRO
,
863 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
864 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_UNIPRO
,
865 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_UNIPRO
,
866 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
867 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
868 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
869 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
870 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
871 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
872 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
877 static struct clk dpll_unipro_ck
= {
878 .name
= "dpll_unipro_ck",
879 .parent
= &sys_clkin_ck
,
880 .dpll_data
= &dpll_unipro_dd
,
881 .init
= &omap2_init_dpll_parent
,
882 .ops
= &clkops_omap3_noncore_dpll_ops
,
883 .recalc
= &omap3_dpll_recalc
,
884 .round_rate
= &omap2_dpll_round_rate
,
885 .set_rate
= &omap3_noncore_dpll_set_rate
,
888 static const struct clksel dpll_unipro_m2x2_div
[] = {
889 { .parent
= &dpll_unipro_ck
, .rates
= div31_1to31_rates
},
893 static struct clk dpll_unipro_m2x2_ck
= {
894 .name
= "dpll_unipro_m2x2_ck",
895 .parent
= &dpll_unipro_ck
,
896 .clksel
= dpll_unipro_m2x2_div
,
897 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_UNIPRO
,
898 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
900 .recalc
= &omap2_clksel_recalc
,
901 .round_rate
= &omap2_clksel_round_rate
,
902 .set_rate
= &omap2_clksel_set_rate
,
905 static struct clk usb_hs_clk_div_ck
= {
906 .name
= "usb_hs_clk_div_ck",
907 .parent
= &dpll_abe_m3_ck
,
909 .recalc
= &followparent_recalc
,
913 static struct dpll_data dpll_usb_dd
= {
914 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_USB
,
915 .clk_bypass
= &usb_hs_clk_div_ck
,
916 .flags
= DPLL_J_TYPE
| DPLL_NO_DCO_SEL
,
917 .clk_ref
= &sys_clkin_ck
,
918 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_USB
,
919 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
920 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_USB
,
921 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_USB
,
922 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
923 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
924 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
925 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
926 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
927 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
928 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
933 static struct clk dpll_usb_ck
= {
934 .name
= "dpll_usb_ck",
935 .parent
= &sys_clkin_ck
,
936 .dpll_data
= &dpll_usb_dd
,
937 .init
= &omap2_init_dpll_parent
,
938 .ops
= &clkops_omap3_noncore_dpll_ops
,
939 .recalc
= &omap3_dpll_recalc
,
940 .round_rate
= &omap2_dpll_round_rate
,
941 .set_rate
= &omap3_noncore_dpll_set_rate
,
944 static struct clk dpll_usb_clkdcoldo_ck
= {
945 .name
= "dpll_usb_clkdcoldo_ck",
946 .parent
= &dpll_usb_ck
,
948 .recalc
= &followparent_recalc
,
951 static const struct clksel dpll_usb_m2_div
[] = {
952 { .parent
= &dpll_usb_ck
, .rates
= div31_1to31_rates
},
956 static struct clk dpll_usb_m2_ck
= {
957 .name
= "dpll_usb_m2_ck",
958 .parent
= &dpll_usb_ck
,
959 .clksel
= dpll_usb_m2_div
,
960 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_USB
,
961 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK
,
963 .recalc
= &omap2_clksel_recalc
,
964 .round_rate
= &omap2_clksel_round_rate
,
965 .set_rate
= &omap2_clksel_set_rate
,
968 static const struct clksel ducati_clk_mux_sel
[] = {
969 { .parent
= &div_core_ck
, .rates
= div_1_0_rates
},
970 { .parent
= &dpll_per_m6_ck
, .rates
= div_1_1_rates
},
974 static struct clk ducati_clk_mux_ck
= {
975 .name
= "ducati_clk_mux_ck",
976 .parent
= &div_core_ck
,
977 .clksel
= ducati_clk_mux_sel
,
978 .init
= &omap2_init_clksel_parent
,
979 .clksel_reg
= OMAP4430_CM_CLKSEL_DUCATI_ISS_ROOT
,
980 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
982 .recalc
= &omap2_clksel_recalc
,
985 static struct clk func_12m_fclk
= {
986 .name
= "func_12m_fclk",
987 .parent
= &dpll_per_m2x2_ck
,
989 .recalc
= &followparent_recalc
,
992 static struct clk func_24m_clk
= {
993 .name
= "func_24m_clk",
994 .parent
= &dpll_per_m2_ck
,
996 .recalc
= &followparent_recalc
,
999 static struct clk func_24mc_fclk
= {
1000 .name
= "func_24mc_fclk",
1001 .parent
= &dpll_per_m2x2_ck
,
1002 .ops
= &clkops_null
,
1003 .recalc
= &followparent_recalc
,
1006 static const struct clksel_rate div2_4to8_rates
[] = {
1007 { .div
= 4, .val
= 0, .flags
= RATE_IN_4430
},
1008 { .div
= 8, .val
= 1, .flags
= RATE_IN_4430
},
1012 static const struct clksel func_48m_fclk_div
[] = {
1013 { .parent
= &dpll_per_m2x2_ck
, .rates
= div2_4to8_rates
},
1017 static struct clk func_48m_fclk
= {
1018 .name
= "func_48m_fclk",
1019 .parent
= &dpll_per_m2x2_ck
,
1020 .clksel
= func_48m_fclk_div
,
1021 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1022 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1023 .ops
= &clkops_null
,
1024 .recalc
= &omap2_clksel_recalc
,
1025 .round_rate
= &omap2_clksel_round_rate
,
1026 .set_rate
= &omap2_clksel_set_rate
,
1029 static struct clk func_48mc_fclk
= {
1030 .name
= "func_48mc_fclk",
1031 .parent
= &dpll_per_m2x2_ck
,
1032 .ops
= &clkops_null
,
1033 .recalc
= &followparent_recalc
,
1036 static const struct clksel_rate div2_2to4_rates
[] = {
1037 { .div
= 2, .val
= 0, .flags
= RATE_IN_4430
},
1038 { .div
= 4, .val
= 1, .flags
= RATE_IN_4430
},
1042 static const struct clksel func_64m_fclk_div
[] = {
1043 { .parent
= &dpll_per_m4_ck
, .rates
= div2_2to4_rates
},
1047 static struct clk func_64m_fclk
= {
1048 .name
= "func_64m_fclk",
1049 .parent
= &dpll_per_m4_ck
,
1050 .clksel
= func_64m_fclk_div
,
1051 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1052 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1053 .ops
= &clkops_null
,
1054 .recalc
= &omap2_clksel_recalc
,
1055 .round_rate
= &omap2_clksel_round_rate
,
1056 .set_rate
= &omap2_clksel_set_rate
,
1059 static const struct clksel func_96m_fclk_div
[] = {
1060 { .parent
= &dpll_per_m2x2_ck
, .rates
= div2_2to4_rates
},
1064 static struct clk func_96m_fclk
= {
1065 .name
= "func_96m_fclk",
1066 .parent
= &dpll_per_m2x2_ck
,
1067 .clksel
= func_96m_fclk_div
,
1068 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1069 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1070 .ops
= &clkops_null
,
1071 .recalc
= &omap2_clksel_recalc
,
1072 .round_rate
= &omap2_clksel_round_rate
,
1073 .set_rate
= &omap2_clksel_set_rate
,
1076 static const struct clksel hsmmc6_fclk_sel
[] = {
1077 { .parent
= &func_64m_fclk
, .rates
= div_1_0_rates
},
1078 { .parent
= &func_96m_fclk
, .rates
= div_1_1_rates
},
1082 static struct clk hsmmc6_fclk
= {
1083 .name
= "hsmmc6_fclk",
1084 .parent
= &func_64m_fclk
,
1085 .ops
= &clkops_null
,
1086 .recalc
= &followparent_recalc
,
1089 static const struct clksel_rate div2_1to8_rates
[] = {
1090 { .div
= 1, .val
= 0, .flags
= RATE_IN_4430
},
1091 { .div
= 8, .val
= 1, .flags
= RATE_IN_4430
},
1095 static const struct clksel init_60m_fclk_div
[] = {
1096 { .parent
= &dpll_usb_m2_ck
, .rates
= div2_1to8_rates
},
1100 static struct clk init_60m_fclk
= {
1101 .name
= "init_60m_fclk",
1102 .parent
= &dpll_usb_m2_ck
,
1103 .clksel
= init_60m_fclk_div
,
1104 .clksel_reg
= OMAP4430_CM_CLKSEL_USB_60MHZ
,
1105 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1106 .ops
= &clkops_null
,
1107 .recalc
= &omap2_clksel_recalc
,
1108 .round_rate
= &omap2_clksel_round_rate
,
1109 .set_rate
= &omap2_clksel_set_rate
,
1112 static const struct clksel l3_div_div
[] = {
1113 { .parent
= &div_core_ck
, .rates
= div2_1to2_rates
},
1117 static struct clk l3_div_ck
= {
1118 .name
= "l3_div_ck",
1119 .parent
= &div_core_ck
,
1120 .clksel
= l3_div_div
,
1121 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
1122 .clksel_mask
= OMAP4430_CLKSEL_L3_MASK
,
1123 .ops
= &clkops_null
,
1124 .recalc
= &omap2_clksel_recalc
,
1125 .round_rate
= &omap2_clksel_round_rate
,
1126 .set_rate
= &omap2_clksel_set_rate
,
1129 static const struct clksel l4_div_div
[] = {
1130 { .parent
= &l3_div_ck
, .rates
= div2_1to2_rates
},
1134 static struct clk l4_div_ck
= {
1135 .name
= "l4_div_ck",
1136 .parent
= &l3_div_ck
,
1137 .clksel
= l4_div_div
,
1138 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
1139 .clksel_mask
= OMAP4430_CLKSEL_L4_MASK
,
1140 .ops
= &clkops_null
,
1141 .recalc
= &omap2_clksel_recalc
,
1142 .round_rate
= &omap2_clksel_round_rate
,
1143 .set_rate
= &omap2_clksel_set_rate
,
1146 static struct clk lp_clk_div_ck
= {
1147 .name
= "lp_clk_div_ck",
1148 .parent
= &dpll_abe_m2x2_ck
,
1149 .ops
= &clkops_null
,
1150 .recalc
= &followparent_recalc
,
1153 static const struct clksel l4_wkup_clk_mux_sel
[] = {
1154 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
1155 { .parent
= &lp_clk_div_ck
, .rates
= div_1_1_rates
},
1159 static struct clk l4_wkup_clk_mux_ck
= {
1160 .name
= "l4_wkup_clk_mux_ck",
1161 .parent
= &sys_clkin_ck
,
1162 .clksel
= l4_wkup_clk_mux_sel
,
1163 .init
= &omap2_init_clksel_parent
,
1164 .clksel_reg
= OMAP4430_CM_L4_WKUP_CLKSEL
,
1165 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1166 .ops
= &clkops_null
,
1167 .recalc
= &omap2_clksel_recalc
,
1170 static const struct clksel per_abe_nc_fclk_div
[] = {
1171 { .parent
= &dpll_abe_m2_ck
, .rates
= div2_1to2_rates
},
1175 static struct clk per_abe_nc_fclk
= {
1176 .name
= "per_abe_nc_fclk",
1177 .parent
= &dpll_abe_m2_ck
,
1178 .clksel
= per_abe_nc_fclk_div
,
1179 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1180 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1181 .ops
= &clkops_null
,
1182 .recalc
= &omap2_clksel_recalc
,
1183 .round_rate
= &omap2_clksel_round_rate
,
1184 .set_rate
= &omap2_clksel_set_rate
,
1187 static const struct clksel mcasp2_fclk_sel
[] = {
1188 { .parent
= &func_96m_fclk
, .rates
= div_1_0_rates
},
1189 { .parent
= &per_abe_nc_fclk
, .rates
= div_1_1_rates
},
1193 static struct clk mcasp2_fclk
= {
1194 .name
= "mcasp2_fclk",
1195 .parent
= &func_96m_fclk
,
1196 .ops
= &clkops_null
,
1197 .recalc
= &followparent_recalc
,
1200 static struct clk mcasp3_fclk
= {
1201 .name
= "mcasp3_fclk",
1202 .parent
= &func_96m_fclk
,
1203 .ops
= &clkops_null
,
1204 .recalc
= &followparent_recalc
,
1207 static struct clk ocp_abe_iclk
= {
1208 .name
= "ocp_abe_iclk",
1209 .parent
= &aess_fclk
,
1210 .ops
= &clkops_null
,
1211 .recalc
= &followparent_recalc
,
1214 static struct clk per_abe_24m_fclk
= {
1215 .name
= "per_abe_24m_fclk",
1216 .parent
= &dpll_abe_m2_ck
,
1217 .ops
= &clkops_null
,
1218 .recalc
= &followparent_recalc
,
1221 static const struct clksel pmd_stm_clock_mux_sel
[] = {
1222 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
1223 { .parent
= &dpll_core_m6_ck
, .rates
= div_1_1_rates
},
1224 { .parent
= &tie_low_clock_ck
, .rates
= div_1_2_rates
},
1228 static struct clk pmd_stm_clock_mux_ck
= {
1229 .name
= "pmd_stm_clock_mux_ck",
1230 .parent
= &sys_clkin_ck
,
1231 .ops
= &clkops_null
,
1232 .recalc
= &followparent_recalc
,
1235 static struct clk pmd_trace_clk_mux_ck
= {
1236 .name
= "pmd_trace_clk_mux_ck",
1237 .parent
= &sys_clkin_ck
,
1238 .ops
= &clkops_null
,
1239 .recalc
= &followparent_recalc
,
1242 static const struct clksel syc_clk_div_div
[] = {
1243 { .parent
= &sys_clkin_ck
, .rates
= div2_1to2_rates
},
1247 static struct clk syc_clk_div_ck
= {
1248 .name
= "syc_clk_div_ck",
1249 .parent
= &sys_clkin_ck
,
1250 .clksel
= syc_clk_div_div
,
1251 .clksel_reg
= OMAP4430_CM_ABE_DSS_SYS_CLKSEL
,
1252 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1253 .ops
= &clkops_null
,
1254 .recalc
= &omap2_clksel_recalc
,
1255 .round_rate
= &omap2_clksel_round_rate
,
1256 .set_rate
= &omap2_clksel_set_rate
,
1259 /* Leaf clocks controlled by modules */
1261 static struct clk aes1_fck
= {
1263 .ops
= &clkops_omap2_dflt
,
1264 .enable_reg
= OMAP4430_CM_L4SEC_AES1_CLKCTRL
,
1265 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1266 .clkdm_name
= "l4_secure_clkdm",
1267 .parent
= &l3_div_ck
,
1268 .recalc
= &followparent_recalc
,
1271 static struct clk aes2_fck
= {
1273 .ops
= &clkops_omap2_dflt
,
1274 .enable_reg
= OMAP4430_CM_L4SEC_AES2_CLKCTRL
,
1275 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1276 .clkdm_name
= "l4_secure_clkdm",
1277 .parent
= &l3_div_ck
,
1278 .recalc
= &followparent_recalc
,
1281 static struct clk aess_fck
= {
1283 .ops
= &clkops_omap2_dflt
,
1284 .enable_reg
= OMAP4430_CM1_ABE_AESS_CLKCTRL
,
1285 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1286 .clkdm_name
= "abe_clkdm",
1287 .parent
= &aess_fclk
,
1288 .recalc
= &followparent_recalc
,
1291 static struct clk bandgap_fclk
= {
1292 .name
= "bandgap_fclk",
1293 .ops
= &clkops_omap2_dflt
,
1294 .enable_reg
= OMAP4430_CM_WKUP_BANDGAP_CLKCTRL
,
1295 .enable_bit
= OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT
,
1296 .clkdm_name
= "l4_wkup_clkdm",
1297 .parent
= &sys_32k_ck
,
1298 .recalc
= &followparent_recalc
,
1301 static struct clk des3des_fck
= {
1302 .name
= "des3des_fck",
1303 .ops
= &clkops_omap2_dflt
,
1304 .enable_reg
= OMAP4430_CM_L4SEC_DES3DES_CLKCTRL
,
1305 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1306 .clkdm_name
= "l4_secure_clkdm",
1307 .parent
= &l4_div_ck
,
1308 .recalc
= &followparent_recalc
,
1311 static const struct clksel dmic_sync_mux_sel
[] = {
1312 { .parent
= &abe_24m_fclk
, .rates
= div_1_0_rates
},
1313 { .parent
= &syc_clk_div_ck
, .rates
= div_1_1_rates
},
1314 { .parent
= &func_24m_clk
, .rates
= div_1_2_rates
},
1318 static struct clk dmic_sync_mux_ck
= {
1319 .name
= "dmic_sync_mux_ck",
1320 .parent
= &abe_24m_fclk
,
1321 .clksel
= dmic_sync_mux_sel
,
1322 .init
= &omap2_init_clksel_parent
,
1323 .clksel_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1324 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1325 .ops
= &clkops_null
,
1326 .recalc
= &omap2_clksel_recalc
,
1329 static const struct clksel func_dmic_abe_gfclk_sel
[] = {
1330 { .parent
= &dmic_sync_mux_ck
, .rates
= div_1_0_rates
},
1331 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1332 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1336 /* Merged func_dmic_abe_gfclk into dmic */
1337 static struct clk dmic_fck
= {
1339 .parent
= &dmic_sync_mux_ck
,
1340 .clksel
= func_dmic_abe_gfclk_sel
,
1341 .init
= &omap2_init_clksel_parent
,
1342 .clksel_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1343 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1344 .ops
= &clkops_omap2_dflt
,
1345 .recalc
= &omap2_clksel_recalc
,
1346 .enable_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1347 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1348 .clkdm_name
= "abe_clkdm",
1351 static struct clk dsp_fck
= {
1353 .ops
= &clkops_omap2_dflt
,
1354 .enable_reg
= OMAP4430_CM_TESLA_TESLA_CLKCTRL
,
1355 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1356 .clkdm_name
= "tesla_clkdm",
1357 .parent
= &dpll_iva_m4_ck
,
1358 .recalc
= &followparent_recalc
,
1361 static struct clk dss_sys_clk
= {
1362 .name
= "dss_sys_clk",
1363 .ops
= &clkops_omap2_dflt
,
1364 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1365 .enable_bit
= OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT
,
1366 .clkdm_name
= "l3_dss_clkdm",
1367 .parent
= &syc_clk_div_ck
,
1368 .recalc
= &followparent_recalc
,
1371 static struct clk dss_tv_clk
= {
1372 .name
= "dss_tv_clk",
1373 .ops
= &clkops_omap2_dflt
,
1374 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1375 .enable_bit
= OMAP4430_OPTFCLKEN_TV_CLK_SHIFT
,
1376 .clkdm_name
= "l3_dss_clkdm",
1377 .parent
= &extalt_clkin_ck
,
1378 .recalc
= &followparent_recalc
,
1381 static struct clk dss_dss_clk
= {
1382 .name
= "dss_dss_clk",
1383 .ops
= &clkops_omap2_dflt
,
1384 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1385 .enable_bit
= OMAP4430_OPTFCLKEN_DSSCLK_SHIFT
,
1386 .clkdm_name
= "l3_dss_clkdm",
1387 .parent
= &dpll_per_m5_ck
,
1388 .recalc
= &followparent_recalc
,
1391 static struct clk dss_48mhz_clk
= {
1392 .name
= "dss_48mhz_clk",
1393 .ops
= &clkops_omap2_dflt
,
1394 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1395 .enable_bit
= OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT
,
1396 .clkdm_name
= "l3_dss_clkdm",
1397 .parent
= &func_48mc_fclk
,
1398 .recalc
= &followparent_recalc
,
1401 static struct clk dss_fck
= {
1403 .ops
= &clkops_omap2_dflt
,
1404 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1405 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1406 .clkdm_name
= "l3_dss_clkdm",
1407 .parent
= &l3_div_ck
,
1408 .recalc
= &followparent_recalc
,
1411 static struct clk efuse_ctrl_cust_fck
= {
1412 .name
= "efuse_ctrl_cust_fck",
1413 .ops
= &clkops_omap2_dflt
,
1414 .enable_reg
= OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL
,
1415 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1416 .clkdm_name
= "l4_cefuse_clkdm",
1417 .parent
= &sys_clkin_ck
,
1418 .recalc
= &followparent_recalc
,
1421 static struct clk emif1_fck
= {
1422 .name
= "emif1_fck",
1423 .ops
= &clkops_omap2_dflt
,
1424 .enable_reg
= OMAP4430_CM_MEMIF_EMIF_1_CLKCTRL
,
1425 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1426 .flags
= ENABLE_ON_INIT
,
1427 .clkdm_name
= "l3_emif_clkdm",
1428 .parent
= &ddrphy_ck
,
1429 .recalc
= &followparent_recalc
,
1432 static struct clk emif2_fck
= {
1433 .name
= "emif2_fck",
1434 .ops
= &clkops_omap2_dflt
,
1435 .enable_reg
= OMAP4430_CM_MEMIF_EMIF_2_CLKCTRL
,
1436 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1437 .flags
= ENABLE_ON_INIT
,
1438 .clkdm_name
= "l3_emif_clkdm",
1439 .parent
= &ddrphy_ck
,
1440 .recalc
= &followparent_recalc
,
1443 static const struct clksel fdif_fclk_div
[] = {
1444 { .parent
= &dpll_per_m4_ck
, .rates
= div3_1to4_rates
},
1448 /* Merged fdif_fclk into fdif */
1449 static struct clk fdif_fck
= {
1451 .parent
= &dpll_per_m4_ck
,
1452 .clksel
= fdif_fclk_div
,
1453 .clksel_reg
= OMAP4430_CM_CAM_FDIF_CLKCTRL
,
1454 .clksel_mask
= OMAP4430_CLKSEL_FCLK_MASK
,
1455 .ops
= &clkops_omap2_dflt
,
1456 .recalc
= &omap2_clksel_recalc
,
1457 .round_rate
= &omap2_clksel_round_rate
,
1458 .set_rate
= &omap2_clksel_set_rate
,
1459 .enable_reg
= OMAP4430_CM_CAM_FDIF_CLKCTRL
,
1460 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1461 .clkdm_name
= "iss_clkdm",
1464 static struct clk fpka_fck
= {
1466 .ops
= &clkops_omap2_dflt
,
1467 .enable_reg
= OMAP4430_CM_L4SEC_PKAEIP29_CLKCTRL
,
1468 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1469 .clkdm_name
= "l4_secure_clkdm",
1470 .parent
= &l4_div_ck
,
1471 .recalc
= &followparent_recalc
,
1474 static struct clk gpio1_dbclk
= {
1475 .name
= "gpio1_dbclk",
1476 .ops
= &clkops_omap2_dflt
,
1477 .enable_reg
= OMAP4430_CM_WKUP_GPIO1_CLKCTRL
,
1478 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1479 .clkdm_name
= "l4_wkup_clkdm",
1480 .parent
= &sys_32k_ck
,
1481 .recalc
= &followparent_recalc
,
1484 static struct clk gpio1_ick
= {
1485 .name
= "gpio1_ick",
1486 .ops
= &clkops_omap2_dflt
,
1487 .enable_reg
= OMAP4430_CM_WKUP_GPIO1_CLKCTRL
,
1488 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1489 .clkdm_name
= "l4_wkup_clkdm",
1490 .parent
= &l4_wkup_clk_mux_ck
,
1491 .recalc
= &followparent_recalc
,
1494 static struct clk gpio2_dbclk
= {
1495 .name
= "gpio2_dbclk",
1496 .ops
= &clkops_omap2_dflt
,
1497 .enable_reg
= OMAP4430_CM_L4PER_GPIO2_CLKCTRL
,
1498 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1499 .clkdm_name
= "l4_per_clkdm",
1500 .parent
= &sys_32k_ck
,
1501 .recalc
= &followparent_recalc
,
1504 static struct clk gpio2_ick
= {
1505 .name
= "gpio2_ick",
1506 .ops
= &clkops_omap2_dflt
,
1507 .enable_reg
= OMAP4430_CM_L4PER_GPIO2_CLKCTRL
,
1508 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1509 .clkdm_name
= "l4_per_clkdm",
1510 .parent
= &l4_div_ck
,
1511 .recalc
= &followparent_recalc
,
1514 static struct clk gpio3_dbclk
= {
1515 .name
= "gpio3_dbclk",
1516 .ops
= &clkops_omap2_dflt
,
1517 .enable_reg
= OMAP4430_CM_L4PER_GPIO3_CLKCTRL
,
1518 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1519 .clkdm_name
= "l4_per_clkdm",
1520 .parent
= &sys_32k_ck
,
1521 .recalc
= &followparent_recalc
,
1524 static struct clk gpio3_ick
= {
1525 .name
= "gpio3_ick",
1526 .ops
= &clkops_omap2_dflt
,
1527 .enable_reg
= OMAP4430_CM_L4PER_GPIO3_CLKCTRL
,
1528 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1529 .clkdm_name
= "l4_per_clkdm",
1530 .parent
= &l4_div_ck
,
1531 .recalc
= &followparent_recalc
,
1534 static struct clk gpio4_dbclk
= {
1535 .name
= "gpio4_dbclk",
1536 .ops
= &clkops_omap2_dflt
,
1537 .enable_reg
= OMAP4430_CM_L4PER_GPIO4_CLKCTRL
,
1538 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1539 .clkdm_name
= "l4_per_clkdm",
1540 .parent
= &sys_32k_ck
,
1541 .recalc
= &followparent_recalc
,
1544 static struct clk gpio4_ick
= {
1545 .name
= "gpio4_ick",
1546 .ops
= &clkops_omap2_dflt
,
1547 .enable_reg
= OMAP4430_CM_L4PER_GPIO4_CLKCTRL
,
1548 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1549 .clkdm_name
= "l4_per_clkdm",
1550 .parent
= &l4_div_ck
,
1551 .recalc
= &followparent_recalc
,
1554 static struct clk gpio5_dbclk
= {
1555 .name
= "gpio5_dbclk",
1556 .ops
= &clkops_omap2_dflt
,
1557 .enable_reg
= OMAP4430_CM_L4PER_GPIO5_CLKCTRL
,
1558 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1559 .clkdm_name
= "l4_per_clkdm",
1560 .parent
= &sys_32k_ck
,
1561 .recalc
= &followparent_recalc
,
1564 static struct clk gpio5_ick
= {
1565 .name
= "gpio5_ick",
1566 .ops
= &clkops_omap2_dflt
,
1567 .enable_reg
= OMAP4430_CM_L4PER_GPIO5_CLKCTRL
,
1568 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1569 .clkdm_name
= "l4_per_clkdm",
1570 .parent
= &l4_div_ck
,
1571 .recalc
= &followparent_recalc
,
1574 static struct clk gpio6_dbclk
= {
1575 .name
= "gpio6_dbclk",
1576 .ops
= &clkops_omap2_dflt
,
1577 .enable_reg
= OMAP4430_CM_L4PER_GPIO6_CLKCTRL
,
1578 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1579 .clkdm_name
= "l4_per_clkdm",
1580 .parent
= &sys_32k_ck
,
1581 .recalc
= &followparent_recalc
,
1584 static struct clk gpio6_ick
= {
1585 .name
= "gpio6_ick",
1586 .ops
= &clkops_omap2_dflt
,
1587 .enable_reg
= OMAP4430_CM_L4PER_GPIO6_CLKCTRL
,
1588 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1589 .clkdm_name
= "l4_per_clkdm",
1590 .parent
= &l4_div_ck
,
1591 .recalc
= &followparent_recalc
,
1594 static struct clk gpmc_ick
= {
1596 .ops
= &clkops_omap2_dflt
,
1597 .enable_reg
= OMAP4430_CM_L3_2_GPMC_CLKCTRL
,
1598 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1599 .clkdm_name
= "l3_2_clkdm",
1600 .parent
= &l3_div_ck
,
1601 .recalc
= &followparent_recalc
,
1604 static const struct clksel sgx_clk_mux_sel
[] = {
1605 { .parent
= &dpll_core_m7_ck
, .rates
= div_1_0_rates
},
1606 { .parent
= &dpll_per_m7_ck
, .rates
= div_1_1_rates
},
1610 /* Merged sgx_clk_mux into gpu */
1611 static struct clk gpu_fck
= {
1613 .parent
= &dpll_core_m7_ck
,
1614 .clksel
= sgx_clk_mux_sel
,
1615 .init
= &omap2_init_clksel_parent
,
1616 .clksel_reg
= OMAP4430_CM_GFX_GFX_CLKCTRL
,
1617 .clksel_mask
= OMAP4430_CLKSEL_SGX_FCLK_MASK
,
1618 .ops
= &clkops_omap2_dflt
,
1619 .recalc
= &omap2_clksel_recalc
,
1620 .enable_reg
= OMAP4430_CM_GFX_GFX_CLKCTRL
,
1621 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1622 .clkdm_name
= "l3_gfx_clkdm",
1625 static struct clk hdq1w_fck
= {
1626 .name
= "hdq1w_fck",
1627 .ops
= &clkops_omap2_dflt
,
1628 .enable_reg
= OMAP4430_CM_L4PER_HDQ1W_CLKCTRL
,
1629 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1630 .clkdm_name
= "l4_per_clkdm",
1631 .parent
= &func_12m_fclk
,
1632 .recalc
= &followparent_recalc
,
1635 static const struct clksel hsi_fclk_div
[] = {
1636 { .parent
= &dpll_per_m2x2_ck
, .rates
= div3_1to4_rates
},
1640 /* Merged hsi_fclk into hsi */
1641 static struct clk hsi_fck
= {
1643 .parent
= &dpll_per_m2x2_ck
,
1644 .clksel
= hsi_fclk_div
,
1645 .clksel_reg
= OMAP4430_CM_L3INIT_HSI_CLKCTRL
,
1646 .clksel_mask
= OMAP4430_CLKSEL_24_25_MASK
,
1647 .ops
= &clkops_omap2_dflt
,
1648 .recalc
= &omap2_clksel_recalc
,
1649 .round_rate
= &omap2_clksel_round_rate
,
1650 .set_rate
= &omap2_clksel_set_rate
,
1651 .enable_reg
= OMAP4430_CM_L3INIT_HSI_CLKCTRL
,
1652 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1653 .clkdm_name
= "l3_init_clkdm",
1656 static struct clk i2c1_fck
= {
1658 .ops
= &clkops_omap2_dflt
,
1659 .enable_reg
= OMAP4430_CM_L4PER_I2C1_CLKCTRL
,
1660 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1661 .clkdm_name
= "l4_per_clkdm",
1662 .parent
= &func_96m_fclk
,
1663 .recalc
= &followparent_recalc
,
1666 static struct clk i2c2_fck
= {
1668 .ops
= &clkops_omap2_dflt
,
1669 .enable_reg
= OMAP4430_CM_L4PER_I2C2_CLKCTRL
,
1670 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1671 .clkdm_name
= "l4_per_clkdm",
1672 .parent
= &func_96m_fclk
,
1673 .recalc
= &followparent_recalc
,
1676 static struct clk i2c3_fck
= {
1678 .ops
= &clkops_omap2_dflt
,
1679 .enable_reg
= OMAP4430_CM_L4PER_I2C3_CLKCTRL
,
1680 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1681 .clkdm_name
= "l4_per_clkdm",
1682 .parent
= &func_96m_fclk
,
1683 .recalc
= &followparent_recalc
,
1686 static struct clk i2c4_fck
= {
1688 .ops
= &clkops_omap2_dflt
,
1689 .enable_reg
= OMAP4430_CM_L4PER_I2C4_CLKCTRL
,
1690 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1691 .clkdm_name
= "l4_per_clkdm",
1692 .parent
= &func_96m_fclk
,
1693 .recalc
= &followparent_recalc
,
1696 static struct clk ipu_fck
= {
1698 .ops
= &clkops_omap2_dflt
,
1699 .enable_reg
= OMAP4430_CM_DUCATI_DUCATI_CLKCTRL
,
1700 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1701 .clkdm_name
= "ducati_clkdm",
1702 .parent
= &ducati_clk_mux_ck
,
1703 .recalc
= &followparent_recalc
,
1706 static struct clk iss_ctrlclk
= {
1707 .name
= "iss_ctrlclk",
1708 .ops
= &clkops_omap2_dflt
,
1709 .enable_reg
= OMAP4430_CM_CAM_ISS_CLKCTRL
,
1710 .enable_bit
= OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT
,
1711 .clkdm_name
= "iss_clkdm",
1712 .parent
= &func_96m_fclk
,
1713 .recalc
= &followparent_recalc
,
1716 static struct clk iss_fck
= {
1718 .ops
= &clkops_omap2_dflt
,
1719 .enable_reg
= OMAP4430_CM_CAM_ISS_CLKCTRL
,
1720 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1721 .clkdm_name
= "iss_clkdm",
1722 .parent
= &ducati_clk_mux_ck
,
1723 .recalc
= &followparent_recalc
,
1726 static struct clk iva_fck
= {
1728 .ops
= &clkops_omap2_dflt
,
1729 .enable_reg
= OMAP4430_CM_IVAHD_IVAHD_CLKCTRL
,
1730 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1731 .clkdm_name
= "ivahd_clkdm",
1732 .parent
= &dpll_iva_m5_ck
,
1733 .recalc
= &followparent_recalc
,
1736 static struct clk kbd_fck
= {
1738 .ops
= &clkops_omap2_dflt
,
1739 .enable_reg
= OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL
,
1740 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1741 .clkdm_name
= "l4_wkup_clkdm",
1742 .parent
= &sys_32k_ck
,
1743 .recalc
= &followparent_recalc
,
1746 static struct clk l3_instr_ick
= {
1747 .name
= "l3_instr_ick",
1748 .ops
= &clkops_omap2_dflt
,
1749 .enable_reg
= OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL
,
1750 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1751 .clkdm_name
= "l3_instr_clkdm",
1752 .parent
= &l3_div_ck
,
1753 .recalc
= &followparent_recalc
,
1756 static struct clk l3_main_3_ick
= {
1757 .name
= "l3_main_3_ick",
1758 .ops
= &clkops_omap2_dflt
,
1759 .enable_reg
= OMAP4430_CM_L3INSTR_L3_3_CLKCTRL
,
1760 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1761 .clkdm_name
= "l3_instr_clkdm",
1762 .parent
= &l3_div_ck
,
1763 .recalc
= &followparent_recalc
,
1766 static struct clk mcasp_sync_mux_ck
= {
1767 .name
= "mcasp_sync_mux_ck",
1768 .parent
= &abe_24m_fclk
,
1769 .clksel
= dmic_sync_mux_sel
,
1770 .init
= &omap2_init_clksel_parent
,
1771 .clksel_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1772 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1773 .ops
= &clkops_null
,
1774 .recalc
= &omap2_clksel_recalc
,
1777 static const struct clksel func_mcasp_abe_gfclk_sel
[] = {
1778 { .parent
= &mcasp_sync_mux_ck
, .rates
= div_1_0_rates
},
1779 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1780 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1784 /* Merged func_mcasp_abe_gfclk into mcasp */
1785 static struct clk mcasp_fck
= {
1786 .name
= "mcasp_fck",
1787 .parent
= &mcasp_sync_mux_ck
,
1788 .clksel
= func_mcasp_abe_gfclk_sel
,
1789 .init
= &omap2_init_clksel_parent
,
1790 .clksel_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1791 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1792 .ops
= &clkops_omap2_dflt
,
1793 .recalc
= &omap2_clksel_recalc
,
1794 .enable_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1795 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1796 .clkdm_name
= "abe_clkdm",
1799 static struct clk mcbsp1_sync_mux_ck
= {
1800 .name
= "mcbsp1_sync_mux_ck",
1801 .parent
= &abe_24m_fclk
,
1802 .clksel
= dmic_sync_mux_sel
,
1803 .init
= &omap2_init_clksel_parent
,
1804 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1805 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1806 .ops
= &clkops_null
,
1807 .recalc
= &omap2_clksel_recalc
,
1810 static const struct clksel func_mcbsp1_gfclk_sel
[] = {
1811 { .parent
= &mcbsp1_sync_mux_ck
, .rates
= div_1_0_rates
},
1812 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1813 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1817 /* Merged func_mcbsp1_gfclk into mcbsp1 */
1818 static struct clk mcbsp1_fck
= {
1819 .name
= "mcbsp1_fck",
1820 .parent
= &mcbsp1_sync_mux_ck
,
1821 .clksel
= func_mcbsp1_gfclk_sel
,
1822 .init
= &omap2_init_clksel_parent
,
1823 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1824 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1825 .ops
= &clkops_omap2_dflt
,
1826 .recalc
= &omap2_clksel_recalc
,
1827 .enable_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1828 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1829 .clkdm_name
= "abe_clkdm",
1832 static struct clk mcbsp2_sync_mux_ck
= {
1833 .name
= "mcbsp2_sync_mux_ck",
1834 .parent
= &abe_24m_fclk
,
1835 .clksel
= dmic_sync_mux_sel
,
1836 .init
= &omap2_init_clksel_parent
,
1837 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
1838 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1839 .ops
= &clkops_null
,
1840 .recalc
= &omap2_clksel_recalc
,
1843 static const struct clksel func_mcbsp2_gfclk_sel
[] = {
1844 { .parent
= &mcbsp2_sync_mux_ck
, .rates
= div_1_0_rates
},
1845 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1846 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1850 /* Merged func_mcbsp2_gfclk into mcbsp2 */
1851 static struct clk mcbsp2_fck
= {
1852 .name
= "mcbsp2_fck",
1853 .parent
= &mcbsp2_sync_mux_ck
,
1854 .clksel
= func_mcbsp2_gfclk_sel
,
1855 .init
= &omap2_init_clksel_parent
,
1856 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
1857 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1858 .ops
= &clkops_omap2_dflt
,
1859 .recalc
= &omap2_clksel_recalc
,
1860 .enable_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
1861 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1862 .clkdm_name
= "abe_clkdm",
1865 static struct clk mcbsp3_sync_mux_ck
= {
1866 .name
= "mcbsp3_sync_mux_ck",
1867 .parent
= &abe_24m_fclk
,
1868 .clksel
= dmic_sync_mux_sel
,
1869 .init
= &omap2_init_clksel_parent
,
1870 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
1871 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1872 .ops
= &clkops_null
,
1873 .recalc
= &omap2_clksel_recalc
,
1876 static const struct clksel func_mcbsp3_gfclk_sel
[] = {
1877 { .parent
= &mcbsp3_sync_mux_ck
, .rates
= div_1_0_rates
},
1878 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1879 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1883 /* Merged func_mcbsp3_gfclk into mcbsp3 */
1884 static struct clk mcbsp3_fck
= {
1885 .name
= "mcbsp3_fck",
1886 .parent
= &mcbsp3_sync_mux_ck
,
1887 .clksel
= func_mcbsp3_gfclk_sel
,
1888 .init
= &omap2_init_clksel_parent
,
1889 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
1890 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1891 .ops
= &clkops_omap2_dflt
,
1892 .recalc
= &omap2_clksel_recalc
,
1893 .enable_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
1894 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1895 .clkdm_name
= "abe_clkdm",
1898 static struct clk mcbsp4_sync_mux_ck
= {
1899 .name
= "mcbsp4_sync_mux_ck",
1900 .parent
= &func_96m_fclk
,
1901 .clksel
= mcasp2_fclk_sel
,
1902 .init
= &omap2_init_clksel_parent
,
1903 .clksel_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
1904 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
1905 .ops
= &clkops_null
,
1906 .recalc
= &omap2_clksel_recalc
,
1909 static const struct clksel per_mcbsp4_gfclk_sel
[] = {
1910 { .parent
= &mcbsp4_sync_mux_ck
, .rates
= div_1_0_rates
},
1911 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1915 /* Merged per_mcbsp4_gfclk into mcbsp4 */
1916 static struct clk mcbsp4_fck
= {
1917 .name
= "mcbsp4_fck",
1918 .parent
= &mcbsp4_sync_mux_ck
,
1919 .clksel
= per_mcbsp4_gfclk_sel
,
1920 .init
= &omap2_init_clksel_parent
,
1921 .clksel_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
1922 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_24_24_MASK
,
1923 .ops
= &clkops_omap2_dflt
,
1924 .recalc
= &omap2_clksel_recalc
,
1925 .enable_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
1926 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1927 .clkdm_name
= "l4_per_clkdm",
1930 static struct clk mcpdm_fck
= {
1931 .name
= "mcpdm_fck",
1932 .ops
= &clkops_omap2_dflt
,
1933 .enable_reg
= OMAP4430_CM1_ABE_PDM_CLKCTRL
,
1934 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1935 .clkdm_name
= "abe_clkdm",
1936 .parent
= &pad_clks_ck
,
1937 .recalc
= &followparent_recalc
,
1940 static struct clk mcspi1_fck
= {
1941 .name
= "mcspi1_fck",
1942 .ops
= &clkops_omap2_dflt
,
1943 .enable_reg
= OMAP4430_CM_L4PER_MCSPI1_CLKCTRL
,
1944 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1945 .clkdm_name
= "l4_per_clkdm",
1946 .parent
= &func_48m_fclk
,
1947 .recalc
= &followparent_recalc
,
1950 static struct clk mcspi2_fck
= {
1951 .name
= "mcspi2_fck",
1952 .ops
= &clkops_omap2_dflt
,
1953 .enable_reg
= OMAP4430_CM_L4PER_MCSPI2_CLKCTRL
,
1954 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1955 .clkdm_name
= "l4_per_clkdm",
1956 .parent
= &func_48m_fclk
,
1957 .recalc
= &followparent_recalc
,
1960 static struct clk mcspi3_fck
= {
1961 .name
= "mcspi3_fck",
1962 .ops
= &clkops_omap2_dflt
,
1963 .enable_reg
= OMAP4430_CM_L4PER_MCSPI3_CLKCTRL
,
1964 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1965 .clkdm_name
= "l4_per_clkdm",
1966 .parent
= &func_48m_fclk
,
1967 .recalc
= &followparent_recalc
,
1970 static struct clk mcspi4_fck
= {
1971 .name
= "mcspi4_fck",
1972 .ops
= &clkops_omap2_dflt
,
1973 .enable_reg
= OMAP4430_CM_L4PER_MCSPI4_CLKCTRL
,
1974 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1975 .clkdm_name
= "l4_per_clkdm",
1976 .parent
= &func_48m_fclk
,
1977 .recalc
= &followparent_recalc
,
1980 /* Merged hsmmc1_fclk into mmc1 */
1981 static struct clk mmc1_fck
= {
1983 .parent
= &func_64m_fclk
,
1984 .clksel
= hsmmc6_fclk_sel
,
1985 .init
= &omap2_init_clksel_parent
,
1986 .clksel_reg
= OMAP4430_CM_L3INIT_MMC1_CLKCTRL
,
1987 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
1988 .ops
= &clkops_omap2_dflt
,
1989 .recalc
= &omap2_clksel_recalc
,
1990 .enable_reg
= OMAP4430_CM_L3INIT_MMC1_CLKCTRL
,
1991 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1992 .clkdm_name
= "l3_init_clkdm",
1995 /* Merged hsmmc2_fclk into mmc2 */
1996 static struct clk mmc2_fck
= {
1998 .parent
= &func_64m_fclk
,
1999 .clksel
= hsmmc6_fclk_sel
,
2000 .init
= &omap2_init_clksel_parent
,
2001 .clksel_reg
= OMAP4430_CM_L3INIT_MMC2_CLKCTRL
,
2002 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2003 .ops
= &clkops_omap2_dflt
,
2004 .recalc
= &omap2_clksel_recalc
,
2005 .enable_reg
= OMAP4430_CM_L3INIT_MMC2_CLKCTRL
,
2006 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2007 .clkdm_name
= "l3_init_clkdm",
2010 static struct clk mmc3_fck
= {
2012 .ops
= &clkops_omap2_dflt
,
2013 .enable_reg
= OMAP4430_CM_L4PER_MMCSD3_CLKCTRL
,
2014 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2015 .clkdm_name
= "l4_per_clkdm",
2016 .parent
= &func_48m_fclk
,
2017 .recalc
= &followparent_recalc
,
2020 static struct clk mmc4_fck
= {
2022 .ops
= &clkops_omap2_dflt
,
2023 .enable_reg
= OMAP4430_CM_L4PER_MMCSD4_CLKCTRL
,
2024 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2025 .clkdm_name
= "l4_per_clkdm",
2026 .parent
= &func_48m_fclk
,
2027 .recalc
= &followparent_recalc
,
2030 static struct clk mmc5_fck
= {
2032 .ops
= &clkops_omap2_dflt
,
2033 .enable_reg
= OMAP4430_CM_L4PER_MMCSD5_CLKCTRL
,
2034 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2035 .clkdm_name
= "l4_per_clkdm",
2036 .parent
= &func_48m_fclk
,
2037 .recalc
= &followparent_recalc
,
2040 static struct clk ocp2scp_usb_phy_phy_48m
= {
2041 .name
= "ocp2scp_usb_phy_phy_48m",
2042 .ops
= &clkops_omap2_dflt
,
2043 .enable_reg
= OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL
,
2044 .enable_bit
= OMAP4430_OPTFCLKEN_PHY_48M_SHIFT
,
2045 .clkdm_name
= "l3_init_clkdm",
2046 .parent
= &func_48m_fclk
,
2047 .recalc
= &followparent_recalc
,
2050 static struct clk ocp2scp_usb_phy_ick
= {
2051 .name
= "ocp2scp_usb_phy_ick",
2052 .ops
= &clkops_omap2_dflt
,
2053 .enable_reg
= OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL
,
2054 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2055 .clkdm_name
= "l3_init_clkdm",
2056 .parent
= &l4_div_ck
,
2057 .recalc
= &followparent_recalc
,
2060 static struct clk ocp_wp_noc_ick
= {
2061 .name
= "ocp_wp_noc_ick",
2062 .ops
= &clkops_omap2_dflt
,
2063 .enable_reg
= OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL
,
2064 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2065 .clkdm_name
= "l3_instr_clkdm",
2066 .parent
= &l3_div_ck
,
2067 .recalc
= &followparent_recalc
,
2070 static struct clk rng_ick
= {
2072 .ops
= &clkops_omap2_dflt
,
2073 .enable_reg
= OMAP4430_CM_L4SEC_RNG_CLKCTRL
,
2074 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2075 .clkdm_name
= "l4_secure_clkdm",
2076 .parent
= &l4_div_ck
,
2077 .recalc
= &followparent_recalc
,
2080 static struct clk sha2md5_fck
= {
2081 .name
= "sha2md5_fck",
2082 .ops
= &clkops_omap2_dflt
,
2083 .enable_reg
= OMAP4430_CM_L4SEC_SHA2MD51_CLKCTRL
,
2084 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2085 .clkdm_name
= "l4_secure_clkdm",
2086 .parent
= &l3_div_ck
,
2087 .recalc
= &followparent_recalc
,
2090 static struct clk sl2if_ick
= {
2091 .name
= "sl2if_ick",
2092 .ops
= &clkops_omap2_dflt
,
2093 .enable_reg
= OMAP4430_CM_IVAHD_SL2_CLKCTRL
,
2094 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2095 .clkdm_name
= "ivahd_clkdm",
2096 .parent
= &dpll_iva_m5_ck
,
2097 .recalc
= &followparent_recalc
,
2100 static struct clk slimbus1_fclk_1
= {
2101 .name
= "slimbus1_fclk_1",
2102 .ops
= &clkops_omap2_dflt
,
2103 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2104 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK1_SHIFT
,
2105 .clkdm_name
= "abe_clkdm",
2106 .parent
= &func_24m_clk
,
2107 .recalc
= &followparent_recalc
,
2110 static struct clk slimbus1_fclk_0
= {
2111 .name
= "slimbus1_fclk_0",
2112 .ops
= &clkops_omap2_dflt
,
2113 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2114 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK0_SHIFT
,
2115 .clkdm_name
= "abe_clkdm",
2116 .parent
= &abe_24m_fclk
,
2117 .recalc
= &followparent_recalc
,
2120 static struct clk slimbus1_fclk_2
= {
2121 .name
= "slimbus1_fclk_2",
2122 .ops
= &clkops_omap2_dflt
,
2123 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2124 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK2_SHIFT
,
2125 .clkdm_name
= "abe_clkdm",
2126 .parent
= &pad_clks_ck
,
2127 .recalc
= &followparent_recalc
,
2130 static struct clk slimbus1_slimbus_clk
= {
2131 .name
= "slimbus1_slimbus_clk",
2132 .ops
= &clkops_omap2_dflt
,
2133 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2134 .enable_bit
= OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT
,
2135 .clkdm_name
= "abe_clkdm",
2136 .parent
= &slimbus_clk
,
2137 .recalc
= &followparent_recalc
,
2140 static struct clk slimbus1_fck
= {
2141 .name
= "slimbus1_fck",
2142 .ops
= &clkops_omap2_dflt
,
2143 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2144 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2145 .clkdm_name
= "abe_clkdm",
2146 .parent
= &ocp_abe_iclk
,
2147 .recalc
= &followparent_recalc
,
2150 static struct clk slimbus2_fclk_1
= {
2151 .name
= "slimbus2_fclk_1",
2152 .ops
= &clkops_omap2_dflt
,
2153 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2154 .enable_bit
= OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT
,
2155 .clkdm_name
= "l4_per_clkdm",
2156 .parent
= &per_abe_24m_fclk
,
2157 .recalc
= &followparent_recalc
,
2160 static struct clk slimbus2_fclk_0
= {
2161 .name
= "slimbus2_fclk_0",
2162 .ops
= &clkops_omap2_dflt
,
2163 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2164 .enable_bit
= OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT
,
2165 .clkdm_name
= "l4_per_clkdm",
2166 .parent
= &func_24mc_fclk
,
2167 .recalc
= &followparent_recalc
,
2170 static struct clk slimbus2_slimbus_clk
= {
2171 .name
= "slimbus2_slimbus_clk",
2172 .ops
= &clkops_omap2_dflt
,
2173 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2174 .enable_bit
= OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT
,
2175 .clkdm_name
= "l4_per_clkdm",
2176 .parent
= &pad_slimbus_core_clks_ck
,
2177 .recalc
= &followparent_recalc
,
2180 static struct clk slimbus2_fck
= {
2181 .name
= "slimbus2_fck",
2182 .ops
= &clkops_omap2_dflt
,
2183 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2184 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2185 .clkdm_name
= "l4_per_clkdm",
2186 .parent
= &l4_div_ck
,
2187 .recalc
= &followparent_recalc
,
2190 static struct clk smartreflex_core_fck
= {
2191 .name
= "smartreflex_core_fck",
2192 .ops
= &clkops_omap2_dflt
,
2193 .enable_reg
= OMAP4430_CM_ALWON_SR_CORE_CLKCTRL
,
2194 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2195 .clkdm_name
= "l4_ao_clkdm",
2196 .parent
= &l4_wkup_clk_mux_ck
,
2197 .recalc
= &followparent_recalc
,
2200 static struct clk smartreflex_iva_fck
= {
2201 .name
= "smartreflex_iva_fck",
2202 .ops
= &clkops_omap2_dflt
,
2203 .enable_reg
= OMAP4430_CM_ALWON_SR_IVA_CLKCTRL
,
2204 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2205 .clkdm_name
= "l4_ao_clkdm",
2206 .parent
= &l4_wkup_clk_mux_ck
,
2207 .recalc
= &followparent_recalc
,
2210 static struct clk smartreflex_mpu_fck
= {
2211 .name
= "smartreflex_mpu_fck",
2212 .ops
= &clkops_omap2_dflt
,
2213 .enable_reg
= OMAP4430_CM_ALWON_SR_MPU_CLKCTRL
,
2214 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2215 .clkdm_name
= "l4_ao_clkdm",
2216 .parent
= &l4_wkup_clk_mux_ck
,
2217 .recalc
= &followparent_recalc
,
2220 /* Merged dmt1_clk_mux into timer1 */
2221 static struct clk timer1_fck
= {
2222 .name
= "timer1_fck",
2223 .parent
= &sys_clkin_ck
,
2224 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2225 .init
= &omap2_init_clksel_parent
,
2226 .clksel_reg
= OMAP4430_CM_WKUP_TIMER1_CLKCTRL
,
2227 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2228 .ops
= &clkops_omap2_dflt
,
2229 .recalc
= &omap2_clksel_recalc
,
2230 .enable_reg
= OMAP4430_CM_WKUP_TIMER1_CLKCTRL
,
2231 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2232 .clkdm_name
= "l4_wkup_clkdm",
2235 /* Merged cm2_dm10_mux into timer10 */
2236 static struct clk timer10_fck
= {
2237 .name
= "timer10_fck",
2238 .parent
= &sys_clkin_ck
,
2239 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2240 .init
= &omap2_init_clksel_parent
,
2241 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL
,
2242 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2243 .ops
= &clkops_omap2_dflt
,
2244 .recalc
= &omap2_clksel_recalc
,
2245 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL
,
2246 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2247 .clkdm_name
= "l4_per_clkdm",
2250 /* Merged cm2_dm11_mux into timer11 */
2251 static struct clk timer11_fck
= {
2252 .name
= "timer11_fck",
2253 .parent
= &sys_clkin_ck
,
2254 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2255 .init
= &omap2_init_clksel_parent
,
2256 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL
,
2257 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2258 .ops
= &clkops_omap2_dflt
,
2259 .recalc
= &omap2_clksel_recalc
,
2260 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL
,
2261 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2262 .clkdm_name
= "l4_per_clkdm",
2265 /* Merged cm2_dm2_mux into timer2 */
2266 static struct clk timer2_fck
= {
2267 .name
= "timer2_fck",
2268 .parent
= &sys_clkin_ck
,
2269 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2270 .init
= &omap2_init_clksel_parent
,
2271 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL
,
2272 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2273 .ops
= &clkops_omap2_dflt
,
2274 .recalc
= &omap2_clksel_recalc
,
2275 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL
,
2276 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2277 .clkdm_name
= "l4_per_clkdm",
2280 /* Merged cm2_dm3_mux into timer3 */
2281 static struct clk timer3_fck
= {
2282 .name
= "timer3_fck",
2283 .parent
= &sys_clkin_ck
,
2284 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2285 .init
= &omap2_init_clksel_parent
,
2286 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL
,
2287 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2288 .ops
= &clkops_omap2_dflt
,
2289 .recalc
= &omap2_clksel_recalc
,
2290 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL
,
2291 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2292 .clkdm_name
= "l4_per_clkdm",
2295 /* Merged cm2_dm4_mux into timer4 */
2296 static struct clk timer4_fck
= {
2297 .name
= "timer4_fck",
2298 .parent
= &sys_clkin_ck
,
2299 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2300 .init
= &omap2_init_clksel_parent
,
2301 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL
,
2302 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2303 .ops
= &clkops_omap2_dflt
,
2304 .recalc
= &omap2_clksel_recalc
,
2305 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL
,
2306 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2307 .clkdm_name
= "l4_per_clkdm",
2310 static const struct clksel timer5_sync_mux_sel
[] = {
2311 { .parent
= &syc_clk_div_ck
, .rates
= div_1_0_rates
},
2312 { .parent
= &sys_32k_ck
, .rates
= div_1_1_rates
},
2316 /* Merged timer5_sync_mux into timer5 */
2317 static struct clk timer5_fck
= {
2318 .name
= "timer5_fck",
2319 .parent
= &syc_clk_div_ck
,
2320 .clksel
= timer5_sync_mux_sel
,
2321 .init
= &omap2_init_clksel_parent
,
2322 .clksel_reg
= OMAP4430_CM1_ABE_TIMER5_CLKCTRL
,
2323 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2324 .ops
= &clkops_omap2_dflt
,
2325 .recalc
= &omap2_clksel_recalc
,
2326 .enable_reg
= OMAP4430_CM1_ABE_TIMER5_CLKCTRL
,
2327 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2328 .clkdm_name
= "abe_clkdm",
2331 /* Merged timer6_sync_mux into timer6 */
2332 static struct clk timer6_fck
= {
2333 .name
= "timer6_fck",
2334 .parent
= &syc_clk_div_ck
,
2335 .clksel
= timer5_sync_mux_sel
,
2336 .init
= &omap2_init_clksel_parent
,
2337 .clksel_reg
= OMAP4430_CM1_ABE_TIMER6_CLKCTRL
,
2338 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2339 .ops
= &clkops_omap2_dflt
,
2340 .recalc
= &omap2_clksel_recalc
,
2341 .enable_reg
= OMAP4430_CM1_ABE_TIMER6_CLKCTRL
,
2342 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2343 .clkdm_name
= "abe_clkdm",
2346 /* Merged timer7_sync_mux into timer7 */
2347 static struct clk timer7_fck
= {
2348 .name
= "timer7_fck",
2349 .parent
= &syc_clk_div_ck
,
2350 .clksel
= timer5_sync_mux_sel
,
2351 .init
= &omap2_init_clksel_parent
,
2352 .clksel_reg
= OMAP4430_CM1_ABE_TIMER7_CLKCTRL
,
2353 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2354 .ops
= &clkops_omap2_dflt
,
2355 .recalc
= &omap2_clksel_recalc
,
2356 .enable_reg
= OMAP4430_CM1_ABE_TIMER7_CLKCTRL
,
2357 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2358 .clkdm_name
= "abe_clkdm",
2361 /* Merged timer8_sync_mux into timer8 */
2362 static struct clk timer8_fck
= {
2363 .name
= "timer8_fck",
2364 .parent
= &syc_clk_div_ck
,
2365 .clksel
= timer5_sync_mux_sel
,
2366 .init
= &omap2_init_clksel_parent
,
2367 .clksel_reg
= OMAP4430_CM1_ABE_TIMER8_CLKCTRL
,
2368 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2369 .ops
= &clkops_omap2_dflt
,
2370 .recalc
= &omap2_clksel_recalc
,
2371 .enable_reg
= OMAP4430_CM1_ABE_TIMER8_CLKCTRL
,
2372 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2373 .clkdm_name
= "abe_clkdm",
2376 /* Merged cm2_dm9_mux into timer9 */
2377 static struct clk timer9_fck
= {
2378 .name
= "timer9_fck",
2379 .parent
= &sys_clkin_ck
,
2380 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2381 .init
= &omap2_init_clksel_parent
,
2382 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL
,
2383 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2384 .ops
= &clkops_omap2_dflt
,
2385 .recalc
= &omap2_clksel_recalc
,
2386 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL
,
2387 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2388 .clkdm_name
= "l4_per_clkdm",
2391 static struct clk uart1_fck
= {
2392 .name
= "uart1_fck",
2393 .ops
= &clkops_omap2_dflt
,
2394 .enable_reg
= OMAP4430_CM_L4PER_UART1_CLKCTRL
,
2395 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2396 .clkdm_name
= "l4_per_clkdm",
2397 .parent
= &func_48m_fclk
,
2398 .recalc
= &followparent_recalc
,
2401 static struct clk uart2_fck
= {
2402 .name
= "uart2_fck",
2403 .ops
= &clkops_omap2_dflt
,
2404 .enable_reg
= OMAP4430_CM_L4PER_UART2_CLKCTRL
,
2405 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2406 .clkdm_name
= "l4_per_clkdm",
2407 .parent
= &func_48m_fclk
,
2408 .recalc
= &followparent_recalc
,
2411 static struct clk uart3_fck
= {
2412 .name
= "uart3_fck",
2413 .ops
= &clkops_omap2_dflt
,
2414 .enable_reg
= OMAP4430_CM_L4PER_UART3_CLKCTRL
,
2415 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2416 .clkdm_name
= "l4_per_clkdm",
2417 .parent
= &func_48m_fclk
,
2418 .recalc
= &followparent_recalc
,
2421 static struct clk uart4_fck
= {
2422 .name
= "uart4_fck",
2423 .ops
= &clkops_omap2_dflt
,
2424 .enable_reg
= OMAP4430_CM_L4PER_UART4_CLKCTRL
,
2425 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2426 .clkdm_name
= "l4_per_clkdm",
2427 .parent
= &func_48m_fclk
,
2428 .recalc
= &followparent_recalc
,
2431 static struct clk usb_host_fs_fck
= {
2432 .name
= "usb_host_fs_fck",
2433 .ops
= &clkops_omap2_dflt
,
2434 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_FS_CLKCTRL
,
2435 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2436 .clkdm_name
= "l3_init_clkdm",
2437 .parent
= &func_48mc_fclk
,
2438 .recalc
= &followparent_recalc
,
2441 static struct clk usb_host_hs_utmi_p3_clk
= {
2442 .name
= "usb_host_hs_utmi_p3_clk",
2443 .ops
= &clkops_omap2_dflt
,
2444 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2445 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT
,
2446 .clkdm_name
= "l3_init_clkdm",
2447 .parent
= &init_60m_fclk
,
2448 .recalc
= &followparent_recalc
,
2451 static struct clk usb_host_hs_hsic60m_p1_clk
= {
2452 .name
= "usb_host_hs_hsic60m_p1_clk",
2453 .ops
= &clkops_omap2_dflt
,
2454 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2455 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT
,
2456 .clkdm_name
= "l3_init_clkdm",
2457 .parent
= &init_60m_fclk
,
2458 .recalc
= &followparent_recalc
,
2461 static struct clk usb_host_hs_hsic60m_p2_clk
= {
2462 .name
= "usb_host_hs_hsic60m_p2_clk",
2463 .ops
= &clkops_omap2_dflt
,
2464 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2465 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT
,
2466 .clkdm_name
= "l3_init_clkdm",
2467 .parent
= &init_60m_fclk
,
2468 .recalc
= &followparent_recalc
,
2471 static const struct clksel utmi_p1_gfclk_sel
[] = {
2472 { .parent
= &init_60m_fclk
, .rates
= div_1_0_rates
},
2473 { .parent
= &xclk60mhsp1_ck
, .rates
= div_1_1_rates
},
2477 static struct clk utmi_p1_gfclk
= {
2478 .name
= "utmi_p1_gfclk",
2479 .parent
= &init_60m_fclk
,
2480 .clksel
= utmi_p1_gfclk_sel
,
2481 .init
= &omap2_init_clksel_parent
,
2482 .clksel_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2483 .clksel_mask
= OMAP4430_CLKSEL_UTMI_P1_MASK
,
2484 .ops
= &clkops_null
,
2485 .recalc
= &omap2_clksel_recalc
,
2488 static struct clk usb_host_hs_utmi_p1_clk
= {
2489 .name
= "usb_host_hs_utmi_p1_clk",
2490 .ops
= &clkops_omap2_dflt
,
2491 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2492 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT
,
2493 .clkdm_name
= "l3_init_clkdm",
2494 .parent
= &utmi_p1_gfclk
,
2495 .recalc
= &followparent_recalc
,
2498 static const struct clksel utmi_p2_gfclk_sel
[] = {
2499 { .parent
= &init_60m_fclk
, .rates
= div_1_0_rates
},
2500 { .parent
= &xclk60mhsp2_ck
, .rates
= div_1_1_rates
},
2504 static struct clk utmi_p2_gfclk
= {
2505 .name
= "utmi_p2_gfclk",
2506 .parent
= &init_60m_fclk
,
2507 .clksel
= utmi_p2_gfclk_sel
,
2508 .init
= &omap2_init_clksel_parent
,
2509 .clksel_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2510 .clksel_mask
= OMAP4430_CLKSEL_UTMI_P2_MASK
,
2511 .ops
= &clkops_null
,
2512 .recalc
= &omap2_clksel_recalc
,
2515 static struct clk usb_host_hs_utmi_p2_clk
= {
2516 .name
= "usb_host_hs_utmi_p2_clk",
2517 .ops
= &clkops_omap2_dflt
,
2518 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2519 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT
,
2520 .clkdm_name
= "l3_init_clkdm",
2521 .parent
= &utmi_p2_gfclk
,
2522 .recalc
= &followparent_recalc
,
2525 static struct clk usb_host_hs_hsic480m_p1_clk
= {
2526 .name
= "usb_host_hs_hsic480m_p1_clk",
2527 .ops
= &clkops_omap2_dflt
,
2528 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2529 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT
,
2530 .clkdm_name
= "l3_init_clkdm",
2531 .parent
= &dpll_usb_m2_ck
,
2532 .recalc
= &followparent_recalc
,
2535 static struct clk usb_host_hs_hsic480m_p2_clk
= {
2536 .name
= "usb_host_hs_hsic480m_p2_clk",
2537 .ops
= &clkops_omap2_dflt
,
2538 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2539 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT
,
2540 .clkdm_name
= "l3_init_clkdm",
2541 .parent
= &dpll_usb_m2_ck
,
2542 .recalc
= &followparent_recalc
,
2545 static struct clk usb_host_hs_func48mclk
= {
2546 .name
= "usb_host_hs_func48mclk",
2547 .ops
= &clkops_omap2_dflt
,
2548 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2549 .enable_bit
= OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT
,
2550 .clkdm_name
= "l3_init_clkdm",
2551 .parent
= &func_48mc_fclk
,
2552 .recalc
= &followparent_recalc
,
2555 static struct clk usb_host_hs_fck
= {
2556 .name
= "usb_host_hs_fck",
2557 .ops
= &clkops_omap2_dflt
,
2558 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2559 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2560 .clkdm_name
= "l3_init_clkdm",
2561 .parent
= &init_60m_fclk
,
2562 .recalc
= &followparent_recalc
,
2565 static const struct clksel otg_60m_gfclk_sel
[] = {
2566 { .parent
= &utmi_phy_clkout_ck
, .rates
= div_1_0_rates
},
2567 { .parent
= &xclk60motg_ck
, .rates
= div_1_1_rates
},
2571 static struct clk otg_60m_gfclk
= {
2572 .name
= "otg_60m_gfclk",
2573 .parent
= &utmi_phy_clkout_ck
,
2574 .clksel
= otg_60m_gfclk_sel
,
2575 .init
= &omap2_init_clksel_parent
,
2576 .clksel_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2577 .clksel_mask
= OMAP4430_CLKSEL_60M_MASK
,
2578 .ops
= &clkops_null
,
2579 .recalc
= &omap2_clksel_recalc
,
2582 static struct clk usb_otg_hs_xclk
= {
2583 .name
= "usb_otg_hs_xclk",
2584 .ops
= &clkops_omap2_dflt
,
2585 .enable_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2586 .enable_bit
= OMAP4430_OPTFCLKEN_XCLK_SHIFT
,
2587 .clkdm_name
= "l3_init_clkdm",
2588 .parent
= &otg_60m_gfclk
,
2589 .recalc
= &followparent_recalc
,
2592 static struct clk usb_otg_hs_ick
= {
2593 .name
= "usb_otg_hs_ick",
2594 .ops
= &clkops_omap2_dflt
,
2595 .enable_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2596 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2597 .clkdm_name
= "l3_init_clkdm",
2598 .parent
= &l3_div_ck
,
2599 .recalc
= &followparent_recalc
,
2602 static struct clk usb_phy_cm_clk32k
= {
2603 .name
= "usb_phy_cm_clk32k",
2604 .ops
= &clkops_omap2_dflt
,
2605 .enable_reg
= OMAP4430_CM_ALWON_USBPHY_CLKCTRL
,
2606 .enable_bit
= OMAP4430_OPTFCLKEN_CLK32K_SHIFT
,
2607 .clkdm_name
= "l4_ao_clkdm",
2608 .parent
= &sys_32k_ck
,
2609 .recalc
= &followparent_recalc
,
2612 static struct clk usb_tll_hs_usb_ch2_clk
= {
2613 .name
= "usb_tll_hs_usb_ch2_clk",
2614 .ops
= &clkops_omap2_dflt
,
2615 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2616 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT
,
2617 .clkdm_name
= "l3_init_clkdm",
2618 .parent
= &init_60m_fclk
,
2619 .recalc
= &followparent_recalc
,
2622 static struct clk usb_tll_hs_usb_ch0_clk
= {
2623 .name
= "usb_tll_hs_usb_ch0_clk",
2624 .ops
= &clkops_omap2_dflt
,
2625 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2626 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT
,
2627 .clkdm_name
= "l3_init_clkdm",
2628 .parent
= &init_60m_fclk
,
2629 .recalc
= &followparent_recalc
,
2632 static struct clk usb_tll_hs_usb_ch1_clk
= {
2633 .name
= "usb_tll_hs_usb_ch1_clk",
2634 .ops
= &clkops_omap2_dflt
,
2635 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2636 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT
,
2637 .clkdm_name
= "l3_init_clkdm",
2638 .parent
= &init_60m_fclk
,
2639 .recalc
= &followparent_recalc
,
2642 static struct clk usb_tll_hs_ick
= {
2643 .name
= "usb_tll_hs_ick",
2644 .ops
= &clkops_omap2_dflt
,
2645 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2646 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2647 .clkdm_name
= "l3_init_clkdm",
2648 .parent
= &l4_div_ck
,
2649 .recalc
= &followparent_recalc
,
2652 static const struct clksel_rate div2_14to18_rates
[] = {
2653 { .div
= 14, .val
= 0, .flags
= RATE_IN_4430
},
2654 { .div
= 18, .val
= 1, .flags
= RATE_IN_4430
},
2658 static const struct clksel usim_fclk_div
[] = {
2659 { .parent
= &dpll_per_m4_ck
, .rates
= div2_14to18_rates
},
2663 static struct clk usim_ck
= {
2665 .parent
= &dpll_per_m4_ck
,
2666 .clksel
= usim_fclk_div
,
2667 .clksel_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2668 .clksel_mask
= OMAP4430_CLKSEL_DIV_MASK
,
2669 .ops
= &clkops_null
,
2670 .recalc
= &omap2_clksel_recalc
,
2671 .round_rate
= &omap2_clksel_round_rate
,
2672 .set_rate
= &omap2_clksel_set_rate
,
2675 static struct clk usim_fclk
= {
2676 .name
= "usim_fclk",
2677 .ops
= &clkops_omap2_dflt
,
2678 .enable_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2679 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK_SHIFT
,
2680 .clkdm_name
= "l4_wkup_clkdm",
2682 .recalc
= &followparent_recalc
,
2685 static struct clk usim_fck
= {
2687 .ops
= &clkops_omap2_dflt
,
2688 .enable_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2689 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2690 .clkdm_name
= "l4_wkup_clkdm",
2691 .parent
= &sys_32k_ck
,
2692 .recalc
= &followparent_recalc
,
2695 static struct clk wd_timer2_fck
= {
2696 .name
= "wd_timer2_fck",
2697 .ops
= &clkops_omap2_dflt
,
2698 .enable_reg
= OMAP4430_CM_WKUP_WDT2_CLKCTRL
,
2699 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2700 .clkdm_name
= "l4_wkup_clkdm",
2701 .parent
= &sys_32k_ck
,
2702 .recalc
= &followparent_recalc
,
2705 static struct clk wd_timer3_fck
= {
2706 .name
= "wd_timer3_fck",
2707 .ops
= &clkops_omap2_dflt
,
2708 .enable_reg
= OMAP4430_CM1_ABE_WDT3_CLKCTRL
,
2709 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2710 .clkdm_name
= "abe_clkdm",
2711 .parent
= &sys_32k_ck
,
2712 .recalc
= &followparent_recalc
,
2715 /* Remaining optional clocks */
2716 static const struct clksel stm_clk_div_div
[] = {
2717 { .parent
= &pmd_stm_clock_mux_ck
, .rates
= div3_1to4_rates
},
2721 static struct clk stm_clk_div_ck
= {
2722 .name
= "stm_clk_div_ck",
2723 .parent
= &pmd_stm_clock_mux_ck
,
2724 .clksel
= stm_clk_div_div
,
2725 .clksel_reg
= OMAP4430_CM_EMU_DEBUGSS_CLKCTRL
,
2726 .clksel_mask
= OMAP4430_CLKSEL_PMD_STM_CLK_MASK
,
2727 .ops
= &clkops_null
,
2728 .recalc
= &omap2_clksel_recalc
,
2729 .round_rate
= &omap2_clksel_round_rate
,
2730 .set_rate
= &omap2_clksel_set_rate
,
2733 static const struct clksel trace_clk_div_div
[] = {
2734 { .parent
= &pmd_trace_clk_mux_ck
, .rates
= div3_1to4_rates
},
2738 static struct clk trace_clk_div_ck
= {
2739 .name
= "trace_clk_div_ck",
2740 .parent
= &pmd_trace_clk_mux_ck
,
2741 .clksel
= trace_clk_div_div
,
2742 .clksel_reg
= OMAP4430_CM_EMU_DEBUGSS_CLKCTRL
,
2743 .clksel_mask
= OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK
,
2744 .ops
= &clkops_null
,
2745 .recalc
= &omap2_clksel_recalc
,
2746 .round_rate
= &omap2_clksel_round_rate
,
2747 .set_rate
= &omap2_clksel_set_rate
,
2754 static struct omap_clk omap44xx_clks
[] = {
2755 CLK(NULL
, "extalt_clkin_ck", &extalt_clkin_ck
, CK_443X
),
2756 CLK(NULL
, "pad_clks_ck", &pad_clks_ck
, CK_443X
),
2757 CLK(NULL
, "pad_slimbus_core_clks_ck", &pad_slimbus_core_clks_ck
, CK_443X
),
2758 CLK(NULL
, "secure_32k_clk_src_ck", &secure_32k_clk_src_ck
, CK_443X
),
2759 CLK(NULL
, "slimbus_clk", &slimbus_clk
, CK_443X
),
2760 CLK(NULL
, "sys_32k_ck", &sys_32k_ck
, CK_443X
),
2761 CLK(NULL
, "virt_12000000_ck", &virt_12000000_ck
, CK_443X
),
2762 CLK(NULL
, "virt_13000000_ck", &virt_13000000_ck
, CK_443X
),
2763 CLK(NULL
, "virt_16800000_ck", &virt_16800000_ck
, CK_443X
),
2764 CLK(NULL
, "virt_19200000_ck", &virt_19200000_ck
, CK_443X
),
2765 CLK(NULL
, "virt_26000000_ck", &virt_26000000_ck
, CK_443X
),
2766 CLK(NULL
, "virt_27000000_ck", &virt_27000000_ck
, CK_443X
),
2767 CLK(NULL
, "virt_38400000_ck", &virt_38400000_ck
, CK_443X
),
2768 CLK(NULL
, "sys_clkin_ck", &sys_clkin_ck
, CK_443X
),
2769 CLK(NULL
, "tie_low_clock_ck", &tie_low_clock_ck
, CK_443X
),
2770 CLK(NULL
, "utmi_phy_clkout_ck", &utmi_phy_clkout_ck
, CK_443X
),
2771 CLK(NULL
, "xclk60mhsp1_ck", &xclk60mhsp1_ck
, CK_443X
),
2772 CLK(NULL
, "xclk60mhsp2_ck", &xclk60mhsp2_ck
, CK_443X
),
2773 CLK(NULL
, "xclk60motg_ck", &xclk60motg_ck
, CK_443X
),
2774 CLK(NULL
, "abe_dpll_bypass_clk_mux_ck", &abe_dpll_bypass_clk_mux_ck
, CK_443X
),
2775 CLK(NULL
, "abe_dpll_refclk_mux_ck", &abe_dpll_refclk_mux_ck
, CK_443X
),
2776 CLK(NULL
, "dpll_abe_ck", &dpll_abe_ck
, CK_443X
),
2777 CLK(NULL
, "dpll_abe_m2x2_ck", &dpll_abe_m2x2_ck
, CK_443X
),
2778 CLK(NULL
, "abe_24m_fclk", &abe_24m_fclk
, CK_443X
),
2779 CLK(NULL
, "abe_clk", &abe_clk
, CK_443X
),
2780 CLK(NULL
, "aess_fclk", &aess_fclk
, CK_443X
),
2781 CLK(NULL
, "dpll_abe_m3_ck", &dpll_abe_m3_ck
, CK_443X
),
2782 CLK(NULL
, "core_hsd_byp_clk_mux_ck", &core_hsd_byp_clk_mux_ck
, CK_443X
),
2783 CLK(NULL
, "dpll_core_ck", &dpll_core_ck
, CK_443X
),
2784 CLK(NULL
, "dpll_core_m6_ck", &dpll_core_m6_ck
, CK_443X
),
2785 CLK(NULL
, "dbgclk_mux_ck", &dbgclk_mux_ck
, CK_443X
),
2786 CLK(NULL
, "dpll_core_m2_ck", &dpll_core_m2_ck
, CK_443X
),
2787 CLK(NULL
, "ddrphy_ck", &ddrphy_ck
, CK_443X
),
2788 CLK(NULL
, "dpll_core_m5_ck", &dpll_core_m5_ck
, CK_443X
),
2789 CLK(NULL
, "div_core_ck", &div_core_ck
, CK_443X
),
2790 CLK(NULL
, "div_iva_hs_clk", &div_iva_hs_clk
, CK_443X
),
2791 CLK(NULL
, "div_mpu_hs_clk", &div_mpu_hs_clk
, CK_443X
),
2792 CLK(NULL
, "dpll_core_m4_ck", &dpll_core_m4_ck
, CK_443X
),
2793 CLK(NULL
, "dll_clk_div_ck", &dll_clk_div_ck
, CK_443X
),
2794 CLK(NULL
, "dpll_abe_m2_ck", &dpll_abe_m2_ck
, CK_443X
),
2795 CLK(NULL
, "dpll_core_m3_ck", &dpll_core_m3_ck
, CK_443X
),
2796 CLK(NULL
, "dpll_core_m7_ck", &dpll_core_m7_ck
, CK_443X
),
2797 CLK(NULL
, "iva_hsd_byp_clk_mux_ck", &iva_hsd_byp_clk_mux_ck
, CK_443X
),
2798 CLK(NULL
, "dpll_iva_ck", &dpll_iva_ck
, CK_443X
),
2799 CLK(NULL
, "dpll_iva_m4_ck", &dpll_iva_m4_ck
, CK_443X
),
2800 CLK(NULL
, "dpll_iva_m5_ck", &dpll_iva_m5_ck
, CK_443X
),
2801 CLK(NULL
, "dpll_mpu_ck", &dpll_mpu_ck
, CK_443X
),
2802 CLK(NULL
, "dpll_mpu_m2_ck", &dpll_mpu_m2_ck
, CK_443X
),
2803 CLK(NULL
, "per_hs_clk_div_ck", &per_hs_clk_div_ck
, CK_443X
),
2804 CLK(NULL
, "per_hsd_byp_clk_mux_ck", &per_hsd_byp_clk_mux_ck
, CK_443X
),
2805 CLK(NULL
, "dpll_per_ck", &dpll_per_ck
, CK_443X
),
2806 CLK(NULL
, "dpll_per_m2_ck", &dpll_per_m2_ck
, CK_443X
),
2807 CLK(NULL
, "dpll_per_m2x2_ck", &dpll_per_m2x2_ck
, CK_443X
),
2808 CLK(NULL
, "dpll_per_m3_ck", &dpll_per_m3_ck
, CK_443X
),
2809 CLK(NULL
, "dpll_per_m4_ck", &dpll_per_m4_ck
, CK_443X
),
2810 CLK(NULL
, "dpll_per_m5_ck", &dpll_per_m5_ck
, CK_443X
),
2811 CLK(NULL
, "dpll_per_m6_ck", &dpll_per_m6_ck
, CK_443X
),
2812 CLK(NULL
, "dpll_per_m7_ck", &dpll_per_m7_ck
, CK_443X
),
2813 CLK(NULL
, "dpll_unipro_ck", &dpll_unipro_ck
, CK_443X
),
2814 CLK(NULL
, "dpll_unipro_m2x2_ck", &dpll_unipro_m2x2_ck
, CK_443X
),
2815 CLK(NULL
, "usb_hs_clk_div_ck", &usb_hs_clk_div_ck
, CK_443X
),
2816 CLK(NULL
, "dpll_usb_ck", &dpll_usb_ck
, CK_443X
),
2817 CLK(NULL
, "dpll_usb_clkdcoldo_ck", &dpll_usb_clkdcoldo_ck
, CK_443X
),
2818 CLK(NULL
, "dpll_usb_m2_ck", &dpll_usb_m2_ck
, CK_443X
),
2819 CLK(NULL
, "ducati_clk_mux_ck", &ducati_clk_mux_ck
, CK_443X
),
2820 CLK(NULL
, "func_12m_fclk", &func_12m_fclk
, CK_443X
),
2821 CLK(NULL
, "func_24m_clk", &func_24m_clk
, CK_443X
),
2822 CLK(NULL
, "func_24mc_fclk", &func_24mc_fclk
, CK_443X
),
2823 CLK(NULL
, "func_48m_fclk", &func_48m_fclk
, CK_443X
),
2824 CLK(NULL
, "func_48mc_fclk", &func_48mc_fclk
, CK_443X
),
2825 CLK(NULL
, "func_64m_fclk", &func_64m_fclk
, CK_443X
),
2826 CLK(NULL
, "func_96m_fclk", &func_96m_fclk
, CK_443X
),
2827 CLK(NULL
, "hsmmc6_fclk", &hsmmc6_fclk
, CK_443X
),
2828 CLK(NULL
, "init_60m_fclk", &init_60m_fclk
, CK_443X
),
2829 CLK(NULL
, "l3_div_ck", &l3_div_ck
, CK_443X
),
2830 CLK(NULL
, "l4_div_ck", &l4_div_ck
, CK_443X
),
2831 CLK(NULL
, "lp_clk_div_ck", &lp_clk_div_ck
, CK_443X
),
2832 CLK(NULL
, "l4_wkup_clk_mux_ck", &l4_wkup_clk_mux_ck
, CK_443X
),
2833 CLK(NULL
, "per_abe_nc_fclk", &per_abe_nc_fclk
, CK_443X
),
2834 CLK(NULL
, "mcasp2_fclk", &mcasp2_fclk
, CK_443X
),
2835 CLK(NULL
, "mcasp3_fclk", &mcasp3_fclk
, CK_443X
),
2836 CLK(NULL
, "ocp_abe_iclk", &ocp_abe_iclk
, CK_443X
),
2837 CLK(NULL
, "per_abe_24m_fclk", &per_abe_24m_fclk
, CK_443X
),
2838 CLK(NULL
, "pmd_stm_clock_mux_ck", &pmd_stm_clock_mux_ck
, CK_443X
),
2839 CLK(NULL
, "pmd_trace_clk_mux_ck", &pmd_trace_clk_mux_ck
, CK_443X
),
2840 CLK(NULL
, "syc_clk_div_ck", &syc_clk_div_ck
, CK_443X
),
2841 CLK(NULL
, "aes1_fck", &aes1_fck
, CK_443X
),
2842 CLK(NULL
, "aes2_fck", &aes2_fck
, CK_443X
),
2843 CLK(NULL
, "aess_fck", &aess_fck
, CK_443X
),
2844 CLK(NULL
, "bandgap_fclk", &bandgap_fclk
, CK_443X
),
2845 CLK(NULL
, "des3des_fck", &des3des_fck
, CK_443X
),
2846 CLK(NULL
, "dmic_sync_mux_ck", &dmic_sync_mux_ck
, CK_443X
),
2847 CLK(NULL
, "dmic_fck", &dmic_fck
, CK_443X
),
2848 CLK(NULL
, "dsp_fck", &dsp_fck
, CK_443X
),
2849 CLK(NULL
, "dss_sys_clk", &dss_sys_clk
, CK_443X
),
2850 CLK(NULL
, "dss_tv_clk", &dss_tv_clk
, CK_443X
),
2851 CLK(NULL
, "dss_dss_clk", &dss_dss_clk
, CK_443X
),
2852 CLK(NULL
, "dss_48mhz_clk", &dss_48mhz_clk
, CK_443X
),
2853 CLK(NULL
, "dss_fck", &dss_fck
, CK_443X
),
2854 CLK(NULL
, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck
, CK_443X
),
2855 CLK(NULL
, "emif1_fck", &emif1_fck
, CK_443X
),
2856 CLK(NULL
, "emif2_fck", &emif2_fck
, CK_443X
),
2857 CLK(NULL
, "fdif_fck", &fdif_fck
, CK_443X
),
2858 CLK(NULL
, "fpka_fck", &fpka_fck
, CK_443X
),
2859 CLK(NULL
, "gpio1_dbck", &gpio1_dbclk
, CK_443X
),
2860 CLK(NULL
, "gpio1_ick", &gpio1_ick
, CK_443X
),
2861 CLK(NULL
, "gpio2_dbck", &gpio2_dbclk
, CK_443X
),
2862 CLK(NULL
, "gpio2_ick", &gpio2_ick
, CK_443X
),
2863 CLK(NULL
, "gpio3_dbck", &gpio3_dbclk
, CK_443X
),
2864 CLK(NULL
, "gpio3_ick", &gpio3_ick
, CK_443X
),
2865 CLK(NULL
, "gpio4_dbck", &gpio4_dbclk
, CK_443X
),
2866 CLK(NULL
, "gpio4_ick", &gpio4_ick
, CK_443X
),
2867 CLK(NULL
, "gpio5_dbck", &gpio5_dbclk
, CK_443X
),
2868 CLK(NULL
, "gpio5_ick", &gpio5_ick
, CK_443X
),
2869 CLK(NULL
, "gpio6_dbck", &gpio6_dbclk
, CK_443X
),
2870 CLK(NULL
, "gpio6_ick", &gpio6_ick
, CK_443X
),
2871 CLK(NULL
, "gpmc_ick", &gpmc_ick
, CK_443X
),
2872 CLK(NULL
, "gpu_fck", &gpu_fck
, CK_443X
),
2873 CLK("omap2_hdq.0", "fck", &hdq1w_fck
, CK_443X
),
2874 CLK(NULL
, "hsi_fck", &hsi_fck
, CK_443X
),
2875 CLK("i2c_omap.1", "fck", &i2c1_fck
, CK_443X
),
2876 CLK("i2c_omap.2", "fck", &i2c2_fck
, CK_443X
),
2877 CLK("i2c_omap.3", "fck", &i2c3_fck
, CK_443X
),
2878 CLK("i2c_omap.4", "fck", &i2c4_fck
, CK_443X
),
2879 CLK(NULL
, "ipu_fck", &ipu_fck
, CK_443X
),
2880 CLK(NULL
, "iss_ctrlclk", &iss_ctrlclk
, CK_443X
),
2881 CLK(NULL
, "iss_fck", &iss_fck
, CK_443X
),
2882 CLK(NULL
, "iva_fck", &iva_fck
, CK_443X
),
2883 CLK(NULL
, "kbd_fck", &kbd_fck
, CK_443X
),
2884 CLK(NULL
, "l3_instr_ick", &l3_instr_ick
, CK_443X
),
2885 CLK(NULL
, "l3_main_3_ick", &l3_main_3_ick
, CK_443X
),
2886 CLK(NULL
, "mcasp_sync_mux_ck", &mcasp_sync_mux_ck
, CK_443X
),
2887 CLK(NULL
, "mcasp_fck", &mcasp_fck
, CK_443X
),
2888 CLK(NULL
, "mcbsp1_sync_mux_ck", &mcbsp1_sync_mux_ck
, CK_443X
),
2889 CLK("omap-mcbsp.1", "fck", &mcbsp1_fck
, CK_443X
),
2890 CLK(NULL
, "mcbsp2_sync_mux_ck", &mcbsp2_sync_mux_ck
, CK_443X
),
2891 CLK("omap-mcbsp.2", "fck", &mcbsp2_fck
, CK_443X
),
2892 CLK(NULL
, "mcbsp3_sync_mux_ck", &mcbsp3_sync_mux_ck
, CK_443X
),
2893 CLK("omap-mcbsp.3", "fck", &mcbsp3_fck
, CK_443X
),
2894 CLK(NULL
, "mcbsp4_sync_mux_ck", &mcbsp4_sync_mux_ck
, CK_443X
),
2895 CLK("omap-mcbsp.4", "fck", &mcbsp4_fck
, CK_443X
),
2896 CLK(NULL
, "mcpdm_fck", &mcpdm_fck
, CK_443X
),
2897 CLK("omap2_mcspi.1", "fck", &mcspi1_fck
, CK_443X
),
2898 CLK("omap2_mcspi.2", "fck", &mcspi2_fck
, CK_443X
),
2899 CLK("omap2_mcspi.3", "fck", &mcspi3_fck
, CK_443X
),
2900 CLK("omap2_mcspi.4", "fck", &mcspi4_fck
, CK_443X
),
2901 CLK("mmci-omap-hs.0", "fck", &mmc1_fck
, CK_443X
),
2902 CLK("mmci-omap-hs.1", "fck", &mmc2_fck
, CK_443X
),
2903 CLK("mmci-omap-hs.2", "fck", &mmc3_fck
, CK_443X
),
2904 CLK("mmci-omap-hs.3", "fck", &mmc4_fck
, CK_443X
),
2905 CLK("mmci-omap-hs.4", "fck", &mmc5_fck
, CK_443X
),
2906 CLK(NULL
, "ocp2scp_usb_phy_phy_48m", &ocp2scp_usb_phy_phy_48m
, CK_443X
),
2907 CLK(NULL
, "ocp2scp_usb_phy_ick", &ocp2scp_usb_phy_ick
, CK_443X
),
2908 CLK(NULL
, "ocp_wp_noc_ick", &ocp_wp_noc_ick
, CK_443X
),
2909 CLK("omap_rng", "ick", &rng_ick
, CK_443X
),
2910 CLK(NULL
, "sha2md5_fck", &sha2md5_fck
, CK_443X
),
2911 CLK(NULL
, "sl2if_ick", &sl2if_ick
, CK_443X
),
2912 CLK(NULL
, "slimbus1_fclk_1", &slimbus1_fclk_1
, CK_443X
),
2913 CLK(NULL
, "slimbus1_fclk_0", &slimbus1_fclk_0
, CK_443X
),
2914 CLK(NULL
, "slimbus1_fclk_2", &slimbus1_fclk_2
, CK_443X
),
2915 CLK(NULL
, "slimbus1_slimbus_clk", &slimbus1_slimbus_clk
, CK_443X
),
2916 CLK(NULL
, "slimbus1_fck", &slimbus1_fck
, CK_443X
),
2917 CLK(NULL
, "slimbus2_fclk_1", &slimbus2_fclk_1
, CK_443X
),
2918 CLK(NULL
, "slimbus2_fclk_0", &slimbus2_fclk_0
, CK_443X
),
2919 CLK(NULL
, "slimbus2_slimbus_clk", &slimbus2_slimbus_clk
, CK_443X
),
2920 CLK(NULL
, "slimbus2_fck", &slimbus2_fck
, CK_443X
),
2921 CLK(NULL
, "smartreflex_core_fck", &smartreflex_core_fck
, CK_443X
),
2922 CLK(NULL
, "smartreflex_iva_fck", &smartreflex_iva_fck
, CK_443X
),
2923 CLK(NULL
, "smartreflex_mpu_fck", &smartreflex_mpu_fck
, CK_443X
),
2924 CLK(NULL
, "gpt1_fck", &timer1_fck
, CK_443X
),
2925 CLK(NULL
, "gpt10_fck", &timer10_fck
, CK_443X
),
2926 CLK(NULL
, "gpt11_fck", &timer11_fck
, CK_443X
),
2927 CLK(NULL
, "gpt2_fck", &timer2_fck
, CK_443X
),
2928 CLK(NULL
, "gpt3_fck", &timer3_fck
, CK_443X
),
2929 CLK(NULL
, "gpt4_fck", &timer4_fck
, CK_443X
),
2930 CLK(NULL
, "gpt5_fck", &timer5_fck
, CK_443X
),
2931 CLK(NULL
, "gpt6_fck", &timer6_fck
, CK_443X
),
2932 CLK(NULL
, "gpt7_fck", &timer7_fck
, CK_443X
),
2933 CLK(NULL
, "gpt8_fck", &timer8_fck
, CK_443X
),
2934 CLK(NULL
, "gpt9_fck", &timer9_fck
, CK_443X
),
2935 CLK(NULL
, "uart1_fck", &uart1_fck
, CK_443X
),
2936 CLK(NULL
, "uart2_fck", &uart2_fck
, CK_443X
),
2937 CLK(NULL
, "uart3_fck", &uart3_fck
, CK_443X
),
2938 CLK(NULL
, "uart4_fck", &uart4_fck
, CK_443X
),
2939 CLK(NULL
, "usb_host_fs_fck", &usb_host_fs_fck
, CK_443X
),
2940 CLK(NULL
, "usb_host_hs_utmi_p3_clk", &usb_host_hs_utmi_p3_clk
, CK_443X
),
2941 CLK(NULL
, "usb_host_hs_hsic60m_p1_clk", &usb_host_hs_hsic60m_p1_clk
, CK_443X
),
2942 CLK(NULL
, "usb_host_hs_hsic60m_p2_clk", &usb_host_hs_hsic60m_p2_clk
, CK_443X
),
2943 CLK(NULL
, "utmi_p1_gfclk", &utmi_p1_gfclk
, CK_443X
),
2944 CLK(NULL
, "usb_host_hs_utmi_p1_clk", &usb_host_hs_utmi_p1_clk
, CK_443X
),
2945 CLK(NULL
, "utmi_p2_gfclk", &utmi_p2_gfclk
, CK_443X
),
2946 CLK(NULL
, "usb_host_hs_utmi_p2_clk", &usb_host_hs_utmi_p2_clk
, CK_443X
),
2947 CLK(NULL
, "usb_host_hs_hsic480m_p1_clk", &usb_host_hs_hsic480m_p1_clk
, CK_443X
),
2948 CLK(NULL
, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk
, CK_443X
),
2949 CLK(NULL
, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk
, CK_443X
),
2950 CLK(NULL
, "usb_host_hs_fck", &usb_host_hs_fck
, CK_443X
),
2951 CLK(NULL
, "otg_60m_gfclk", &otg_60m_gfclk
, CK_443X
),
2952 CLK(NULL
, "usb_otg_hs_xclk", &usb_otg_hs_xclk
, CK_443X
),
2953 CLK("musb_hdrc", "ick", &usb_otg_hs_ick
, CK_443X
),
2954 CLK(NULL
, "usb_phy_cm_clk32k", &usb_phy_cm_clk32k
, CK_443X
),
2955 CLK(NULL
, "usb_tll_hs_usb_ch2_clk", &usb_tll_hs_usb_ch2_clk
, CK_443X
),
2956 CLK(NULL
, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk
, CK_443X
),
2957 CLK(NULL
, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk
, CK_443X
),
2958 CLK(NULL
, "usb_tll_hs_ick", &usb_tll_hs_ick
, CK_443X
),
2959 CLK(NULL
, "usim_ck", &usim_ck
, CK_443X
),
2960 CLK(NULL
, "usim_fclk", &usim_fclk
, CK_443X
),
2961 CLK(NULL
, "usim_fck", &usim_fck
, CK_443X
),
2962 CLK("omap_wdt", "fck", &wd_timer2_fck
, CK_443X
),
2963 CLK(NULL
, "wd_timer3_fck", &wd_timer3_fck
, CK_443X
),
2964 CLK(NULL
, "stm_clk_div_ck", &stm_clk_div_ck
, CK_443X
),
2965 CLK(NULL
, "trace_clk_div_ck", &trace_clk_div_ck
, CK_443X
),
2966 CLK(NULL
, "gpmc_ck", &dummy_ck
, CK_443X
),
2967 CLK(NULL
, "gpt1_ick", &dummy_ck
, CK_443X
),
2968 CLK(NULL
, "gpt2_ick", &dummy_ck
, CK_443X
),
2969 CLK(NULL
, "gpt3_ick", &dummy_ck
, CK_443X
),
2970 CLK(NULL
, "gpt4_ick", &dummy_ck
, CK_443X
),
2971 CLK(NULL
, "gpt5_ick", &dummy_ck
, CK_443X
),
2972 CLK(NULL
, "gpt6_ick", &dummy_ck
, CK_443X
),
2973 CLK(NULL
, "gpt7_ick", &dummy_ck
, CK_443X
),
2974 CLK(NULL
, "gpt8_ick", &dummy_ck
, CK_443X
),
2975 CLK(NULL
, "gpt9_ick", &dummy_ck
, CK_443X
),
2976 CLK(NULL
, "gpt10_ick", &dummy_ck
, CK_443X
),
2977 CLK(NULL
, "gpt11_ick", &dummy_ck
, CK_443X
),
2978 CLK("i2c_omap.1", "ick", &dummy_ck
, CK_443X
),
2979 CLK("i2c_omap.2", "ick", &dummy_ck
, CK_443X
),
2980 CLK("i2c_omap.3", "ick", &dummy_ck
, CK_443X
),
2981 CLK("i2c_omap.4", "ick", &dummy_ck
, CK_443X
),
2982 CLK("mmci-omap-hs.0", "ick", &dummy_ck
, CK_443X
),
2983 CLK("mmci-omap-hs.1", "ick", &dummy_ck
, CK_443X
),
2984 CLK("mmci-omap-hs.2", "ick", &dummy_ck
, CK_443X
),
2985 CLK("mmci-omap-hs.3", "ick", &dummy_ck
, CK_443X
),
2986 CLK("mmci-omap-hs.4", "ick", &dummy_ck
, CK_443X
),
2987 CLK("omap-mcbsp.1", "ick", &dummy_ck
, CK_443X
),
2988 CLK("omap-mcbsp.2", "ick", &dummy_ck
, CK_443X
),
2989 CLK("omap-mcbsp.3", "ick", &dummy_ck
, CK_443X
),
2990 CLK("omap-mcbsp.4", "ick", &dummy_ck
, CK_443X
),
2991 CLK("omap2_mcspi.1", "ick", &dummy_ck
, CK_443X
),
2992 CLK("omap2_mcspi.2", "ick", &dummy_ck
, CK_443X
),
2993 CLK("omap2_mcspi.3", "ick", &dummy_ck
, CK_443X
),
2994 CLK("omap2_mcspi.4", "ick", &dummy_ck
, CK_443X
),
2995 CLK(NULL
, "uart1_ick", &dummy_ck
, CK_443X
),
2996 CLK(NULL
, "uart2_ick", &dummy_ck
, CK_443X
),
2997 CLK(NULL
, "uart3_ick", &dummy_ck
, CK_443X
),
2998 CLK(NULL
, "uart4_ick", &dummy_ck
, CK_443X
),
2999 CLK("omap_wdt", "ick", &dummy_ck
, CK_443X
),
3002 int __init
omap4xxx_clk_init(void)
3007 if (cpu_is_omap44xx()) {
3008 cpu_mask
= RATE_IN_4430
;
3009 cpu_clkflg
= CK_443X
;
3012 clk_init(&omap2_clk_functions
);
3014 for (c
= omap44xx_clks
; c
< omap44xx_clks
+ ARRAY_SIZE(omap44xx_clks
);
3016 clk_preinit(c
->lk
.clk
);
3018 for (c
= omap44xx_clks
; c
< omap44xx_clks
+ ARRAY_SIZE(omap44xx_clks
);
3020 if (c
->cpu
& cpu_clkflg
) {
3022 clk_register(c
->lk
.clk
);
3023 omap2_init_clk_clkdm(c
->lk
.clk
);
3026 recalculate_root_clocks();
3029 * Only enable those clocks we will need, let the drivers
3030 * enable other clocks as necessary
3032 clk_enable_init_clocks();