4 * Copyright (C) 2009-2011 Texas Instruments Incorporated
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"
35 #include "cm-regbits-44xx.h"
37 #include "prm-regbits-44xx.h"
41 /* OMAP4 modulemode control */
42 #define OMAP4430_MODULEMODE_HWCTRL 0
43 #define OMAP4430_MODULEMODE_SWCTRL 1
45 static int omap4_virt_l3_set_rate(struct clk
*clk
, unsigned long rate
);
46 static long omap4_virt_l3_round_rate(struct clk
*clk
, unsigned long rate
);
47 static unsigned long omap4_virt_l3_recalc(struct clk
*clk
);
50 static struct clk extalt_clkin_ck
= {
51 .name
= "extalt_clkin_ck",
56 static struct clk pad_clks_ck
= {
57 .name
= "pad_clks_ck",
59 .ops
= &clkops_omap2_dflt
,
60 .enable_reg
= OMAP4430_CM_CLKSEL_ABE
,
61 .enable_bit
= OMAP4430_PAD_CLKS_GATE_SHIFT
,
64 static struct clk pad_slimbus_core_clks_ck
= {
65 .name
= "pad_slimbus_core_clks_ck",
70 static struct clk secure_32k_clk_src_ck
= {
71 .name
= "secure_32k_clk_src_ck",
76 static struct clk slimbus_clk
= {
77 .name
= "slimbus_clk",
79 .ops
= &clkops_omap2_dflt
,
80 .enable_reg
= OMAP4430_CM_CLKSEL_ABE
,
81 .enable_bit
= OMAP4430_SLIMBUS_CLK_GATE_SHIFT
,
84 static struct clk sys_32k_ck
= {
90 static struct clk virt_12000000_ck
= {
91 .name
= "virt_12000000_ck",
96 static struct clk virt_13000000_ck
= {
97 .name
= "virt_13000000_ck",
102 static struct clk virt_16800000_ck
= {
103 .name
= "virt_16800000_ck",
108 static struct clk virt_19200000_ck
= {
109 .name
= "virt_19200000_ck",
114 static struct clk virt_26000000_ck
= {
115 .name
= "virt_26000000_ck",
120 static struct clk virt_27000000_ck
= {
121 .name
= "virt_27000000_ck",
126 static struct clk virt_38400000_ck
= {
127 .name
= "virt_38400000_ck",
132 static const struct clksel_rate div_1_0_rates
[] = {
133 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
137 static const struct clksel_rate div_1_1_rates
[] = {
138 { .div
= 1, .val
= 1, .flags
= RATE_IN_44XX
},
142 static const struct clksel_rate div_1_2_rates
[] = {
143 { .div
= 1, .val
= 2, .flags
= RATE_IN_44XX
},
147 static const struct clksel_rate div_1_3_rates
[] = {
148 { .div
= 1, .val
= 3, .flags
= RATE_IN_44XX
},
152 static const struct clksel_rate div_1_4_rates
[] = {
153 { .div
= 1, .val
= 4, .flags
= RATE_IN_44XX
},
157 static const struct clksel_rate div_1_5_rates
[] = {
158 { .div
= 1, .val
= 5, .flags
= RATE_IN_44XX
},
162 static const struct clksel_rate div_1_6_rates
[] = {
163 { .div
= 1, .val
= 6, .flags
= RATE_IN_44XX
},
167 static const struct clksel_rate div_1_7_rates
[] = {
168 { .div
= 1, .val
= 7, .flags
= RATE_IN_44XX
},
172 static const struct clksel sys_clkin_sel
[] = {
173 { .parent
= &virt_12000000_ck
, .rates
= div_1_1_rates
},
174 { .parent
= &virt_13000000_ck
, .rates
= div_1_2_rates
},
175 { .parent
= &virt_16800000_ck
, .rates
= div_1_3_rates
},
176 { .parent
= &virt_19200000_ck
, .rates
= div_1_4_rates
},
177 { .parent
= &virt_26000000_ck
, .rates
= div_1_5_rates
},
178 { .parent
= &virt_27000000_ck
, .rates
= div_1_6_rates
},
179 { .parent
= &virt_38400000_ck
, .rates
= div_1_7_rates
},
183 static struct clk sys_clkin_ck
= {
184 .name
= "sys_clkin_ck",
186 .clksel
= sys_clkin_sel
,
187 .init
= &omap2_init_clksel_parent
,
188 .clksel_reg
= OMAP4430_CM_SYS_CLKSEL
,
189 .clksel_mask
= OMAP4430_SYS_CLKSEL_MASK
,
191 .recalc
= &omap2_clksel_recalc
,
194 static struct clk tie_low_clock_ck
= {
195 .name
= "tie_low_clock_ck",
200 static struct clk xclk60mhsp1_ck
= {
201 .name
= "xclk60mhsp1_ck",
206 static struct clk xclk60mhsp2_ck
= {
207 .name
= "xclk60mhsp2_ck",
212 static struct clk xclk60motg_ck
= {
213 .name
= "xclk60motg_ck",
218 /* Module clocks and DPLL outputs */
220 static const struct clksel abe_dpll_bypass_clk_mux_sel
[] = {
221 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
222 { .parent
= &sys_32k_ck
, .rates
= div_1_1_rates
},
226 static struct clk abe_dpll_bypass_clk_mux_ck
= {
227 .name
= "abe_dpll_bypass_clk_mux_ck",
228 .parent
= &sys_clkin_ck
,
230 .recalc
= &followparent_recalc
,
233 static struct clk abe_dpll_refclk_mux_ck
= {
234 .name
= "abe_dpll_refclk_mux_ck",
235 .parent
= &sys_clkin_ck
,
236 .clksel
= abe_dpll_bypass_clk_mux_sel
,
237 .init
= &omap2_init_clksel_parent
,
238 .clksel_reg
= OMAP4430_CM_ABE_PLL_REF_CLKSEL
,
239 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
241 .recalc
= &omap2_clksel_recalc
,
245 static struct dpll_data dpll_abe_dd
= {
246 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_ABE
,
247 .clk_bypass
= &abe_dpll_bypass_clk_mux_ck
,
248 .clk_ref
= &abe_dpll_refclk_mux_ck
,
249 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_ABE
,
250 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
251 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_ABE
,
252 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_ABE
,
253 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
254 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
255 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
256 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
257 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
258 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
259 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
264 static struct clk dpll_abe_ck
= {
265 .name
= "dpll_abe_ck",
266 .parent
= &abe_dpll_refclk_mux_ck
,
267 .dpll_data
= &dpll_abe_dd
,
268 .init
= &omap2_init_dpll_parent
,
269 .ops
= &clkops_omap3_noncore_dpll_ops
,
270 .recalc
= &omap4_dpll_regm4xen_recalc
,
271 .round_rate
= &omap4_dpll_regm4xen_round_rate
,
272 .set_rate
= &omap3_noncore_dpll_set_rate
,
275 static struct clk dpll_abe_x2_ck
= {
276 .name
= "dpll_abe_x2_ck",
277 .parent
= &dpll_abe_ck
,
278 .flags
= CLOCK_CLKOUTX2
,
279 .ops
= &clkops_omap4_dpllmx_ops
,
280 .recalc
= &omap3_clkoutx2_recalc
,
281 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_ABE
,
284 static const struct clksel_rate div31_1to31_rates
[] = {
285 { .div
= 1, .val
= 1, .flags
= RATE_IN_44XX
},
286 { .div
= 2, .val
= 2, .flags
= RATE_IN_44XX
},
287 { .div
= 3, .val
= 3, .flags
= RATE_IN_44XX
},
288 { .div
= 4, .val
= 4, .flags
= RATE_IN_44XX
},
289 { .div
= 5, .val
= 5, .flags
= RATE_IN_44XX
},
290 { .div
= 6, .val
= 6, .flags
= RATE_IN_44XX
},
291 { .div
= 7, .val
= 7, .flags
= RATE_IN_44XX
},
292 { .div
= 8, .val
= 8, .flags
= RATE_IN_44XX
},
293 { .div
= 9, .val
= 9, .flags
= RATE_IN_44XX
},
294 { .div
= 10, .val
= 10, .flags
= RATE_IN_44XX
},
295 { .div
= 11, .val
= 11, .flags
= RATE_IN_44XX
},
296 { .div
= 12, .val
= 12, .flags
= RATE_IN_44XX
},
297 { .div
= 13, .val
= 13, .flags
= RATE_IN_44XX
},
298 { .div
= 14, .val
= 14, .flags
= RATE_IN_44XX
},
299 { .div
= 15, .val
= 15, .flags
= RATE_IN_44XX
},
300 { .div
= 16, .val
= 16, .flags
= RATE_IN_44XX
},
301 { .div
= 17, .val
= 17, .flags
= RATE_IN_44XX
},
302 { .div
= 18, .val
= 18, .flags
= RATE_IN_44XX
},
303 { .div
= 19, .val
= 19, .flags
= RATE_IN_44XX
},
304 { .div
= 20, .val
= 20, .flags
= RATE_IN_44XX
},
305 { .div
= 21, .val
= 21, .flags
= RATE_IN_44XX
},
306 { .div
= 22, .val
= 22, .flags
= RATE_IN_44XX
},
307 { .div
= 23, .val
= 23, .flags
= RATE_IN_44XX
},
308 { .div
= 24, .val
= 24, .flags
= RATE_IN_44XX
},
309 { .div
= 25, .val
= 25, .flags
= RATE_IN_44XX
},
310 { .div
= 26, .val
= 26, .flags
= RATE_IN_44XX
},
311 { .div
= 27, .val
= 27, .flags
= RATE_IN_44XX
},
312 { .div
= 28, .val
= 28, .flags
= RATE_IN_44XX
},
313 { .div
= 29, .val
= 29, .flags
= RATE_IN_44XX
},
314 { .div
= 30, .val
= 30, .flags
= RATE_IN_44XX
},
315 { .div
= 31, .val
= 31, .flags
= RATE_IN_44XX
},
319 static const struct clksel dpll_abe_m2x2_div
[] = {
320 { .parent
= &dpll_abe_x2_ck
, .rates
= div31_1to31_rates
},
324 static struct clk dpll_abe_m2x2_ck
= {
325 .name
= "dpll_abe_m2x2_ck",
326 .parent
= &dpll_abe_x2_ck
,
327 .clksel
= dpll_abe_m2x2_div
,
328 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_ABE
,
329 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
330 .ops
= &clkops_omap4_dpllmx_ops
,
331 .recalc
= &omap2_clksel_recalc
,
332 .round_rate
= &omap2_clksel_round_rate
,
333 .set_rate
= &omap2_clksel_set_rate
,
336 static struct clk abe_24m_fclk
= {
337 .name
= "abe_24m_fclk",
338 .parent
= &dpll_abe_m2x2_ck
,
341 .recalc
= &omap_fixed_divisor_recalc
,
344 static const struct clksel_rate div3_1to4_rates
[] = {
345 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
346 { .div
= 2, .val
= 1, .flags
= RATE_IN_44XX
},
347 { .div
= 4, .val
= 2, .flags
= RATE_IN_44XX
},
351 static const struct clksel abe_clk_div
[] = {
352 { .parent
= &dpll_abe_m2x2_ck
, .rates
= div3_1to4_rates
},
356 static struct clk abe_clk
= {
358 .parent
= &dpll_abe_m2x2_ck
,
359 .clksel
= abe_clk_div
,
360 .clksel_reg
= OMAP4430_CM_CLKSEL_ABE
,
361 .clksel_mask
= OMAP4430_CLKSEL_OPP_MASK
,
363 .recalc
= &omap2_clksel_recalc
,
364 .round_rate
= &omap2_clksel_round_rate
,
365 .set_rate
= &omap2_clksel_set_rate
,
368 static const struct clksel_rate div2_1to2_rates
[] = {
369 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
370 { .div
= 2, .val
= 1, .flags
= RATE_IN_44XX
},
374 static const struct clksel aess_fclk_div
[] = {
375 { .parent
= &abe_clk
, .rates
= div2_1to2_rates
},
379 static struct clk aess_fclk
= {
382 .clksel
= aess_fclk_div
,
383 .clksel_reg
= OMAP4430_CM1_ABE_AESS_CLKCTRL
,
384 .clksel_mask
= OMAP4430_CLKSEL_AESS_FCLK_MASK
,
386 .recalc
= &omap2_clksel_recalc
,
387 .round_rate
= &omap2_clksel_round_rate
,
388 .set_rate
= &omap2_clksel_set_rate
,
391 static struct clk dpll_abe_m3x2_ck
= {
392 .name
= "dpll_abe_m3x2_ck",
393 .parent
= &dpll_abe_x2_ck
,
394 .clksel
= dpll_abe_m2x2_div
,
395 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_ABE
,
396 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
397 .ops
= &clkops_omap4_dpllmx_ops
,
398 .recalc
= &omap2_clksel_recalc
,
399 .round_rate
= &omap2_clksel_round_rate
,
400 .set_rate
= &omap2_clksel_set_rate
,
403 static const struct clksel core_hsd_byp_clk_mux_sel
[] = {
404 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
405 { .parent
= &dpll_abe_m3x2_ck
, .rates
= div_1_1_rates
},
409 static struct clk core_hsd_byp_clk_mux_ck
= {
410 .name
= "core_hsd_byp_clk_mux_ck",
411 .parent
= &sys_clkin_ck
,
412 .clksel
= core_hsd_byp_clk_mux_sel
,
413 .init
= &omap2_init_clksel_parent
,
414 .clksel_reg
= OMAP4430_CM_CLKSEL_DPLL_CORE
,
415 .clksel_mask
= OMAP4430_DPLL_BYP_CLKSEL_MASK
,
417 .recalc
= &omap2_clksel_recalc
,
421 static struct dpll_data dpll_core_dd
= {
422 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_CORE
,
423 .clk_bypass
= &core_hsd_byp_clk_mux_ck
,
424 .clk_ref
= &sys_clkin_ck
,
425 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_CORE
,
426 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
427 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_CORE
,
428 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_CORE
,
429 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
430 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
431 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
432 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
433 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
434 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
435 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
440 static struct clk dpll_core_ck
= {
441 .name
= "dpll_core_ck",
442 .parent
= &sys_clkin_ck
,
443 .dpll_data
= &dpll_core_dd
,
444 .init
= &omap2_init_dpll_parent
,
445 .ops
= &clkops_omap3_core_dpll_ops
,
446 .recalc
= &omap3_dpll_recalc
,
449 static struct clk dpll_core_x2_ck
= {
450 .name
= "dpll_core_x2_ck",
451 .parent
= &dpll_core_ck
,
452 .flags
= CLOCK_CLKOUTX2
,
454 .recalc
= &omap3_clkoutx2_recalc
,
457 static const struct clksel dpll_core_m6x2_div
[] = {
458 { .parent
= &dpll_core_x2_ck
, .rates
= div31_1to31_rates
},
462 static struct clk dpll_core_m6x2_ck
= {
463 .name
= "dpll_core_m6x2_ck",
464 .parent
= &dpll_core_x2_ck
,
465 .clksel
= dpll_core_m6x2_div
,
466 .clksel_reg
= OMAP4430_CM_DIV_M6_DPLL_CORE
,
467 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK
,
468 .ops
= &clkops_omap4_dpllmx_ops
,
469 .recalc
= &omap2_clksel_recalc
,
470 .round_rate
= &omap2_clksel_round_rate
,
471 .set_rate
= &omap2_clksel_set_rate
,
474 static const struct clksel dbgclk_mux_sel
[] = {
475 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
476 { .parent
= &dpll_core_m6x2_ck
, .rates
= div_1_1_rates
},
480 static struct clk dbgclk_mux_ck
= {
481 .name
= "dbgclk_mux_ck",
482 .parent
= &sys_clkin_ck
,
484 .recalc
= &followparent_recalc
,
487 static const struct clksel dpll_core_m2_div
[] = {
488 { .parent
= &dpll_core_ck
, .rates
= div31_1to31_rates
},
492 static struct clk dpll_core_m2_ck
= {
493 .name
= "dpll_core_m2_ck",
494 .parent
= &dpll_core_ck
,
495 .clksel
= dpll_core_m2_div
,
496 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_CORE
,
497 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
498 .ops
= &clkops_omap4_dpllmx_ops
,
499 .recalc
= &omap2_clksel_recalc
,
500 .round_rate
= &omap2_clksel_round_rate
,
501 .set_rate
= &omap4_core_dpll_m2_set_rate
,
504 static struct clk ddrphy_ck
= {
506 .parent
= &dpll_core_m2_ck
,
509 .recalc
= &omap_fixed_divisor_recalc
,
512 static struct clk dpll_core_m5x2_ck
= {
513 .name
= "dpll_core_m5x2_ck",
514 .parent
= &dpll_core_x2_ck
,
515 .clksel
= dpll_core_m6x2_div
,
516 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_CORE
,
517 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
518 .ops
= &clkops_omap4_dpllmx_ops
,
519 .recalc
= &omap2_clksel_recalc
,
520 .round_rate
= &omap2_clksel_round_rate
,
521 .set_rate
= &omap2_clksel_set_rate
,
524 static struct clk virt_l3_ck
= {
525 .name
= "virt_l3_ck",
526 .parent
= &dpll_core_m5x2_ck
,
528 .set_rate
= &omap4_virt_l3_set_rate
,
529 .recalc
= &omap4_virt_l3_recalc
,
530 .round_rate
= &omap4_virt_l3_round_rate
,
533 static const struct clksel div_core_div
[] = {
534 { .parent
= &dpll_core_m5x2_ck
, .rates
= div2_1to2_rates
},
538 static struct clk div_core_ck
= {
539 .name
= "div_core_ck",
540 .parent
= &dpll_core_m5x2_ck
,
541 .clksel
= div_core_div
,
542 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
543 .clksel_mask
= OMAP4430_CLKSEL_CORE_MASK
,
545 .recalc
= &omap2_clksel_recalc
,
546 .round_rate
= &omap2_clksel_round_rate
,
547 .set_rate
= &omap2_clksel_set_rate
,
550 static const struct clksel_rate div4_1to8_rates
[] = {
551 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
552 { .div
= 2, .val
= 1, .flags
= RATE_IN_44XX
},
553 { .div
= 4, .val
= 2, .flags
= RATE_IN_44XX
},
554 { .div
= 8, .val
= 3, .flags
= RATE_IN_44XX
},
558 static const struct clksel div_iva_hs_clk_div
[] = {
559 { .parent
= &dpll_core_m5x2_ck
, .rates
= div4_1to8_rates
},
563 static struct clk div_iva_hs_clk
= {
564 .name
= "div_iva_hs_clk",
565 .parent
= &dpll_core_m5x2_ck
,
566 .clksel
= div_iva_hs_clk_div
,
567 .clksel_reg
= OMAP4430_CM_BYPCLK_DPLL_IVA
,
568 .clksel_mask
= OMAP4430_CLKSEL_0_1_MASK
,
570 .recalc
= &omap2_clksel_recalc
,
571 .round_rate
= &omap2_clksel_round_rate
,
572 .set_rate
= &omap2_clksel_set_rate
,
575 static struct clk div_mpu_hs_clk
= {
576 .name
= "div_mpu_hs_clk",
577 .parent
= &dpll_core_m5x2_ck
,
578 .clksel
= div_iva_hs_clk_div
,
579 .clksel_reg
= OMAP4430_CM_BYPCLK_DPLL_MPU
,
580 .clksel_mask
= OMAP4430_CLKSEL_0_1_MASK
,
582 .recalc
= &omap2_clksel_recalc
,
583 .round_rate
= &omap2_clksel_round_rate
,
584 .set_rate
= &omap2_clksel_set_rate
,
587 static struct clk dpll_core_m4x2_ck
= {
588 .name
= "dpll_core_m4x2_ck",
589 .parent
= &dpll_core_x2_ck
,
590 .clksel
= dpll_core_m6x2_div
,
591 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_CORE
,
592 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
593 .ops
= &clkops_omap4_dpllmx_ops
,
594 .recalc
= &omap2_clksel_recalc
,
595 .round_rate
= &omap2_clksel_round_rate
,
596 .set_rate
= &omap2_clksel_set_rate
,
599 static struct clk dll_clk_div_ck
= {
600 .name
= "dll_clk_div_ck",
601 .parent
= &dpll_core_m4x2_ck
,
604 .recalc
= &omap_fixed_divisor_recalc
,
607 static const struct clksel dpll_abe_m2_div
[] = {
608 { .parent
= &dpll_abe_ck
, .rates
= div31_1to31_rates
},
612 static struct clk dpll_abe_m2_ck
= {
613 .name
= "dpll_abe_m2_ck",
614 .parent
= &dpll_abe_ck
,
615 .clksel
= dpll_abe_m2_div
,
616 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_ABE
,
617 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
618 .ops
= &clkops_omap4_dpllmx_ops
,
619 .recalc
= &omap2_clksel_recalc
,
620 .round_rate
= &omap2_clksel_round_rate
,
621 .set_rate
= &omap2_clksel_set_rate
,
624 static struct clk dpll_core_m3x2_ck
= {
625 .name
= "dpll_core_m3x2_ck",
626 .parent
= &dpll_core_x2_ck
,
627 .clksel
= dpll_core_m6x2_div
,
628 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_CORE
,
629 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
630 .ops
= &clkops_omap2_dflt
,
631 .enable_reg
= OMAP4430_CM_DIV_M3_DPLL_CORE
,
632 .enable_bit
= OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT
,
633 .recalc
= &omap2_clksel_recalc
,
634 .round_rate
= &omap2_clksel_round_rate
,
635 .set_rate
= &omap2_clksel_set_rate
,
638 static struct clk dpll_core_m7x2_ck
= {
639 .name
= "dpll_core_m7x2_ck",
640 .parent
= &dpll_core_x2_ck
,
641 .clksel
= dpll_core_m6x2_div
,
642 .clksel_reg
= OMAP4430_CM_DIV_M7_DPLL_CORE
,
643 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK
,
644 .ops
= &clkops_omap4_dpllmx_ops
,
645 .recalc
= &omap2_clksel_recalc
,
646 .round_rate
= &omap2_clksel_round_rate
,
647 .set_rate
= &omap2_clksel_set_rate
,
650 static const struct clksel iva_hsd_byp_clk_mux_sel
[] = {
651 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
652 { .parent
= &div_iva_hs_clk
, .rates
= div_1_1_rates
},
656 static struct clk iva_hsd_byp_clk_mux_ck
= {
657 .name
= "iva_hsd_byp_clk_mux_ck",
658 .parent
= &sys_clkin_ck
,
659 .clksel
= iva_hsd_byp_clk_mux_sel
,
660 .init
= &omap2_init_clksel_parent
,
661 .clksel_reg
= OMAP4430_CM_CLKSEL_DPLL_IVA
,
662 .clksel_mask
= OMAP4430_DPLL_BYP_CLKSEL_MASK
,
664 .recalc
= &omap2_clksel_recalc
,
668 static struct dpll_data dpll_iva_dd
= {
669 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_IVA
,
670 .clk_bypass
= &iva_hsd_byp_clk_mux_ck
,
671 .clk_ref
= &sys_clkin_ck
,
672 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_IVA
,
673 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
674 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_IVA
,
675 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_IVA
,
676 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
677 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
678 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
679 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
680 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
681 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
682 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
687 static struct clk dpll_iva_ck
= {
688 .name
= "dpll_iva_ck",
689 .parent
= &sys_clkin_ck
,
690 .dpll_data
= &dpll_iva_dd
,
691 .init
= &omap2_init_dpll_parent
,
692 .ops
= &clkops_omap3_noncore_dpll_ops
,
693 .recalc
= &omap3_dpll_recalc
,
694 .round_rate
= &omap2_dpll_round_rate
,
695 .set_rate
= &omap3_noncore_dpll_set_rate
,
698 static struct clk dpll_iva_x2_ck
= {
699 .name
= "dpll_iva_x2_ck",
700 .parent
= &dpll_iva_ck
,
701 .flags
= CLOCK_CLKOUTX2
,
703 .recalc
= &omap3_clkoutx2_recalc
,
706 static const struct clksel dpll_iva_m4x2_div
[] = {
707 { .parent
= &dpll_iva_x2_ck
, .rates
= div31_1to31_rates
},
711 static struct clk dpll_iva_m4x2_ck
= {
712 .name
= "dpll_iva_m4x2_ck",
713 .parent
= &dpll_iva_x2_ck
,
714 .clksel
= dpll_iva_m4x2_div
,
715 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_IVA
,
716 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
717 .ops
= &clkops_omap4_dpllmx_ops
,
718 .recalc
= &omap2_clksel_recalc
,
719 .round_rate
= &omap2_clksel_round_rate
,
720 .set_rate
= &omap2_clksel_set_rate
,
723 static struct clk dpll_iva_m5x2_ck
= {
724 .name
= "dpll_iva_m5x2_ck",
725 .parent
= &dpll_iva_x2_ck
,
726 .clksel
= dpll_iva_m4x2_div
,
727 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_IVA
,
728 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
729 .ops
= &clkops_omap4_dpllmx_ops
,
730 .recalc
= &omap2_clksel_recalc
,
731 .round_rate
= &omap2_clksel_round_rate
,
732 .set_rate
= &omap2_clksel_set_rate
,
736 static struct dpll_data dpll_mpu_dd
= {
737 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_MPU
,
738 .clk_bypass
= &div_mpu_hs_clk
,
739 .clk_ref
= &sys_clkin_ck
,
740 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_MPU
,
741 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
742 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_MPU
,
743 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_MPU
,
744 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
745 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
746 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
747 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
748 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
749 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
750 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
755 static struct clk dpll_mpu_ck
= {
756 .name
= "dpll_mpu_ck",
757 .parent
= &sys_clkin_ck
,
758 .dpll_data
= &dpll_mpu_dd
,
759 .init
= &omap2_init_dpll_parent
,
760 .ops
= &clkops_omap3_noncore_dpll_ops
,
761 .recalc
= &omap3_dpll_recalc
,
762 .round_rate
= &omap2_dpll_round_rate
,
763 .set_rate
= &omap3_noncore_dpll_set_rate
,
766 static const struct clksel dpll_mpu_m2_div
[] = {
767 { .parent
= &dpll_mpu_ck
, .rates
= div31_1to31_rates
},
771 static struct clk dpll_mpu_m2_ck
= {
772 .name
= "dpll_mpu_m2_ck",
773 .parent
= &dpll_mpu_ck
,
774 .clksel
= dpll_mpu_m2_div
,
775 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_MPU
,
776 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
777 .ops
= &clkops_omap4_dpllmx_ops
,
778 .recalc
= &omap2_clksel_recalc
,
779 .round_rate
= &omap2_clksel_round_rate
,
780 .set_rate
= &omap2_clksel_set_rate
,
783 static struct clk virt_dpll_mpu_ck
= {
784 .name
= "virt_dpll_mpu_ck",
785 .parent
= &dpll_mpu_ck
,
787 .recalc
= &omap4460_mpu_dpll_recalc
,
788 .round_rate
= &omap4460_mpu_dpll_round_rate
,
789 .set_rate
= &omap4460_mpu_dpll_set_rate
,
792 static struct clk per_hs_clk_div_ck
= {
793 .name
= "per_hs_clk_div_ck",
794 .parent
= &dpll_abe_m3x2_ck
,
797 .recalc
= &omap_fixed_divisor_recalc
,
800 static const struct clksel per_hsd_byp_clk_mux_sel
[] = {
801 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
802 { .parent
= &per_hs_clk_div_ck
, .rates
= div_1_1_rates
},
806 static struct clk per_hsd_byp_clk_mux_ck
= {
807 .name
= "per_hsd_byp_clk_mux_ck",
808 .parent
= &sys_clkin_ck
,
809 .clksel
= per_hsd_byp_clk_mux_sel
,
810 .init
= &omap2_init_clksel_parent
,
811 .clksel_reg
= OMAP4430_CM_CLKSEL_DPLL_PER
,
812 .clksel_mask
= OMAP4430_DPLL_BYP_CLKSEL_MASK
,
814 .recalc
= &omap2_clksel_recalc
,
818 static struct dpll_data dpll_per_dd
= {
819 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_PER
,
820 .clk_bypass
= &per_hsd_byp_clk_mux_ck
,
821 .clk_ref
= &sys_clkin_ck
,
822 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_PER
,
823 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
824 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_PER
,
825 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_PER
,
826 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
827 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
828 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
829 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
830 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
831 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
832 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
837 static struct clk dpll_per_ck
= {
838 .name
= "dpll_per_ck",
839 .parent
= &sys_clkin_ck
,
840 .dpll_data
= &dpll_per_dd
,
841 .init
= &omap2_init_dpll_parent
,
842 .ops
= &clkops_omap3_noncore_dpll_ops
,
843 .recalc
= &omap3_dpll_recalc
,
844 .round_rate
= &omap2_dpll_round_rate
,
845 .set_rate
= &omap3_noncore_dpll_set_rate
,
848 static const struct clksel dpll_per_m2_div
[] = {
849 { .parent
= &dpll_per_ck
, .rates
= div31_1to31_rates
},
853 static struct clk dpll_per_m2_ck
= {
854 .name
= "dpll_per_m2_ck",
855 .parent
= &dpll_per_ck
,
856 .clksel
= dpll_per_m2_div
,
857 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_PER
,
858 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
859 .ops
= &clkops_omap4_dpllmx_ops
,
860 .recalc
= &omap2_clksel_recalc
,
861 .round_rate
= &omap2_clksel_round_rate
,
862 .set_rate
= &omap2_clksel_set_rate
,
865 static struct clk dpll_per_x2_ck
= {
866 .name
= "dpll_per_x2_ck",
867 .parent
= &dpll_per_ck
,
868 .flags
= CLOCK_CLKOUTX2
,
869 .ops
= &clkops_omap4_dpllmx_ops
,
870 .recalc
= &omap3_clkoutx2_recalc
,
871 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_PER
,
874 static const struct clksel dpll_per_m2x2_div
[] = {
875 { .parent
= &dpll_per_x2_ck
, .rates
= div31_1to31_rates
},
879 static struct clk dpll_per_m2x2_ck
= {
880 .name
= "dpll_per_m2x2_ck",
881 .parent
= &dpll_per_x2_ck
,
882 .clksel
= dpll_per_m2x2_div
,
883 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_PER
,
884 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
885 .ops
= &clkops_omap4_dpllmx_ops
,
886 .recalc
= &omap2_clksel_recalc
,
887 .round_rate
= &omap2_clksel_round_rate
,
888 .set_rate
= &omap2_clksel_set_rate
,
891 static struct clk dpll_per_m3x2_ck
= {
892 .name
= "dpll_per_m3x2_ck",
893 .parent
= &dpll_per_x2_ck
,
894 .clksel
= dpll_per_m2x2_div
,
895 .clksel_reg
= OMAP4430_CM_DIV_M3_DPLL_PER
,
896 .clksel_mask
= OMAP4430_DPLL_CLKOUTHIF_DIV_MASK
,
897 .ops
= &clkops_omap2_dflt
,
898 .enable_reg
= OMAP4430_CM_DIV_M3_DPLL_PER
,
899 .enable_bit
= OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT
,
900 .recalc
= &omap2_clksel_recalc
,
901 .round_rate
= &omap2_clksel_round_rate
,
902 .set_rate
= &omap2_clksel_set_rate
,
905 static struct clk dpll_per_m4x2_ck
= {
906 .name
= "dpll_per_m4x2_ck",
907 .parent
= &dpll_per_x2_ck
,
908 .clksel
= dpll_per_m2x2_div
,
909 .clksel_reg
= OMAP4430_CM_DIV_M4_DPLL_PER
,
910 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK
,
911 .ops
= &clkops_omap4_dpllmx_ops
,
912 .recalc
= &omap2_clksel_recalc
,
913 .round_rate
= &omap2_clksel_round_rate
,
914 .set_rate
= &omap2_clksel_set_rate
,
917 static struct clk dpll_per_m5x2_ck
= {
918 .name
= "dpll_per_m5x2_ck",
919 .parent
= &dpll_per_x2_ck
,
920 .clksel
= dpll_per_m2x2_div
,
921 .clksel_reg
= OMAP4430_CM_DIV_M5_DPLL_PER
,
922 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK
,
923 .ops
= &clkops_omap4_dpllmx_ops
,
924 .recalc
= &omap2_clksel_recalc
,
925 .round_rate
= &omap2_clksel_round_rate
,
926 .set_rate
= &omap2_clksel_set_rate
,
929 static struct clk dpll_per_m6x2_ck
= {
930 .name
= "dpll_per_m6x2_ck",
931 .parent
= &dpll_per_x2_ck
,
932 .clksel
= dpll_per_m2x2_div
,
933 .clksel_reg
= OMAP4430_CM_DIV_M6_DPLL_PER
,
934 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK
,
935 .ops
= &clkops_omap4_dpllmx_ops
,
936 .recalc
= &omap2_clksel_recalc
,
937 .round_rate
= &omap2_clksel_round_rate
,
938 .set_rate
= &omap2_clksel_set_rate
,
941 static struct clk dpll_per_m7x2_ck
= {
942 .name
= "dpll_per_m7x2_ck",
943 .parent
= &dpll_per_x2_ck
,
944 .clksel
= dpll_per_m2x2_div
,
945 .clksel_reg
= OMAP4430_CM_DIV_M7_DPLL_PER
,
946 .clksel_mask
= OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK
,
947 .ops
= &clkops_omap4_dpllmx_ops
,
948 .recalc
= &omap2_clksel_recalc
,
949 .round_rate
= &omap2_clksel_round_rate
,
950 .set_rate
= &omap2_clksel_set_rate
,
954 static struct dpll_data dpll_unipro_dd
= {
955 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_UNIPRO
,
956 .clk_bypass
= &sys_clkin_ck
,
957 .clk_ref
= &sys_clkin_ck
,
958 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_UNIPRO
,
959 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
),
960 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_UNIPRO
,
961 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_UNIPRO
,
962 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
963 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
964 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
965 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
966 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
967 .sddiv_mask
= OMAP4430_DPLL_SD_DIV_MASK
,
968 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
969 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
974 static struct clk dpll_unipro_ck
= {
975 .name
= "dpll_unipro_ck",
976 .parent
= &sys_clkin_ck
,
977 .dpll_data
= &dpll_unipro_dd
,
978 .init
= &omap2_init_dpll_parent
,
979 .ops
= &clkops_omap3_noncore_dpll_ops
,
980 .recalc
= &omap3_dpll_recalc
,
981 .round_rate
= &omap2_dpll_round_rate
,
982 .set_rate
= &omap3_noncore_dpll_set_rate
,
985 static struct clk dpll_unipro_x2_ck
= {
986 .name
= "dpll_unipro_x2_ck",
987 .parent
= &dpll_unipro_ck
,
988 .flags
= CLOCK_CLKOUTX2
,
990 .recalc
= &omap3_clkoutx2_recalc
,
993 static const struct clksel dpll_unipro_m2x2_div
[] = {
994 { .parent
= &dpll_unipro_x2_ck
, .rates
= div31_1to31_rates
},
998 static struct clk dpll_unipro_m2x2_ck
= {
999 .name
= "dpll_unipro_m2x2_ck",
1000 .parent
= &dpll_unipro_x2_ck
,
1001 .clksel
= dpll_unipro_m2x2_div
,
1002 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_UNIPRO
,
1003 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_MASK
,
1004 .ops
= &clkops_omap4_dpllmx_ops
,
1005 .recalc
= &omap2_clksel_recalc
,
1006 .round_rate
= &omap2_clksel_round_rate
,
1007 .set_rate
= &omap2_clksel_set_rate
,
1010 static struct clk usb_hs_clk_div_ck
= {
1011 .name
= "usb_hs_clk_div_ck",
1012 .parent
= &dpll_abe_m3x2_ck
,
1013 .ops
= &clkops_null
,
1015 .recalc
= &omap_fixed_divisor_recalc
,
1019 static struct dpll_data dpll_usb_dd
= {
1020 .mult_div1_reg
= OMAP4430_CM_CLKSEL_DPLL_USB
,
1021 .clk_bypass
= &usb_hs_clk_div_ck
,
1022 .flags
= DPLL_J_TYPE
,
1023 .clk_ref
= &sys_clkin_ck
,
1024 .control_reg
= OMAP4430_CM_CLKMODE_DPLL_USB
,
1025 .modes
= (1 << DPLL_LOW_POWER_BYPASS
) | (1 << DPLL_LOCKED
)
1026 | (1 << DPLL_LOW_POWER_STOP
),
1027 .autoidle_reg
= OMAP4430_CM_AUTOIDLE_DPLL_USB
,
1028 .idlest_reg
= OMAP4430_CM_IDLEST_DPLL_USB
,
1029 .mult_mask
= OMAP4430_DPLL_MULT_MASK
,
1030 .div1_mask
= OMAP4430_DPLL_DIV_MASK
,
1031 .enable_mask
= OMAP4430_DPLL_EN_MASK
,
1032 .autoidle_mask
= OMAP4430_AUTO_DPLL_MODE_MASK
,
1033 .idlest_mask
= OMAP4430_ST_DPLL_CLK_MASK
,
1034 .max_multiplier
= OMAP4430_MAX_DPLL_MULT
,
1035 .max_divider
= OMAP4430_MAX_DPLL_DIV
,
1040 static struct clk dpll_usb_ck
= {
1041 .name
= "dpll_usb_ck",
1042 .parent
= &sys_clkin_ck
,
1043 .dpll_data
= &dpll_usb_dd
,
1044 .init
= &omap2_init_dpll_parent
,
1045 .ops
= &clkops_omap3_noncore_dpll_ops
,
1046 .recalc
= &omap3_dpll_recalc
,
1047 .round_rate
= &omap2_dpll_round_rate
,
1048 .set_rate
= &omap3_noncore_dpll_set_rate
,
1049 .clkdm_name
= "l3_init_clkdm",
1052 static struct clk dpll_usb_clkdcoldo_ck
= {
1053 .name
= "dpll_usb_clkdcoldo_ck",
1054 .parent
= &dpll_usb_ck
,
1055 .ops
= &clkops_omap4_dpllmx_ops
,
1056 .clksel_reg
= OMAP4430_CM_CLKDCOLDO_DPLL_USB
,
1057 .recalc
= &followparent_recalc
,
1060 static struct clk utmi_phy_clkout_ck
= {
1061 .name
= "utmi_phy_clkout_ck",
1062 .ops
= &clkops_null
,
1063 .parent
= &dpll_usb_clkdcoldo_ck
,
1064 .recalc
= &followparent_recalc
,
1067 static const struct clksel dpll_usb_m2_div
[] = {
1068 { .parent
= &dpll_usb_ck
, .rates
= div31_1to31_rates
},
1072 static struct clk dpll_usb_m2_ck
= {
1073 .name
= "dpll_usb_m2_ck",
1074 .parent
= &dpll_usb_ck
,
1075 .clksel
= dpll_usb_m2_div
,
1076 .clksel_reg
= OMAP4430_CM_DIV_M2_DPLL_USB
,
1077 .clksel_mask
= OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK
,
1078 .ops
= &clkops_omap4_dpllmx_ops
,
1079 .recalc
= &omap2_clksel_recalc
,
1080 .round_rate
= &omap2_clksel_round_rate
,
1081 .set_rate
= &omap2_clksel_set_rate
,
1084 static const struct clksel ducati_clk_mux_sel
[] = {
1085 { .parent
= &div_core_ck
, .rates
= div_1_0_rates
},
1086 { .parent
= &dpll_per_m6x2_ck
, .rates
= div_1_1_rates
},
1090 static struct clk ducati_clk_mux_ck
= {
1091 .name
= "ducati_clk_mux_ck",
1092 .parent
= &div_core_ck
,
1093 .clksel
= ducati_clk_mux_sel
,
1094 .init
= &omap2_init_clksel_parent
,
1095 .clksel_reg
= OMAP4430_CM_CLKSEL_DUCATI_ISS_ROOT
,
1096 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1097 .ops
= &clkops_null
,
1098 .recalc
= &omap2_clksel_recalc
,
1101 static struct clk func_12m_fclk
= {
1102 .name
= "func_12m_fclk",
1103 .parent
= &dpll_per_m2x2_ck
,
1104 .ops
= &clkops_null
,
1106 .recalc
= &omap_fixed_divisor_recalc
,
1109 static struct clk func_24m_clk
= {
1110 .name
= "func_24m_clk",
1111 .parent
= &dpll_per_m2_ck
,
1112 .ops
= &clkops_null
,
1114 .recalc
= &omap_fixed_divisor_recalc
,
1117 static struct clk func_24mc_fclk
= {
1118 .name
= "func_24mc_fclk",
1119 .parent
= &dpll_per_m2x2_ck
,
1120 .ops
= &clkops_null
,
1122 .recalc
= &omap_fixed_divisor_recalc
,
1125 static const struct clksel_rate div2_4to8_rates
[] = {
1126 { .div
= 4, .val
= 0, .flags
= RATE_IN_44XX
},
1127 { .div
= 8, .val
= 1, .flags
= RATE_IN_44XX
},
1131 static const struct clksel func_48m_fclk_div
[] = {
1132 { .parent
= &dpll_per_m2x2_ck
, .rates
= div2_4to8_rates
},
1136 static struct clk func_48m_fclk
= {
1137 .name
= "func_48m_fclk",
1138 .parent
= &dpll_per_m2x2_ck
,
1139 .clksel
= func_48m_fclk_div
,
1140 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1141 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1142 .ops
= &clkops_null
,
1143 .recalc
= &omap2_clksel_recalc
,
1144 .round_rate
= &omap2_clksel_round_rate
,
1145 .set_rate
= &omap2_clksel_set_rate
,
1148 static struct clk func_48mc_fclk
= {
1149 .name
= "func_48mc_fclk",
1150 .parent
= &dpll_per_m2x2_ck
,
1151 .ops
= &clkops_null
,
1153 .recalc
= &omap_fixed_divisor_recalc
,
1156 static const struct clksel_rate div2_2to4_rates
[] = {
1157 { .div
= 2, .val
= 0, .flags
= RATE_IN_44XX
},
1158 { .div
= 4, .val
= 1, .flags
= RATE_IN_44XX
},
1162 static const struct clksel func_64m_fclk_div
[] = {
1163 { .parent
= &dpll_per_m4x2_ck
, .rates
= div2_2to4_rates
},
1167 static struct clk func_64m_fclk
= {
1168 .name
= "func_64m_fclk",
1169 .parent
= &dpll_per_m4x2_ck
,
1170 .clksel
= func_64m_fclk_div
,
1171 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1172 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1173 .ops
= &clkops_null
,
1174 .recalc
= &omap2_clksel_recalc
,
1175 .round_rate
= &omap2_clksel_round_rate
,
1176 .set_rate
= &omap2_clksel_set_rate
,
1179 static const struct clksel func_96m_fclk_div
[] = {
1180 { .parent
= &dpll_per_m2x2_ck
, .rates
= div2_2to4_rates
},
1184 static struct clk func_96m_fclk
= {
1185 .name
= "func_96m_fclk",
1186 .parent
= &dpll_per_m2x2_ck
,
1187 .clksel
= func_96m_fclk_div
,
1188 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1189 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1190 .ops
= &clkops_null
,
1191 .recalc
= &omap2_clksel_recalc
,
1192 .round_rate
= &omap2_clksel_round_rate
,
1193 .set_rate
= &omap2_clksel_set_rate
,
1196 static const struct clksel hsmmc6_fclk_sel
[] = {
1197 { .parent
= &func_64m_fclk
, .rates
= div_1_0_rates
},
1198 { .parent
= &func_96m_fclk
, .rates
= div_1_1_rates
},
1202 static struct clk hsmmc6_fclk
= {
1203 .name
= "hsmmc6_fclk",
1204 .parent
= &func_64m_fclk
,
1205 .ops
= &clkops_null
,
1206 .recalc
= &followparent_recalc
,
1209 static const struct clksel_rate div2_1to8_rates
[] = {
1210 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
1211 { .div
= 8, .val
= 1, .flags
= RATE_IN_44XX
},
1215 static const struct clksel init_60m_fclk_div
[] = {
1216 { .parent
= &dpll_usb_m2_ck
, .rates
= div2_1to8_rates
},
1220 static struct clk init_60m_fclk
= {
1221 .name
= "init_60m_fclk",
1222 .parent
= &dpll_usb_m2_ck
,
1223 .clksel
= init_60m_fclk_div
,
1224 .clksel_reg
= OMAP4430_CM_CLKSEL_USB_60MHZ
,
1225 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1226 .ops
= &clkops_null
,
1227 .recalc
= &omap2_clksel_recalc
,
1228 .round_rate
= &omap2_clksel_round_rate
,
1229 .set_rate
= &omap2_clksel_set_rate
,
1232 static const struct clksel l3_div_div
[] = {
1233 { .parent
= &div_core_ck
, .rates
= div2_1to2_rates
},
1237 static struct clk l3_div_ck
= {
1238 .name
= "l3_div_ck",
1239 .parent
= &div_core_ck
,
1240 .clksel
= l3_div_div
,
1241 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
1242 .clksel_mask
= OMAP4430_CLKSEL_L3_MASK
,
1243 .ops
= &clkops_null
,
1244 .recalc
= &omap2_clksel_recalc
,
1245 .round_rate
= &omap2_clksel_round_rate
,
1246 .set_rate
= &omap2_clksel_set_rate
,
1249 static const struct clksel l4_div_div
[] = {
1250 { .parent
= &l3_div_ck
, .rates
= div2_1to2_rates
},
1254 static struct clk l4_div_ck
= {
1255 .name
= "l4_div_ck",
1256 .parent
= &l3_div_ck
,
1257 .clksel
= l4_div_div
,
1258 .clksel_reg
= OMAP4430_CM_CLKSEL_CORE
,
1259 .clksel_mask
= OMAP4430_CLKSEL_L4_MASK
,
1260 .ops
= &clkops_null
,
1261 .recalc
= &omap2_clksel_recalc
,
1262 .round_rate
= &omap2_clksel_round_rate
,
1263 .set_rate
= &omap2_clksel_set_rate
,
1266 static struct clk lp_clk_div_ck
= {
1267 .name
= "lp_clk_div_ck",
1268 .parent
= &dpll_abe_m2x2_ck
,
1269 .ops
= &clkops_null
,
1271 .recalc
= &omap_fixed_divisor_recalc
,
1274 static const struct clksel l4_wkup_clk_mux_sel
[] = {
1275 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
1276 { .parent
= &lp_clk_div_ck
, .rates
= div_1_1_rates
},
1280 static struct clk l4_wkup_clk_mux_ck
= {
1281 .name
= "l4_wkup_clk_mux_ck",
1282 .parent
= &sys_clkin_ck
,
1283 .clksel
= l4_wkup_clk_mux_sel
,
1284 .init
= &omap2_init_clksel_parent
,
1285 .clksel_reg
= OMAP4430_CM_L4_WKUP_CLKSEL
,
1286 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1287 .ops
= &clkops_null
,
1288 .recalc
= &omap2_clksel_recalc
,
1291 static const struct clksel_rate div3_8to32_rates
[] = {
1292 { .div
= 8, .val
= 0, .flags
= RATE_IN_44XX
},
1293 { .div
= 16, .val
= 1, .flags
= RATE_IN_44XX
},
1294 { .div
= 32, .val
= 2, .flags
= RATE_IN_44XX
},
1298 static const struct clksel div_ts_ck_div
[] = {
1299 { .parent
= &l4_wkup_clk_mux_ck
, .rates
= div3_8to32_rates
},
1303 static struct clk div_ts_ck
= {
1304 .name
= "div_ts_ck",
1305 .parent
= &l4_wkup_clk_mux_ck
,
1306 .clksel
= div_ts_ck_div
,
1307 .clksel_reg
= OMAP4430_CM_WKUP_BANDGAP_CLKCTRL
,
1308 .clksel_mask
= OMAP4430_CLKSEL_24_25_MASK
,
1309 .ops
= &clkops_null
,
1310 .recalc
= &omap2_clksel_recalc
,
1313 static const struct clksel per_abe_nc_fclk_div
[] = {
1314 { .parent
= &dpll_abe_m2_ck
, .rates
= div2_1to2_rates
},
1318 static struct clk per_abe_nc_fclk
= {
1319 .name
= "per_abe_nc_fclk",
1320 .parent
= &dpll_abe_m2_ck
,
1321 .clksel
= per_abe_nc_fclk_div
,
1322 .clksel_reg
= OMAP4430_CM_SCALE_FCLK
,
1323 .clksel_mask
= OMAP4430_SCALE_FCLK_MASK
,
1324 .ops
= &clkops_null
,
1325 .recalc
= &omap2_clksel_recalc
,
1326 .round_rate
= &omap2_clksel_round_rate
,
1327 .set_rate
= &omap2_clksel_set_rate
,
1330 static const struct clksel mcasp2_fclk_sel
[] = {
1331 { .parent
= &func_96m_fclk
, .rates
= div_1_0_rates
},
1332 { .parent
= &per_abe_nc_fclk
, .rates
= div_1_1_rates
},
1336 static struct clk mcasp2_fclk
= {
1337 .name
= "mcasp2_fclk",
1338 .parent
= &func_96m_fclk
,
1339 .ops
= &clkops_null
,
1340 .recalc
= &followparent_recalc
,
1343 static struct clk mcasp3_fclk
= {
1344 .name
= "mcasp3_fclk",
1345 .parent
= &func_96m_fclk
,
1346 .ops
= &clkops_null
,
1347 .recalc
= &followparent_recalc
,
1350 static struct clk ocp_abe_iclk
= {
1351 .name
= "ocp_abe_iclk",
1352 .parent
= &aess_fclk
,
1353 .ops
= &clkops_null
,
1354 .recalc
= &followparent_recalc
,
1357 static struct clk per_abe_24m_fclk
= {
1358 .name
= "per_abe_24m_fclk",
1359 .parent
= &dpll_abe_m2_ck
,
1360 .ops
= &clkops_null
,
1362 .recalc
= &omap_fixed_divisor_recalc
,
1365 static const struct clksel pmd_stm_clock_mux_sel
[] = {
1366 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
1367 { .parent
= &dpll_core_m6x2_ck
, .rates
= div_1_1_rates
},
1368 { .parent
= &tie_low_clock_ck
, .rates
= div_1_2_rates
},
1372 static struct clk pmd_stm_clock_mux_ck
= {
1373 .name
= "pmd_stm_clock_mux_ck",
1374 .parent
= &sys_clkin_ck
,
1375 .ops
= &clkops_null
,
1376 .recalc
= &followparent_recalc
,
1379 static struct clk pmd_trace_clk_mux_ck
= {
1380 .name
= "pmd_trace_clk_mux_ck",
1381 .parent
= &sys_clkin_ck
,
1382 .ops
= &clkops_null
,
1383 .recalc
= &followparent_recalc
,
1386 static const struct clksel syc_clk_div_div
[] = {
1387 { .parent
= &sys_clkin_ck
, .rates
= div2_1to2_rates
},
1391 static struct clk syc_clk_div_ck
= {
1392 .name
= "syc_clk_div_ck",
1393 .parent
= &sys_clkin_ck
,
1394 .clksel
= syc_clk_div_div
,
1395 .clksel_reg
= OMAP4430_CM_ABE_DSS_SYS_CLKSEL
,
1396 .clksel_mask
= OMAP4430_CLKSEL_0_0_MASK
,
1397 .ops
= &clkops_null
,
1398 .recalc
= &omap2_clksel_recalc
,
1399 .round_rate
= &omap2_clksel_round_rate
,
1400 .set_rate
= &omap2_clksel_set_rate
,
1403 /* Leaf clocks controlled by modules */
1405 static struct clk aes1_fck
= {
1407 .ops
= &clkops_omap4_dflt_wait
,
1408 .enable_reg
= OMAP4430_CM_L4SEC_AES1_CLKCTRL
,
1409 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1410 .clkdm_name
= "l4_secure_clkdm",
1411 .parent
= &l3_div_ck
,
1412 .recalc
= &followparent_recalc
,
1415 static struct clk aes2_fck
= {
1417 .ops
= &clkops_omap4_dflt_wait
,
1418 .enable_reg
= OMAP4430_CM_L4SEC_AES2_CLKCTRL
,
1419 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1420 .clkdm_name
= "l4_secure_clkdm",
1421 .parent
= &l3_div_ck
,
1422 .recalc
= &followparent_recalc
,
1425 static struct clk aess_fck
= {
1427 .ops
= &clkops_omap4_dflt_wait
,
1428 .enable_reg
= OMAP4430_CM1_ABE_AESS_CLKCTRL
,
1429 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1430 .clkdm_name
= "abe_clkdm",
1431 .parent
= &aess_fclk
,
1432 .recalc
= &followparent_recalc
,
1435 static struct clk bandgap_fclk
= {
1436 .name
= "bandgap_fclk",
1437 .ops
= &clkops_omap2_dflt
,
1438 .enable_reg
= OMAP4430_CM_WKUP_BANDGAP_CLKCTRL
,
1439 .enable_bit
= OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT
,
1440 .clkdm_name
= "l4_wkup_clkdm",
1441 .parent
= &sys_32k_ck
,
1442 .recalc
= &followparent_recalc
,
1445 static struct clk bandgap_ts_fclk
= {
1446 .name
= "bandgap_ts_fclk",
1447 .ops
= &clkops_omap2_dflt
,
1448 .enable_reg
= OMAP4430_CM_WKUP_BANDGAP_CLKCTRL
,
1449 .enable_bit
= OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT
,
1450 .clkdm_name
= "l4_wkup_clkdm",
1451 .parent
= &div_ts_ck
,
1452 .recalc
= &followparent_recalc
,
1455 static struct clk des3des_fck
= {
1456 .name
= "des3des_fck",
1457 .ops
= &clkops_omap4_dflt_wait
,
1458 .enable_reg
= OMAP4430_CM_L4SEC_DES3DES_CLKCTRL
,
1459 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1460 .clkdm_name
= "l4_secure_clkdm",
1461 .parent
= &l4_div_ck
,
1462 .recalc
= &followparent_recalc
,
1465 static const struct clksel dmic_sync_mux_sel
[] = {
1466 { .parent
= &abe_24m_fclk
, .rates
= div_1_0_rates
},
1467 { .parent
= &syc_clk_div_ck
, .rates
= div_1_1_rates
},
1468 { .parent
= &func_24m_clk
, .rates
= div_1_2_rates
},
1472 static struct clk dmic_sync_mux_ck
= {
1473 .name
= "dmic_sync_mux_ck",
1474 .parent
= &abe_24m_fclk
,
1475 .clksel
= dmic_sync_mux_sel
,
1476 .init
= &omap2_init_clksel_parent
,
1477 .clksel_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1478 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK
,
1479 .ops
= &clkops_null
,
1480 .recalc
= &omap2_clksel_recalc
,
1483 static const struct clksel func_dmic_abe_gfclk_sel
[] = {
1484 { .parent
= &dmic_sync_mux_ck
, .rates
= div_1_0_rates
},
1485 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1486 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1490 /* Merged func_dmic_abe_gfclk into dmic */
1491 static struct clk dmic_fck
= {
1493 .parent
= &dmic_sync_mux_ck
,
1494 .clksel
= func_dmic_abe_gfclk_sel
,
1495 .init
= &omap2_init_clksel_parent
,
1496 .clksel_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1497 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1498 .ops
= &clkops_omap4_dflt_wait
,
1499 .recalc
= &omap2_clksel_recalc
,
1500 .enable_reg
= OMAP4430_CM1_ABE_DMIC_CLKCTRL
,
1501 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1502 .clkdm_name
= "abe_clkdm",
1505 static struct clk dsp_fck
= {
1507 .ops
= &clkops_omap4_dflt_wait
,
1508 .enable_reg
= OMAP4430_CM_TESLA_TESLA_CLKCTRL
,
1509 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1510 .clkdm_name
= "tesla_clkdm",
1511 .parent
= &dpll_iva_m4x2_ck
,
1512 .recalc
= &followparent_recalc
,
1515 static struct clk dss_sys_clk
= {
1516 .name
= "dss_sys_clk",
1517 .ops
= &clkops_omap2_dflt
,
1518 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1519 .enable_bit
= OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT
,
1520 .clkdm_name
= "l3_dss_clkdm",
1521 #ifdef CONFIG_FB_OMAP_BOOTLOADER_INIT
1522 .flags
= ENABLE_ON_INIT
,
1524 .parent
= &syc_clk_div_ck
,
1525 .recalc
= &followparent_recalc
,
1528 static struct clk dss_tv_clk
= {
1529 .name
= "dss_tv_clk",
1530 .ops
= &clkops_omap2_dflt
,
1531 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1532 .enable_bit
= OMAP4430_OPTFCLKEN_TV_CLK_SHIFT
,
1533 .clkdm_name
= "l3_dss_clkdm",
1534 .parent
= &extalt_clkin_ck
,
1535 .recalc
= &followparent_recalc
,
1538 static struct clk dss_dss_clk
= {
1539 .name
= "dss_dss_clk",
1540 .ops
= &clkops_omap2_dflt
,
1541 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1542 .enable_bit
= OMAP4430_OPTFCLKEN_DSSCLK_SHIFT
,
1543 .clkdm_name
= "l3_dss_clkdm",
1544 .parent
= &dpll_per_m5x2_ck
,
1545 .recalc
= &followparent_recalc
,
1548 static struct clk dss_48mhz_clk
= {
1549 .name
= "dss_48mhz_clk",
1550 .ops
= &clkops_omap2_dflt
,
1551 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1552 .enable_bit
= OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT
,
1553 .clkdm_name
= "l3_dss_clkdm",
1554 .parent
= &func_48mc_fclk
,
1555 .recalc
= &followparent_recalc
,
1558 static struct clk dss_fck
= {
1560 .ops
= &clkops_omap4_dflt_wait
,
1561 .enable_reg
= OMAP4430_CM_DSS_DSS_CLKCTRL
,
1562 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1563 .clkdm_name
= "l3_dss_clkdm",
1564 #ifdef CONFIG_FB_OMAP_BOOTLOADER_INIT
1565 .flags
= ENABLE_ON_INIT
,
1567 .parent
= &l3_div_ck
,
1568 .recalc
= &followparent_recalc
,
1571 static struct clk efuse_ctrl_cust_fck
= {
1572 .name
= "efuse_ctrl_cust_fck",
1573 .ops
= &clkops_omap4_dflt_wait
,
1574 .enable_reg
= OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL
,
1575 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1576 .clkdm_name
= "l4_cefuse_clkdm",
1577 .parent
= &sys_clkin_ck
,
1578 .recalc
= &followparent_recalc
,
1581 static struct clk emif1_fck
= {
1582 .name
= "emif1_fck",
1583 .ops
= &clkops_omap4_dflt_wait
,
1584 .enable_reg
= OMAP4430_CM_MEMIF_EMIF_1_CLKCTRL
,
1585 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1586 .clkdm_name
= "l3_emif_clkdm",
1587 .parent
= &ddrphy_ck
,
1588 .recalc
= &followparent_recalc
,
1591 static struct clk emif2_fck
= {
1592 .name
= "emif2_fck",
1593 .ops
= &clkops_omap4_dflt_wait
,
1594 .enable_reg
= OMAP4430_CM_MEMIF_EMIF_2_CLKCTRL
,
1595 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1596 .clkdm_name
= "l3_emif_clkdm",
1597 .parent
= &ddrphy_ck
,
1598 .recalc
= &followparent_recalc
,
1601 static const struct clksel fdif_fclk_div
[] = {
1602 { .parent
= &dpll_per_m4x2_ck
, .rates
= div3_1to4_rates
},
1606 /* Merged fdif_fclk into fdif */
1607 static struct clk fdif_fck
= {
1609 .parent
= &dpll_per_m4x2_ck
,
1610 .clksel
= fdif_fclk_div
,
1611 .clksel_reg
= OMAP4430_CM_CAM_FDIF_CLKCTRL
,
1612 .clksel_mask
= OMAP4430_CLKSEL_FCLK_MASK
,
1613 .ops
= &clkops_omap4_dflt_wait
,
1614 .recalc
= &omap2_clksel_recalc
,
1615 .round_rate
= &omap2_clksel_round_rate
,
1616 .set_rate
= &omap2_clksel_set_rate
,
1617 .enable_reg
= OMAP4430_CM_CAM_FDIF_CLKCTRL
,
1618 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1619 .clkdm_name
= "iss_clkdm",
1622 static struct clk fpka_fck
= {
1624 .ops
= &clkops_omap4_dflt_wait
,
1625 .enable_reg
= OMAP4430_CM_L4SEC_PKAEIP29_CLKCTRL
,
1626 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1627 .clkdm_name
= "l4_secure_clkdm",
1628 .parent
= &l4_div_ck
,
1629 .recalc
= &followparent_recalc
,
1632 static struct clk gpio1_dbclk
= {
1633 .name
= "gpio1_dbclk",
1634 .ops
= &clkops_omap2_dflt
,
1635 .enable_reg
= OMAP4430_CM_WKUP_GPIO1_CLKCTRL
,
1636 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1637 .clkdm_name
= "l4_wkup_clkdm",
1638 .parent
= &sys_32k_ck
,
1639 .recalc
= &followparent_recalc
,
1642 static struct clk gpio1_ick
= {
1643 .name
= "gpio1_ick",
1644 .ops
= &clkops_omap4_dflt_wait
,
1645 .enable_reg
= OMAP4430_CM_WKUP_GPIO1_CLKCTRL
,
1646 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1647 .clkdm_name
= "l4_wkup_clkdm",
1648 .parent
= &l4_wkup_clk_mux_ck
,
1649 .recalc
= &followparent_recalc
,
1652 static struct clk gpio2_dbclk
= {
1653 .name
= "gpio2_dbclk",
1654 .ops
= &clkops_omap2_dflt
,
1655 .enable_reg
= OMAP4430_CM_L4PER_GPIO2_CLKCTRL
,
1656 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1657 .clkdm_name
= "l4_per_clkdm",
1658 .parent
= &sys_32k_ck
,
1659 .recalc
= &followparent_recalc
,
1662 static struct clk gpio2_ick
= {
1663 .name
= "gpio2_ick",
1664 .ops
= &clkops_omap4_dflt_wait
,
1665 .enable_reg
= OMAP4430_CM_L4PER_GPIO2_CLKCTRL
,
1666 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1667 .clkdm_name
= "l4_per_clkdm",
1668 .parent
= &l4_div_ck
,
1669 .recalc
= &followparent_recalc
,
1672 static struct clk gpio3_dbclk
= {
1673 .name
= "gpio3_dbclk",
1674 .ops
= &clkops_omap2_dflt
,
1675 .enable_reg
= OMAP4430_CM_L4PER_GPIO3_CLKCTRL
,
1676 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1677 .clkdm_name
= "l4_per_clkdm",
1678 .parent
= &sys_32k_ck
,
1679 .recalc
= &followparent_recalc
,
1682 static struct clk gpio3_ick
= {
1683 .name
= "gpio3_ick",
1684 .ops
= &clkops_omap4_dflt_wait
,
1685 .enable_reg
= OMAP4430_CM_L4PER_GPIO3_CLKCTRL
,
1686 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1687 .clkdm_name
= "l4_per_clkdm",
1688 .parent
= &l4_div_ck
,
1689 .recalc
= &followparent_recalc
,
1692 static struct clk gpio4_dbclk
= {
1693 .name
= "gpio4_dbclk",
1694 .ops
= &clkops_omap2_dflt
,
1695 .enable_reg
= OMAP4430_CM_L4PER_GPIO4_CLKCTRL
,
1696 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1697 .clkdm_name
= "l4_per_clkdm",
1698 .parent
= &sys_32k_ck
,
1699 .recalc
= &followparent_recalc
,
1702 static struct clk gpio4_ick
= {
1703 .name
= "gpio4_ick",
1704 .ops
= &clkops_omap4_dflt_wait
,
1705 .enable_reg
= OMAP4430_CM_L4PER_GPIO4_CLKCTRL
,
1706 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1707 .clkdm_name
= "l4_per_clkdm",
1708 .parent
= &l4_div_ck
,
1709 .recalc
= &followparent_recalc
,
1712 static struct clk gpio5_dbclk
= {
1713 .name
= "gpio5_dbclk",
1714 .ops
= &clkops_omap2_dflt
,
1715 .enable_reg
= OMAP4430_CM_L4PER_GPIO5_CLKCTRL
,
1716 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1717 .clkdm_name
= "l4_per_clkdm",
1718 .parent
= &sys_32k_ck
,
1719 .recalc
= &followparent_recalc
,
1722 static struct clk gpio5_ick
= {
1723 .name
= "gpio5_ick",
1724 .ops
= &clkops_omap4_dflt_wait
,
1725 .enable_reg
= OMAP4430_CM_L4PER_GPIO5_CLKCTRL
,
1726 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1727 .clkdm_name
= "l4_per_clkdm",
1728 .parent
= &l4_div_ck
,
1729 .recalc
= &followparent_recalc
,
1732 static struct clk gpio6_dbclk
= {
1733 .name
= "gpio6_dbclk",
1734 .ops
= &clkops_omap2_dflt
,
1735 .enable_reg
= OMAP4430_CM_L4PER_GPIO6_CLKCTRL
,
1736 .enable_bit
= OMAP4430_OPTFCLKEN_DBCLK_SHIFT
,
1737 .clkdm_name
= "l4_per_clkdm",
1738 .parent
= &sys_32k_ck
,
1739 .recalc
= &followparent_recalc
,
1742 static struct clk gpio6_ick
= {
1743 .name
= "gpio6_ick",
1744 .ops
= &clkops_omap4_dflt_wait
,
1745 .enable_reg
= OMAP4430_CM_L4PER_GPIO6_CLKCTRL
,
1746 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1747 .clkdm_name
= "l4_per_clkdm",
1748 .parent
= &l4_div_ck
,
1749 .recalc
= &followparent_recalc
,
1752 static struct clk gpmc_ick
= {
1754 .ops
= &clkops_omap4_dflt_wait
,
1755 .enable_reg
= OMAP4430_CM_L3_2_GPMC_CLKCTRL
,
1756 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1757 .clkdm_name
= "l3_2_clkdm",
1758 .flags
= ENABLE_ON_INIT
,
1759 .parent
= &l3_div_ck
,
1760 .recalc
= &followparent_recalc
,
1763 static const struct clksel sgx_clk_mux_sel
[] = {
1764 { .parent
= &dpll_core_m7x2_ck
, .rates
= div_1_0_rates
},
1765 { .parent
= &dpll_per_m7x2_ck
, .rates
= div_1_1_rates
},
1769 /* Merged sgx_clk_mux into gpu */
1770 static struct clk gpu_fck
= {
1772 .parent
= &dpll_core_m7x2_ck
,
1773 .clksel
= sgx_clk_mux_sel
,
1774 .init
= &omap2_init_clksel_parent
,
1775 .clksel_reg
= OMAP4430_CM_GFX_GFX_CLKCTRL
,
1776 .clksel_mask
= OMAP4430_CLKSEL_SGX_FCLK_MASK
,
1777 .ops
= &clkops_omap4_dflt_wait
,
1778 .recalc
= &omap2_clksel_recalc
,
1779 .enable_reg
= OMAP4430_CM_GFX_GFX_CLKCTRL
,
1780 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1781 .clkdm_name
= "l3_gfx_clkdm",
1784 static struct clk hdq1w_fck
= {
1785 .name
= "hdq1w_fck",
1786 .ops
= &clkops_omap4_dflt_wait
,
1787 .enable_reg
= OMAP4430_CM_L4PER_HDQ1W_CLKCTRL
,
1788 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1789 .clkdm_name
= "l4_per_clkdm",
1790 .parent
= &func_12m_fclk
,
1791 .recalc
= &followparent_recalc
,
1794 static const struct clksel hsi_fclk_div
[] = {
1795 { .parent
= &dpll_per_m2x2_ck
, .rates
= div3_1to4_rates
},
1799 /* Merged hsi_fclk into hsi */
1800 static struct clk hsi_fck
= {
1802 .parent
= &dpll_per_m2x2_ck
,
1803 .clksel
= hsi_fclk_div
,
1804 .clksel_reg
= OMAP4430_CM_L3INIT_HSI_CLKCTRL
,
1805 .clksel_mask
= OMAP4430_CLKSEL_24_25_MASK
,
1806 .ops
= &clkops_omap4_dflt_wait
,
1807 .recalc
= &omap2_clksel_recalc
,
1808 .round_rate
= &omap2_clksel_round_rate
,
1809 .set_rate
= &omap2_clksel_set_rate
,
1810 .enable_reg
= OMAP4430_CM_L3INIT_HSI_CLKCTRL
,
1811 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1812 .clkdm_name
= "l3_init_clkdm",
1815 static struct clk i2c1_fck
= {
1817 .ops
= &clkops_omap4_dflt_wait
,
1818 .enable_reg
= OMAP4430_CM_L4PER_I2C1_CLKCTRL
,
1819 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1820 .clkdm_name
= "l4_per_clkdm",
1821 .parent
= &func_96m_fclk
,
1822 .recalc
= &followparent_recalc
,
1825 static struct clk i2c2_fck
= {
1827 .ops
= &clkops_omap4_dflt_wait
,
1828 .enable_reg
= OMAP4430_CM_L4PER_I2C2_CLKCTRL
,
1829 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1830 .clkdm_name
= "l4_per_clkdm",
1831 .parent
= &func_96m_fclk
,
1832 .recalc
= &followparent_recalc
,
1835 static struct clk i2c3_fck
= {
1837 .ops
= &clkops_omap4_dflt_wait
,
1838 .enable_reg
= OMAP4430_CM_L4PER_I2C3_CLKCTRL
,
1839 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1840 .clkdm_name
= "l4_per_clkdm",
1841 .parent
= &func_96m_fclk
,
1842 .recalc
= &followparent_recalc
,
1845 static struct clk i2c4_fck
= {
1847 .ops
= &clkops_omap4_dflt_wait
,
1848 .enable_reg
= OMAP4430_CM_L4PER_I2C4_CLKCTRL
,
1849 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1850 .clkdm_name
= "l4_per_clkdm",
1851 .parent
= &func_96m_fclk
,
1852 .recalc
= &followparent_recalc
,
1855 static struct clk ipu_fck
= {
1857 .ops
= &clkops_omap4_dflt_wait
,
1858 .enable_reg
= OMAP4430_CM_DUCATI_DUCATI_CLKCTRL
,
1859 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1860 .clkdm_name
= "ducati_clkdm",
1861 .parent
= &ducati_clk_mux_ck
,
1862 .recalc
= &followparent_recalc
,
1865 static struct clk iss_ctrlclk
= {
1866 .name
= "iss_ctrlclk",
1867 .ops
= &clkops_omap2_dflt
,
1868 .enable_reg
= OMAP4430_CM_CAM_ISS_CLKCTRL
,
1869 .enable_bit
= OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT
,
1870 .clkdm_name
= "iss_clkdm",
1871 .parent
= &func_96m_fclk
,
1872 .recalc
= &followparent_recalc
,
1875 static struct clk iss_fck
= {
1877 .ops
= &clkops_omap4_dflt_wait
,
1878 .enable_reg
= OMAP4430_CM_CAM_ISS_CLKCTRL
,
1879 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1880 .clkdm_name
= "iss_clkdm",
1881 .parent
= &ducati_clk_mux_ck
,
1882 .recalc
= &followparent_recalc
,
1885 static struct clk iva_fck
= {
1887 .ops
= &clkops_omap4_dflt_wait
,
1888 .enable_reg
= OMAP4430_CM_IVAHD_IVAHD_CLKCTRL
,
1889 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1890 .clkdm_name
= "ivahd_clkdm",
1891 .parent
= &dpll_iva_m5x2_ck
,
1892 .recalc
= &followparent_recalc
,
1895 static struct clk kbd_fck
= {
1897 .ops
= &clkops_omap4_dflt_wait
,
1898 .enable_reg
= OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL
,
1899 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1900 .clkdm_name
= "l4_wkup_clkdm",
1901 .parent
= &sys_32k_ck
,
1902 .recalc
= &followparent_recalc
,
1905 static struct clk l3_instr_ick
= {
1906 .name
= "l3_instr_ick",
1907 .ops
= &clkops_omap4_dflt_wait
,
1908 .enable_reg
= OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL
,
1909 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1910 .clkdm_name
= "l3_instr_clkdm",
1911 .flags
= ENABLE_ON_INIT
,
1912 .parent
= &l3_div_ck
,
1913 .recalc
= &followparent_recalc
,
1916 static struct clk l3_main_3_ick
= {
1917 .name
= "l3_main_3_ick",
1918 .ops
= &clkops_omap4_dflt_wait
,
1919 .enable_reg
= OMAP4430_CM_L3INSTR_L3_3_CLKCTRL
,
1920 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
1921 .clkdm_name
= "l3_instr_clkdm",
1922 .flags
= ENABLE_ON_INIT
,
1923 .parent
= &l3_div_ck
,
1924 .recalc
= &followparent_recalc
,
1927 static struct clk mcasp_sync_mux_ck
= {
1928 .name
= "mcasp_sync_mux_ck",
1929 .parent
= &abe_24m_fclk
,
1930 .clksel
= dmic_sync_mux_sel
,
1931 .init
= &omap2_init_clksel_parent
,
1932 .clksel_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1933 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK
,
1934 .ops
= &clkops_null
,
1935 .recalc
= &omap2_clksel_recalc
,
1938 static const struct clksel func_mcasp_abe_gfclk_sel
[] = {
1939 { .parent
= &mcasp_sync_mux_ck
, .rates
= div_1_0_rates
},
1940 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1941 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1945 /* Merged func_mcasp_abe_gfclk into mcasp */
1946 static struct clk mcasp_fck
= {
1947 .name
= "mcasp_fck",
1948 .parent
= &mcasp_sync_mux_ck
,
1949 .clksel
= func_mcasp_abe_gfclk_sel
,
1950 .init
= &omap2_init_clksel_parent
,
1951 .clksel_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1952 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1953 .ops
= &clkops_omap4_dflt_wait
,
1954 .recalc
= &omap2_clksel_recalc
,
1955 .enable_reg
= OMAP4430_CM1_ABE_MCASP_CLKCTRL
,
1956 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1957 .clkdm_name
= "abe_clkdm",
1960 static struct clk mcbsp1_sync_mux_ck
= {
1961 .name
= "mcbsp1_sync_mux_ck",
1962 .parent
= &abe_24m_fclk
,
1963 .clksel
= dmic_sync_mux_sel
,
1964 .init
= &omap2_init_clksel_parent
,
1965 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1966 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK
,
1967 .ops
= &clkops_null
,
1968 .recalc
= &omap2_clksel_recalc
,
1971 static const struct clksel func_mcbsp1_gfclk_sel
[] = {
1972 { .parent
= &mcbsp1_sync_mux_ck
, .rates
= div_1_0_rates
},
1973 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
1974 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
1978 /* Merged func_mcbsp1_gfclk into mcbsp1 */
1979 static struct clk mcbsp1_fck
= {
1980 .name
= "mcbsp1_fck",
1981 .parent
= &mcbsp1_sync_mux_ck
,
1982 .clksel
= func_mcbsp1_gfclk_sel
,
1983 .init
= &omap2_init_clksel_parent
,
1984 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1985 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
1986 .ops
= &clkops_omap4_dflt_wait
,
1987 .recalc
= &omap2_clksel_recalc
,
1988 .enable_reg
= OMAP4430_CM1_ABE_MCBSP1_CLKCTRL
,
1989 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
1990 .clkdm_name
= "abe_clkdm",
1993 static struct clk mcbsp2_sync_mux_ck
= {
1994 .name
= "mcbsp2_sync_mux_ck",
1995 .parent
= &abe_24m_fclk
,
1996 .clksel
= dmic_sync_mux_sel
,
1997 .init
= &omap2_init_clksel_parent
,
1998 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
1999 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK
,
2000 .ops
= &clkops_null
,
2001 .recalc
= &omap2_clksel_recalc
,
2004 static const struct clksel func_mcbsp2_gfclk_sel
[] = {
2005 { .parent
= &mcbsp2_sync_mux_ck
, .rates
= div_1_0_rates
},
2006 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
2007 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
2011 /* Merged func_mcbsp2_gfclk into mcbsp2 */
2012 static struct clk mcbsp2_fck
= {
2013 .name
= "mcbsp2_fck",
2014 .parent
= &mcbsp2_sync_mux_ck
,
2015 .clksel
= func_mcbsp2_gfclk_sel
,
2016 .init
= &omap2_init_clksel_parent
,
2017 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
2018 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
2019 .ops
= &clkops_omap4_dflt_wait
,
2020 .recalc
= &omap2_clksel_recalc
,
2021 .enable_reg
= OMAP4430_CM1_ABE_MCBSP2_CLKCTRL
,
2022 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2023 .clkdm_name
= "abe_clkdm",
2026 static struct clk mcbsp3_sync_mux_ck
= {
2027 .name
= "mcbsp3_sync_mux_ck",
2028 .parent
= &abe_24m_fclk
,
2029 .clksel
= dmic_sync_mux_sel
,
2030 .init
= &omap2_init_clksel_parent
,
2031 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
2032 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK
,
2033 .ops
= &clkops_null
,
2034 .recalc
= &omap2_clksel_recalc
,
2037 static const struct clksel func_mcbsp3_gfclk_sel
[] = {
2038 { .parent
= &mcbsp3_sync_mux_ck
, .rates
= div_1_0_rates
},
2039 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
2040 { .parent
= &slimbus_clk
, .rates
= div_1_2_rates
},
2044 /* Merged func_mcbsp3_gfclk into mcbsp3 */
2045 static struct clk mcbsp3_fck
= {
2046 .name
= "mcbsp3_fck",
2047 .parent
= &mcbsp3_sync_mux_ck
,
2048 .clksel
= func_mcbsp3_gfclk_sel
,
2049 .init
= &omap2_init_clksel_parent
,
2050 .clksel_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
2051 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_MASK
,
2052 .ops
= &clkops_omap4_dflt_wait
,
2053 .recalc
= &omap2_clksel_recalc
,
2054 .enable_reg
= OMAP4430_CM1_ABE_MCBSP3_CLKCTRL
,
2055 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2056 .clkdm_name
= "abe_clkdm",
2059 static struct clk mcbsp4_sync_mux_ck
= {
2060 .name
= "mcbsp4_sync_mux_ck",
2061 .parent
= &func_96m_fclk
,
2062 .clksel
= mcasp2_fclk_sel
,
2063 .init
= &omap2_init_clksel_parent
,
2064 .clksel_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
2065 .clksel_mask
= OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK
,
2066 .ops
= &clkops_null
,
2067 .recalc
= &omap2_clksel_recalc
,
2070 static const struct clksel per_mcbsp4_gfclk_sel
[] = {
2071 { .parent
= &mcbsp4_sync_mux_ck
, .rates
= div_1_0_rates
},
2072 { .parent
= &pad_clks_ck
, .rates
= div_1_1_rates
},
2076 /* Merged per_mcbsp4_gfclk into mcbsp4 */
2077 static struct clk mcbsp4_fck
= {
2078 .name
= "mcbsp4_fck",
2079 .parent
= &mcbsp4_sync_mux_ck
,
2080 .clksel
= per_mcbsp4_gfclk_sel
,
2081 .init
= &omap2_init_clksel_parent
,
2082 .clksel_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
2083 .clksel_mask
= OMAP4430_CLKSEL_SOURCE_24_24_MASK
,
2084 .ops
= &clkops_omap4_dflt_wait
,
2085 .recalc
= &omap2_clksel_recalc
,
2086 .enable_reg
= OMAP4430_CM_L4PER_MCBSP4_CLKCTRL
,
2087 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2088 .clkdm_name
= "l4_per_clkdm",
2091 static struct clk mcpdm_fck
= {
2092 .name
= "mcpdm_fck",
2093 .ops
= &clkops_omap4_dflt_wait
,
2094 .enable_reg
= OMAP4430_CM1_ABE_PDM_CLKCTRL
,
2095 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2096 .clkdm_name
= "abe_clkdm",
2097 .parent
= &pad_clks_ck
,
2098 .recalc
= &followparent_recalc
,
2101 static struct clk mcspi1_fck
= {
2102 .name
= "mcspi1_fck",
2103 .ops
= &clkops_omap4_dflt_wait
,
2104 .enable_reg
= OMAP4430_CM_L4PER_MCSPI1_CLKCTRL
,
2105 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2106 .clkdm_name
= "l4_per_clkdm",
2107 .parent
= &func_48m_fclk
,
2108 .recalc
= &followparent_recalc
,
2111 static struct clk mcspi2_fck
= {
2112 .name
= "mcspi2_fck",
2113 .ops
= &clkops_omap4_dflt_wait
,
2114 .enable_reg
= OMAP4430_CM_L4PER_MCSPI2_CLKCTRL
,
2115 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2116 .clkdm_name
= "l4_per_clkdm",
2117 .parent
= &func_48m_fclk
,
2118 .recalc
= &followparent_recalc
,
2121 static struct clk mcspi3_fck
= {
2122 .name
= "mcspi3_fck",
2123 .ops
= &clkops_omap4_dflt_wait
,
2124 .enable_reg
= OMAP4430_CM_L4PER_MCSPI3_CLKCTRL
,
2125 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2126 .clkdm_name
= "l4_per_clkdm",
2127 .parent
= &func_48m_fclk
,
2128 .recalc
= &followparent_recalc
,
2131 static struct clk mcspi4_fck
= {
2132 .name
= "mcspi4_fck",
2133 .ops
= &clkops_omap4_dflt_wait
,
2134 .enable_reg
= OMAP4430_CM_L4PER_MCSPI4_CLKCTRL
,
2135 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2136 .clkdm_name
= "l4_per_clkdm",
2137 .parent
= &func_48m_fclk
,
2138 .recalc
= &followparent_recalc
,
2141 /* Merged hsmmc1_fclk into mmc1 */
2142 static struct clk mmc1_fck
= {
2144 .parent
= &func_64m_fclk
,
2145 .clksel
= hsmmc6_fclk_sel
,
2146 .init
= &omap2_init_clksel_parent
,
2147 .clksel_reg
= OMAP4430_CM_L3INIT_MMC1_CLKCTRL
,
2148 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2149 .ops
= &clkops_omap4_dflt_wait
,
2150 .recalc
= &omap2_clksel_recalc
,
2151 .enable_reg
= OMAP4430_CM_L3INIT_MMC1_CLKCTRL
,
2152 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2153 .clkdm_name
= "l3_init_clkdm",
2156 /* Merged hsmmc2_fclk into mmc2 */
2157 static struct clk mmc2_fck
= {
2159 .parent
= &func_64m_fclk
,
2160 .clksel
= hsmmc6_fclk_sel
,
2161 .init
= &omap2_init_clksel_parent
,
2162 .clksel_reg
= OMAP4430_CM_L3INIT_MMC2_CLKCTRL
,
2163 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2164 .ops
= &clkops_omap4_dflt_wait
,
2165 .recalc
= &omap2_clksel_recalc
,
2166 .enable_reg
= OMAP4430_CM_L3INIT_MMC2_CLKCTRL
,
2167 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2168 .clkdm_name
= "l3_init_clkdm",
2171 static struct clk mmc3_fck
= {
2173 .ops
= &clkops_omap4_dflt_wait
,
2174 .enable_reg
= OMAP4430_CM_L4PER_MMCSD3_CLKCTRL
,
2175 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2176 .clkdm_name
= "l4_per_clkdm",
2177 .parent
= &func_48m_fclk
,
2178 .recalc
= &followparent_recalc
,
2181 static struct clk mmc4_fck
= {
2183 .ops
= &clkops_omap4_dflt_wait
,
2184 .enable_reg
= OMAP4430_CM_L4PER_MMCSD4_CLKCTRL
,
2185 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2186 .clkdm_name
= "l4_per_clkdm",
2187 .parent
= &func_48m_fclk
,
2188 .recalc
= &followparent_recalc
,
2191 static struct clk mmc5_fck
= {
2193 .ops
= &clkops_omap4_dflt_wait
,
2194 .enable_reg
= OMAP4430_CM_L4PER_MMCSD5_CLKCTRL
,
2195 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2196 .clkdm_name
= "l4_per_clkdm",
2197 .parent
= &func_48m_fclk
,
2198 .recalc
= &followparent_recalc
,
2201 static struct clk ocp2scp_usb_phy_phy_48m
= {
2202 .name
= "ocp2scp_usb_phy_phy_48m",
2203 .ops
= &clkops_omap2_dflt
,
2204 .enable_reg
= OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL
,
2205 .enable_bit
= OMAP4430_OPTFCLKEN_PHY_48M_SHIFT
,
2206 .clkdm_name
= "l3_init_clkdm",
2207 .parent
= &func_48m_fclk
,
2208 .recalc
= &followparent_recalc
,
2211 static struct clk ocp2scp_usb_phy_ick
= {
2212 .name
= "ocp2scp_usb_phy_ick",
2213 .ops
= &clkops_omap4_dflt_wait
,
2214 .enable_reg
= OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL
,
2215 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2216 .clkdm_name
= "l3_init_clkdm",
2217 .parent
= &l4_div_ck
,
2218 .recalc
= &followparent_recalc
,
2221 static struct clk ocp_wp_noc_ick
= {
2222 .name
= "ocp_wp_noc_ick",
2223 .ops
= &clkops_omap4_dflt_wait
,
2224 .enable_reg
= OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL
,
2225 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2226 .clkdm_name
= "l3_instr_clkdm",
2227 .flags
= ENABLE_ON_INIT
,
2228 .parent
= &l3_div_ck
,
2229 .recalc
= &followparent_recalc
,
2232 static struct clk rng_ick
= {
2234 .ops
= &clkops_omap4_dflt_wait
,
2235 .enable_reg
= OMAP4430_CM_L4SEC_RNG_CLKCTRL
,
2236 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2237 .clkdm_name
= "l4_secure_clkdm",
2238 .parent
= &l4_div_ck
,
2239 .recalc
= &followparent_recalc
,
2242 static struct clk sha2md5_fck
= {
2243 .name
= "sha2md5_fck",
2244 .ops
= &clkops_omap4_dflt_wait
,
2245 .enable_reg
= OMAP4430_CM_L4SEC_SHA2MD51_CLKCTRL
,
2246 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2247 .clkdm_name
= "l4_secure_clkdm",
2248 .parent
= &l3_div_ck
,
2249 .recalc
= &followparent_recalc
,
2252 static struct clk sl2if_ick
= {
2253 .name
= "sl2if_ick",
2254 .ops
= &clkops_omap4_dflt_wait
,
2255 .enable_reg
= OMAP4430_CM_IVAHD_SL2_CLKCTRL
,
2256 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2257 .clkdm_name
= "ivahd_clkdm",
2258 .parent
= &dpll_iva_m5x2_ck
,
2259 .recalc
= &followparent_recalc
,
2262 static struct clk slimbus1_fclk_1
= {
2263 .name
= "slimbus1_fclk_1",
2264 .ops
= &clkops_omap2_dflt
,
2265 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2266 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK1_SHIFT
,
2267 .clkdm_name
= "abe_clkdm",
2268 .parent
= &func_24m_clk
,
2269 .recalc
= &followparent_recalc
,
2272 static struct clk slimbus1_fclk_0
= {
2273 .name
= "slimbus1_fclk_0",
2274 .ops
= &clkops_omap2_dflt
,
2275 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2276 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK0_SHIFT
,
2277 .clkdm_name
= "abe_clkdm",
2278 .parent
= &abe_24m_fclk
,
2279 .recalc
= &followparent_recalc
,
2282 static struct clk slimbus1_fclk_2
= {
2283 .name
= "slimbus1_fclk_2",
2284 .ops
= &clkops_omap2_dflt
,
2285 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2286 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK2_SHIFT
,
2287 .clkdm_name
= "abe_clkdm",
2288 .parent
= &pad_clks_ck
,
2289 .recalc
= &followparent_recalc
,
2292 static struct clk slimbus1_slimbus_clk
= {
2293 .name
= "slimbus1_slimbus_clk",
2294 .ops
= &clkops_omap2_dflt
,
2295 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2296 .enable_bit
= OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT
,
2297 .clkdm_name
= "abe_clkdm",
2298 .parent
= &slimbus_clk
,
2299 .recalc
= &followparent_recalc
,
2302 static struct clk slimbus1_fck
= {
2303 .name
= "slimbus1_fck",
2304 .ops
= &clkops_omap4_dflt_wait
,
2305 .enable_reg
= OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL
,
2306 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2307 .clkdm_name
= "abe_clkdm",
2308 .parent
= &ocp_abe_iclk
,
2309 .recalc
= &followparent_recalc
,
2312 static struct clk slimbus2_fclk_1
= {
2313 .name
= "slimbus2_fclk_1",
2314 .ops
= &clkops_omap2_dflt
,
2315 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2316 .enable_bit
= OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT
,
2317 .clkdm_name
= "l4_per_clkdm",
2318 .parent
= &per_abe_24m_fclk
,
2319 .recalc
= &followparent_recalc
,
2322 static struct clk slimbus2_fclk_0
= {
2323 .name
= "slimbus2_fclk_0",
2324 .ops
= &clkops_omap2_dflt
,
2325 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2326 .enable_bit
= OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT
,
2327 .clkdm_name
= "l4_per_clkdm",
2328 .parent
= &func_24mc_fclk
,
2329 .recalc
= &followparent_recalc
,
2332 static struct clk slimbus2_slimbus_clk
= {
2333 .name
= "slimbus2_slimbus_clk",
2334 .ops
= &clkops_omap2_dflt
,
2335 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2336 .enable_bit
= OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT
,
2337 .clkdm_name
= "l4_per_clkdm",
2338 .parent
= &pad_slimbus_core_clks_ck
,
2339 .recalc
= &followparent_recalc
,
2342 static struct clk slimbus2_fck
= {
2343 .name
= "slimbus2_fck",
2344 .ops
= &clkops_omap4_dflt_wait
,
2345 .enable_reg
= OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL
,
2346 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2347 .clkdm_name
= "l4_per_clkdm",
2348 .parent
= &l4_div_ck
,
2349 .recalc
= &followparent_recalc
,
2352 static struct clk smartreflex_core_fck
= {
2353 .name
= "smartreflex_core_fck",
2354 .ops
= &clkops_omap4_dflt_wait
,
2355 .enable_reg
= OMAP4430_CM_ALWON_SR_CORE_CLKCTRL
,
2356 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2357 .clkdm_name
= "l4_ao_clkdm",
2358 .parent
= &l4_wkup_clk_mux_ck
,
2359 .recalc
= &followparent_recalc
,
2362 static struct clk smartreflex_iva_fck
= {
2363 .name
= "smartreflex_iva_fck",
2364 .ops
= &clkops_omap4_dflt_wait
,
2365 .enable_reg
= OMAP4430_CM_ALWON_SR_IVA_CLKCTRL
,
2366 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2367 .clkdm_name
= "l4_ao_clkdm",
2368 .parent
= &l4_wkup_clk_mux_ck
,
2369 .recalc
= &followparent_recalc
,
2372 static struct clk smartreflex_mpu_fck
= {
2373 .name
= "smartreflex_mpu_fck",
2374 .ops
= &clkops_omap4_dflt_wait
,
2375 .enable_reg
= OMAP4430_CM_ALWON_SR_MPU_CLKCTRL
,
2376 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2377 .clkdm_name
= "l4_ao_clkdm",
2378 .parent
= &l4_wkup_clk_mux_ck
,
2379 .recalc
= &followparent_recalc
,
2382 /* Merged dmt1_clk_mux into timer1 */
2383 static struct clk timer1_fck
= {
2384 .name
= "timer1_fck",
2385 .parent
= &sys_clkin_ck
,
2386 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2387 .init
= &omap2_init_clksel_parent
,
2388 .clksel_reg
= OMAP4430_CM_WKUP_TIMER1_CLKCTRL
,
2389 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2390 .ops
= &clkops_omap4_dflt_wait
,
2391 .recalc
= &omap2_clksel_recalc
,
2392 .enable_reg
= OMAP4430_CM_WKUP_TIMER1_CLKCTRL
,
2393 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2394 .clkdm_name
= "l4_wkup_clkdm",
2397 /* Merged cm2_dm10_mux into timer10 */
2398 static struct clk timer10_fck
= {
2399 .name
= "timer10_fck",
2400 .parent
= &sys_clkin_ck
,
2401 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2402 .init
= &omap2_init_clksel_parent
,
2403 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL
,
2404 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2405 .ops
= &clkops_omap4_dflt_wait
,
2406 .recalc
= &omap2_clksel_recalc
,
2407 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL
,
2408 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2409 .clkdm_name
= "l4_per_clkdm",
2412 /* Merged cm2_dm11_mux into timer11 */
2413 static struct clk timer11_fck
= {
2414 .name
= "timer11_fck",
2415 .parent
= &sys_clkin_ck
,
2416 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2417 .init
= &omap2_init_clksel_parent
,
2418 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL
,
2419 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2420 .ops
= &clkops_omap4_dflt_wait
,
2421 .recalc
= &omap2_clksel_recalc
,
2422 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL
,
2423 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2424 .clkdm_name
= "l4_per_clkdm",
2427 /* Merged cm2_dm2_mux into timer2 */
2428 static struct clk timer2_fck
= {
2429 .name
= "timer2_fck",
2430 .parent
= &sys_clkin_ck
,
2431 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2432 .init
= &omap2_init_clksel_parent
,
2433 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL
,
2434 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2435 .ops
= &clkops_omap4_dflt_wait
,
2436 .recalc
= &omap2_clksel_recalc
,
2437 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL
,
2438 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2439 .clkdm_name
= "l4_per_clkdm",
2442 /* Merged cm2_dm3_mux into timer3 */
2443 static struct clk timer3_fck
= {
2444 .name
= "timer3_fck",
2445 .parent
= &sys_clkin_ck
,
2446 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2447 .init
= &omap2_init_clksel_parent
,
2448 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL
,
2449 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2450 .ops
= &clkops_omap4_dflt_wait
,
2451 .recalc
= &omap2_clksel_recalc
,
2452 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL
,
2453 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2454 .clkdm_name
= "l4_per_clkdm",
2457 /* Merged cm2_dm4_mux into timer4 */
2458 static struct clk timer4_fck
= {
2459 .name
= "timer4_fck",
2460 .parent
= &sys_clkin_ck
,
2461 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2462 .init
= &omap2_init_clksel_parent
,
2463 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL
,
2464 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2465 .ops
= &clkops_omap4_dflt_wait
,
2466 .recalc
= &omap2_clksel_recalc
,
2467 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL
,
2468 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2469 .clkdm_name
= "l4_per_clkdm",
2472 static const struct clksel timer5_sync_mux_sel
[] = {
2473 { .parent
= &syc_clk_div_ck
, .rates
= div_1_0_rates
},
2474 { .parent
= &sys_32k_ck
, .rates
= div_1_1_rates
},
2478 /* Merged timer5_sync_mux into timer5 */
2479 static struct clk timer5_fck
= {
2480 .name
= "timer5_fck",
2481 .parent
= &syc_clk_div_ck
,
2482 .clksel
= timer5_sync_mux_sel
,
2483 .init
= &omap2_init_clksel_parent
,
2484 .clksel_reg
= OMAP4430_CM1_ABE_TIMER5_CLKCTRL
,
2485 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2486 .ops
= &clkops_omap4_dflt_wait
,
2487 .recalc
= &omap2_clksel_recalc
,
2488 .enable_reg
= OMAP4430_CM1_ABE_TIMER5_CLKCTRL
,
2489 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2490 .clkdm_name
= "abe_clkdm",
2493 /* Merged timer6_sync_mux into timer6 */
2494 static struct clk timer6_fck
= {
2495 .name
= "timer6_fck",
2496 .parent
= &syc_clk_div_ck
,
2497 .clksel
= timer5_sync_mux_sel
,
2498 .init
= &omap2_init_clksel_parent
,
2499 .clksel_reg
= OMAP4430_CM1_ABE_TIMER6_CLKCTRL
,
2500 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2501 .ops
= &clkops_omap4_dflt_wait
,
2502 .recalc
= &omap2_clksel_recalc
,
2503 .enable_reg
= OMAP4430_CM1_ABE_TIMER6_CLKCTRL
,
2504 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2505 .clkdm_name
= "abe_clkdm",
2508 /* Merged timer7_sync_mux into timer7 */
2509 static struct clk timer7_fck
= {
2510 .name
= "timer7_fck",
2511 .parent
= &syc_clk_div_ck
,
2512 .clksel
= timer5_sync_mux_sel
,
2513 .init
= &omap2_init_clksel_parent
,
2514 .clksel_reg
= OMAP4430_CM1_ABE_TIMER7_CLKCTRL
,
2515 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2516 .ops
= &clkops_omap4_dflt_wait
,
2517 .recalc
= &omap2_clksel_recalc
,
2518 .enable_reg
= OMAP4430_CM1_ABE_TIMER7_CLKCTRL
,
2519 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2520 .clkdm_name
= "abe_clkdm",
2523 /* Merged timer8_sync_mux into timer8 */
2524 static struct clk timer8_fck
= {
2525 .name
= "timer8_fck",
2526 .parent
= &syc_clk_div_ck
,
2527 .clksel
= timer5_sync_mux_sel
,
2528 .init
= &omap2_init_clksel_parent
,
2529 .clksel_reg
= OMAP4430_CM1_ABE_TIMER8_CLKCTRL
,
2530 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2531 .ops
= &clkops_omap4_dflt_wait
,
2532 .recalc
= &omap2_clksel_recalc
,
2533 .enable_reg
= OMAP4430_CM1_ABE_TIMER8_CLKCTRL
,
2534 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2535 .clkdm_name
= "abe_clkdm",
2538 /* Merged cm2_dm9_mux into timer9 */
2539 static struct clk timer9_fck
= {
2540 .name
= "timer9_fck",
2541 .parent
= &sys_clkin_ck
,
2542 .clksel
= abe_dpll_bypass_clk_mux_sel
,
2543 .init
= &omap2_init_clksel_parent
,
2544 .clksel_reg
= OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL
,
2545 .clksel_mask
= OMAP4430_CLKSEL_MASK
,
2546 .ops
= &clkops_omap4_dflt_wait
,
2547 .recalc
= &omap2_clksel_recalc
,
2548 .enable_reg
= OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL
,
2549 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2550 .clkdm_name
= "l4_per_clkdm",
2553 static struct clk uart1_fck
= {
2554 .name
= "uart1_fck",
2555 .ops
= &clkops_omap4_dflt_wait
,
2556 .enable_reg
= OMAP4430_CM_L4PER_UART1_CLKCTRL
,
2557 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2558 .clkdm_name
= "l4_per_clkdm",
2559 .parent
= &func_48m_fclk
,
2560 .recalc
= &followparent_recalc
,
2563 static struct clk uart2_fck
= {
2564 .name
= "uart2_fck",
2565 .ops
= &clkops_omap4_dflt_wait
,
2566 .enable_reg
= OMAP4430_CM_L4PER_UART2_CLKCTRL
,
2567 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2568 .clkdm_name
= "l4_per_clkdm",
2569 .parent
= &func_48m_fclk
,
2570 .recalc
= &followparent_recalc
,
2573 static struct clk uart3_fck
= {
2574 .name
= "uart3_fck",
2575 .ops
= &clkops_omap4_dflt_wait
,
2576 .enable_reg
= OMAP4430_CM_L4PER_UART3_CLKCTRL
,
2577 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2578 .clkdm_name
= "l4_per_clkdm",
2579 .parent
= &func_48m_fclk
,
2580 .recalc
= &followparent_recalc
,
2583 static struct clk uart4_fck
= {
2584 .name
= "uart4_fck",
2585 .ops
= &clkops_omap4_dflt_wait
,
2586 .enable_reg
= OMAP4430_CM_L4PER_UART4_CLKCTRL
,
2587 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2588 .clkdm_name
= "l4_per_clkdm",
2589 .parent
= &func_48m_fclk
,
2590 .recalc
= &followparent_recalc
,
2593 static struct clk usb_host_fs_fck
= {
2594 .name
= "usb_host_fs_fck",
2595 .ops
= &clkops_omap4_dflt_wait
,
2596 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_FS_CLKCTRL
,
2597 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2598 .clkdm_name
= "l3_init_clkdm",
2599 .parent
= &func_48mc_fclk
,
2600 .recalc
= &followparent_recalc
,
2603 static const struct clksel utmi_p1_gfclk_sel
[] = {
2604 { .parent
= &init_60m_fclk
, .rates
= div_1_0_rates
},
2605 { .parent
= &xclk60mhsp1_ck
, .rates
= div_1_1_rates
},
2609 static struct clk utmi_p1_gfclk
= {
2610 .name
= "utmi_p1_gfclk",
2611 .parent
= &init_60m_fclk
,
2612 .clksel
= utmi_p1_gfclk_sel
,
2613 .init
= &omap2_init_clksel_parent
,
2614 .clksel_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2615 .clksel_mask
= OMAP4430_CLKSEL_UTMI_P1_MASK
,
2616 .ops
= &clkops_null
,
2617 .recalc
= &omap2_clksel_recalc
,
2620 static struct clk usb_host_hs_utmi_p1_clk
= {
2621 .name
= "usb_host_hs_utmi_p1_clk",
2622 .ops
= &clkops_omap2_dflt
,
2623 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2624 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT
,
2625 .clkdm_name
= "l3_init_clkdm",
2626 .parent
= &utmi_p1_gfclk
,
2627 .recalc
= &followparent_recalc
,
2630 static const struct clksel utmi_p2_gfclk_sel
[] = {
2631 { .parent
= &init_60m_fclk
, .rates
= div_1_0_rates
},
2632 { .parent
= &xclk60mhsp2_ck
, .rates
= div_1_1_rates
},
2636 static struct clk utmi_p2_gfclk
= {
2637 .name
= "utmi_p2_gfclk",
2638 .parent
= &init_60m_fclk
,
2639 .clksel
= utmi_p2_gfclk_sel
,
2640 .init
= &omap2_init_clksel_parent
,
2641 .clksel_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2642 .clksel_mask
= OMAP4430_CLKSEL_UTMI_P2_MASK
,
2643 .ops
= &clkops_null
,
2644 .recalc
= &omap2_clksel_recalc
,
2647 static struct clk usb_host_hs_utmi_p2_clk
= {
2648 .name
= "usb_host_hs_utmi_p2_clk",
2649 .ops
= &clkops_omap2_dflt
,
2650 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2651 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT
,
2652 .clkdm_name
= "l3_init_clkdm",
2653 .parent
= &utmi_p2_gfclk
,
2654 .recalc
= &followparent_recalc
,
2657 static struct clk usb_host_hs_utmi_p3_clk
= {
2658 .name
= "usb_host_hs_utmi_p3_clk",
2659 .ops
= &clkops_omap2_dflt
,
2660 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2661 .enable_bit
= OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT
,
2662 .clkdm_name
= "l3_init_clkdm",
2663 .parent
= &init_60m_fclk
,
2664 .recalc
= &followparent_recalc
,
2667 static struct clk usb_host_hs_hsic480m_p1_clk
= {
2668 .name
= "usb_host_hs_hsic480m_p1_clk",
2669 .ops
= &clkops_omap2_dflt
,
2670 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2671 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT
,
2672 .clkdm_name
= "l3_init_clkdm",
2673 .parent
= &dpll_usb_m2_ck
,
2674 .recalc
= &followparent_recalc
,
2677 static struct clk usb_host_hs_hsic60m_p1_clk
= {
2678 .name
= "usb_host_hs_hsic60m_p1_clk",
2679 .ops
= &clkops_omap2_dflt
,
2680 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2681 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT
,
2682 .clkdm_name
= "l3_init_clkdm",
2683 .parent
= &init_60m_fclk
,
2684 .recalc
= &followparent_recalc
,
2687 static struct clk usb_host_hs_hsic60m_p2_clk
= {
2688 .name
= "usb_host_hs_hsic60m_p2_clk",
2689 .ops
= &clkops_omap2_dflt
,
2690 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2691 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT
,
2692 .clkdm_name
= "l3_init_clkdm",
2693 .parent
= &init_60m_fclk
,
2694 .recalc
= &followparent_recalc
,
2697 static struct clk usb_host_hs_hsic480m_p2_clk
= {
2698 .name
= "usb_host_hs_hsic480m_p2_clk",
2699 .ops
= &clkops_omap2_dflt
,
2700 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2701 .enable_bit
= OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT
,
2702 .clkdm_name
= "l3_init_clkdm",
2703 .parent
= &dpll_usb_m2_ck
,
2704 .recalc
= &followparent_recalc
,
2707 static struct clk usb_host_hs_func48mclk
= {
2708 .name
= "usb_host_hs_func48mclk",
2709 .ops
= &clkops_omap2_dflt
,
2710 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2711 .enable_bit
= OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT
,
2712 .clkdm_name
= "l3_init_clkdm",
2713 .parent
= &func_48mc_fclk
,
2714 .recalc
= &followparent_recalc
,
2717 static struct clk usb_host_hs_fck
= {
2718 .name
= "usb_host_hs_fck",
2719 .ops
= &clkops_omap4_dflt_wait
,
2720 .enable_reg
= OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL
,
2721 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2722 .clkdm_name
= "l3_init_clkdm",
2723 .parent
= &init_60m_fclk
,
2724 .recalc
= &followparent_recalc
,
2727 static const struct clksel otg_60m_gfclk_sel
[] = {
2728 { .parent
= &utmi_phy_clkout_ck
, .rates
= div_1_0_rates
},
2729 { .parent
= &xclk60motg_ck
, .rates
= div_1_1_rates
},
2733 static struct clk otg_60m_gfclk
= {
2734 .name
= "otg_60m_gfclk",
2735 .parent
= &utmi_phy_clkout_ck
,
2736 .clksel
= otg_60m_gfclk_sel
,
2737 .init
= &omap2_init_clksel_parent
,
2738 .clksel_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2739 .clksel_mask
= OMAP4430_CLKSEL_60M_MASK
,
2740 .ops
= &clkops_null
,
2741 .recalc
= &omap2_clksel_recalc
,
2744 static struct clk usb_otg_hs_xclk
= {
2745 .name
= "usb_otg_hs_xclk",
2746 .ops
= &clkops_omap2_dflt
,
2747 .enable_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2748 .enable_bit
= OMAP4430_OPTFCLKEN_XCLK_SHIFT
,
2749 .clkdm_name
= "l3_init_clkdm",
2750 .parent
= &otg_60m_gfclk
,
2751 .recalc
= &followparent_recalc
,
2754 static struct clk usb_otg_hs_ick
= {
2755 .name
= "usb_otg_hs_ick",
2756 .ops
= &clkops_omap4_dflt_wait
,
2757 .enable_reg
= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL
,
2758 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2759 .clkdm_name
= "l3_init_clkdm",
2760 .parent
= &otg_60m_gfclk
,
2761 .recalc
= &followparent_recalc
,
2764 static struct clk usb_phy_cm_clk32k
= {
2765 .name
= "usb_phy_cm_clk32k",
2766 .ops
= &clkops_omap2_dflt
,
2767 .enable_reg
= OMAP4430_CM_ALWON_USBPHY_CLKCTRL
,
2768 .enable_bit
= OMAP4430_OPTFCLKEN_CLK32K_SHIFT
,
2769 .clkdm_name
= "l4_ao_clkdm",
2770 .parent
= &sys_32k_ck
,
2771 .recalc
= &followparent_recalc
,
2774 static struct clk usb_tll_hs_usb_ch2_clk
= {
2775 .name
= "usb_tll_hs_usb_ch2_clk",
2776 .ops
= &clkops_omap2_dflt
,
2777 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2778 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT
,
2779 .clkdm_name
= "l3_init_clkdm",
2780 .parent
= &init_60m_fclk
,
2781 .recalc
= &followparent_recalc
,
2784 static struct clk usb_tll_hs_usb_ch0_clk
= {
2785 .name
= "usb_tll_hs_usb_ch0_clk",
2786 .ops
= &clkops_omap2_dflt
,
2787 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2788 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT
,
2789 .clkdm_name
= "l3_init_clkdm",
2790 .parent
= &init_60m_fclk
,
2791 .recalc
= &followparent_recalc
,
2794 static struct clk usb_tll_hs_usb_ch1_clk
= {
2795 .name
= "usb_tll_hs_usb_ch1_clk",
2796 .ops
= &clkops_omap2_dflt
,
2797 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2798 .enable_bit
= OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT
,
2799 .clkdm_name
= "l3_init_clkdm",
2800 .parent
= &init_60m_fclk
,
2801 .recalc
= &followparent_recalc
,
2804 static struct clk usb_tll_hs_ick
= {
2805 .name
= "usb_tll_hs_ick",
2806 .ops
= &clkops_omap4_dflt_wait
,
2807 .enable_reg
= OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL
,
2808 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2809 .clkdm_name
= "l3_init_clkdm",
2810 .parent
= &l4_div_ck
,
2811 .recalc
= &followparent_recalc
,
2814 static const struct clksel_rate div2_14to18_rates
[] = {
2815 { .div
= 14, .val
= 0, .flags
= RATE_IN_44XX
},
2816 { .div
= 18, .val
= 1, .flags
= RATE_IN_44XX
},
2820 static const struct clksel usim_fclk_div
[] = {
2821 { .parent
= &dpll_per_m4x2_ck
, .rates
= div2_14to18_rates
},
2825 static struct clk usim_ck
= {
2827 .parent
= &dpll_per_m4x2_ck
,
2828 .clksel
= usim_fclk_div
,
2829 .clksel_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2830 .clksel_mask
= OMAP4430_CLKSEL_DIV_MASK
,
2831 .ops
= &clkops_null
,
2832 .recalc
= &omap2_clksel_recalc
,
2833 .round_rate
= &omap2_clksel_round_rate
,
2834 .set_rate
= &omap2_clksel_set_rate
,
2837 static struct clk usim_fclk
= {
2838 .name
= "usim_fclk",
2839 .ops
= &clkops_omap2_dflt
,
2840 .enable_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2841 .enable_bit
= OMAP4430_OPTFCLKEN_FCLK_SHIFT
,
2842 .clkdm_name
= "l4_wkup_clkdm",
2844 .recalc
= &followparent_recalc
,
2847 static struct clk usim_fck
= {
2849 .ops
= &clkops_omap4_dflt_wait
,
2850 .enable_reg
= OMAP4430_CM_WKUP_USIM_CLKCTRL
,
2851 .enable_bit
= OMAP4430_MODULEMODE_HWCTRL
,
2852 .clkdm_name
= "l4_wkup_clkdm",
2853 .parent
= &sys_32k_ck
,
2854 .recalc
= &followparent_recalc
,
2857 static struct clk wd_timer2_fck
= {
2858 .name
= "wd_timer2_fck",
2859 .ops
= &clkops_omap4_dflt_wait
,
2860 .enable_reg
= OMAP4430_CM_WKUP_WDT2_CLKCTRL
,
2861 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2862 .clkdm_name
= "l4_wkup_clkdm",
2863 .parent
= &sys_32k_ck
,
2864 .recalc
= &followparent_recalc
,
2867 static struct clk wd_timer3_fck
= {
2868 .name
= "wd_timer3_fck",
2869 .ops
= &clkops_omap4_dflt_wait
,
2870 .enable_reg
= OMAP4430_CM1_ABE_WDT3_CLKCTRL
,
2871 .enable_bit
= OMAP4430_MODULEMODE_SWCTRL
,
2872 .clkdm_name
= "abe_clkdm",
2873 .parent
= &sys_32k_ck
,
2874 .recalc
= &followparent_recalc
,
2877 /* Remaining optional clocks */
2878 static const struct clksel stm_clk_div_div
[] = {
2879 { .parent
= &pmd_stm_clock_mux_ck
, .rates
= div3_1to4_rates
},
2883 static struct clk stm_clk_div_ck
= {
2884 .name
= "stm_clk_div_ck",
2885 .parent
= &pmd_stm_clock_mux_ck
,
2886 .clksel
= stm_clk_div_div
,
2887 .clksel_reg
= OMAP4430_CM_EMU_DEBUGSS_CLKCTRL
,
2888 .clksel_mask
= OMAP4430_CLKSEL_PMD_STM_CLK_MASK
,
2889 .ops
= &clkops_null
,
2890 .recalc
= &omap2_clksel_recalc
,
2891 .round_rate
= &omap2_clksel_round_rate
,
2892 .set_rate
= &omap2_clksel_set_rate
,
2895 static const struct clksel trace_clk_div_div
[] = {
2896 { .parent
= &pmd_trace_clk_mux_ck
, .rates
= div3_1to4_rates
},
2900 static struct clk trace_clk_div_ck
= {
2901 .name
= "trace_clk_div_ck",
2902 .parent
= &pmd_trace_clk_mux_ck
,
2903 .clksel
= trace_clk_div_div
,
2904 .clksel_reg
= OMAP4430_CM_EMU_DEBUGSS_CLKCTRL
,
2905 .clksel_mask
= OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK
,
2906 .ops
= &clkops_null
,
2907 .recalc
= &omap2_clksel_recalc
,
2908 .round_rate
= &omap2_clksel_round_rate
,
2909 .set_rate
= &omap2_clksel_set_rate
,
2912 /* SCRM aux clk nodes */
2914 static const struct clksel auxclk_src_sel
[] = {
2915 { .parent
= &sys_clkin_ck
, .rates
= div_1_0_rates
},
2916 { .parent
= &dpll_core_m3x2_ck
, .rates
= div_1_1_rates
},
2917 { .parent
= &dpll_per_m3x2_ck
, .rates
= div_1_2_rates
},
2921 static const struct clksel_rate div16_1to16_rates
[] = {
2922 { .div
= 1, .val
= 0, .flags
= RATE_IN_44XX
},
2923 { .div
= 2, .val
= 1, .flags
= RATE_IN_44XX
},
2924 { .div
= 3, .val
= 2, .flags
= RATE_IN_44XX
},
2925 { .div
= 4, .val
= 3, .flags
= RATE_IN_44XX
},
2926 { .div
= 5, .val
= 4, .flags
= RATE_IN_44XX
},
2927 { .div
= 6, .val
= 5, .flags
= RATE_IN_44XX
},
2928 { .div
= 7, .val
= 6, .flags
= RATE_IN_44XX
},
2929 { .div
= 8, .val
= 7, .flags
= RATE_IN_44XX
},
2930 { .div
= 9, .val
= 8, .flags
= RATE_IN_44XX
},
2931 { .div
= 10, .val
= 9, .flags
= RATE_IN_44XX
},
2932 { .div
= 11, .val
= 10, .flags
= RATE_IN_44XX
},
2933 { .div
= 12, .val
= 11, .flags
= RATE_IN_44XX
},
2934 { .div
= 13, .val
= 12, .flags
= RATE_IN_44XX
},
2935 { .div
= 14, .val
= 13, .flags
= RATE_IN_44XX
},
2936 { .div
= 15, .val
= 14, .flags
= RATE_IN_44XX
},
2937 { .div
= 16, .val
= 15, .flags
= RATE_IN_44XX
},
2941 static struct clk auxclk0_src_ck
= {
2942 .name
= "auxclk0_src_ck",
2943 .parent
= &sys_clkin_ck
,
2944 .init
= &omap2_init_clksel_parent
,
2945 .ops
= &clkops_omap2_dflt
,
2946 .clksel
= auxclk_src_sel
,
2947 .clksel_reg
= OMAP4_SCRM_AUXCLK0
,
2948 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
2949 .recalc
= &omap2_clksel_recalc
,
2950 .enable_reg
= OMAP4_SCRM_AUXCLK0
,
2951 .enable_bit
= OMAP4_ENABLE_SHIFT
,
2954 static const struct clksel auxclk0_sel
[] = {
2955 { .parent
= &auxclk0_src_ck
, .rates
= div16_1to16_rates
},
2959 static struct clk auxclk0_ck
= {
2960 .name
= "auxclk0_ck",
2961 .parent
= &auxclk0_src_ck
,
2962 .clksel
= auxclk0_sel
,
2963 .clksel_reg
= OMAP4_SCRM_AUXCLK0
,
2964 .clksel_mask
= OMAP4_CLKDIV_MASK
,
2965 .ops
= &clkops_null
,
2966 .recalc
= &omap2_clksel_recalc
,
2967 .round_rate
= &omap2_clksel_round_rate
,
2968 .set_rate
= &omap2_clksel_set_rate
,
2971 static struct clk auxclk1_src_ck
= {
2972 .name
= "auxclk1_src_ck",
2973 .parent
= &sys_clkin_ck
,
2974 .init
= &omap2_init_clksel_parent
,
2975 .ops
= &clkops_omap2_dflt
,
2976 .clksel
= auxclk_src_sel
,
2977 .clksel_reg
= OMAP4_SCRM_AUXCLK1
,
2978 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
2979 .recalc
= &omap2_clksel_recalc
,
2980 .enable_reg
= OMAP4_SCRM_AUXCLK1
,
2981 .enable_bit
= OMAP4_ENABLE_SHIFT
,
2984 static const struct clksel auxclk1_sel
[] = {
2985 { .parent
= &auxclk1_src_ck
, .rates
= div16_1to16_rates
},
2989 static struct clk auxclk1_ck
= {
2990 .name
= "auxclk1_ck",
2991 .parent
= &auxclk1_src_ck
,
2992 .clksel
= auxclk1_sel
,
2993 .clksel_reg
= OMAP4_SCRM_AUXCLK1
,
2994 .clksel_mask
= OMAP4_CLKDIV_MASK
,
2995 .ops
= &clkops_null
,
2996 .recalc
= &omap2_clksel_recalc
,
2997 .round_rate
= &omap2_clksel_round_rate
,
2998 .set_rate
= &omap2_clksel_set_rate
,
3001 static struct clk auxclk2_src_ck
= {
3002 .name
= "auxclk2_src_ck",
3003 .parent
= &sys_clkin_ck
,
3004 .init
= &omap2_init_clksel_parent
,
3005 .ops
= &clkops_omap2_dflt
,
3006 .clksel
= auxclk_src_sel
,
3007 .clksel_reg
= OMAP4_SCRM_AUXCLK2
,
3008 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
3009 .recalc
= &omap2_clksel_recalc
,
3010 .enable_reg
= OMAP4_SCRM_AUXCLK2
,
3011 .enable_bit
= OMAP4_ENABLE_SHIFT
,
3014 static const struct clksel auxclk2_sel
[] = {
3015 { .parent
= &auxclk2_src_ck
, .rates
= div16_1to16_rates
},
3019 static struct clk auxclk2_ck
= {
3020 .name
= "auxclk2_ck",
3021 .parent
= &auxclk2_src_ck
,
3022 .clksel
= auxclk2_sel
,
3023 .clksel_reg
= OMAP4_SCRM_AUXCLK2
,
3024 .clksel_mask
= OMAP4_CLKDIV_MASK
,
3025 .ops
= &clkops_null
,
3026 .recalc
= &omap2_clksel_recalc
,
3027 .round_rate
= &omap2_clksel_round_rate
,
3028 .set_rate
= &omap2_clksel_set_rate
,
3031 static struct clk auxclk3_src_ck
= {
3032 .name
= "auxclk3_src_ck",
3033 .parent
= &sys_clkin_ck
,
3034 .init
= &omap2_init_clksel_parent
,
3035 .ops
= &clkops_omap2_dflt
,
3036 .clksel
= auxclk_src_sel
,
3037 .clksel_reg
= OMAP4_SCRM_AUXCLK3
,
3038 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
3039 .recalc
= &omap2_clksel_recalc
,
3040 .enable_reg
= OMAP4_SCRM_AUXCLK3
,
3041 .enable_bit
= OMAP4_ENABLE_SHIFT
,
3044 static const struct clksel auxclk3_sel
[] = {
3045 { .parent
= &auxclk3_src_ck
, .rates
= div16_1to16_rates
},
3049 static struct clk auxclk3_ck
= {
3050 .name
= "auxclk3_ck",
3051 .parent
= &auxclk3_src_ck
,
3052 .clksel
= auxclk3_sel
,
3053 .clksel_reg
= OMAP4_SCRM_AUXCLK3
,
3054 .clksel_mask
= OMAP4_CLKDIV_MASK
,
3055 .ops
= &clkops_null
,
3056 .recalc
= &omap2_clksel_recalc
,
3057 .round_rate
= &omap2_clksel_round_rate
,
3058 .set_rate
= &omap2_clksel_set_rate
,
3061 static struct clk auxclk4_src_ck
= {
3062 .name
= "auxclk4_src_ck",
3063 .parent
= &sys_clkin_ck
,
3064 .init
= &omap2_init_clksel_parent
,
3065 .ops
= &clkops_omap2_dflt
,
3066 .clksel
= auxclk_src_sel
,
3067 .clksel_reg
= OMAP4_SCRM_AUXCLK4
,
3068 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
3069 .recalc
= &omap2_clksel_recalc
,
3070 .enable_reg
= OMAP4_SCRM_AUXCLK4
,
3071 .enable_bit
= OMAP4_ENABLE_SHIFT
,
3074 static const struct clksel auxclk4_sel
[] = {
3075 { .parent
= &auxclk4_src_ck
, .rates
= div16_1to16_rates
},
3079 static struct clk auxclk4_ck
= {
3080 .name
= "auxclk4_ck",
3081 .parent
= &auxclk4_src_ck
,
3082 .clksel
= auxclk4_sel
,
3083 .clksel_reg
= OMAP4_SCRM_AUXCLK4
,
3084 .clksel_mask
= OMAP4_CLKDIV_MASK
,
3085 .ops
= &clkops_null
,
3086 .recalc
= &omap2_clksel_recalc
,
3087 .round_rate
= &omap2_clksel_round_rate
,
3088 .set_rate
= &omap2_clksel_set_rate
,
3091 static struct clk auxclk5_src_ck
= {
3092 .name
= "auxclk5_src_ck",
3093 .parent
= &sys_clkin_ck
,
3094 .init
= &omap2_init_clksel_parent
,
3095 .ops
= &clkops_omap2_dflt
,
3096 .clksel
= auxclk_src_sel
,
3097 .clksel_reg
= OMAP4_SCRM_AUXCLK5
,
3098 .clksel_mask
= OMAP4_SRCSELECT_MASK
,
3099 .recalc
= &omap2_clksel_recalc
,
3100 .enable_reg
= OMAP4_SCRM_AUXCLK5
,
3101 .enable_bit
= OMAP4_ENABLE_SHIFT
,
3104 static const struct clksel auxclk5_sel
[] = {
3105 { .parent
= &auxclk5_src_ck
, .rates
= div16_1to16_rates
},
3109 static struct clk auxclk5_ck
= {
3110 .name
= "auxclk5_ck",
3111 .parent
= &auxclk5_src_ck
,
3112 .clksel
= auxclk5_sel
,
3113 .clksel_reg
= OMAP4_SCRM_AUXCLK5
,
3114 .clksel_mask
= OMAP4_CLKDIV_MASK
,
3115 .ops
= &clkops_null
,
3116 .recalc
= &omap2_clksel_recalc
,
3117 .round_rate
= &omap2_clksel_round_rate
,
3118 .set_rate
= &omap2_clksel_set_rate
,
3121 static const struct clksel auxclkreq_sel
[] = {
3122 { .parent
= &auxclk0_ck
, .rates
= div_1_0_rates
},
3123 { .parent
= &auxclk1_ck
, .rates
= div_1_1_rates
},
3124 { .parent
= &auxclk2_ck
, .rates
= div_1_2_rates
},
3125 { .parent
= &auxclk3_ck
, .rates
= div_1_3_rates
},
3126 { .parent
= &auxclk4_ck
, .rates
= div_1_4_rates
},
3127 { .parent
= &auxclk5_ck
, .rates
= div_1_5_rates
},
3131 static struct clk auxclkreq0_ck
= {
3132 .name
= "auxclkreq0_ck",
3133 .parent
= &auxclk0_ck
,
3134 .init
= &omap2_init_clksel_parent
,
3135 .ops
= &clkops_null
,
3136 .clksel
= auxclkreq_sel
,
3137 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ0
,
3138 .clksel_mask
= OMAP4_MAPPING_MASK
,
3139 .recalc
= &omap2_clksel_recalc
,
3142 static struct clk auxclkreq1_ck
= {
3143 .name
= "auxclkreq1_ck",
3144 .parent
= &auxclk1_ck
,
3145 .init
= &omap2_init_clksel_parent
,
3146 .ops
= &clkops_null
,
3147 .clksel
= auxclkreq_sel
,
3148 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ1
,
3149 .clksel_mask
= OMAP4_MAPPING_MASK
,
3150 .recalc
= &omap2_clksel_recalc
,
3153 static struct clk auxclkreq2_ck
= {
3154 .name
= "auxclkreq2_ck",
3155 .parent
= &auxclk2_ck
,
3156 .init
= &omap2_init_clksel_parent
,
3157 .ops
= &clkops_null
,
3158 .clksel
= auxclkreq_sel
,
3159 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ2
,
3160 .clksel_mask
= OMAP4_MAPPING_MASK
,
3161 .recalc
= &omap2_clksel_recalc
,
3164 static struct clk auxclkreq3_ck
= {
3165 .name
= "auxclkreq3_ck",
3166 .parent
= &auxclk3_ck
,
3167 .init
= &omap2_init_clksel_parent
,
3168 .ops
= &clkops_null
,
3169 .clksel
= auxclkreq_sel
,
3170 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ3
,
3171 .clksel_mask
= OMAP4_MAPPING_MASK
,
3172 .recalc
= &omap2_clksel_recalc
,
3175 static struct clk auxclkreq4_ck
= {
3176 .name
= "auxclkreq4_ck",
3177 .parent
= &auxclk4_ck
,
3178 .init
= &omap2_init_clksel_parent
,
3179 .ops
= &clkops_null
,
3180 .clksel
= auxclkreq_sel
,
3181 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ4
,
3182 .clksel_mask
= OMAP4_MAPPING_MASK
,
3183 .recalc
= &omap2_clksel_recalc
,
3186 static struct clk auxclkreq5_ck
= {
3187 .name
= "auxclkreq5_ck",
3188 .parent
= &auxclk5_ck
,
3189 .init
= &omap2_init_clksel_parent
,
3190 .ops
= &clkops_null
,
3191 .clksel
= auxclkreq_sel
,
3192 .clksel_reg
= OMAP4_SCRM_AUXCLKREQ5
,
3193 .clksel_mask
= OMAP4_MAPPING_MASK
,
3194 .recalc
= &omap2_clksel_recalc
,
3197 static struct clk smp_twd_443x
= {
3199 .parent
= &dpll_mpu_ck
,
3200 .ops
= &clkops_null
,
3202 .recalc
= &omap_fixed_divisor_recalc
,
3205 static struct clk smp_twd_446x
= {
3207 .parent
= &virt_dpll_mpu_ck
,
3208 .ops
= &clkops_null
,
3210 .recalc
= &omap_fixed_divisor_recalc
,
3217 static struct omap_clk omap44xx_clks
[] = {
3218 CLK(NULL
, "extalt_clkin_ck", &extalt_clkin_ck
, CK_44XX
),
3219 CLK(NULL
, "pad_clks_ck", &pad_clks_ck
, CK_44XX
),
3220 CLK(NULL
, "pad_slimbus_core_clks_ck", &pad_slimbus_core_clks_ck
, CK_44XX
),
3221 CLK(NULL
, "secure_32k_clk_src_ck", &secure_32k_clk_src_ck
, CK_44XX
),
3222 CLK(NULL
, "slimbus_clk", &slimbus_clk
, CK_44XX
),
3223 CLK(NULL
, "sys_32k_ck", &sys_32k_ck
, CK_44XX
),
3224 CLK(NULL
, "virt_12000000_ck", &virt_12000000_ck
, CK_44XX
),
3225 CLK(NULL
, "virt_13000000_ck", &virt_13000000_ck
, CK_44XX
),
3226 CLK(NULL
, "virt_16800000_ck", &virt_16800000_ck
, CK_44XX
),
3227 CLK(NULL
, "virt_19200000_ck", &virt_19200000_ck
, CK_44XX
),
3228 CLK(NULL
, "virt_26000000_ck", &virt_26000000_ck
, CK_44XX
),
3229 CLK(NULL
, "virt_27000000_ck", &virt_27000000_ck
, CK_44XX
),
3230 CLK(NULL
, "virt_38400000_ck", &virt_38400000_ck
, CK_44XX
),
3231 CLK(NULL
, "sys_clkin_ck", &sys_clkin_ck
, CK_44XX
),
3232 CLK(NULL
, "tie_low_clock_ck", &tie_low_clock_ck
, CK_44XX
),
3233 CLK(NULL
, "utmi_phy_clkout_ck", &utmi_phy_clkout_ck
, CK_44XX
),
3234 CLK(NULL
, "xclk60mhsp1_ck", &xclk60mhsp1_ck
, CK_44XX
),
3235 CLK(NULL
, "xclk60mhsp2_ck", &xclk60mhsp2_ck
, CK_44XX
),
3236 CLK(NULL
, "xclk60motg_ck", &xclk60motg_ck
, CK_44XX
),
3237 CLK(NULL
, "abe_dpll_bypass_clk_mux_ck", &abe_dpll_bypass_clk_mux_ck
, CK_44XX
),
3238 CLK(NULL
, "abe_dpll_refclk_mux_ck", &abe_dpll_refclk_mux_ck
, CK_44XX
),
3239 CLK(NULL
, "dpll_abe_ck", &dpll_abe_ck
, CK_44XX
),
3240 CLK(NULL
, "dpll_abe_x2_ck", &dpll_abe_x2_ck
, CK_44XX
),
3241 CLK(NULL
, "dpll_abe_m2x2_ck", &dpll_abe_m2x2_ck
, CK_44XX
),
3242 CLK(NULL
, "abe_24m_fclk", &abe_24m_fclk
, CK_44XX
),
3243 CLK(NULL
, "abe_clk", &abe_clk
, CK_44XX
),
3244 CLK(NULL
, "aess_fclk", &aess_fclk
, CK_44XX
),
3245 CLK(NULL
, "dpll_abe_m3x2_ck", &dpll_abe_m3x2_ck
, CK_44XX
),
3246 CLK(NULL
, "core_hsd_byp_clk_mux_ck", &core_hsd_byp_clk_mux_ck
, CK_44XX
),
3247 CLK(NULL
, "dpll_core_ck", &dpll_core_ck
, CK_44XX
),
3248 CLK(NULL
, "dpll_core_x2_ck", &dpll_core_x2_ck
, CK_44XX
),
3249 CLK(NULL
, "dpll_core_m6x2_ck", &dpll_core_m6x2_ck
, CK_44XX
),
3250 CLK(NULL
, "dbgclk_mux_ck", &dbgclk_mux_ck
, CK_44XX
),
3251 CLK(NULL
, "dpll_core_m2_ck", &dpll_core_m2_ck
, CK_44XX
),
3252 CLK(NULL
, "ddrphy_ck", &ddrphy_ck
, CK_44XX
),
3253 CLK(NULL
, "dpll_core_m5x2_ck", &dpll_core_m5x2_ck
, CK_44XX
),
3254 CLK(NULL
, "virt_l3_ck", &virt_l3_ck
, CK_44XX
),
3255 CLK(NULL
, "div_core_ck", &div_core_ck
, CK_44XX
),
3256 CLK(NULL
, "div_iva_hs_clk", &div_iva_hs_clk
, CK_44XX
),
3257 CLK(NULL
, "div_mpu_hs_clk", &div_mpu_hs_clk
, CK_44XX
),
3258 CLK(NULL
, "dpll_core_m4x2_ck", &dpll_core_m4x2_ck
, CK_44XX
),
3259 CLK(NULL
, "dll_clk_div_ck", &dll_clk_div_ck
, CK_44XX
),
3260 CLK(NULL
, "dpll_abe_m2_ck", &dpll_abe_m2_ck
, CK_44XX
),
3261 CLK(NULL
, "dpll_core_m3x2_ck", &dpll_core_m3x2_ck
, CK_44XX
),
3262 CLK(NULL
, "dpll_core_m7x2_ck", &dpll_core_m7x2_ck
, CK_44XX
),
3263 CLK(NULL
, "iva_hsd_byp_clk_mux_ck", &iva_hsd_byp_clk_mux_ck
, CK_44XX
),
3264 CLK(NULL
, "dpll_iva_ck", &dpll_iva_ck
, CK_44XX
),
3265 CLK(NULL
, "dpll_iva_x2_ck", &dpll_iva_x2_ck
, CK_44XX
),
3266 CLK(NULL
, "dpll_iva_m4x2_ck", &dpll_iva_m4x2_ck
, CK_44XX
),
3267 CLK(NULL
, "dpll_iva_m5x2_ck", &dpll_iva_m5x2_ck
, CK_44XX
),
3268 CLK(NULL
, "dpll_mpu_ck", &dpll_mpu_ck
, CK_44XX
),
3269 CLK(NULL
, "virt_dpll_mpu_ck", &virt_dpll_mpu_ck
, CK_446X
),
3270 CLK(NULL
, "dpll_mpu_m2_ck", &dpll_mpu_m2_ck
, CK_44XX
),
3271 CLK(NULL
, "per_hs_clk_div_ck", &per_hs_clk_div_ck
, CK_44XX
),
3272 CLK(NULL
, "per_hsd_byp_clk_mux_ck", &per_hsd_byp_clk_mux_ck
, CK_44XX
),
3273 CLK(NULL
, "dpll_per_ck", &dpll_per_ck
, CK_44XX
),
3274 CLK(NULL
, "dpll_per_m2_ck", &dpll_per_m2_ck
, CK_44XX
),
3275 CLK(NULL
, "dpll_per_x2_ck", &dpll_per_x2_ck
, CK_44XX
),
3276 CLK(NULL
, "dpll_per_m2x2_ck", &dpll_per_m2x2_ck
, CK_44XX
),
3277 CLK(NULL
, "dpll_per_m3x2_ck", &dpll_per_m3x2_ck
, CK_44XX
),
3278 CLK(NULL
, "dpll_per_m4x2_ck", &dpll_per_m4x2_ck
, CK_44XX
),
3279 CLK(NULL
, "dpll_per_m5x2_ck", &dpll_per_m5x2_ck
, CK_44XX
),
3280 CLK(NULL
, "dpll_per_m6x2_ck", &dpll_per_m6x2_ck
, CK_44XX
),
3281 CLK(NULL
, "dpll_per_m7x2_ck", &dpll_per_m7x2_ck
, CK_44XX
),
3282 CLK(NULL
, "dpll_unipro_ck", &dpll_unipro_ck
, CK_44XX
),
3283 CLK(NULL
, "dpll_unipro_x2_ck", &dpll_unipro_x2_ck
, CK_44XX
),
3284 CLK(NULL
, "dpll_unipro_m2x2_ck", &dpll_unipro_m2x2_ck
, CK_44XX
),
3285 CLK(NULL
, "usb_hs_clk_div_ck", &usb_hs_clk_div_ck
, CK_44XX
),
3286 CLK(NULL
, "dpll_usb_ck", &dpll_usb_ck
, CK_44XX
),
3287 CLK(NULL
, "dpll_usb_clkdcoldo_ck", &dpll_usb_clkdcoldo_ck
, CK_44XX
),
3288 CLK(NULL
, "dpll_usb_m2_ck", &dpll_usb_m2_ck
, CK_44XX
),
3289 CLK(NULL
, "ducati_clk_mux_ck", &ducati_clk_mux_ck
, CK_44XX
),
3290 CLK(NULL
, "func_12m_fclk", &func_12m_fclk
, CK_44XX
),
3291 CLK(NULL
, "func_24m_clk", &func_24m_clk
, CK_44XX
),
3292 CLK(NULL
, "func_24mc_fclk", &func_24mc_fclk
, CK_44XX
),
3293 CLK(NULL
, "func_48m_fclk", &func_48m_fclk
, CK_44XX
),
3294 CLK(NULL
, "func_48mc_fclk", &func_48mc_fclk
, CK_44XX
),
3295 CLK(NULL
, "func_64m_fclk", &func_64m_fclk
, CK_44XX
),
3296 CLK(NULL
, "func_96m_fclk", &func_96m_fclk
, CK_44XX
),
3297 CLK(NULL
, "hsmmc6_fclk", &hsmmc6_fclk
, CK_44XX
),
3298 CLK(NULL
, "init_60m_fclk", &init_60m_fclk
, CK_44XX
),
3299 CLK(NULL
, "l3_div_ck", &l3_div_ck
, CK_44XX
),
3300 CLK(NULL
, "l4_div_ck", &l4_div_ck
, CK_44XX
),
3301 CLK(NULL
, "lp_clk_div_ck", &lp_clk_div_ck
, CK_44XX
),
3302 CLK(NULL
, "l4_wkup_clk_mux_ck", &l4_wkup_clk_mux_ck
, CK_44XX
),
3303 CLK(NULL
, "div_ts_ck", &div_ts_ck
, CK_446X
),
3304 CLK(NULL
, "per_abe_nc_fclk", &per_abe_nc_fclk
, CK_44XX
),
3305 CLK(NULL
, "mcasp2_fclk", &mcasp2_fclk
, CK_44XX
),
3306 CLK(NULL
, "mcasp3_fclk", &mcasp3_fclk
, CK_44XX
),
3307 CLK(NULL
, "ocp_abe_iclk", &ocp_abe_iclk
, CK_44XX
),
3308 CLK(NULL
, "per_abe_24m_fclk", &per_abe_24m_fclk
, CK_44XX
),
3309 CLK(NULL
, "pmd_stm_clock_mux_ck", &pmd_stm_clock_mux_ck
, CK_44XX
),
3310 CLK(NULL
, "pmd_trace_clk_mux_ck", &pmd_trace_clk_mux_ck
, CK_44XX
),
3311 CLK(NULL
, "syc_clk_div_ck", &syc_clk_div_ck
, CK_44XX
),
3312 CLK(NULL
, "aes1_fck", &aes1_fck
, CK_44XX
),
3313 CLK(NULL
, "aes2_fck", &aes2_fck
, CK_44XX
),
3314 CLK(NULL
, "aess_fck", &aess_fck
, CK_44XX
),
3315 CLK("omap_temp_sensor.0", "fck", &bandgap_fclk
, CK_443X
),
3316 CLK("omap_temp_sensor.0", "fck", &bandgap_ts_fclk
, CK_446X
),
3317 CLK(NULL
, "des3des_fck", &des3des_fck
, CK_44XX
),
3318 CLK(NULL
, "dmic_sync_mux_ck", &dmic_sync_mux_ck
, CK_44XX
),
3319 CLK(NULL
, "dmic_fck", &dmic_fck
, CK_44XX
),
3320 CLK(NULL
, "dsp_fck", &dsp_fck
, CK_44XX
),
3321 CLK(NULL
, "sys_clk", &dss_sys_clk
, CK_44XX
),
3322 CLK(NULL
, "tv_clk", &dss_tv_clk
, CK_44XX
),
3323 CLK(NULL
, "video_clk", &dss_48mhz_clk
, CK_44XX
),
3324 CLK(NULL
, "fck", &dss_dss_clk
, CK_44XX
),
3325 CLK(NULL
, "ick", &dss_fck
, CK_44XX
),
3326 CLK(NULL
, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck
, CK_44XX
),
3327 CLK(NULL
, "emif1_fck", &emif1_fck
, CK_44XX
),
3328 CLK(NULL
, "emif2_fck", &emif2_fck
, CK_44XX
),
3329 CLK(NULL
, "fdif_fck", &fdif_fck
, CK_44XX
),
3330 CLK(NULL
, "fpka_fck", &fpka_fck
, CK_44XX
),
3331 CLK(NULL
, "gpio1_dbclk", &gpio1_dbclk
, CK_44XX
),
3332 CLK(NULL
, "gpio1_ick", &gpio1_ick
, CK_44XX
),
3333 CLK(NULL
, "gpio2_dbclk", &gpio2_dbclk
, CK_44XX
),
3334 CLK(NULL
, "gpio2_ick", &gpio2_ick
, CK_44XX
),
3335 CLK(NULL
, "gpio3_dbclk", &gpio3_dbclk
, CK_44XX
),
3336 CLK(NULL
, "gpio3_ick", &gpio3_ick
, CK_44XX
),
3337 CLK(NULL
, "gpio4_dbclk", &gpio4_dbclk
, CK_44XX
),
3338 CLK(NULL
, "gpio4_ick", &gpio4_ick
, CK_44XX
),
3339 CLK(NULL
, "gpio5_dbclk", &gpio5_dbclk
, CK_44XX
),
3340 CLK(NULL
, "gpio5_ick", &gpio5_ick
, CK_44XX
),
3341 CLK(NULL
, "gpio6_dbclk", &gpio6_dbclk
, CK_44XX
),
3342 CLK(NULL
, "gpio6_ick", &gpio6_ick
, CK_44XX
),
3343 CLK(NULL
, "gpmc_ick", &gpmc_ick
, CK_44XX
),
3344 CLK(NULL
, "gpu_fck", &gpu_fck
, CK_44XX
),
3345 CLK("omap2_hdq.0", "fck", &hdq1w_fck
, CK_44XX
),
3346 CLK(NULL
, "hsi_fck", &hsi_fck
, CK_44XX
),
3347 CLK("omap_i2c.1", "fck", &i2c1_fck
, CK_44XX
),
3348 CLK("omap_i2c.2", "fck", &i2c2_fck
, CK_44XX
),
3349 CLK("omap_i2c.3", "fck", &i2c3_fck
, CK_44XX
),
3350 CLK("omap_i2c.4", "fck", &i2c4_fck
, CK_44XX
),
3351 CLK(NULL
, "ipu_fck", &ipu_fck
, CK_44XX
),
3352 CLK(NULL
, "iss_ctrlclk", &iss_ctrlclk
, CK_44XX
),
3353 CLK(NULL
, "iss_fck", &iss_fck
, CK_44XX
),
3354 CLK(NULL
, "iva_fck", &iva_fck
, CK_44XX
),
3355 CLK(NULL
, "kbd_fck", &kbd_fck
, CK_44XX
),
3356 CLK(NULL
, "l3_instr_ick", &l3_instr_ick
, CK_44XX
),
3357 CLK(NULL
, "l3_main_3_ick", &l3_main_3_ick
, CK_44XX
),
3358 CLK(NULL
, "mcasp_sync_mux_ck", &mcasp_sync_mux_ck
, CK_44XX
),
3359 CLK(NULL
, "mcasp_fck", &mcasp_fck
, CK_44XX
),
3360 CLK(NULL
, "mcbsp1_sync_mux_ck", &mcbsp1_sync_mux_ck
, CK_44XX
),
3361 CLK("omap-mcbsp.1", "fck", &mcbsp1_fck
, CK_44XX
),
3362 CLK(NULL
, "mcbsp2_sync_mux_ck", &mcbsp2_sync_mux_ck
, CK_44XX
),
3363 CLK("omap-mcbsp.2", "fck", &mcbsp2_fck
, CK_44XX
),
3364 CLK(NULL
, "mcbsp3_sync_mux_ck", &mcbsp3_sync_mux_ck
, CK_44XX
),
3365 CLK("omap-mcbsp.3", "fck", &mcbsp3_fck
, CK_44XX
),
3366 CLK(NULL
, "mcbsp4_sync_mux_ck", &mcbsp4_sync_mux_ck
, CK_44XX
),
3367 CLK("omap-mcbsp.4", "fck", &mcbsp4_fck
, CK_44XX
),
3368 CLK(NULL
, "mcpdm_fck", &mcpdm_fck
, CK_44XX
),
3369 CLK("omap2_mcspi.1", "fck", &mcspi1_fck
, CK_44XX
),
3370 CLK("omap2_mcspi.2", "fck", &mcspi2_fck
, CK_44XX
),
3371 CLK("omap2_mcspi.3", "fck", &mcspi3_fck
, CK_44XX
),
3372 CLK("omap2_mcspi.4", "fck", &mcspi4_fck
, CK_44XX
),
3373 CLK("omap_hsmmc.0", "fck", &mmc1_fck
, CK_44XX
),
3374 CLK("omap_hsmmc.1", "fck", &mmc2_fck
, CK_44XX
),
3375 CLK("omap_hsmmc.2", "fck", &mmc3_fck
, CK_44XX
),
3376 CLK("omap_hsmmc.3", "fck", &mmc4_fck
, CK_44XX
),
3377 CLK("omap_hsmmc.4", "fck", &mmc5_fck
, CK_44XX
),
3378 CLK(NULL
, "ocp2scp_usb_phy_phy_48m", &ocp2scp_usb_phy_phy_48m
, CK_44XX
),
3379 CLK(NULL
, "ocp2scp_usb_phy_ick", &ocp2scp_usb_phy_ick
, CK_44XX
),
3380 CLK(NULL
, "ocp_wp_noc_ick", &ocp_wp_noc_ick
, CK_44XX
),
3381 CLK("omap_rng", "ick", &rng_ick
, CK_44XX
),
3382 CLK(NULL
, "sha2md5_fck", &sha2md5_fck
, CK_44XX
),
3383 CLK(NULL
, "sl2if_ick", &sl2if_ick
, CK_44XX
),
3384 CLK(NULL
, "slimbus1_fclk_1", &slimbus1_fclk_1
, CK_44XX
),
3385 CLK(NULL
, "slimbus1_fclk_0", &slimbus1_fclk_0
, CK_44XX
),
3386 CLK(NULL
, "slimbus1_fclk_2", &slimbus1_fclk_2
, CK_44XX
),
3387 CLK(NULL
, "slimbus1_slimbus_clk", &slimbus1_slimbus_clk
, CK_44XX
),
3388 CLK(NULL
, "slimbus1_fck", &slimbus1_fck
, CK_44XX
),
3389 CLK(NULL
, "slimbus2_fclk_1", &slimbus2_fclk_1
, CK_44XX
),
3390 CLK(NULL
, "slimbus2_fclk_0", &slimbus2_fclk_0
, CK_44XX
),
3391 CLK(NULL
, "slimbus2_slimbus_clk", &slimbus2_slimbus_clk
, CK_44XX
),
3392 CLK(NULL
, "slimbus2_fck", &slimbus2_fck
, CK_44XX
),
3393 CLK(NULL
, "smartreflex_core_fck", &smartreflex_core_fck
, CK_44XX
),
3394 CLK(NULL
, "smartreflex_iva_fck", &smartreflex_iva_fck
, CK_44XX
),
3395 CLK(NULL
, "smartreflex_mpu_fck", &smartreflex_mpu_fck
, CK_44XX
),
3396 CLK("omap_timer.1", "fck", &timer1_fck
, CK_44XX
),
3397 CLK("omap_timer.10", "fck", &timer10_fck
, CK_44XX
),
3398 CLK("omap_timer.11", "fck", &timer11_fck
, CK_44XX
),
3399 CLK("omap_timer.2", "fck", &timer2_fck
, CK_44XX
),
3400 CLK("omap_timer.3", "fck", &timer3_fck
, CK_44XX
),
3401 CLK("omap_timer.4", "fck", &timer4_fck
, CK_44XX
),
3402 CLK("omap_timer.5", "fck", &timer5_fck
, CK_44XX
),
3403 CLK("omap_timer.6", "fck", &timer6_fck
, CK_44XX
),
3404 CLK("omap_timer.7", "fck", &timer7_fck
, CK_44XX
),
3405 CLK("omap_timer.8", "fck", &timer8_fck
, CK_44XX
),
3406 CLK("omap_timer.9", "fck", &timer9_fck
, CK_44XX
),
3407 CLK(NULL
, "uart1_fck", &uart1_fck
, CK_44XX
),
3408 CLK(NULL
, "uart2_fck", &uart2_fck
, CK_44XX
),
3409 CLK(NULL
, "uart3_fck", &uart3_fck
, CK_44XX
),
3410 CLK(NULL
, "uart4_fck", &uart4_fck
, CK_44XX
),
3411 CLK(NULL
, "usb_host_fs_fck", &usb_host_fs_fck
, CK_44XX
),
3412 CLK("usbhs_omap", "fs_fck", &usb_host_fs_fck
, CK_44XX
),
3413 CLK(NULL
, "utmi_p1_gfclk", &utmi_p1_gfclk
, CK_44XX
),
3414 CLK(NULL
, "usb_host_hs_utmi_p1_clk", &usb_host_hs_utmi_p1_clk
, CK_44XX
),
3415 CLK(NULL
, "utmi_p2_gfclk", &utmi_p2_gfclk
, CK_44XX
),
3416 CLK(NULL
, "usb_host_hs_utmi_p2_clk", &usb_host_hs_utmi_p2_clk
, CK_44XX
),
3417 CLK(NULL
, "usb_host_hs_utmi_p3_clk", &usb_host_hs_utmi_p3_clk
, CK_44XX
),
3418 CLK(NULL
, "usb_host_hs_hsic480m_p1_clk", &usb_host_hs_hsic480m_p1_clk
, CK_44XX
),
3419 CLK(NULL
, "usb_host_hs_hsic60m_p1_clk", &usb_host_hs_hsic60m_p1_clk
, CK_44XX
),
3420 CLK(NULL
, "usb_host_hs_hsic60m_p2_clk", &usb_host_hs_hsic60m_p2_clk
, CK_44XX
),
3421 CLK(NULL
, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk
, CK_44XX
),
3422 CLK(NULL
, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk
, CK_44XX
),
3423 CLK(NULL
, "usb_host_hs_fck", &usb_host_hs_fck
, CK_44XX
),
3424 CLK("usbhs_omap", "hs_fck", &usb_host_hs_fck
, CK_44XX
),
3425 CLK("usbhs_omap", "usbhost_ick", &dummy_ck
, CK_44XX
),
3426 CLK(NULL
, "otg_60m_gfclk", &otg_60m_gfclk
, CK_44XX
),
3427 CLK(NULL
, "usb_otg_hs_xclk", &usb_otg_hs_xclk
, CK_44XX
),
3428 CLK("musb-omap2430", "ick", &usb_otg_hs_ick
, CK_44XX
),
3429 CLK(NULL
, "usb_phy_cm_clk32k", &usb_phy_cm_clk32k
, CK_44XX
),
3430 CLK(NULL
, "usb_tll_hs_usb_ch2_clk", &usb_tll_hs_usb_ch2_clk
, CK_44XX
),
3431 CLK(NULL
, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk
, CK_44XX
),
3432 CLK(NULL
, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk
, CK_44XX
),
3433 CLK(NULL
, "usb_tll_hs_ick", &usb_tll_hs_ick
, CK_44XX
),
3434 CLK("usbhs_omap", "usbtll_ick", &usb_tll_hs_ick
, CK_44XX
),
3435 CLK("usbhs_omap", "usbtll_fck", &dummy_ck
, CK_44XX
),
3436 CLK(NULL
, "usim_ck", &usim_ck
, CK_44XX
),
3437 CLK(NULL
, "usim_fclk", &usim_fclk
, CK_44XX
),
3438 CLK(NULL
, "usim_fck", &usim_fck
, CK_44XX
),
3439 CLK("omap_wdt", "fck", &wd_timer2_fck
, CK_44XX
),
3440 CLK(NULL
, "mailboxes_ick", &dummy_ck
, CK_44XX
),
3441 CLK(NULL
, "wd_timer3_fck", &wd_timer3_fck
, CK_44XX
),
3442 CLK(NULL
, "stm_clk_div_ck", &stm_clk_div_ck
, CK_44XX
),
3443 CLK(NULL
, "trace_clk_div_ck", &trace_clk_div_ck
, CK_44XX
),
3444 CLK(NULL
, "gpmc_ck", &dummy_ck
, CK_44XX
),
3445 CLK(NULL
, "gpt1_ick", &dummy_ck
, CK_44XX
),
3446 CLK(NULL
, "gpt2_ick", &dummy_ck
, CK_44XX
),
3447 CLK(NULL
, "gpt3_ick", &dummy_ck
, CK_44XX
),
3448 CLK(NULL
, "gpt4_ick", &dummy_ck
, CK_44XX
),
3449 CLK(NULL
, "gpt5_ick", &dummy_ck
, CK_44XX
),
3450 CLK(NULL
, "gpt6_ick", &dummy_ck
, CK_44XX
),
3451 CLK(NULL
, "gpt7_ick", &dummy_ck
, CK_44XX
),
3452 CLK(NULL
, "gpt8_ick", &dummy_ck
, CK_44XX
),
3453 CLK(NULL
, "gpt9_ick", &dummy_ck
, CK_44XX
),
3454 CLK(NULL
, "gpt10_ick", &dummy_ck
, CK_44XX
),
3455 CLK(NULL
, "gpt11_ick", &dummy_ck
, CK_44XX
),
3456 CLK("omap_i2c.1", "ick", &dummy_ck
, CK_44XX
),
3457 CLK("omap_i2c.2", "ick", &dummy_ck
, CK_44XX
),
3458 CLK("omap_i2c.3", "ick", &dummy_ck
, CK_44XX
),
3459 CLK("omap_i2c.4", "ick", &dummy_ck
, CK_44XX
),
3460 CLK("omap_hsmmc.0", "ick", &dummy_ck
, CK_44XX
),
3461 CLK("omap_hsmmc.1", "ick", &dummy_ck
, CK_44XX
),
3462 CLK("omap_hsmmc.2", "ick", &dummy_ck
, CK_44XX
),
3463 CLK("omap_hsmmc.3", "ick", &dummy_ck
, CK_44XX
),
3464 CLK("omap_hsmmc.4", "ick", &dummy_ck
, CK_44XX
),
3465 CLK("omap-mcbsp.1", "ick", &dummy_ck
, CK_44XX
),
3466 CLK("omap-mcbsp.2", "ick", &dummy_ck
, CK_44XX
),
3467 CLK("omap-mcbsp.3", "ick", &dummy_ck
, CK_44XX
),
3468 CLK("omap-mcbsp.4", "ick", &dummy_ck
, CK_44XX
),
3469 CLK("omap2_mcspi.1", "ick", &dummy_ck
, CK_44XX
),
3470 CLK("omap2_mcspi.2", "ick", &dummy_ck
, CK_44XX
),
3471 CLK("omap2_mcspi.3", "ick", &dummy_ck
, CK_44XX
),
3472 CLK("omap2_mcspi.4", "ick", &dummy_ck
, CK_44XX
),
3473 CLK(NULL
, "uart1_ick", &dummy_ck
, CK_44XX
),
3474 CLK(NULL
, "uart2_ick", &dummy_ck
, CK_44XX
),
3475 CLK(NULL
, "uart3_ick", &dummy_ck
, CK_44XX
),
3476 CLK(NULL
, "uart4_ick", &dummy_ck
, CK_44XX
),
3477 CLK("omap_wdt", "ick", &dummy_ck
, CK_44XX
),
3478 CLK(NULL
, "auxclk0_src_ck", &auxclk0_src_ck
, CK_44XX
),
3479 CLK(NULL
, "auxclk0_ck", &auxclk0_ck
, CK_44XX
),
3480 CLK(NULL
, "auxclk1_src_ck", &auxclk1_src_ck
, CK_44XX
),
3481 CLK(NULL
, "auxclk1_ck", &auxclk1_ck
, CK_44XX
),
3482 CLK(NULL
, "auxclk2_src_ck", &auxclk2_src_ck
, CK_44XX
),
3483 CLK(NULL
, "auxclk2_ck", &auxclk2_ck
, CK_44XX
),
3484 CLK(NULL
, "auxclk3_src_ck", &auxclk3_src_ck
, CK_44XX
),
3485 CLK(NULL
, "auxclk3_ck", &auxclk3_ck
, CK_44XX
),
3486 CLK(NULL
, "auxclk4_src_ck", &auxclk4_src_ck
, CK_44XX
),
3487 CLK(NULL
, "auxclk4_ck", &auxclk4_ck
, CK_44XX
),
3488 CLK(NULL
, "auxclk5_src_ck", &auxclk5_src_ck
, CK_44XX
),
3489 CLK(NULL
, "auxclk5_ck", &auxclk5_ck
, CK_44XX
),
3490 CLK(NULL
, "auxclkreq0_ck", &auxclkreq0_ck
, CK_44XX
),
3491 CLK(NULL
, "auxclkreq1_ck", &auxclkreq1_ck
, CK_44XX
),
3492 CLK(NULL
, "auxclkreq2_ck", &auxclkreq2_ck
, CK_44XX
),
3493 CLK(NULL
, "auxclkreq3_ck", &auxclkreq3_ck
, CK_44XX
),
3494 CLK(NULL
, "auxclkreq4_ck", &auxclkreq4_ck
, CK_44XX
),
3495 CLK(NULL
, "auxclkreq5_ck", &auxclkreq5_ck
, CK_44XX
),
3496 CLK("smp_twd", NULL
, &smp_twd_443x
, CK_443X
),
3497 CLK("smp_twd", NULL
, &smp_twd_446x
, CK_446X
),
3498 CLK("omap_timer.1", "32k_ck", &sys_32k_ck
, CK_44XX
),
3499 CLK("omap_timer.2", "32k_ck", &sys_32k_ck
, CK_44XX
),
3500 CLK("omap_timer.3", "32k_ck", &sys_32k_ck
, CK_44XX
),
3501 CLK("omap_timer.4", "32k_ck", &sys_32k_ck
, CK_44XX
),
3502 CLK("omap_timer.5", "32k_ck", &sys_32k_ck
, CK_44XX
),
3503 CLK("omap_timer.6", "32k_ck", &sys_32k_ck
, CK_44XX
),
3504 CLK("omap_timer.7", "32k_ck", &sys_32k_ck
, CK_44XX
),
3505 CLK("omap_timer.8", "32k_ck", &sys_32k_ck
, CK_44XX
),
3506 CLK("omap_timer.9", "32k_ck", &sys_32k_ck
, CK_44XX
),
3507 CLK("omap_timer.10", "32k_ck", &sys_32k_ck
, CK_44XX
),
3508 CLK("omap_timer.11", "32k_ck", &sys_32k_ck
, CK_44XX
),
3509 CLK("omap_timer.1", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3510 CLK("omap_timer.2", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3511 CLK("omap_timer.3", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3512 CLK("omap_timer.4", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3513 CLK("omap_timer.9", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3514 CLK("omap_timer.10", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3515 CLK("omap_timer.11", "sys_ck", &sys_clkin_ck
, CK_44XX
),
3516 CLK("omap_timer.5", "sys_ck", &syc_clk_div_ck
, CK_44XX
),
3517 CLK("omap_timer.6", "sys_ck", &syc_clk_div_ck
, CK_44XX
),
3518 CLK("omap_timer.7", "sys_ck", &syc_clk_div_ck
, CK_44XX
),
3519 CLK("omap_timer.8", "sys_ck", &syc_clk_div_ck
, CK_44XX
),
3522 #define L3_OPP50_RATE 100000000
3523 #define DPLL_CORE_M2_OPP50_RATE 400000000
3524 #define DPLL_CORE_M2_OPP100_RATE 800000000
3525 #define DPLL_CORE_M3_OPP50_RATE 200000000
3526 #define DPLL_CORE_M3_OPP100_RATE 320000000
3527 #define DPLL_CORE_M6_OPP50_RATE 200000000
3528 #define DPLL_CORE_M6_OPP100_RATE 266666666
3529 #define DPLL_CORE_M7_OPP50_RATE 133333333
3530 #define DPLL_CORE_M7_OPP100_RATE 266666666
3531 #define DPLL_PER_M3_OPP50_RATE 192000000
3532 #define DPLL_PER_M3_OPP100_RATE 256000000
3533 #define DPLL_PER_M6_OPP50_RATE 192000000
3534 #define DPLL_PER_M6_OPP100_RATE 384000000
3536 static long omap4_virt_l3_round_rate(struct clk
*clk
, unsigned long rate
)
3540 if (!clk
|| !clk
->parent
)
3543 if (clk
->parent
->round_rate
) {
3544 parent_rate
= clk
->parent
->round_rate(clk
->parent
, rate
* 2);
3546 return parent_rate
/ 2;
3551 static unsigned long omap4_virt_l3_recalc(struct clk
*clk
)
3553 if (!clk
|| !clk
->parent
)
3556 return clk
->parent
->rate
/ 2;
3559 static int omap4_clksel_set_rate(struct clk
*clk
, unsigned long rate
)
3563 if (!clk
->set_rate
|| !clk
->round_rate
)
3566 rate
= clk
->round_rate(clk
, rate
);
3568 ret
= clk
->set_rate(clk
, rate
);
3570 propagate_rate(clk
);
3575 struct virt_l3_ck_deps
{
3576 unsigned long core_m2_rate
;
3577 unsigned long core_m3_rate
;
3578 unsigned long core_m6_rate
;
3579 unsigned long core_m7_rate
;
3580 unsigned long per_m3_rate
;
3581 unsigned long per_m6_rate
;
3584 #define NO_OF_L3_OPPS 2
3585 #define L3_OPP_50_INDEX 0
3586 #define L3_OPP_100_INDEX 1
3588 static struct virt_l3_ck_deps omap4_virt_l3_clk_deps
[NO_OF_L3_OPPS
] = {
3590 .core_m2_rate
= DPLL_CORE_M2_OPP50_RATE
,
3591 .core_m3_rate
= DPLL_CORE_M3_OPP50_RATE
,
3592 .core_m6_rate
= DPLL_CORE_M6_OPP50_RATE
,
3593 .core_m7_rate
= DPLL_CORE_M7_OPP50_RATE
,
3594 .per_m3_rate
= DPLL_PER_M3_OPP50_RATE
,
3595 .per_m6_rate
= DPLL_PER_M6_OPP50_RATE
,
3598 .core_m2_rate
= DPLL_CORE_M2_OPP100_RATE
,
3599 .core_m3_rate
= DPLL_CORE_M3_OPP100_RATE
,
3600 .core_m6_rate
= DPLL_CORE_M6_OPP100_RATE
,
3601 .core_m7_rate
= DPLL_CORE_M7_OPP100_RATE
,
3602 .per_m3_rate
= DPLL_PER_M3_OPP100_RATE
,
3603 .per_m6_rate
= DPLL_PER_M6_OPP100_RATE
,
3607 static int omap4_virt_l3_set_rate(struct clk
*clk
, unsigned long rate
)
3609 struct virt_l3_ck_deps
*l3_deps
;
3611 if (rate
<= L3_OPP50_RATE
)
3612 l3_deps
= &omap4_virt_l3_clk_deps
[L3_OPP_50_INDEX
];
3614 l3_deps
= &omap4_virt_l3_clk_deps
[L3_OPP_100_INDEX
];
3616 omap4_clksel_set_rate(&dpll_core_m3x2_ck
, l3_deps
->core_m3_rate
);
3617 omap4_clksel_set_rate(&dpll_core_m6x2_ck
, l3_deps
->core_m6_rate
);
3618 omap4_clksel_set_rate(&dpll_core_m7x2_ck
, l3_deps
->core_m7_rate
);
3619 omap4_clksel_set_rate(&dpll_per_m3x2_ck
, l3_deps
->per_m3_rate
);
3620 omap4_clksel_set_rate(&dpll_per_m6x2_ck
, l3_deps
->per_m6_rate
);
3621 omap4_clksel_set_rate(&dpll_core_m5x2_ck
, rate
* 2);
3622 omap4_clksel_set_rate(&dpll_core_m2_ck
, l3_deps
->core_m2_rate
);
3628 int __init
omap4xxx_clk_init(void)
3633 if (cpu_is_omap443x()) {
3634 cpu_mask
= RATE_IN_443X
;
3635 cpu_clkflg
= CK_443X
;
3636 } else if (cpu_is_omap446x()) {
3637 cpu_mask
= RATE_IN_446X
;
3638 cpu_clkflg
= CK_446X
;
3641 clk_init(&omap2_clk_functions
);
3643 for (c
= omap44xx_clks
; c
< omap44xx_clks
+ ARRAY_SIZE(omap44xx_clks
);
3645 clk_preinit(c
->lk
.clk
);
3647 for (c
= omap44xx_clks
; c
< omap44xx_clks
+ ARRAY_SIZE(omap44xx_clks
);
3649 if (c
->cpu
& cpu_clkflg
) {
3651 clk_register(c
->lk
.clk
);
3652 omap2_init_clk_clkdm(c
->lk
.clk
);
3655 /* Disable autoidle on all clocks; let the PM code enable it later */
3656 omap_clk_disable_autoidle_all();
3658 recalculate_root_clocks();
3661 * Only enable those clocks we will need, let the drivers
3662 * enable other clocks as necessary
3664 clk_enable_init_clocks();