]> git.openfabrics.org - ~shefty/rdma-dev.git/blob - arch/arm/mach-omap2/clock44xx_data.c
044df38f65ce951c01a11729b09030023b0ee465
[~shefty/rdma-dev.git] / arch / arm / mach-omap2 / clock44xx_data.c
1 /*
2  * OMAP4 Clock data
3  *
4  * Copyright (C) 2009-2010 Texas Instruments, Inc.
5  * Copyright (C) 2009-2010 Nokia Corporation
6  *
7  * Paul Walmsley (paul@pwsan.com)
8  * Rajendra Nayak (rnayak@ti.com)
9  * Benoit Cousson (b-cousson@ti.com)
10  *
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.
16  *
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.
20  *
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
23  * in.
24  */
25
26 #include <linux/kernel.h>
27 #include <linux/list.h>
28 #include <linux/clk.h>
29 #include <plat/clkdev_omap.h>
30
31 #include "clock.h"
32 #include "clock44xx.h"
33 #include "cm1_44xx.h"
34 #include "cm2_44xx.h"
35 #include "cm-regbits-44xx.h"
36 #include "prm44xx.h"
37 #include "prm-regbits-44xx.h"
38 #include "control.h"
39 #include "scrm44xx.h"
40
41 /* OMAP4 modulemode control */
42 #define OMAP4430_MODULEMODE_HWCTRL                      0
43 #define OMAP4430_MODULEMODE_SWCTRL                      1
44
45 /* Root clocks */
46
47 static struct clk extalt_clkin_ck = {
48         .name           = "extalt_clkin_ck",
49         .rate           = 59000000,
50         .ops            = &clkops_null,
51 };
52
53 static struct clk pad_clks_ck = {
54         .name           = "pad_clks_ck",
55         .rate           = 12000000,
56         .ops            = &clkops_omap2_dflt,
57         .enable_reg     = OMAP4430_CM_CLKSEL_ABE,
58         .enable_bit     = OMAP4430_PAD_CLKS_GATE_SHIFT,
59 };
60
61 static struct clk pad_slimbus_core_clks_ck = {
62         .name           = "pad_slimbus_core_clks_ck",
63         .rate           = 12000000,
64         .ops            = &clkops_null,
65 };
66
67 static struct clk secure_32k_clk_src_ck = {
68         .name           = "secure_32k_clk_src_ck",
69         .rate           = 32768,
70         .ops            = &clkops_null,
71 };
72
73 static struct clk slimbus_clk = {
74         .name           = "slimbus_clk",
75         .rate           = 12000000,
76         .ops            = &clkops_omap2_dflt,
77         .enable_reg     = OMAP4430_CM_CLKSEL_ABE,
78         .enable_bit     = OMAP4430_SLIMBUS_CLK_GATE_SHIFT,
79 };
80
81 static struct clk sys_32k_ck = {
82         .name           = "sys_32k_ck",
83         .rate           = 32768,
84         .ops            = &clkops_null,
85 };
86
87 static struct clk virt_12000000_ck = {
88         .name           = "virt_12000000_ck",
89         .ops            = &clkops_null,
90         .rate           = 12000000,
91 };
92
93 static struct clk virt_13000000_ck = {
94         .name           = "virt_13000000_ck",
95         .ops            = &clkops_null,
96         .rate           = 13000000,
97 };
98
99 static struct clk virt_16800000_ck = {
100         .name           = "virt_16800000_ck",
101         .ops            = &clkops_null,
102         .rate           = 16800000,
103 };
104
105 static struct clk virt_19200000_ck = {
106         .name           = "virt_19200000_ck",
107         .ops            = &clkops_null,
108         .rate           = 19200000,
109 };
110
111 static struct clk virt_26000000_ck = {
112         .name           = "virt_26000000_ck",
113         .ops            = &clkops_null,
114         .rate           = 26000000,
115 };
116
117 static struct clk virt_27000000_ck = {
118         .name           = "virt_27000000_ck",
119         .ops            = &clkops_null,
120         .rate           = 27000000,
121 };
122
123 static struct clk virt_38400000_ck = {
124         .name           = "virt_38400000_ck",
125         .ops            = &clkops_null,
126         .rate           = 38400000,
127 };
128
129 static const struct clksel_rate div_1_0_rates[] = {
130         { .div = 1, .val = 0, .flags = RATE_IN_4430 },
131         { .div = 0 },
132 };
133
134 static const struct clksel_rate div_1_1_rates[] = {
135         { .div = 1, .val = 1, .flags = RATE_IN_4430 },
136         { .div = 0 },
137 };
138
139 static const struct clksel_rate div_1_2_rates[] = {
140         { .div = 1, .val = 2, .flags = RATE_IN_4430 },
141         { .div = 0 },
142 };
143
144 static const struct clksel_rate div_1_3_rates[] = {
145         { .div = 1, .val = 3, .flags = RATE_IN_4430 },
146         { .div = 0 },
147 };
148
149 static const struct clksel_rate div_1_4_rates[] = {
150         { .div = 1, .val = 4, .flags = RATE_IN_4430 },
151         { .div = 0 },
152 };
153
154 static const struct clksel_rate div_1_5_rates[] = {
155         { .div = 1, .val = 5, .flags = RATE_IN_4430 },
156         { .div = 0 },
157 };
158
159 static const struct clksel_rate div_1_6_rates[] = {
160         { .div = 1, .val = 6, .flags = RATE_IN_4430 },
161         { .div = 0 },
162 };
163
164 static const struct clksel_rate div_1_7_rates[] = {
165         { .div = 1, .val = 7, .flags = RATE_IN_4430 },
166         { .div = 0 },
167 };
168
169 static const struct clksel sys_clkin_sel[] = {
170         { .parent = &virt_12000000_ck, .rates = div_1_1_rates },
171         { .parent = &virt_13000000_ck, .rates = div_1_2_rates },
172         { .parent = &virt_16800000_ck, .rates = div_1_3_rates },
173         { .parent = &virt_19200000_ck, .rates = div_1_4_rates },
174         { .parent = &virt_26000000_ck, .rates = div_1_5_rates },
175         { .parent = &virt_27000000_ck, .rates = div_1_6_rates },
176         { .parent = &virt_38400000_ck, .rates = div_1_7_rates },
177         { .parent = NULL },
178 };
179
180 static struct clk sys_clkin_ck = {
181         .name           = "sys_clkin_ck",
182         .rate           = 38400000,
183         .clksel         = sys_clkin_sel,
184         .init           = &omap2_init_clksel_parent,
185         .clksel_reg     = OMAP4430_CM_SYS_CLKSEL,
186         .clksel_mask    = OMAP4430_SYS_CLKSEL_MASK,
187         .ops            = &clkops_null,
188         .recalc         = &omap2_clksel_recalc,
189 };
190
191 static struct clk tie_low_clock_ck = {
192         .name           = "tie_low_clock_ck",
193         .rate           = 0,
194         .ops            = &clkops_null,
195 };
196
197 static struct clk utmi_phy_clkout_ck = {
198         .name           = "utmi_phy_clkout_ck",
199         .rate           = 60000000,
200         .ops            = &clkops_null,
201 };
202
203 static struct clk xclk60mhsp1_ck = {
204         .name           = "xclk60mhsp1_ck",
205         .rate           = 60000000,
206         .ops            = &clkops_null,
207 };
208
209 static struct clk xclk60mhsp2_ck = {
210         .name           = "xclk60mhsp2_ck",
211         .rate           = 60000000,
212         .ops            = &clkops_null,
213 };
214
215 static struct clk xclk60motg_ck = {
216         .name           = "xclk60motg_ck",
217         .rate           = 60000000,
218         .ops            = &clkops_null,
219 };
220
221 /* Module clocks and DPLL outputs */
222
223 static const struct clksel abe_dpll_bypass_clk_mux_sel[] = {
224         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
225         { .parent = &sys_32k_ck, .rates = div_1_1_rates },
226         { .parent = NULL },
227 };
228
229 static struct clk abe_dpll_bypass_clk_mux_ck = {
230         .name           = "abe_dpll_bypass_clk_mux_ck",
231         .parent         = &sys_clkin_ck,
232         .ops            = &clkops_null,
233         .recalc         = &followparent_recalc,
234 };
235
236 static struct clk abe_dpll_refclk_mux_ck = {
237         .name           = "abe_dpll_refclk_mux_ck",
238         .parent         = &sys_clkin_ck,
239         .clksel         = abe_dpll_bypass_clk_mux_sel,
240         .init           = &omap2_init_clksel_parent,
241         .clksel_reg     = OMAP4430_CM_ABE_PLL_REF_CLKSEL,
242         .clksel_mask    = OMAP4430_CLKSEL_0_0_MASK,
243         .ops            = &clkops_null,
244         .recalc         = &omap2_clksel_recalc,
245 };
246
247 /* DPLL_ABE */
248 static struct dpll_data dpll_abe_dd = {
249         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_ABE,
250         .clk_bypass     = &abe_dpll_bypass_clk_mux_ck,
251         .clk_ref        = &abe_dpll_refclk_mux_ck,
252         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_ABE,
253         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
254         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_ABE,
255         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_ABE,
256         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
257         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
258         .enable_mask    = OMAP4430_DPLL_EN_MASK,
259         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
260         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
261         .max_multiplier = 2047,
262         .max_divider    = 128,
263         .min_divider    = 1,
264 };
265
266
267 static struct clk dpll_abe_ck = {
268         .name           = "dpll_abe_ck",
269         .parent         = &abe_dpll_refclk_mux_ck,
270         .dpll_data      = &dpll_abe_dd,
271         .init           = &omap2_init_dpll_parent,
272         .ops            = &clkops_omap3_noncore_dpll_ops,
273         .recalc         = &omap3_dpll_recalc,
274         .round_rate     = &omap2_dpll_round_rate,
275         .set_rate       = &omap3_noncore_dpll_set_rate,
276 };
277
278 static struct clk dpll_abe_x2_ck = {
279         .name           = "dpll_abe_x2_ck",
280         .parent         = &dpll_abe_ck,
281         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_ABE,
282         .flags          = CLOCK_CLKOUTX2,
283         .ops            = &clkops_omap4_dpllmx_ops,
284         .recalc         = &omap3_clkoutx2_recalc,
285 };
286
287 static const struct clksel_rate div31_1to31_rates[] = {
288         { .div = 1, .val = 1, .flags = RATE_IN_4430 },
289         { .div = 2, .val = 2, .flags = RATE_IN_4430 },
290         { .div = 3, .val = 3, .flags = RATE_IN_4430 },
291         { .div = 4, .val = 4, .flags = RATE_IN_4430 },
292         { .div = 5, .val = 5, .flags = RATE_IN_4430 },
293         { .div = 6, .val = 6, .flags = RATE_IN_4430 },
294         { .div = 7, .val = 7, .flags = RATE_IN_4430 },
295         { .div = 8, .val = 8, .flags = RATE_IN_4430 },
296         { .div = 9, .val = 9, .flags = RATE_IN_4430 },
297         { .div = 10, .val = 10, .flags = RATE_IN_4430 },
298         { .div = 11, .val = 11, .flags = RATE_IN_4430 },
299         { .div = 12, .val = 12, .flags = RATE_IN_4430 },
300         { .div = 13, .val = 13, .flags = RATE_IN_4430 },
301         { .div = 14, .val = 14, .flags = RATE_IN_4430 },
302         { .div = 15, .val = 15, .flags = RATE_IN_4430 },
303         { .div = 16, .val = 16, .flags = RATE_IN_4430 },
304         { .div = 17, .val = 17, .flags = RATE_IN_4430 },
305         { .div = 18, .val = 18, .flags = RATE_IN_4430 },
306         { .div = 19, .val = 19, .flags = RATE_IN_4430 },
307         { .div = 20, .val = 20, .flags = RATE_IN_4430 },
308         { .div = 21, .val = 21, .flags = RATE_IN_4430 },
309         { .div = 22, .val = 22, .flags = RATE_IN_4430 },
310         { .div = 23, .val = 23, .flags = RATE_IN_4430 },
311         { .div = 24, .val = 24, .flags = RATE_IN_4430 },
312         { .div = 25, .val = 25, .flags = RATE_IN_4430 },
313         { .div = 26, .val = 26, .flags = RATE_IN_4430 },
314         { .div = 27, .val = 27, .flags = RATE_IN_4430 },
315         { .div = 28, .val = 28, .flags = RATE_IN_4430 },
316         { .div = 29, .val = 29, .flags = RATE_IN_4430 },
317         { .div = 30, .val = 30, .flags = RATE_IN_4430 },
318         { .div = 31, .val = 31, .flags = RATE_IN_4430 },
319         { .div = 0 },
320 };
321
322 static const struct clksel dpll_abe_m2x2_div[] = {
323         { .parent = &dpll_abe_x2_ck, .rates = div31_1to31_rates },
324         { .parent = NULL },
325 };
326
327 static struct clk dpll_abe_m2x2_ck = {
328         .name           = "dpll_abe_m2x2_ck",
329         .parent         = &dpll_abe_x2_ck,
330         .clksel         = dpll_abe_m2x2_div,
331         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_ABE,
332         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
333         .ops            = &clkops_omap4_dpllmx_ops,
334         .recalc         = &omap2_clksel_recalc,
335         .round_rate     = &omap2_clksel_round_rate,
336         .set_rate       = &omap2_clksel_set_rate,
337 };
338
339 static struct clk abe_24m_fclk = {
340         .name           = "abe_24m_fclk",
341         .parent         = &dpll_abe_m2x2_ck,
342         .ops            = &clkops_null,
343         .fixed_div      = 8,
344         .recalc         = &omap_fixed_divisor_recalc,
345 };
346
347 static const struct clksel_rate div3_1to4_rates[] = {
348         { .div = 1, .val = 0, .flags = RATE_IN_4430 },
349         { .div = 2, .val = 1, .flags = RATE_IN_4430 },
350         { .div = 4, .val = 2, .flags = RATE_IN_4430 },
351         { .div = 0 },
352 };
353
354 static const struct clksel abe_clk_div[] = {
355         { .parent = &dpll_abe_m2x2_ck, .rates = div3_1to4_rates },
356         { .parent = NULL },
357 };
358
359 static struct clk abe_clk = {
360         .name           = "abe_clk",
361         .parent         = &dpll_abe_m2x2_ck,
362         .clksel         = abe_clk_div,
363         .clksel_reg     = OMAP4430_CM_CLKSEL_ABE,
364         .clksel_mask    = OMAP4430_CLKSEL_OPP_MASK,
365         .ops            = &clkops_null,
366         .recalc         = &omap2_clksel_recalc,
367         .round_rate     = &omap2_clksel_round_rate,
368         .set_rate       = &omap2_clksel_set_rate,
369 };
370
371 static const struct clksel_rate div2_1to2_rates[] = {
372         { .div = 1, .val = 0, .flags = RATE_IN_4430 },
373         { .div = 2, .val = 1, .flags = RATE_IN_4430 },
374         { .div = 0 },
375 };
376
377 static const struct clksel aess_fclk_div[] = {
378         { .parent = &abe_clk, .rates = div2_1to2_rates },
379         { .parent = NULL },
380 };
381
382 static struct clk aess_fclk = {
383         .name           = "aess_fclk",
384         .parent         = &abe_clk,
385         .clksel         = aess_fclk_div,
386         .clksel_reg     = OMAP4430_CM1_ABE_AESS_CLKCTRL,
387         .clksel_mask    = OMAP4430_CLKSEL_AESS_FCLK_MASK,
388         .ops            = &clkops_null,
389         .recalc         = &omap2_clksel_recalc,
390         .round_rate     = &omap2_clksel_round_rate,
391         .set_rate       = &omap2_clksel_set_rate,
392 };
393
394 static struct clk dpll_abe_m3x2_ck = {
395         .name           = "dpll_abe_m3x2_ck",
396         .parent         = &dpll_abe_x2_ck,
397         .clksel         = dpll_abe_m2x2_div,
398         .clksel_reg     = OMAP4430_CM_DIV_M3_DPLL_ABE,
399         .clksel_mask    = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK,
400         .ops            = &clkops_omap4_dpllmx_ops,
401         .recalc         = &omap2_clksel_recalc,
402         .round_rate     = &omap2_clksel_round_rate,
403         .set_rate       = &omap2_clksel_set_rate,
404 };
405
406 static const struct clksel core_hsd_byp_clk_mux_sel[] = {
407         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
408         { .parent = &dpll_abe_m3x2_ck, .rates = div_1_1_rates },
409         { .parent = NULL },
410 };
411
412 static struct clk core_hsd_byp_clk_mux_ck = {
413         .name           = "core_hsd_byp_clk_mux_ck",
414         .parent         = &sys_clkin_ck,
415         .clksel         = core_hsd_byp_clk_mux_sel,
416         .init           = &omap2_init_clksel_parent,
417         .clksel_reg     = OMAP4430_CM_CLKSEL_DPLL_CORE,
418         .clksel_mask    = OMAP4430_DPLL_BYP_CLKSEL_MASK,
419         .ops            = &clkops_null,
420         .recalc         = &omap2_clksel_recalc,
421 };
422
423 /* DPLL_CORE */
424 static struct dpll_data dpll_core_dd = {
425         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_CORE,
426         .clk_bypass     = &core_hsd_byp_clk_mux_ck,
427         .clk_ref        = &sys_clkin_ck,
428         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_CORE,
429         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
430         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_CORE,
431         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_CORE,
432         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
433         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
434         .enable_mask    = OMAP4430_DPLL_EN_MASK,
435         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
436         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
437         .max_multiplier = 2047,
438         .max_divider    = 128,
439         .min_divider    = 1,
440 };
441
442
443 static struct clk dpll_core_ck = {
444         .name           = "dpll_core_ck",
445         .parent         = &sys_clkin_ck,
446         .dpll_data      = &dpll_core_dd,
447         .init           = &omap2_init_dpll_parent,
448         .ops            = &clkops_omap3_core_dpll_ops,
449         .recalc         = &omap3_dpll_recalc,
450 };
451
452 static struct clk dpll_core_x2_ck = {
453         .name           = "dpll_core_x2_ck",
454         .parent         = &dpll_core_ck,
455         .flags          = CLOCK_CLKOUTX2,
456         .ops            = &clkops_null,
457         .recalc         = &omap3_clkoutx2_recalc,
458 };
459
460 static const struct clksel dpll_core_m6x2_div[] = {
461         { .parent = &dpll_core_x2_ck, .rates = div31_1to31_rates },
462         { .parent = NULL },
463 };
464
465 static struct clk dpll_core_m6x2_ck = {
466         .name           = "dpll_core_m6x2_ck",
467         .parent         = &dpll_core_x2_ck,
468         .clksel         = dpll_core_m6x2_div,
469         .clksel_reg     = OMAP4430_CM_DIV_M6_DPLL_CORE,
470         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK,
471         .ops            = &clkops_omap4_dpllmx_ops,
472         .recalc         = &omap2_clksel_recalc,
473         .round_rate     = &omap2_clksel_round_rate,
474         .set_rate       = &omap2_clksel_set_rate,
475 };
476
477 static const struct clksel dbgclk_mux_sel[] = {
478         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
479         { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates },
480         { .parent = NULL },
481 };
482
483 static struct clk dbgclk_mux_ck = {
484         .name           = "dbgclk_mux_ck",
485         .parent         = &sys_clkin_ck,
486         .ops            = &clkops_null,
487         .recalc         = &followparent_recalc,
488 };
489
490 static const struct clksel dpll_core_m2_div[] = {
491         { .parent = &dpll_core_ck, .rates = div31_1to31_rates },
492         { .parent = NULL },
493 };
494
495 static struct clk dpll_core_m2_ck = {
496         .name           = "dpll_core_m2_ck",
497         .parent         = &dpll_core_ck,
498         .clksel         = dpll_core_m2_div,
499         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_CORE,
500         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
501         .ops            = &clkops_omap4_dpllmx_ops,
502         .recalc         = &omap2_clksel_recalc,
503         .round_rate     = &omap2_clksel_round_rate,
504         .set_rate       = &omap2_clksel_set_rate,
505 };
506
507 static struct clk ddrphy_ck = {
508         .name           = "ddrphy_ck",
509         .parent         = &dpll_core_m2_ck,
510         .ops            = &clkops_null,
511         .fixed_div      = 2,
512         .recalc         = &omap_fixed_divisor_recalc,
513 };
514
515 static struct clk dpll_core_m5x2_ck = {
516         .name           = "dpll_core_m5x2_ck",
517         .parent         = &dpll_core_x2_ck,
518         .clksel         = dpll_core_m6x2_div,
519         .clksel_reg     = OMAP4430_CM_DIV_M5_DPLL_CORE,
520         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK,
521         .ops            = &clkops_omap4_dpllmx_ops,
522         .recalc         = &omap2_clksel_recalc,
523         .round_rate     = &omap2_clksel_round_rate,
524         .set_rate       = &omap2_clksel_set_rate,
525 };
526
527 static const struct clksel div_core_div[] = {
528         { .parent = &dpll_core_m5x2_ck, .rates = div2_1to2_rates },
529         { .parent = NULL },
530 };
531
532 static struct clk div_core_ck = {
533         .name           = "div_core_ck",
534         .parent         = &dpll_core_m5x2_ck,
535         .clksel         = div_core_div,
536         .clksel_reg     = OMAP4430_CM_CLKSEL_CORE,
537         .clksel_mask    = OMAP4430_CLKSEL_CORE_MASK,
538         .ops            = &clkops_null,
539         .recalc         = &omap2_clksel_recalc,
540         .round_rate     = &omap2_clksel_round_rate,
541         .set_rate       = &omap2_clksel_set_rate,
542 };
543
544 static const struct clksel_rate div4_1to8_rates[] = {
545         { .div = 1, .val = 0, .flags = RATE_IN_4430 },
546         { .div = 2, .val = 1, .flags = RATE_IN_4430 },
547         { .div = 4, .val = 2, .flags = RATE_IN_4430 },
548         { .div = 8, .val = 3, .flags = RATE_IN_4430 },
549         { .div = 0 },
550 };
551
552 static const struct clksel div_iva_hs_clk_div[] = {
553         { .parent = &dpll_core_m5x2_ck, .rates = div4_1to8_rates },
554         { .parent = NULL },
555 };
556
557 static struct clk div_iva_hs_clk = {
558         .name           = "div_iva_hs_clk",
559         .parent         = &dpll_core_m5x2_ck,
560         .clksel         = div_iva_hs_clk_div,
561         .clksel_reg     = OMAP4430_CM_BYPCLK_DPLL_IVA,
562         .clksel_mask    = OMAP4430_CLKSEL_0_1_MASK,
563         .ops            = &clkops_null,
564         .recalc         = &omap2_clksel_recalc,
565         .round_rate     = &omap2_clksel_round_rate,
566         .set_rate       = &omap2_clksel_set_rate,
567 };
568
569 static struct clk div_mpu_hs_clk = {
570         .name           = "div_mpu_hs_clk",
571         .parent         = &dpll_core_m5x2_ck,
572         .clksel         = div_iva_hs_clk_div,
573         .clksel_reg     = OMAP4430_CM_BYPCLK_DPLL_MPU,
574         .clksel_mask    = OMAP4430_CLKSEL_0_1_MASK,
575         .ops            = &clkops_null,
576         .recalc         = &omap2_clksel_recalc,
577         .round_rate     = &omap2_clksel_round_rate,
578         .set_rate       = &omap2_clksel_set_rate,
579 };
580
581 static struct clk dpll_core_m4x2_ck = {
582         .name           = "dpll_core_m4x2_ck",
583         .parent         = &dpll_core_x2_ck,
584         .clksel         = dpll_core_m6x2_div,
585         .clksel_reg     = OMAP4430_CM_DIV_M4_DPLL_CORE,
586         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK,
587         .ops            = &clkops_omap4_dpllmx_ops,
588         .recalc         = &omap2_clksel_recalc,
589         .round_rate     = &omap2_clksel_round_rate,
590         .set_rate       = &omap2_clksel_set_rate,
591 };
592
593 static struct clk dll_clk_div_ck = {
594         .name           = "dll_clk_div_ck",
595         .parent         = &dpll_core_m4x2_ck,
596         .ops            = &clkops_null,
597         .fixed_div      = 2,
598         .recalc         = &omap_fixed_divisor_recalc,
599 };
600
601 static const struct clksel dpll_abe_m2_div[] = {
602         { .parent = &dpll_abe_ck, .rates = div31_1to31_rates },
603         { .parent = NULL },
604 };
605
606 static struct clk dpll_abe_m2_ck = {
607         .name           = "dpll_abe_m2_ck",
608         .parent         = &dpll_abe_ck,
609         .clksel         = dpll_abe_m2_div,
610         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_ABE,
611         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
612         .ops            = &clkops_omap4_dpllmx_ops,
613         .recalc         = &omap2_clksel_recalc,
614         .round_rate     = &omap2_clksel_round_rate,
615         .set_rate       = &omap2_clksel_set_rate,
616 };
617
618 static struct clk dpll_core_m3x2_ck = {
619         .name           = "dpll_core_m3x2_ck",
620         .parent         = &dpll_core_x2_ck,
621         .clksel         = dpll_core_m6x2_div,
622         .clksel_reg     = OMAP4430_CM_DIV_M3_DPLL_CORE,
623         .clksel_mask    = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK,
624         .ops            = &clkops_omap2_dflt,
625         .recalc         = &omap2_clksel_recalc,
626         .round_rate     = &omap2_clksel_round_rate,
627         .set_rate       = &omap2_clksel_set_rate,
628         .enable_reg     = OMAP4430_CM_DIV_M3_DPLL_CORE,
629         .enable_bit     = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT,
630 };
631
632 static struct clk dpll_core_m7x2_ck = {
633         .name           = "dpll_core_m7x2_ck",
634         .parent         = &dpll_core_x2_ck,
635         .clksel         = dpll_core_m6x2_div,
636         .clksel_reg     = OMAP4430_CM_DIV_M7_DPLL_CORE,
637         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK,
638         .ops            = &clkops_omap4_dpllmx_ops,
639         .recalc         = &omap2_clksel_recalc,
640         .round_rate     = &omap2_clksel_round_rate,
641         .set_rate       = &omap2_clksel_set_rate,
642 };
643
644 static const struct clksel iva_hsd_byp_clk_mux_sel[] = {
645         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
646         { .parent = &div_iva_hs_clk, .rates = div_1_1_rates },
647         { .parent = NULL },
648 };
649
650 static struct clk iva_hsd_byp_clk_mux_ck = {
651         .name           = "iva_hsd_byp_clk_mux_ck",
652         .parent         = &sys_clkin_ck,
653         .clksel         = iva_hsd_byp_clk_mux_sel,
654         .init           = &omap2_init_clksel_parent,
655         .clksel_reg     = OMAP4430_CM_CLKSEL_DPLL_IVA,
656         .clksel_mask    = OMAP4430_DPLL_BYP_CLKSEL_MASK,
657         .ops            = &clkops_null,
658         .recalc         = &omap2_clksel_recalc,
659 };
660
661 /* DPLL_IVA */
662 static struct dpll_data dpll_iva_dd = {
663         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_IVA,
664         .clk_bypass     = &iva_hsd_byp_clk_mux_ck,
665         .clk_ref        = &sys_clkin_ck,
666         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_IVA,
667         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
668         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_IVA,
669         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_IVA,
670         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
671         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
672         .enable_mask    = OMAP4430_DPLL_EN_MASK,
673         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
674         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
675         .max_multiplier = 2047,
676         .max_divider    = 128,
677         .min_divider    = 1,
678 };
679
680
681 static struct clk dpll_iva_ck = {
682         .name           = "dpll_iva_ck",
683         .parent         = &sys_clkin_ck,
684         .dpll_data      = &dpll_iva_dd,
685         .init           = &omap2_init_dpll_parent,
686         .ops            = &clkops_omap3_noncore_dpll_ops,
687         .recalc         = &omap3_dpll_recalc,
688         .round_rate     = &omap2_dpll_round_rate,
689         .set_rate       = &omap3_noncore_dpll_set_rate,
690 };
691
692 static struct clk dpll_iva_x2_ck = {
693         .name           = "dpll_iva_x2_ck",
694         .parent         = &dpll_iva_ck,
695         .flags          = CLOCK_CLKOUTX2,
696         .ops            = &clkops_null,
697         .recalc         = &omap3_clkoutx2_recalc,
698 };
699
700 static const struct clksel dpll_iva_m4x2_div[] = {
701         { .parent = &dpll_iva_x2_ck, .rates = div31_1to31_rates },
702         { .parent = NULL },
703 };
704
705 static struct clk dpll_iva_m4x2_ck = {
706         .name           = "dpll_iva_m4x2_ck",
707         .parent         = &dpll_iva_x2_ck,
708         .clksel         = dpll_iva_m4x2_div,
709         .clksel_reg     = OMAP4430_CM_DIV_M4_DPLL_IVA,
710         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK,
711         .ops            = &clkops_omap4_dpllmx_ops,
712         .recalc         = &omap2_clksel_recalc,
713         .round_rate     = &omap2_clksel_round_rate,
714         .set_rate       = &omap2_clksel_set_rate,
715 };
716
717 static struct clk dpll_iva_m5x2_ck = {
718         .name           = "dpll_iva_m5x2_ck",
719         .parent         = &dpll_iva_x2_ck,
720         .clksel         = dpll_iva_m4x2_div,
721         .clksel_reg     = OMAP4430_CM_DIV_M5_DPLL_IVA,
722         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK,
723         .ops            = &clkops_omap4_dpllmx_ops,
724         .recalc         = &omap2_clksel_recalc,
725         .round_rate     = &omap2_clksel_round_rate,
726         .set_rate       = &omap2_clksel_set_rate,
727 };
728
729 /* DPLL_MPU */
730 static struct dpll_data dpll_mpu_dd = {
731         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_MPU,
732         .clk_bypass     = &div_mpu_hs_clk,
733         .clk_ref        = &sys_clkin_ck,
734         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_MPU,
735         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
736         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_MPU,
737         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_MPU,
738         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
739         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
740         .enable_mask    = OMAP4430_DPLL_EN_MASK,
741         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
742         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
743         .max_multiplier = 2047,
744         .max_divider    = 128,
745         .min_divider    = 1,
746 };
747
748
749 static struct clk dpll_mpu_ck = {
750         .name           = "dpll_mpu_ck",
751         .parent         = &sys_clkin_ck,
752         .dpll_data      = &dpll_mpu_dd,
753         .init           = &omap2_init_dpll_parent,
754         .ops            = &clkops_omap3_noncore_dpll_ops,
755         .recalc         = &omap3_dpll_recalc,
756         .round_rate     = &omap2_dpll_round_rate,
757         .set_rate       = &omap3_noncore_dpll_set_rate,
758 };
759
760 static const struct clksel dpll_mpu_m2_div[] = {
761         { .parent = &dpll_mpu_ck, .rates = div31_1to31_rates },
762         { .parent = NULL },
763 };
764
765 static struct clk dpll_mpu_m2_ck = {
766         .name           = "dpll_mpu_m2_ck",
767         .parent         = &dpll_mpu_ck,
768         .clksel         = dpll_mpu_m2_div,
769         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_MPU,
770         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
771         .ops            = &clkops_omap4_dpllmx_ops,
772         .recalc         = &omap2_clksel_recalc,
773         .round_rate     = &omap2_clksel_round_rate,
774         .set_rate       = &omap2_clksel_set_rate,
775 };
776
777 static struct clk per_hs_clk_div_ck = {
778         .name           = "per_hs_clk_div_ck",
779         .parent         = &dpll_abe_m3x2_ck,
780         .ops            = &clkops_null,
781         .fixed_div      = 2,
782         .recalc         = &omap_fixed_divisor_recalc,
783 };
784
785 static const struct clksel per_hsd_byp_clk_mux_sel[] = {
786         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
787         { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates },
788         { .parent = NULL },
789 };
790
791 static struct clk per_hsd_byp_clk_mux_ck = {
792         .name           = "per_hsd_byp_clk_mux_ck",
793         .parent         = &sys_clkin_ck,
794         .clksel         = per_hsd_byp_clk_mux_sel,
795         .init           = &omap2_init_clksel_parent,
796         .clksel_reg     = OMAP4430_CM_CLKSEL_DPLL_PER,
797         .clksel_mask    = OMAP4430_DPLL_BYP_CLKSEL_MASK,
798         .ops            = &clkops_null,
799         .recalc         = &omap2_clksel_recalc,
800 };
801
802 /* DPLL_PER */
803 static struct dpll_data dpll_per_dd = {
804         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_PER,
805         .clk_bypass     = &per_hsd_byp_clk_mux_ck,
806         .clk_ref        = &sys_clkin_ck,
807         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_PER,
808         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
809         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_PER,
810         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_PER,
811         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
812         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
813         .enable_mask    = OMAP4430_DPLL_EN_MASK,
814         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
815         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
816         .max_multiplier = 2047,
817         .max_divider    = 128,
818         .min_divider    = 1,
819 };
820
821
822 static struct clk dpll_per_ck = {
823         .name           = "dpll_per_ck",
824         .parent         = &sys_clkin_ck,
825         .dpll_data      = &dpll_per_dd,
826         .init           = &omap2_init_dpll_parent,
827         .ops            = &clkops_omap3_noncore_dpll_ops,
828         .recalc         = &omap3_dpll_recalc,
829         .round_rate     = &omap2_dpll_round_rate,
830         .set_rate       = &omap3_noncore_dpll_set_rate,
831 };
832
833 static const struct clksel dpll_per_m2_div[] = {
834         { .parent = &dpll_per_ck, .rates = div31_1to31_rates },
835         { .parent = NULL },
836 };
837
838 static struct clk dpll_per_m2_ck = {
839         .name           = "dpll_per_m2_ck",
840         .parent         = &dpll_per_ck,
841         .clksel         = dpll_per_m2_div,
842         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_PER,
843         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
844         .ops            = &clkops_omap4_dpllmx_ops,
845         .recalc         = &omap2_clksel_recalc,
846         .round_rate     = &omap2_clksel_round_rate,
847         .set_rate       = &omap2_clksel_set_rate,
848 };
849
850 static struct clk dpll_per_x2_ck = {
851         .name           = "dpll_per_x2_ck",
852         .parent         = &dpll_per_ck,
853         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_PER,
854         .flags          = CLOCK_CLKOUTX2,
855         .ops            = &clkops_omap4_dpllmx_ops,
856         .recalc         = &omap3_clkoutx2_recalc,
857 };
858
859 static const struct clksel dpll_per_m2x2_div[] = {
860         { .parent = &dpll_per_x2_ck, .rates = div31_1to31_rates },
861         { .parent = NULL },
862 };
863
864 static struct clk dpll_per_m2x2_ck = {
865         .name           = "dpll_per_m2x2_ck",
866         .parent         = &dpll_per_x2_ck,
867         .clksel         = dpll_per_m2x2_div,
868         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_PER,
869         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_MASK,
870         .ops            = &clkops_omap4_dpllmx_ops,
871         .recalc         = &omap2_clksel_recalc,
872         .round_rate     = &omap2_clksel_round_rate,
873         .set_rate       = &omap2_clksel_set_rate,
874 };
875
876 static struct clk dpll_per_m3x2_ck = {
877         .name           = "dpll_per_m3x2_ck",
878         .parent         = &dpll_per_x2_ck,
879         .clksel         = dpll_per_m2x2_div,
880         .clksel_reg     = OMAP4430_CM_DIV_M3_DPLL_PER,
881         .clksel_mask    = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK,
882         .ops            = &clkops_omap2_dflt,
883         .recalc         = &omap2_clksel_recalc,
884         .round_rate     = &omap2_clksel_round_rate,
885         .set_rate       = &omap2_clksel_set_rate,
886         .enable_reg     = OMAP4430_CM_DIV_M3_DPLL_PER,
887         .enable_bit     = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT,
888 };
889
890 static struct clk dpll_per_m4x2_ck = {
891         .name           = "dpll_per_m4x2_ck",
892         .parent         = &dpll_per_x2_ck,
893         .clksel         = dpll_per_m2x2_div,
894         .clksel_reg     = OMAP4430_CM_DIV_M4_DPLL_PER,
895         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK,
896         .ops            = &clkops_omap4_dpllmx_ops,
897         .recalc         = &omap2_clksel_recalc,
898         .round_rate     = &omap2_clksel_round_rate,
899         .set_rate       = &omap2_clksel_set_rate,
900 };
901
902 static struct clk dpll_per_m5x2_ck = {
903         .name           = "dpll_per_m5x2_ck",
904         .parent         = &dpll_per_x2_ck,
905         .clksel         = dpll_per_m2x2_div,
906         .clksel_reg     = OMAP4430_CM_DIV_M5_DPLL_PER,
907         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK,
908         .ops            = &clkops_omap4_dpllmx_ops,
909         .recalc         = &omap2_clksel_recalc,
910         .round_rate     = &omap2_clksel_round_rate,
911         .set_rate       = &omap2_clksel_set_rate,
912 };
913
914 static struct clk dpll_per_m6x2_ck = {
915         .name           = "dpll_per_m6x2_ck",
916         .parent         = &dpll_per_x2_ck,
917         .clksel         = dpll_per_m2x2_div,
918         .clksel_reg     = OMAP4430_CM_DIV_M6_DPLL_PER,
919         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK,
920         .ops            = &clkops_omap4_dpllmx_ops,
921         .recalc         = &omap2_clksel_recalc,
922         .round_rate     = &omap2_clksel_round_rate,
923         .set_rate       = &omap2_clksel_set_rate,
924 };
925
926 static struct clk dpll_per_m7x2_ck = {
927         .name           = "dpll_per_m7x2_ck",
928         .parent         = &dpll_per_x2_ck,
929         .clksel         = dpll_per_m2x2_div,
930         .clksel_reg     = OMAP4430_CM_DIV_M7_DPLL_PER,
931         .clksel_mask    = OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK,
932         .ops            = &clkops_omap4_dpllmx_ops,
933         .recalc         = &omap2_clksel_recalc,
934         .round_rate     = &omap2_clksel_round_rate,
935         .set_rate       = &omap2_clksel_set_rate,
936 };
937
938 static struct clk usb_hs_clk_div_ck = {
939         .name           = "usb_hs_clk_div_ck",
940         .parent         = &dpll_abe_m3x2_ck,
941         .ops            = &clkops_null,
942         .fixed_div      = 3,
943         .recalc         = &omap_fixed_divisor_recalc,
944 };
945
946 /* DPLL_USB */
947 static struct dpll_data dpll_usb_dd = {
948         .mult_div1_reg  = OMAP4430_CM_CLKSEL_DPLL_USB,
949         .clk_bypass     = &usb_hs_clk_div_ck,
950         .flags          = DPLL_J_TYPE,
951         .clk_ref        = &sys_clkin_ck,
952         .control_reg    = OMAP4430_CM_CLKMODE_DPLL_USB,
953         .modes          = (1 << DPLL_LOW_POWER_BYPASS) | (1 << DPLL_LOCKED),
954         .autoidle_reg   = OMAP4430_CM_AUTOIDLE_DPLL_USB,
955         .idlest_reg     = OMAP4430_CM_IDLEST_DPLL_USB,
956         .mult_mask      = OMAP4430_DPLL_MULT_MASK,
957         .div1_mask      = OMAP4430_DPLL_DIV_MASK,
958         .enable_mask    = OMAP4430_DPLL_EN_MASK,
959         .autoidle_mask  = OMAP4430_AUTO_DPLL_MODE_MASK,
960         .idlest_mask    = OMAP4430_ST_DPLL_CLK_MASK,
961         .sddiv_mask     = OMAP4430_DPLL_SD_DIV_MASK,
962         .max_multiplier = 4095,
963         .max_divider    = 256,
964         .min_divider    = 1,
965 };
966
967
968 static struct clk dpll_usb_ck = {
969         .name           = "dpll_usb_ck",
970         .parent         = &sys_clkin_ck,
971         .dpll_data      = &dpll_usb_dd,
972         .init           = &omap2_init_dpll_parent,
973         .ops            = &clkops_omap3_noncore_dpll_ops,
974         .recalc         = &omap3_dpll_recalc,
975         .round_rate     = &omap2_dpll_round_rate,
976         .set_rate       = &omap3_noncore_dpll_set_rate,
977 };
978
979 static struct clk dpll_usb_clkdcoldo_ck = {
980         .name           = "dpll_usb_clkdcoldo_ck",
981         .parent         = &dpll_usb_ck,
982         .clksel_reg     = OMAP4430_CM_CLKDCOLDO_DPLL_USB,
983         .ops            = &clkops_omap4_dpllmx_ops,
984         .recalc         = &followparent_recalc,
985 };
986
987 static const struct clksel dpll_usb_m2_div[] = {
988         { .parent = &dpll_usb_ck, .rates = div31_1to31_rates },
989         { .parent = NULL },
990 };
991
992 static struct clk dpll_usb_m2_ck = {
993         .name           = "dpll_usb_m2_ck",
994         .parent         = &dpll_usb_ck,
995         .clksel         = dpll_usb_m2_div,
996         .clksel_reg     = OMAP4430_CM_DIV_M2_DPLL_USB,
997         .clksel_mask    = OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK,
998         .ops            = &clkops_omap4_dpllmx_ops,
999         .recalc         = &omap2_clksel_recalc,
1000         .round_rate     = &omap2_clksel_round_rate,
1001         .set_rate       = &omap2_clksel_set_rate,
1002 };
1003
1004 static const struct clksel ducati_clk_mux_sel[] = {
1005         { .parent = &div_core_ck, .rates = div_1_0_rates },
1006         { .parent = &dpll_per_m6x2_ck, .rates = div_1_1_rates },
1007         { .parent = NULL },
1008 };
1009
1010 static struct clk ducati_clk_mux_ck = {
1011         .name           = "ducati_clk_mux_ck",
1012         .parent         = &div_core_ck,
1013         .clksel         = ducati_clk_mux_sel,
1014         .init           = &omap2_init_clksel_parent,
1015         .clksel_reg     = OMAP4430_CM_CLKSEL_DUCATI_ISS_ROOT,
1016         .clksel_mask    = OMAP4430_CLKSEL_0_0_MASK,
1017         .ops            = &clkops_null,
1018         .recalc         = &omap2_clksel_recalc,
1019 };
1020
1021 static struct clk func_12m_fclk = {
1022         .name           = "func_12m_fclk",
1023         .parent         = &dpll_per_m2x2_ck,
1024         .ops            = &clkops_null,
1025         .fixed_div      = 16,
1026         .recalc         = &omap_fixed_divisor_recalc,
1027 };
1028
1029 static struct clk func_24m_clk = {
1030         .name           = "func_24m_clk",
1031         .parent         = &dpll_per_m2_ck,
1032         .ops            = &clkops_null,
1033         .fixed_div      = 4,
1034         .recalc         = &omap_fixed_divisor_recalc,
1035 };
1036
1037 static struct clk func_24mc_fclk = {
1038         .name           = "func_24mc_fclk",
1039         .parent         = &dpll_per_m2x2_ck,
1040         .ops            = &clkops_null,
1041         .fixed_div      = 8,
1042         .recalc         = &omap_fixed_divisor_recalc,
1043 };
1044
1045 static const struct clksel_rate div2_4to8_rates[] = {
1046         { .div = 4, .val = 0, .flags = RATE_IN_4430 },
1047         { .div = 8, .val = 1, .flags = RATE_IN_4430 },
1048         { .div = 0 },
1049 };
1050
1051 static const struct clksel func_48m_fclk_div[] = {
1052         { .parent = &dpll_per_m2x2_ck, .rates = div2_4to8_rates },
1053         { .parent = NULL },
1054 };
1055
1056 static struct clk func_48m_fclk = {
1057         .name           = "func_48m_fclk",
1058         .parent         = &dpll_per_m2x2_ck,
1059         .clksel         = func_48m_fclk_div,
1060         .clksel_reg     = OMAP4430_CM_SCALE_FCLK,
1061         .clksel_mask    = OMAP4430_SCALE_FCLK_MASK,
1062         .ops            = &clkops_null,
1063         .recalc         = &omap2_clksel_recalc,
1064         .round_rate     = &omap2_clksel_round_rate,
1065         .set_rate       = &omap2_clksel_set_rate,
1066 };
1067
1068 static struct clk func_48mc_fclk = {
1069         .name           = "func_48mc_fclk",
1070         .parent         = &dpll_per_m2x2_ck,
1071         .ops            = &clkops_null,
1072         .fixed_div      = 4,
1073         .recalc         = &omap_fixed_divisor_recalc,
1074 };
1075
1076 static const struct clksel_rate div2_2to4_rates[] = {
1077         { .div = 2, .val = 0, .flags = RATE_IN_4430 },
1078         { .div = 4, .val = 1, .flags = RATE_IN_4430 },
1079         { .div = 0 },
1080 };
1081
1082 static const struct clksel func_64m_fclk_div[] = {
1083         { .parent = &dpll_per_m4x2_ck, .rates = div2_2to4_rates },
1084         { .parent = NULL },
1085 };
1086
1087 static struct clk func_64m_fclk = {
1088         .name           = "func_64m_fclk",
1089         .parent         = &dpll_per_m4x2_ck,
1090         .clksel         = func_64m_fclk_div,
1091         .clksel_reg     = OMAP4430_CM_SCALE_FCLK,
1092         .clksel_mask    = OMAP4430_SCALE_FCLK_MASK,
1093         .ops            = &clkops_null,
1094         .recalc         = &omap2_clksel_recalc,
1095         .round_rate     = &omap2_clksel_round_rate,
1096         .set_rate       = &omap2_clksel_set_rate,
1097 };
1098
1099 static const struct clksel func_96m_fclk_div[] = {
1100         { .parent = &dpll_per_m2x2_ck, .rates = div2_2to4_rates },
1101         { .parent = NULL },
1102 };
1103
1104 static struct clk func_96m_fclk = {
1105         .name           = "func_96m_fclk",
1106         .parent         = &dpll_per_m2x2_ck,
1107         .clksel         = func_96m_fclk_div,
1108         .clksel_reg     = OMAP4430_CM_SCALE_FCLK,
1109         .clksel_mask    = OMAP4430_SCALE_FCLK_MASK,
1110         .ops            = &clkops_null,
1111         .recalc         = &omap2_clksel_recalc,
1112         .round_rate     = &omap2_clksel_round_rate,
1113         .set_rate       = &omap2_clksel_set_rate,
1114 };
1115
1116 static const struct clksel_rate div2_1to8_rates[] = {
1117         { .div = 1, .val = 0, .flags = RATE_IN_4430 },
1118         { .div = 8, .val = 1, .flags = RATE_IN_4430 },
1119         { .div = 0 },
1120 };
1121
1122 static const struct clksel init_60m_fclk_div[] = {
1123         { .parent = &dpll_usb_m2_ck, .rates = div2_1to8_rates },
1124         { .parent = NULL },
1125 };
1126
1127 static struct clk init_60m_fclk = {
1128         .name           = "init_60m_fclk",
1129         .parent         = &dpll_usb_m2_ck,
1130         .clksel         = init_60m_fclk_div,
1131         .clksel_reg     = OMAP4430_CM_CLKSEL_USB_60MHZ,
1132         .clksel_mask    = OMAP4430_CLKSEL_0_0_MASK,
1133         .ops            = &clkops_null,
1134         .recalc         = &omap2_clksel_recalc,
1135         .round_rate     = &omap2_clksel_round_rate,
1136         .set_rate       = &omap2_clksel_set_rate,
1137 };
1138
1139 static const struct clksel l3_div_div[] = {
1140         { .parent = &div_core_ck, .rates = div2_1to2_rates },
1141         { .parent = NULL },
1142 };
1143
1144 static struct clk l3_div_ck = {
1145         .name           = "l3_div_ck",
1146         .parent         = &div_core_ck,
1147         .clksel         = l3_div_div,
1148         .clksel_reg     = OMAP4430_CM_CLKSEL_CORE,
1149         .clksel_mask    = OMAP4430_CLKSEL_L3_MASK,
1150         .ops            = &clkops_null,
1151         .recalc         = &omap2_clksel_recalc,
1152         .round_rate     = &omap2_clksel_round_rate,
1153         .set_rate       = &omap2_clksel_set_rate,
1154 };
1155
1156 static const struct clksel l4_div_div[] = {
1157         { .parent = &l3_div_ck, .rates = div2_1to2_rates },
1158         { .parent = NULL },
1159 };
1160
1161 static struct clk l4_div_ck = {
1162         .name           = "l4_div_ck",
1163         .parent         = &l3_div_ck,
1164         .clksel         = l4_div_div,
1165         .clksel_reg     = OMAP4430_CM_CLKSEL_CORE,
1166         .clksel_mask    = OMAP4430_CLKSEL_L4_MASK,
1167         .ops            = &clkops_null,
1168         .recalc         = &omap2_clksel_recalc,
1169         .round_rate     = &omap2_clksel_round_rate,
1170         .set_rate       = &omap2_clksel_set_rate,
1171 };
1172
1173 static struct clk lp_clk_div_ck = {
1174         .name           = "lp_clk_div_ck",
1175         .parent         = &dpll_abe_m2x2_ck,
1176         .ops            = &clkops_null,
1177         .fixed_div      = 16,
1178         .recalc         = &omap_fixed_divisor_recalc,
1179 };
1180
1181 static const struct clksel l4_wkup_clk_mux_sel[] = {
1182         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
1183         { .parent = &lp_clk_div_ck, .rates = div_1_1_rates },
1184         { .parent = NULL },
1185 };
1186
1187 static struct clk l4_wkup_clk_mux_ck = {
1188         .name           = "l4_wkup_clk_mux_ck",
1189         .parent         = &sys_clkin_ck,
1190         .clksel         = l4_wkup_clk_mux_sel,
1191         .init           = &omap2_init_clksel_parent,
1192         .clksel_reg     = OMAP4430_CM_L4_WKUP_CLKSEL,
1193         .clksel_mask    = OMAP4430_CLKSEL_0_0_MASK,
1194         .ops            = &clkops_null,
1195         .recalc         = &omap2_clksel_recalc,
1196 };
1197
1198 static struct clk ocp_abe_iclk = {
1199         .name           = "ocp_abe_iclk",
1200         .parent         = &aess_fclk,
1201         .ops            = &clkops_null,
1202         .recalc         = &followparent_recalc,
1203 };
1204
1205 static struct clk per_abe_24m_fclk = {
1206         .name           = "per_abe_24m_fclk",
1207         .parent         = &dpll_abe_m2_ck,
1208         .ops            = &clkops_null,
1209         .fixed_div      = 4,
1210         .recalc         = &omap_fixed_divisor_recalc,
1211 };
1212
1213 static const struct clksel per_abe_nc_fclk_div[] = {
1214         { .parent = &dpll_abe_m2_ck, .rates = div2_1to2_rates },
1215         { .parent = NULL },
1216 };
1217
1218 static struct clk per_abe_nc_fclk = {
1219         .name           = "per_abe_nc_fclk",
1220         .parent         = &dpll_abe_m2_ck,
1221         .clksel         = per_abe_nc_fclk_div,
1222         .clksel_reg     = OMAP4430_CM_SCALE_FCLK,
1223         .clksel_mask    = OMAP4430_SCALE_FCLK_MASK,
1224         .ops            = &clkops_null,
1225         .recalc         = &omap2_clksel_recalc,
1226         .round_rate     = &omap2_clksel_round_rate,
1227         .set_rate       = &omap2_clksel_set_rate,
1228 };
1229
1230 static const struct clksel pmd_stm_clock_mux_sel[] = {
1231         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
1232         { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates },
1233         { .parent = &tie_low_clock_ck, .rates = div_1_2_rates },
1234         { .parent = NULL },
1235 };
1236
1237 static struct clk pmd_stm_clock_mux_ck = {
1238         .name           = "pmd_stm_clock_mux_ck",
1239         .parent         = &sys_clkin_ck,
1240         .ops            = &clkops_null,
1241         .recalc         = &followparent_recalc,
1242 };
1243
1244 static struct clk pmd_trace_clk_mux_ck = {
1245         .name           = "pmd_trace_clk_mux_ck",
1246         .parent         = &sys_clkin_ck,
1247         .ops            = &clkops_null,
1248         .recalc         = &followparent_recalc,
1249 };
1250
1251 static const struct clksel syc_clk_div_div[] = {
1252         { .parent = &sys_clkin_ck, .rates = div2_1to2_rates },
1253         { .parent = NULL },
1254 };
1255
1256 static struct clk syc_clk_div_ck = {
1257         .name           = "syc_clk_div_ck",
1258         .parent         = &sys_clkin_ck,
1259         .clksel         = syc_clk_div_div,
1260         .clksel_reg     = OMAP4430_CM_ABE_DSS_SYS_CLKSEL,
1261         .clksel_mask    = OMAP4430_CLKSEL_0_0_MASK,
1262         .ops            = &clkops_null,
1263         .recalc         = &omap2_clksel_recalc,
1264         .round_rate     = &omap2_clksel_round_rate,
1265         .set_rate       = &omap2_clksel_set_rate,
1266 };
1267
1268 /* Leaf clocks controlled by modules */
1269
1270 static struct clk aes1_fck = {
1271         .name           = "aes1_fck",
1272         .ops            = &clkops_omap2_dflt,
1273         .enable_reg     = OMAP4430_CM_L4SEC_AES1_CLKCTRL,
1274         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1275         .clkdm_name     = "l4_secure_clkdm",
1276         .parent         = &l3_div_ck,
1277         .recalc         = &followparent_recalc,
1278 };
1279
1280 static struct clk aes2_fck = {
1281         .name           = "aes2_fck",
1282         .ops            = &clkops_omap2_dflt,
1283         .enable_reg     = OMAP4430_CM_L4SEC_AES2_CLKCTRL,
1284         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1285         .clkdm_name     = "l4_secure_clkdm",
1286         .parent         = &l3_div_ck,
1287         .recalc         = &followparent_recalc,
1288 };
1289
1290 static struct clk aess_fck = {
1291         .name           = "aess_fck",
1292         .ops            = &clkops_omap2_dflt,
1293         .enable_reg     = OMAP4430_CM1_ABE_AESS_CLKCTRL,
1294         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1295         .clkdm_name     = "abe_clkdm",
1296         .parent         = &aess_fclk,
1297         .recalc         = &followparent_recalc,
1298 };
1299
1300 static struct clk bandgap_fclk = {
1301         .name           = "bandgap_fclk",
1302         .ops            = &clkops_omap2_dflt,
1303         .enable_reg     = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
1304         .enable_bit     = OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT,
1305         .clkdm_name     = "l4_wkup_clkdm",
1306         .parent         = &sys_32k_ck,
1307         .recalc         = &followparent_recalc,
1308 };
1309
1310 static struct clk des3des_fck = {
1311         .name           = "des3des_fck",
1312         .ops            = &clkops_omap2_dflt,
1313         .enable_reg     = OMAP4430_CM_L4SEC_DES3DES_CLKCTRL,
1314         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1315         .clkdm_name     = "l4_secure_clkdm",
1316         .parent         = &l4_div_ck,
1317         .recalc         = &followparent_recalc,
1318 };
1319
1320 static const struct clksel dmic_sync_mux_sel[] = {
1321         { .parent = &abe_24m_fclk, .rates = div_1_0_rates },
1322         { .parent = &syc_clk_div_ck, .rates = div_1_1_rates },
1323         { .parent = &func_24m_clk, .rates = div_1_2_rates },
1324         { .parent = NULL },
1325 };
1326
1327 static struct clk dmic_sync_mux_ck = {
1328         .name           = "dmic_sync_mux_ck",
1329         .parent         = &abe_24m_fclk,
1330         .clksel         = dmic_sync_mux_sel,
1331         .init           = &omap2_init_clksel_parent,
1332         .clksel_reg     = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1333         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1334         .ops            = &clkops_null,
1335         .recalc         = &omap2_clksel_recalc,
1336 };
1337
1338 static const struct clksel func_dmic_abe_gfclk_sel[] = {
1339         { .parent = &dmic_sync_mux_ck, .rates = div_1_0_rates },
1340         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1341         { .parent = &slimbus_clk, .rates = div_1_2_rates },
1342         { .parent = NULL },
1343 };
1344
1345 /* Merged func_dmic_abe_gfclk into dmic */
1346 static struct clk dmic_fck = {
1347         .name           = "dmic_fck",
1348         .parent         = &dmic_sync_mux_ck,
1349         .clksel         = func_dmic_abe_gfclk_sel,
1350         .init           = &omap2_init_clksel_parent,
1351         .clksel_reg     = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1352         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_MASK,
1353         .ops            = &clkops_omap2_dflt,
1354         .recalc         = &omap2_clksel_recalc,
1355         .enable_reg     = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1356         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1357         .clkdm_name     = "abe_clkdm",
1358 };
1359
1360 static struct clk dsp_fck = {
1361         .name           = "dsp_fck",
1362         .ops            = &clkops_omap2_dflt,
1363         .enable_reg     = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1364         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1365         .clkdm_name     = "tesla_clkdm",
1366         .parent         = &dpll_iva_m4x2_ck,
1367         .recalc         = &followparent_recalc,
1368 };
1369
1370 static struct clk dss_sys_clk = {
1371         .name           = "dss_sys_clk",
1372         .ops            = &clkops_omap2_dflt,
1373         .enable_reg     = OMAP4430_CM_DSS_DSS_CLKCTRL,
1374         .enable_bit     = OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT,
1375         .clkdm_name     = "l3_dss_clkdm",
1376         .parent         = &syc_clk_div_ck,
1377         .recalc         = &followparent_recalc,
1378 };
1379
1380 static struct clk dss_tv_clk = {
1381         .name           = "dss_tv_clk",
1382         .ops            = &clkops_omap2_dflt,
1383         .enable_reg     = OMAP4430_CM_DSS_DSS_CLKCTRL,
1384         .enable_bit     = OMAP4430_OPTFCLKEN_TV_CLK_SHIFT,
1385         .clkdm_name     = "l3_dss_clkdm",
1386         .parent         = &extalt_clkin_ck,
1387         .recalc         = &followparent_recalc,
1388 };
1389
1390 static struct clk dss_dss_clk = {
1391         .name           = "dss_dss_clk",
1392         .ops            = &clkops_omap2_dflt,
1393         .enable_reg     = OMAP4430_CM_DSS_DSS_CLKCTRL,
1394         .enable_bit     = OMAP4430_OPTFCLKEN_DSSCLK_SHIFT,
1395         .clkdm_name     = "l3_dss_clkdm",
1396         .parent         = &dpll_per_m5x2_ck,
1397         .recalc         = &followparent_recalc,
1398 };
1399
1400 static struct clk dss_48mhz_clk = {
1401         .name           = "dss_48mhz_clk",
1402         .ops            = &clkops_omap2_dflt,
1403         .enable_reg     = OMAP4430_CM_DSS_DSS_CLKCTRL,
1404         .enable_bit     = OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT,
1405         .clkdm_name     = "l3_dss_clkdm",
1406         .parent         = &func_48mc_fclk,
1407         .recalc         = &followparent_recalc,
1408 };
1409
1410 static struct clk dss_fck = {
1411         .name           = "dss_fck",
1412         .ops            = &clkops_omap2_dflt,
1413         .enable_reg     = OMAP4430_CM_DSS_DSS_CLKCTRL,
1414         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1415         .clkdm_name     = "l3_dss_clkdm",
1416         .parent         = &l3_div_ck,
1417         .recalc         = &followparent_recalc,
1418 };
1419
1420 static struct clk efuse_ctrl_cust_fck = {
1421         .name           = "efuse_ctrl_cust_fck",
1422         .ops            = &clkops_omap2_dflt,
1423         .enable_reg     = OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL,
1424         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1425         .clkdm_name     = "l4_cefuse_clkdm",
1426         .parent         = &sys_clkin_ck,
1427         .recalc         = &followparent_recalc,
1428 };
1429
1430 static struct clk emif1_fck = {
1431         .name           = "emif1_fck",
1432         .ops            = &clkops_omap2_dflt,
1433         .enable_reg     = OMAP4430_CM_MEMIF_EMIF_1_CLKCTRL,
1434         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1435         .flags          = ENABLE_ON_INIT,
1436         .clkdm_name     = "l3_emif_clkdm",
1437         .parent         = &ddrphy_ck,
1438         .recalc         = &followparent_recalc,
1439 };
1440
1441 static struct clk emif2_fck = {
1442         .name           = "emif2_fck",
1443         .ops            = &clkops_omap2_dflt,
1444         .enable_reg     = OMAP4430_CM_MEMIF_EMIF_2_CLKCTRL,
1445         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1446         .flags          = ENABLE_ON_INIT,
1447         .clkdm_name     = "l3_emif_clkdm",
1448         .parent         = &ddrphy_ck,
1449         .recalc         = &followparent_recalc,
1450 };
1451
1452 static const struct clksel fdif_fclk_div[] = {
1453         { .parent = &dpll_per_m4x2_ck, .rates = div3_1to4_rates },
1454         { .parent = NULL },
1455 };
1456
1457 /* Merged fdif_fclk into fdif */
1458 static struct clk fdif_fck = {
1459         .name           = "fdif_fck",
1460         .parent         = &dpll_per_m4x2_ck,
1461         .clksel         = fdif_fclk_div,
1462         .clksel_reg     = OMAP4430_CM_CAM_FDIF_CLKCTRL,
1463         .clksel_mask    = OMAP4430_CLKSEL_FCLK_MASK,
1464         .ops            = &clkops_omap2_dflt,
1465         .recalc         = &omap2_clksel_recalc,
1466         .round_rate     = &omap2_clksel_round_rate,
1467         .set_rate       = &omap2_clksel_set_rate,
1468         .enable_reg     = OMAP4430_CM_CAM_FDIF_CLKCTRL,
1469         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1470         .clkdm_name     = "iss_clkdm",
1471 };
1472
1473 static struct clk fpka_fck = {
1474         .name           = "fpka_fck",
1475         .ops            = &clkops_omap2_dflt,
1476         .enable_reg     = OMAP4430_CM_L4SEC_PKAEIP29_CLKCTRL,
1477         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1478         .clkdm_name     = "l4_secure_clkdm",
1479         .parent         = &l4_div_ck,
1480         .recalc         = &followparent_recalc,
1481 };
1482
1483 static struct clk gpio1_dbclk = {
1484         .name           = "gpio1_dbclk",
1485         .ops            = &clkops_omap2_dflt,
1486         .enable_reg     = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1487         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1488         .clkdm_name     = "l4_wkup_clkdm",
1489         .parent         = &sys_32k_ck,
1490         .recalc         = &followparent_recalc,
1491 };
1492
1493 static struct clk gpio1_ick = {
1494         .name           = "gpio1_ick",
1495         .ops            = &clkops_omap2_dflt,
1496         .enable_reg     = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1497         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1498         .clkdm_name     = "l4_wkup_clkdm",
1499         .parent         = &l4_wkup_clk_mux_ck,
1500         .recalc         = &followparent_recalc,
1501 };
1502
1503 static struct clk gpio2_dbclk = {
1504         .name           = "gpio2_dbclk",
1505         .ops            = &clkops_omap2_dflt,
1506         .enable_reg     = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1507         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1508         .clkdm_name     = "l4_per_clkdm",
1509         .parent         = &sys_32k_ck,
1510         .recalc         = &followparent_recalc,
1511 };
1512
1513 static struct clk gpio2_ick = {
1514         .name           = "gpio2_ick",
1515         .ops            = &clkops_omap2_dflt,
1516         .enable_reg     = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1517         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1518         .clkdm_name     = "l4_per_clkdm",
1519         .parent         = &l4_div_ck,
1520         .recalc         = &followparent_recalc,
1521 };
1522
1523 static struct clk gpio3_dbclk = {
1524         .name           = "gpio3_dbclk",
1525         .ops            = &clkops_omap2_dflt,
1526         .enable_reg     = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1527         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1528         .clkdm_name     = "l4_per_clkdm",
1529         .parent         = &sys_32k_ck,
1530         .recalc         = &followparent_recalc,
1531 };
1532
1533 static struct clk gpio3_ick = {
1534         .name           = "gpio3_ick",
1535         .ops            = &clkops_omap2_dflt,
1536         .enable_reg     = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1537         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1538         .clkdm_name     = "l4_per_clkdm",
1539         .parent         = &l4_div_ck,
1540         .recalc         = &followparent_recalc,
1541 };
1542
1543 static struct clk gpio4_dbclk = {
1544         .name           = "gpio4_dbclk",
1545         .ops            = &clkops_omap2_dflt,
1546         .enable_reg     = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1547         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1548         .clkdm_name     = "l4_per_clkdm",
1549         .parent         = &sys_32k_ck,
1550         .recalc         = &followparent_recalc,
1551 };
1552
1553 static struct clk gpio4_ick = {
1554         .name           = "gpio4_ick",
1555         .ops            = &clkops_omap2_dflt,
1556         .enable_reg     = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1557         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1558         .clkdm_name     = "l4_per_clkdm",
1559         .parent         = &l4_div_ck,
1560         .recalc         = &followparent_recalc,
1561 };
1562
1563 static struct clk gpio5_dbclk = {
1564         .name           = "gpio5_dbclk",
1565         .ops            = &clkops_omap2_dflt,
1566         .enable_reg     = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1567         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1568         .clkdm_name     = "l4_per_clkdm",
1569         .parent         = &sys_32k_ck,
1570         .recalc         = &followparent_recalc,
1571 };
1572
1573 static struct clk gpio5_ick = {
1574         .name           = "gpio5_ick",
1575         .ops            = &clkops_omap2_dflt,
1576         .enable_reg     = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1577         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1578         .clkdm_name     = "l4_per_clkdm",
1579         .parent         = &l4_div_ck,
1580         .recalc         = &followparent_recalc,
1581 };
1582
1583 static struct clk gpio6_dbclk = {
1584         .name           = "gpio6_dbclk",
1585         .ops            = &clkops_omap2_dflt,
1586         .enable_reg     = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1587         .enable_bit     = OMAP4430_OPTFCLKEN_DBCLK_SHIFT,
1588         .clkdm_name     = "l4_per_clkdm",
1589         .parent         = &sys_32k_ck,
1590         .recalc         = &followparent_recalc,
1591 };
1592
1593 static struct clk gpio6_ick = {
1594         .name           = "gpio6_ick",
1595         .ops            = &clkops_omap2_dflt,
1596         .enable_reg     = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1597         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1598         .clkdm_name     = "l4_per_clkdm",
1599         .parent         = &l4_div_ck,
1600         .recalc         = &followparent_recalc,
1601 };
1602
1603 static struct clk gpmc_ick = {
1604         .name           = "gpmc_ick",
1605         .ops            = &clkops_omap2_dflt,
1606         .enable_reg     = OMAP4430_CM_L3_2_GPMC_CLKCTRL,
1607         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1608         .clkdm_name     = "l3_2_clkdm",
1609         .parent         = &l3_div_ck,
1610         .recalc         = &followparent_recalc,
1611 };
1612
1613 static const struct clksel sgx_clk_mux_sel[] = {
1614         { .parent = &dpll_core_m7x2_ck, .rates = div_1_0_rates },
1615         { .parent = &dpll_per_m7x2_ck, .rates = div_1_1_rates },
1616         { .parent = NULL },
1617 };
1618
1619 /* Merged sgx_clk_mux into gpu */
1620 static struct clk gpu_fck = {
1621         .name           = "gpu_fck",
1622         .parent         = &dpll_core_m7x2_ck,
1623         .clksel         = sgx_clk_mux_sel,
1624         .init           = &omap2_init_clksel_parent,
1625         .clksel_reg     = OMAP4430_CM_GFX_GFX_CLKCTRL,
1626         .clksel_mask    = OMAP4430_CLKSEL_SGX_FCLK_MASK,
1627         .ops            = &clkops_omap2_dflt,
1628         .recalc         = &omap2_clksel_recalc,
1629         .enable_reg     = OMAP4430_CM_GFX_GFX_CLKCTRL,
1630         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1631         .clkdm_name     = "l3_gfx_clkdm",
1632 };
1633
1634 static struct clk hdq1w_fck = {
1635         .name           = "hdq1w_fck",
1636         .ops            = &clkops_omap2_dflt,
1637         .enable_reg     = OMAP4430_CM_L4PER_HDQ1W_CLKCTRL,
1638         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1639         .clkdm_name     = "l4_per_clkdm",
1640         .parent         = &func_12m_fclk,
1641         .recalc         = &followparent_recalc,
1642 };
1643
1644 static const struct clksel hsi_fclk_div[] = {
1645         { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates },
1646         { .parent = NULL },
1647 };
1648
1649 /* Merged hsi_fclk into hsi */
1650 static struct clk hsi_fck = {
1651         .name           = "hsi_fck",
1652         .parent         = &dpll_per_m2x2_ck,
1653         .clksel         = hsi_fclk_div,
1654         .clksel_reg     = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
1655         .clksel_mask    = OMAP4430_CLKSEL_24_25_MASK,
1656         .ops            = &clkops_omap2_dflt,
1657         .recalc         = &omap2_clksel_recalc,
1658         .round_rate     = &omap2_clksel_round_rate,
1659         .set_rate       = &omap2_clksel_set_rate,
1660         .enable_reg     = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
1661         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1662         .clkdm_name     = "l3_init_clkdm",
1663 };
1664
1665 static struct clk i2c1_fck = {
1666         .name           = "i2c1_fck",
1667         .ops            = &clkops_omap2_dflt,
1668         .enable_reg     = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
1669         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1670         .clkdm_name     = "l4_per_clkdm",
1671         .parent         = &func_96m_fclk,
1672         .recalc         = &followparent_recalc,
1673 };
1674
1675 static struct clk i2c2_fck = {
1676         .name           = "i2c2_fck",
1677         .ops            = &clkops_omap2_dflt,
1678         .enable_reg     = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
1679         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1680         .clkdm_name     = "l4_per_clkdm",
1681         .parent         = &func_96m_fclk,
1682         .recalc         = &followparent_recalc,
1683 };
1684
1685 static struct clk i2c3_fck = {
1686         .name           = "i2c3_fck",
1687         .ops            = &clkops_omap2_dflt,
1688         .enable_reg     = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
1689         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1690         .clkdm_name     = "l4_per_clkdm",
1691         .parent         = &func_96m_fclk,
1692         .recalc         = &followparent_recalc,
1693 };
1694
1695 static struct clk i2c4_fck = {
1696         .name           = "i2c4_fck",
1697         .ops            = &clkops_omap2_dflt,
1698         .enable_reg     = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
1699         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1700         .clkdm_name     = "l4_per_clkdm",
1701         .parent         = &func_96m_fclk,
1702         .recalc         = &followparent_recalc,
1703 };
1704
1705 static struct clk ipu_fck = {
1706         .name           = "ipu_fck",
1707         .ops            = &clkops_omap2_dflt,
1708         .enable_reg     = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
1709         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1710         .clkdm_name     = "ducati_clkdm",
1711         .parent         = &ducati_clk_mux_ck,
1712         .recalc         = &followparent_recalc,
1713 };
1714
1715 static struct clk iss_ctrlclk = {
1716         .name           = "iss_ctrlclk",
1717         .ops            = &clkops_omap2_dflt,
1718         .enable_reg     = OMAP4430_CM_CAM_ISS_CLKCTRL,
1719         .enable_bit     = OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT,
1720         .clkdm_name     = "iss_clkdm",
1721         .parent         = &func_96m_fclk,
1722         .recalc         = &followparent_recalc,
1723 };
1724
1725 static struct clk iss_fck = {
1726         .name           = "iss_fck",
1727         .ops            = &clkops_omap2_dflt,
1728         .enable_reg     = OMAP4430_CM_CAM_ISS_CLKCTRL,
1729         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1730         .clkdm_name     = "iss_clkdm",
1731         .parent         = &ducati_clk_mux_ck,
1732         .recalc         = &followparent_recalc,
1733 };
1734
1735 static struct clk iva_fck = {
1736         .name           = "iva_fck",
1737         .ops            = &clkops_omap2_dflt,
1738         .enable_reg     = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
1739         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1740         .clkdm_name     = "ivahd_clkdm",
1741         .parent         = &dpll_iva_m5x2_ck,
1742         .recalc         = &followparent_recalc,
1743 };
1744
1745 static struct clk kbd_fck = {
1746         .name           = "kbd_fck",
1747         .ops            = &clkops_omap2_dflt,
1748         .enable_reg     = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
1749         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1750         .clkdm_name     = "l4_wkup_clkdm",
1751         .parent         = &sys_32k_ck,
1752         .recalc         = &followparent_recalc,
1753 };
1754
1755 static struct clk l3_instr_ick = {
1756         .name           = "l3_instr_ick",
1757         .ops            = &clkops_omap2_dflt,
1758         .enable_reg     = OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL,
1759         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1760         .flags          = ENABLE_ON_INIT,
1761         .clkdm_name     = "l3_instr_clkdm",
1762         .parent         = &l3_div_ck,
1763         .recalc         = &followparent_recalc,
1764 };
1765
1766 static struct clk l3_main_3_ick = {
1767         .name           = "l3_main_3_ick",
1768         .ops            = &clkops_omap2_dflt,
1769         .enable_reg     = OMAP4430_CM_L3INSTR_L3_3_CLKCTRL,
1770         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
1771         .flags          = ENABLE_ON_INIT,
1772         .clkdm_name     = "l3_instr_clkdm",
1773         .parent         = &l3_div_ck,
1774         .recalc         = &followparent_recalc,
1775 };
1776
1777 static struct clk mcasp_sync_mux_ck = {
1778         .name           = "mcasp_sync_mux_ck",
1779         .parent         = &abe_24m_fclk,
1780         .clksel         = dmic_sync_mux_sel,
1781         .init           = &omap2_init_clksel_parent,
1782         .clksel_reg     = OMAP4430_CM1_ABE_MCASP_CLKCTRL,
1783         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1784         .ops            = &clkops_null,
1785         .recalc         = &omap2_clksel_recalc,
1786 };
1787
1788 static const struct clksel func_mcasp_abe_gfclk_sel[] = {
1789         { .parent = &mcasp_sync_mux_ck, .rates = div_1_0_rates },
1790         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1791         { .parent = &slimbus_clk, .rates = div_1_2_rates },
1792         { .parent = NULL },
1793 };
1794
1795 /* Merged func_mcasp_abe_gfclk into mcasp */
1796 static struct clk mcasp_fck = {
1797         .name           = "mcasp_fck",
1798         .parent         = &mcasp_sync_mux_ck,
1799         .clksel         = func_mcasp_abe_gfclk_sel,
1800         .init           = &omap2_init_clksel_parent,
1801         .clksel_reg     = OMAP4430_CM1_ABE_MCASP_CLKCTRL,
1802         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_MASK,
1803         .ops            = &clkops_omap2_dflt,
1804         .recalc         = &omap2_clksel_recalc,
1805         .enable_reg     = OMAP4430_CM1_ABE_MCASP_CLKCTRL,
1806         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1807         .clkdm_name     = "abe_clkdm",
1808 };
1809
1810 static struct clk mcbsp1_sync_mux_ck = {
1811         .name           = "mcbsp1_sync_mux_ck",
1812         .parent         = &abe_24m_fclk,
1813         .clksel         = dmic_sync_mux_sel,
1814         .init           = &omap2_init_clksel_parent,
1815         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
1816         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1817         .ops            = &clkops_null,
1818         .recalc         = &omap2_clksel_recalc,
1819 };
1820
1821 static const struct clksel func_mcbsp1_gfclk_sel[] = {
1822         { .parent = &mcbsp1_sync_mux_ck, .rates = div_1_0_rates },
1823         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1824         { .parent = &slimbus_clk, .rates = div_1_2_rates },
1825         { .parent = NULL },
1826 };
1827
1828 /* Merged func_mcbsp1_gfclk into mcbsp1 */
1829 static struct clk mcbsp1_fck = {
1830         .name           = "mcbsp1_fck",
1831         .parent         = &mcbsp1_sync_mux_ck,
1832         .clksel         = func_mcbsp1_gfclk_sel,
1833         .init           = &omap2_init_clksel_parent,
1834         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
1835         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_MASK,
1836         .ops            = &clkops_omap2_dflt,
1837         .recalc         = &omap2_clksel_recalc,
1838         .enable_reg     = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
1839         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1840         .clkdm_name     = "abe_clkdm",
1841 };
1842
1843 static struct clk mcbsp2_sync_mux_ck = {
1844         .name           = "mcbsp2_sync_mux_ck",
1845         .parent         = &abe_24m_fclk,
1846         .clksel         = dmic_sync_mux_sel,
1847         .init           = &omap2_init_clksel_parent,
1848         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
1849         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1850         .ops            = &clkops_null,
1851         .recalc         = &omap2_clksel_recalc,
1852 };
1853
1854 static const struct clksel func_mcbsp2_gfclk_sel[] = {
1855         { .parent = &mcbsp2_sync_mux_ck, .rates = div_1_0_rates },
1856         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1857         { .parent = &slimbus_clk, .rates = div_1_2_rates },
1858         { .parent = NULL },
1859 };
1860
1861 /* Merged func_mcbsp2_gfclk into mcbsp2 */
1862 static struct clk mcbsp2_fck = {
1863         .name           = "mcbsp2_fck",
1864         .parent         = &mcbsp2_sync_mux_ck,
1865         .clksel         = func_mcbsp2_gfclk_sel,
1866         .init           = &omap2_init_clksel_parent,
1867         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
1868         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_MASK,
1869         .ops            = &clkops_omap2_dflt,
1870         .recalc         = &omap2_clksel_recalc,
1871         .enable_reg     = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
1872         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1873         .clkdm_name     = "abe_clkdm",
1874 };
1875
1876 static struct clk mcbsp3_sync_mux_ck = {
1877         .name           = "mcbsp3_sync_mux_ck",
1878         .parent         = &abe_24m_fclk,
1879         .clksel         = dmic_sync_mux_sel,
1880         .init           = &omap2_init_clksel_parent,
1881         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
1882         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1883         .ops            = &clkops_null,
1884         .recalc         = &omap2_clksel_recalc,
1885 };
1886
1887 static const struct clksel func_mcbsp3_gfclk_sel[] = {
1888         { .parent = &mcbsp3_sync_mux_ck, .rates = div_1_0_rates },
1889         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1890         { .parent = &slimbus_clk, .rates = div_1_2_rates },
1891         { .parent = NULL },
1892 };
1893
1894 /* Merged func_mcbsp3_gfclk into mcbsp3 */
1895 static struct clk mcbsp3_fck = {
1896         .name           = "mcbsp3_fck",
1897         .parent         = &mcbsp3_sync_mux_ck,
1898         .clksel         = func_mcbsp3_gfclk_sel,
1899         .init           = &omap2_init_clksel_parent,
1900         .clksel_reg     = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
1901         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_MASK,
1902         .ops            = &clkops_omap2_dflt,
1903         .recalc         = &omap2_clksel_recalc,
1904         .enable_reg     = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
1905         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1906         .clkdm_name     = "abe_clkdm",
1907 };
1908
1909 static const struct clksel mcbsp4_sync_mux_sel[] = {
1910         { .parent = &func_96m_fclk, .rates = div_1_0_rates },
1911         { .parent = &per_abe_nc_fclk, .rates = div_1_1_rates },
1912         { .parent = NULL },
1913 };
1914
1915 static struct clk mcbsp4_sync_mux_ck = {
1916         .name           = "mcbsp4_sync_mux_ck",
1917         .parent         = &func_96m_fclk,
1918         .clksel         = mcbsp4_sync_mux_sel,
1919         .init           = &omap2_init_clksel_parent,
1920         .clksel_reg     = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
1921         .clksel_mask    = OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK,
1922         .ops            = &clkops_null,
1923         .recalc         = &omap2_clksel_recalc,
1924 };
1925
1926 static const struct clksel per_mcbsp4_gfclk_sel[] = {
1927         { .parent = &mcbsp4_sync_mux_ck, .rates = div_1_0_rates },
1928         { .parent = &pad_clks_ck, .rates = div_1_1_rates },
1929         { .parent = NULL },
1930 };
1931
1932 /* Merged per_mcbsp4_gfclk into mcbsp4 */
1933 static struct clk mcbsp4_fck = {
1934         .name           = "mcbsp4_fck",
1935         .parent         = &mcbsp4_sync_mux_ck,
1936         .clksel         = per_mcbsp4_gfclk_sel,
1937         .init           = &omap2_init_clksel_parent,
1938         .clksel_reg     = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
1939         .clksel_mask    = OMAP4430_CLKSEL_SOURCE_24_24_MASK,
1940         .ops            = &clkops_omap2_dflt,
1941         .recalc         = &omap2_clksel_recalc,
1942         .enable_reg     = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
1943         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1944         .clkdm_name     = "l4_per_clkdm",
1945 };
1946
1947 static struct clk mcpdm_fck = {
1948         .name           = "mcpdm_fck",
1949         .ops            = &clkops_omap2_dflt,
1950         .enable_reg     = OMAP4430_CM1_ABE_PDM_CLKCTRL,
1951         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1952         .clkdm_name     = "abe_clkdm",
1953         .parent         = &pad_clks_ck,
1954         .recalc         = &followparent_recalc,
1955 };
1956
1957 static struct clk mcspi1_fck = {
1958         .name           = "mcspi1_fck",
1959         .ops            = &clkops_omap2_dflt,
1960         .enable_reg     = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
1961         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1962         .clkdm_name     = "l4_per_clkdm",
1963         .parent         = &func_48m_fclk,
1964         .recalc         = &followparent_recalc,
1965 };
1966
1967 static struct clk mcspi2_fck = {
1968         .name           = "mcspi2_fck",
1969         .ops            = &clkops_omap2_dflt,
1970         .enable_reg     = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
1971         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1972         .clkdm_name     = "l4_per_clkdm",
1973         .parent         = &func_48m_fclk,
1974         .recalc         = &followparent_recalc,
1975 };
1976
1977 static struct clk mcspi3_fck = {
1978         .name           = "mcspi3_fck",
1979         .ops            = &clkops_omap2_dflt,
1980         .enable_reg     = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
1981         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1982         .clkdm_name     = "l4_per_clkdm",
1983         .parent         = &func_48m_fclk,
1984         .recalc         = &followparent_recalc,
1985 };
1986
1987 static struct clk mcspi4_fck = {
1988         .name           = "mcspi4_fck",
1989         .ops            = &clkops_omap2_dflt,
1990         .enable_reg     = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
1991         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
1992         .clkdm_name     = "l4_per_clkdm",
1993         .parent         = &func_48m_fclk,
1994         .recalc         = &followparent_recalc,
1995 };
1996
1997 static const struct clksel hsmmc1_fclk_sel[] = {
1998         { .parent = &func_64m_fclk, .rates = div_1_0_rates },
1999         { .parent = &func_96m_fclk, .rates = div_1_1_rates },
2000         { .parent = NULL },
2001 };
2002
2003 /* Merged hsmmc1_fclk into mmc1 */
2004 static struct clk mmc1_fck = {
2005         .name           = "mmc1_fck",
2006         .parent         = &func_64m_fclk,
2007         .clksel         = hsmmc1_fclk_sel,
2008         .init           = &omap2_init_clksel_parent,
2009         .clksel_reg     = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
2010         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2011         .ops            = &clkops_omap2_dflt,
2012         .recalc         = &omap2_clksel_recalc,
2013         .enable_reg     = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
2014         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2015         .clkdm_name     = "l3_init_clkdm",
2016 };
2017
2018 /* Merged hsmmc2_fclk into mmc2 */
2019 static struct clk mmc2_fck = {
2020         .name           = "mmc2_fck",
2021         .parent         = &func_64m_fclk,
2022         .clksel         = hsmmc1_fclk_sel,
2023         .init           = &omap2_init_clksel_parent,
2024         .clksel_reg     = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
2025         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2026         .ops            = &clkops_omap2_dflt,
2027         .recalc         = &omap2_clksel_recalc,
2028         .enable_reg     = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
2029         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2030         .clkdm_name     = "l3_init_clkdm",
2031 };
2032
2033 static struct clk mmc3_fck = {
2034         .name           = "mmc3_fck",
2035         .ops            = &clkops_omap2_dflt,
2036         .enable_reg     = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
2037         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2038         .clkdm_name     = "l4_per_clkdm",
2039         .parent         = &func_48m_fclk,
2040         .recalc         = &followparent_recalc,
2041 };
2042
2043 static struct clk mmc4_fck = {
2044         .name           = "mmc4_fck",
2045         .ops            = &clkops_omap2_dflt,
2046         .enable_reg     = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
2047         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2048         .clkdm_name     = "l4_per_clkdm",
2049         .parent         = &func_48m_fclk,
2050         .recalc         = &followparent_recalc,
2051 };
2052
2053 static struct clk mmc5_fck = {
2054         .name           = "mmc5_fck",
2055         .ops            = &clkops_omap2_dflt,
2056         .enable_reg     = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
2057         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2058         .clkdm_name     = "l4_per_clkdm",
2059         .parent         = &func_48m_fclk,
2060         .recalc         = &followparent_recalc,
2061 };
2062
2063 static struct clk ocp2scp_usb_phy_phy_48m = {
2064         .name           = "ocp2scp_usb_phy_phy_48m",
2065         .ops            = &clkops_omap2_dflt,
2066         .enable_reg     = OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL,
2067         .enable_bit     = OMAP4430_OPTFCLKEN_PHY_48M_SHIFT,
2068         .clkdm_name     = "l3_init_clkdm",
2069         .parent         = &func_48m_fclk,
2070         .recalc         = &followparent_recalc,
2071 };
2072
2073 static struct clk ocp2scp_usb_phy_ick = {
2074         .name           = "ocp2scp_usb_phy_ick",
2075         .ops            = &clkops_omap2_dflt,
2076         .enable_reg     = OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL,
2077         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2078         .clkdm_name     = "l3_init_clkdm",
2079         .parent         = &l4_div_ck,
2080         .recalc         = &followparent_recalc,
2081 };
2082
2083 static struct clk ocp_wp_noc_ick = {
2084         .name           = "ocp_wp_noc_ick",
2085         .ops            = &clkops_omap2_dflt,
2086         .enable_reg     = OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL,
2087         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2088         .flags          = ENABLE_ON_INIT,
2089         .clkdm_name     = "l3_instr_clkdm",
2090         .parent         = &l3_div_ck,
2091         .recalc         = &followparent_recalc,
2092 };
2093
2094 static struct clk rng_ick = {
2095         .name           = "rng_ick",
2096         .ops            = &clkops_omap2_dflt,
2097         .enable_reg     = OMAP4430_CM_L4SEC_RNG_CLKCTRL,
2098         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2099         .clkdm_name     = "l4_secure_clkdm",
2100         .parent         = &l4_div_ck,
2101         .recalc         = &followparent_recalc,
2102 };
2103
2104 static struct clk sha2md5_fck = {
2105         .name           = "sha2md5_fck",
2106         .ops            = &clkops_omap2_dflt,
2107         .enable_reg     = OMAP4430_CM_L4SEC_SHA2MD51_CLKCTRL,
2108         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2109         .clkdm_name     = "l4_secure_clkdm",
2110         .parent         = &l3_div_ck,
2111         .recalc         = &followparent_recalc,
2112 };
2113
2114 static struct clk sl2if_ick = {
2115         .name           = "sl2if_ick",
2116         .ops            = &clkops_omap2_dflt,
2117         .enable_reg     = OMAP4430_CM_IVAHD_SL2_CLKCTRL,
2118         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2119         .clkdm_name     = "ivahd_clkdm",
2120         .parent         = &dpll_iva_m5x2_ck,
2121         .recalc         = &followparent_recalc,
2122 };
2123
2124 static struct clk slimbus1_fclk_1 = {
2125         .name           = "slimbus1_fclk_1",
2126         .ops            = &clkops_omap2_dflt,
2127         .enable_reg     = OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL,
2128         .enable_bit     = OMAP4430_OPTFCLKEN_FCLK1_SHIFT,
2129         .clkdm_name     = "abe_clkdm",
2130         .parent         = &func_24m_clk,
2131         .recalc         = &followparent_recalc,
2132 };
2133
2134 static struct clk slimbus1_fclk_0 = {
2135         .name           = "slimbus1_fclk_0",
2136         .ops            = &clkops_omap2_dflt,
2137         .enable_reg     = OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL,
2138         .enable_bit     = OMAP4430_OPTFCLKEN_FCLK0_SHIFT,
2139         .clkdm_name     = "abe_clkdm",
2140         .parent         = &abe_24m_fclk,
2141         .recalc         = &followparent_recalc,
2142 };
2143
2144 static struct clk slimbus1_fclk_2 = {
2145         .name           = "slimbus1_fclk_2",
2146         .ops            = &clkops_omap2_dflt,
2147         .enable_reg     = OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL,
2148         .enable_bit     = OMAP4430_OPTFCLKEN_FCLK2_SHIFT,
2149         .clkdm_name     = "abe_clkdm",
2150         .parent         = &pad_clks_ck,
2151         .recalc         = &followparent_recalc,
2152 };
2153
2154 static struct clk slimbus1_slimbus_clk = {
2155         .name           = "slimbus1_slimbus_clk",
2156         .ops            = &clkops_omap2_dflt,
2157         .enable_reg     = OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL,
2158         .enable_bit     = OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT,
2159         .clkdm_name     = "abe_clkdm",
2160         .parent         = &slimbus_clk,
2161         .recalc         = &followparent_recalc,
2162 };
2163
2164 static struct clk slimbus1_fck = {
2165         .name           = "slimbus1_fck",
2166         .ops            = &clkops_omap2_dflt,
2167         .enable_reg     = OMAP4430_CM1_ABE_SLIMBUS_CLKCTRL,
2168         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2169         .clkdm_name     = "abe_clkdm",
2170         .parent         = &ocp_abe_iclk,
2171         .recalc         = &followparent_recalc,
2172 };
2173
2174 static struct clk slimbus2_fclk_1 = {
2175         .name           = "slimbus2_fclk_1",
2176         .ops            = &clkops_omap2_dflt,
2177         .enable_reg     = OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL,
2178         .enable_bit     = OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT,
2179         .clkdm_name     = "l4_per_clkdm",
2180         .parent         = &per_abe_24m_fclk,
2181         .recalc         = &followparent_recalc,
2182 };
2183
2184 static struct clk slimbus2_fclk_0 = {
2185         .name           = "slimbus2_fclk_0",
2186         .ops            = &clkops_omap2_dflt,
2187         .enable_reg     = OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL,
2188         .enable_bit     = OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT,
2189         .clkdm_name     = "l4_per_clkdm",
2190         .parent         = &func_24mc_fclk,
2191         .recalc         = &followparent_recalc,
2192 };
2193
2194 static struct clk slimbus2_slimbus_clk = {
2195         .name           = "slimbus2_slimbus_clk",
2196         .ops            = &clkops_omap2_dflt,
2197         .enable_reg     = OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL,
2198         .enable_bit     = OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT,
2199         .clkdm_name     = "l4_per_clkdm",
2200         .parent         = &pad_slimbus_core_clks_ck,
2201         .recalc         = &followparent_recalc,
2202 };
2203
2204 static struct clk slimbus2_fck = {
2205         .name           = "slimbus2_fck",
2206         .ops            = &clkops_omap2_dflt,
2207         .enable_reg     = OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL,
2208         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2209         .clkdm_name     = "l4_per_clkdm",
2210         .parent         = &l4_div_ck,
2211         .recalc         = &followparent_recalc,
2212 };
2213
2214 static struct clk smartreflex_core_fck = {
2215         .name           = "smartreflex_core_fck",
2216         .ops            = &clkops_omap2_dflt,
2217         .enable_reg     = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
2218         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2219         .clkdm_name     = "l4_ao_clkdm",
2220         .parent         = &l4_wkup_clk_mux_ck,
2221         .recalc         = &followparent_recalc,
2222 };
2223
2224 static struct clk smartreflex_iva_fck = {
2225         .name           = "smartreflex_iva_fck",
2226         .ops            = &clkops_omap2_dflt,
2227         .enable_reg     = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
2228         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2229         .clkdm_name     = "l4_ao_clkdm",
2230         .parent         = &l4_wkup_clk_mux_ck,
2231         .recalc         = &followparent_recalc,
2232 };
2233
2234 static struct clk smartreflex_mpu_fck = {
2235         .name           = "smartreflex_mpu_fck",
2236         .ops            = &clkops_omap2_dflt,
2237         .enable_reg     = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
2238         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2239         .clkdm_name     = "l4_ao_clkdm",
2240         .parent         = &l4_wkup_clk_mux_ck,
2241         .recalc         = &followparent_recalc,
2242 };
2243
2244 /* Merged dmt1_clk_mux into timer1 */
2245 static struct clk timer1_fck = {
2246         .name           = "timer1_fck",
2247         .parent         = &sys_clkin_ck,
2248         .clksel         = abe_dpll_bypass_clk_mux_sel,
2249         .init           = &omap2_init_clksel_parent,
2250         .clksel_reg     = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
2251         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2252         .ops            = &clkops_omap2_dflt,
2253         .recalc         = &omap2_clksel_recalc,
2254         .enable_reg     = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
2255         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2256         .clkdm_name     = "l4_wkup_clkdm",
2257 };
2258
2259 /* Merged cm2_dm10_mux into timer10 */
2260 static struct clk timer10_fck = {
2261         .name           = "timer10_fck",
2262         .parent         = &sys_clkin_ck,
2263         .clksel         = abe_dpll_bypass_clk_mux_sel,
2264         .init           = &omap2_init_clksel_parent,
2265         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
2266         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2267         .ops            = &clkops_omap2_dflt,
2268         .recalc         = &omap2_clksel_recalc,
2269         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
2270         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2271         .clkdm_name     = "l4_per_clkdm",
2272 };
2273
2274 /* Merged cm2_dm11_mux into timer11 */
2275 static struct clk timer11_fck = {
2276         .name           = "timer11_fck",
2277         .parent         = &sys_clkin_ck,
2278         .clksel         = abe_dpll_bypass_clk_mux_sel,
2279         .init           = &omap2_init_clksel_parent,
2280         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
2281         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2282         .ops            = &clkops_omap2_dflt,
2283         .recalc         = &omap2_clksel_recalc,
2284         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
2285         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2286         .clkdm_name     = "l4_per_clkdm",
2287 };
2288
2289 /* Merged cm2_dm2_mux into timer2 */
2290 static struct clk timer2_fck = {
2291         .name           = "timer2_fck",
2292         .parent         = &sys_clkin_ck,
2293         .clksel         = abe_dpll_bypass_clk_mux_sel,
2294         .init           = &omap2_init_clksel_parent,
2295         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
2296         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2297         .ops            = &clkops_omap2_dflt,
2298         .recalc         = &omap2_clksel_recalc,
2299         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
2300         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2301         .clkdm_name     = "l4_per_clkdm",
2302 };
2303
2304 /* Merged cm2_dm3_mux into timer3 */
2305 static struct clk timer3_fck = {
2306         .name           = "timer3_fck",
2307         .parent         = &sys_clkin_ck,
2308         .clksel         = abe_dpll_bypass_clk_mux_sel,
2309         .init           = &omap2_init_clksel_parent,
2310         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
2311         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2312         .ops            = &clkops_omap2_dflt,
2313         .recalc         = &omap2_clksel_recalc,
2314         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
2315         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2316         .clkdm_name     = "l4_per_clkdm",
2317 };
2318
2319 /* Merged cm2_dm4_mux into timer4 */
2320 static struct clk timer4_fck = {
2321         .name           = "timer4_fck",
2322         .parent         = &sys_clkin_ck,
2323         .clksel         = abe_dpll_bypass_clk_mux_sel,
2324         .init           = &omap2_init_clksel_parent,
2325         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
2326         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2327         .ops            = &clkops_omap2_dflt,
2328         .recalc         = &omap2_clksel_recalc,
2329         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
2330         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2331         .clkdm_name     = "l4_per_clkdm",
2332 };
2333
2334 static const struct clksel timer5_sync_mux_sel[] = {
2335         { .parent = &syc_clk_div_ck, .rates = div_1_0_rates },
2336         { .parent = &sys_32k_ck, .rates = div_1_1_rates },
2337         { .parent = NULL },
2338 };
2339
2340 /* Merged timer5_sync_mux into timer5 */
2341 static struct clk timer5_fck = {
2342         .name           = "timer5_fck",
2343         .parent         = &syc_clk_div_ck,
2344         .clksel         = timer5_sync_mux_sel,
2345         .init           = &omap2_init_clksel_parent,
2346         .clksel_reg     = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
2347         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2348         .ops            = &clkops_omap2_dflt,
2349         .recalc         = &omap2_clksel_recalc,
2350         .enable_reg     = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
2351         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2352         .clkdm_name     = "abe_clkdm",
2353 };
2354
2355 /* Merged timer6_sync_mux into timer6 */
2356 static struct clk timer6_fck = {
2357         .name           = "timer6_fck",
2358         .parent         = &syc_clk_div_ck,
2359         .clksel         = timer5_sync_mux_sel,
2360         .init           = &omap2_init_clksel_parent,
2361         .clksel_reg     = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
2362         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2363         .ops            = &clkops_omap2_dflt,
2364         .recalc         = &omap2_clksel_recalc,
2365         .enable_reg     = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
2366         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2367         .clkdm_name     = "abe_clkdm",
2368 };
2369
2370 /* Merged timer7_sync_mux into timer7 */
2371 static struct clk timer7_fck = {
2372         .name           = "timer7_fck",
2373         .parent         = &syc_clk_div_ck,
2374         .clksel         = timer5_sync_mux_sel,
2375         .init           = &omap2_init_clksel_parent,
2376         .clksel_reg     = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
2377         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2378         .ops            = &clkops_omap2_dflt,
2379         .recalc         = &omap2_clksel_recalc,
2380         .enable_reg     = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
2381         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2382         .clkdm_name     = "abe_clkdm",
2383 };
2384
2385 /* Merged timer8_sync_mux into timer8 */
2386 static struct clk timer8_fck = {
2387         .name           = "timer8_fck",
2388         .parent         = &syc_clk_div_ck,
2389         .clksel         = timer5_sync_mux_sel,
2390         .init           = &omap2_init_clksel_parent,
2391         .clksel_reg     = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
2392         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2393         .ops            = &clkops_omap2_dflt,
2394         .recalc         = &omap2_clksel_recalc,
2395         .enable_reg     = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
2396         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2397         .clkdm_name     = "abe_clkdm",
2398 };
2399
2400 /* Merged cm2_dm9_mux into timer9 */
2401 static struct clk timer9_fck = {
2402         .name           = "timer9_fck",
2403         .parent         = &sys_clkin_ck,
2404         .clksel         = abe_dpll_bypass_clk_mux_sel,
2405         .init           = &omap2_init_clksel_parent,
2406         .clksel_reg     = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
2407         .clksel_mask    = OMAP4430_CLKSEL_MASK,
2408         .ops            = &clkops_omap2_dflt,
2409         .recalc         = &omap2_clksel_recalc,
2410         .enable_reg     = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
2411         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2412         .clkdm_name     = "l4_per_clkdm",
2413 };
2414
2415 static struct clk uart1_fck = {
2416         .name           = "uart1_fck",
2417         .ops            = &clkops_omap2_dflt,
2418         .enable_reg     = OMAP4430_CM_L4PER_UART1_CLKCTRL,
2419         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2420         .clkdm_name     = "l4_per_clkdm",
2421         .parent         = &func_48m_fclk,
2422         .recalc         = &followparent_recalc,
2423 };
2424
2425 static struct clk uart2_fck = {
2426         .name           = "uart2_fck",
2427         .ops            = &clkops_omap2_dflt,
2428         .enable_reg     = OMAP4430_CM_L4PER_UART2_CLKCTRL,
2429         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2430         .clkdm_name     = "l4_per_clkdm",
2431         .parent         = &func_48m_fclk,
2432         .recalc         = &followparent_recalc,
2433 };
2434
2435 static struct clk uart3_fck = {
2436         .name           = "uart3_fck",
2437         .ops            = &clkops_omap2_dflt,
2438         .enable_reg     = OMAP4430_CM_L4PER_UART3_CLKCTRL,
2439         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2440         .clkdm_name     = "l4_per_clkdm",
2441         .parent         = &func_48m_fclk,
2442         .recalc         = &followparent_recalc,
2443 };
2444
2445 static struct clk uart4_fck = {
2446         .name           = "uart4_fck",
2447         .ops            = &clkops_omap2_dflt,
2448         .enable_reg     = OMAP4430_CM_L4PER_UART4_CLKCTRL,
2449         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2450         .clkdm_name     = "l4_per_clkdm",
2451         .parent         = &func_48m_fclk,
2452         .recalc         = &followparent_recalc,
2453 };
2454
2455 static struct clk usb_host_fs_fck = {
2456         .name           = "usb_host_fs_fck",
2457         .ops            = &clkops_omap2_dflt,
2458         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_FS_CLKCTRL,
2459         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2460         .clkdm_name     = "l3_init_clkdm",
2461         .parent         = &func_48mc_fclk,
2462         .recalc         = &followparent_recalc,
2463 };
2464
2465 static const struct clksel utmi_p1_gfclk_sel[] = {
2466         { .parent = &init_60m_fclk, .rates = div_1_0_rates },
2467         { .parent = &xclk60mhsp1_ck, .rates = div_1_1_rates },
2468         { .parent = NULL },
2469 };
2470
2471 static struct clk utmi_p1_gfclk = {
2472         .name           = "utmi_p1_gfclk",
2473         .parent         = &init_60m_fclk,
2474         .clksel         = utmi_p1_gfclk_sel,
2475         .init           = &omap2_init_clksel_parent,
2476         .clksel_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2477         .clksel_mask    = OMAP4430_CLKSEL_UTMI_P1_MASK,
2478         .ops            = &clkops_null,
2479         .recalc         = &omap2_clksel_recalc,
2480 };
2481
2482 static struct clk usb_host_hs_utmi_p1_clk = {
2483         .name           = "usb_host_hs_utmi_p1_clk",
2484         .ops            = &clkops_omap2_dflt,
2485         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2486         .enable_bit     = OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT,
2487         .clkdm_name     = "l3_init_clkdm",
2488         .parent         = &utmi_p1_gfclk,
2489         .recalc         = &followparent_recalc,
2490 };
2491
2492 static const struct clksel utmi_p2_gfclk_sel[] = {
2493         { .parent = &init_60m_fclk, .rates = div_1_0_rates },
2494         { .parent = &xclk60mhsp2_ck, .rates = div_1_1_rates },
2495         { .parent = NULL },
2496 };
2497
2498 static struct clk utmi_p2_gfclk = {
2499         .name           = "utmi_p2_gfclk",
2500         .parent         = &init_60m_fclk,
2501         .clksel         = utmi_p2_gfclk_sel,
2502         .init           = &omap2_init_clksel_parent,
2503         .clksel_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2504         .clksel_mask    = OMAP4430_CLKSEL_UTMI_P2_MASK,
2505         .ops            = &clkops_null,
2506         .recalc         = &omap2_clksel_recalc,
2507 };
2508
2509 static struct clk usb_host_hs_utmi_p2_clk = {
2510         .name           = "usb_host_hs_utmi_p2_clk",
2511         .ops            = &clkops_omap2_dflt,
2512         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2513         .enable_bit     = OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT,
2514         .clkdm_name     = "l3_init_clkdm",
2515         .parent         = &utmi_p2_gfclk,
2516         .recalc         = &followparent_recalc,
2517 };
2518
2519 static struct clk usb_host_hs_utmi_p3_clk = {
2520         .name           = "usb_host_hs_utmi_p3_clk",
2521         .ops            = &clkops_omap2_dflt,
2522         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2523         .enable_bit     = OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT,
2524         .clkdm_name     = "l3_init_clkdm",
2525         .parent         = &init_60m_fclk,
2526         .recalc         = &followparent_recalc,
2527 };
2528
2529 static struct clk usb_host_hs_hsic480m_p1_clk = {
2530         .name           = "usb_host_hs_hsic480m_p1_clk",
2531         .ops            = &clkops_omap2_dflt,
2532         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2533         .enable_bit     = OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT,
2534         .clkdm_name     = "l3_init_clkdm",
2535         .parent         = &dpll_usb_m2_ck,
2536         .recalc         = &followparent_recalc,
2537 };
2538
2539 static struct clk usb_host_hs_hsic60m_p1_clk = {
2540         .name           = "usb_host_hs_hsic60m_p1_clk",
2541         .ops            = &clkops_omap2_dflt,
2542         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2543         .enable_bit     = OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT,
2544         .clkdm_name     = "l3_init_clkdm",
2545         .parent         = &init_60m_fclk,
2546         .recalc         = &followparent_recalc,
2547 };
2548
2549 static struct clk usb_host_hs_hsic60m_p2_clk = {
2550         .name           = "usb_host_hs_hsic60m_p2_clk",
2551         .ops            = &clkops_omap2_dflt,
2552         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2553         .enable_bit     = OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT,
2554         .clkdm_name     = "l3_init_clkdm",
2555         .parent         = &init_60m_fclk,
2556         .recalc         = &followparent_recalc,
2557 };
2558
2559 static struct clk usb_host_hs_hsic480m_p2_clk = {
2560         .name           = "usb_host_hs_hsic480m_p2_clk",
2561         .ops            = &clkops_omap2_dflt,
2562         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2563         .enable_bit     = OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT,
2564         .clkdm_name     = "l3_init_clkdm",
2565         .parent         = &dpll_usb_m2_ck,
2566         .recalc         = &followparent_recalc,
2567 };
2568
2569 static struct clk usb_host_hs_func48mclk = {
2570         .name           = "usb_host_hs_func48mclk",
2571         .ops            = &clkops_omap2_dflt,
2572         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2573         .enable_bit     = OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT,
2574         .clkdm_name     = "l3_init_clkdm",
2575         .parent         = &func_48mc_fclk,
2576         .recalc         = &followparent_recalc,
2577 };
2578
2579 static struct clk usb_host_hs_fck = {
2580         .name           = "usb_host_hs_fck",
2581         .ops            = &clkops_omap2_dflt,
2582         .enable_reg     = OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL,
2583         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2584         .clkdm_name     = "l3_init_clkdm",
2585         .parent         = &init_60m_fclk,
2586         .recalc         = &followparent_recalc,
2587 };
2588
2589 static const struct clksel otg_60m_gfclk_sel[] = {
2590         { .parent = &utmi_phy_clkout_ck, .rates = div_1_0_rates },
2591         { .parent = &xclk60motg_ck, .rates = div_1_1_rates },
2592         { .parent = NULL },
2593 };
2594
2595 static struct clk otg_60m_gfclk = {
2596         .name           = "otg_60m_gfclk",
2597         .parent         = &utmi_phy_clkout_ck,
2598         .clksel         = otg_60m_gfclk_sel,
2599         .init           = &omap2_init_clksel_parent,
2600         .clksel_reg     = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
2601         .clksel_mask    = OMAP4430_CLKSEL_60M_MASK,
2602         .ops            = &clkops_null,
2603         .recalc         = &omap2_clksel_recalc,
2604 };
2605
2606 static struct clk usb_otg_hs_xclk = {
2607         .name           = "usb_otg_hs_xclk",
2608         .ops            = &clkops_omap2_dflt,
2609         .enable_reg     = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
2610         .enable_bit     = OMAP4430_OPTFCLKEN_XCLK_SHIFT,
2611         .clkdm_name     = "l3_init_clkdm",
2612         .parent         = &otg_60m_gfclk,
2613         .recalc         = &followparent_recalc,
2614 };
2615
2616 static struct clk usb_otg_hs_ick = {
2617         .name           = "usb_otg_hs_ick",
2618         .ops            = &clkops_omap2_dflt,
2619         .enable_reg     = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
2620         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2621         .clkdm_name     = "l3_init_clkdm",
2622         .parent         = &l3_div_ck,
2623         .recalc         = &followparent_recalc,
2624 };
2625
2626 static struct clk usb_phy_cm_clk32k = {
2627         .name           = "usb_phy_cm_clk32k",
2628         .ops            = &clkops_omap2_dflt,
2629         .enable_reg     = OMAP4430_CM_ALWON_USBPHY_CLKCTRL,
2630         .enable_bit     = OMAP4430_OPTFCLKEN_CLK32K_SHIFT,
2631         .clkdm_name     = "l4_ao_clkdm",
2632         .parent         = &sys_32k_ck,
2633         .recalc         = &followparent_recalc,
2634 };
2635
2636 static struct clk usb_tll_hs_usb_ch2_clk = {
2637         .name           = "usb_tll_hs_usb_ch2_clk",
2638         .ops            = &clkops_omap2_dflt,
2639         .enable_reg     = OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL,
2640         .enable_bit     = OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT,
2641         .clkdm_name     = "l3_init_clkdm",
2642         .parent         = &init_60m_fclk,
2643         .recalc         = &followparent_recalc,
2644 };
2645
2646 static struct clk usb_tll_hs_usb_ch0_clk = {
2647         .name           = "usb_tll_hs_usb_ch0_clk",
2648         .ops            = &clkops_omap2_dflt,
2649         .enable_reg     = OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL,
2650         .enable_bit     = OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT,
2651         .clkdm_name     = "l3_init_clkdm",
2652         .parent         = &init_60m_fclk,
2653         .recalc         = &followparent_recalc,
2654 };
2655
2656 static struct clk usb_tll_hs_usb_ch1_clk = {
2657         .name           = "usb_tll_hs_usb_ch1_clk",
2658         .ops            = &clkops_omap2_dflt,
2659         .enable_reg     = OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL,
2660         .enable_bit     = OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT,
2661         .clkdm_name     = "l3_init_clkdm",
2662         .parent         = &init_60m_fclk,
2663         .recalc         = &followparent_recalc,
2664 };
2665
2666 static struct clk usb_tll_hs_ick = {
2667         .name           = "usb_tll_hs_ick",
2668         .ops            = &clkops_omap2_dflt,
2669         .enable_reg     = OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL,
2670         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2671         .clkdm_name     = "l3_init_clkdm",
2672         .parent         = &l4_div_ck,
2673         .recalc         = &followparent_recalc,
2674 };
2675
2676 static const struct clksel_rate div2_14to18_rates[] = {
2677         { .div = 14, .val = 0, .flags = RATE_IN_4430 },
2678         { .div = 18, .val = 1, .flags = RATE_IN_4430 },
2679         { .div = 0 },
2680 };
2681
2682 static const struct clksel usim_fclk_div[] = {
2683         { .parent = &dpll_per_m4x2_ck, .rates = div2_14to18_rates },
2684         { .parent = NULL },
2685 };
2686
2687 static struct clk usim_ck = {
2688         .name           = "usim_ck",
2689         .parent         = &dpll_per_m4x2_ck,
2690         .clksel         = usim_fclk_div,
2691         .clksel_reg     = OMAP4430_CM_WKUP_USIM_CLKCTRL,
2692         .clksel_mask    = OMAP4430_CLKSEL_DIV_MASK,
2693         .ops            = &clkops_null,
2694         .recalc         = &omap2_clksel_recalc,
2695         .round_rate     = &omap2_clksel_round_rate,
2696         .set_rate       = &omap2_clksel_set_rate,
2697 };
2698
2699 static struct clk usim_fclk = {
2700         .name           = "usim_fclk",
2701         .ops            = &clkops_omap2_dflt,
2702         .enable_reg     = OMAP4430_CM_WKUP_USIM_CLKCTRL,
2703         .enable_bit     = OMAP4430_OPTFCLKEN_FCLK_SHIFT,
2704         .clkdm_name     = "l4_wkup_clkdm",
2705         .parent         = &usim_ck,
2706         .recalc         = &followparent_recalc,
2707 };
2708
2709 static struct clk usim_fck = {
2710         .name           = "usim_fck",
2711         .ops            = &clkops_omap2_dflt,
2712         .enable_reg     = OMAP4430_CM_WKUP_USIM_CLKCTRL,
2713         .enable_bit     = OMAP4430_MODULEMODE_HWCTRL,
2714         .clkdm_name     = "l4_wkup_clkdm",
2715         .parent         = &sys_32k_ck,
2716         .recalc         = &followparent_recalc,
2717 };
2718
2719 static struct clk wd_timer2_fck = {
2720         .name           = "wd_timer2_fck",
2721         .ops            = &clkops_omap2_dflt,
2722         .enable_reg     = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
2723         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2724         .clkdm_name     = "l4_wkup_clkdm",
2725         .parent         = &sys_32k_ck,
2726         .recalc         = &followparent_recalc,
2727 };
2728
2729 static struct clk wd_timer3_fck = {
2730         .name           = "wd_timer3_fck",
2731         .ops            = &clkops_omap2_dflt,
2732         .enable_reg     = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
2733         .enable_bit     = OMAP4430_MODULEMODE_SWCTRL,
2734         .clkdm_name     = "abe_clkdm",
2735         .parent         = &sys_32k_ck,
2736         .recalc         = &followparent_recalc,
2737 };
2738
2739 /* Remaining optional clocks */
2740 static const struct clksel stm_clk_div_div[] = {
2741         { .parent = &pmd_stm_clock_mux_ck, .rates = div3_1to4_rates },
2742         { .parent = NULL },
2743 };
2744
2745 static struct clk stm_clk_div_ck = {
2746         .name           = "stm_clk_div_ck",
2747         .parent         = &pmd_stm_clock_mux_ck,
2748         .clksel         = stm_clk_div_div,
2749         .clksel_reg     = OMAP4430_CM_EMU_DEBUGSS_CLKCTRL,
2750         .clksel_mask    = OMAP4430_CLKSEL_PMD_STM_CLK_MASK,
2751         .ops            = &clkops_null,
2752         .recalc         = &omap2_clksel_recalc,
2753         .round_rate     = &omap2_clksel_round_rate,
2754         .set_rate       = &omap2_clksel_set_rate,
2755 };
2756
2757 static const struct clksel trace_clk_div_div[] = {
2758         { .parent = &pmd_trace_clk_mux_ck, .rates = div3_1to4_rates },
2759         { .parent = NULL },
2760 };
2761
2762 static struct clk trace_clk_div_ck = {
2763         .name           = "trace_clk_div_ck",
2764         .parent         = &pmd_trace_clk_mux_ck,
2765         .clksel         = trace_clk_div_div,
2766         .clksel_reg     = OMAP4430_CM_EMU_DEBUGSS_CLKCTRL,
2767         .clksel_mask    = OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK,
2768         .ops            = &clkops_null,
2769         .recalc         = &omap2_clksel_recalc,
2770         .round_rate     = &omap2_clksel_round_rate,
2771         .set_rate       = &omap2_clksel_set_rate,
2772 };
2773
2774 /* SCRM aux clk nodes */
2775
2776 static const struct clksel auxclk_sel[] = {
2777         { .parent = &sys_clkin_ck, .rates = div_1_0_rates },
2778         { .parent = &dpll_core_m3x2_ck, .rates = div_1_1_rates },
2779         { .parent = &dpll_per_m3x2_ck, .rates = div_1_2_rates },
2780         { .parent = NULL },
2781 };
2782
2783 static struct clk auxclk0_ck = {
2784         .name           = "auxclk0_ck",
2785         .parent         = &sys_clkin_ck,
2786         .init           = &omap2_init_clksel_parent,
2787         .ops            = &clkops_omap2_dflt,
2788         .clksel         = auxclk_sel,
2789         .clksel_reg     = OMAP4_SCRM_AUXCLK0,
2790         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2791         .recalc         = &omap2_clksel_recalc,
2792         .enable_reg     = OMAP4_SCRM_AUXCLK0,
2793         .enable_bit     = OMAP4_ENABLE_SHIFT,
2794 };
2795
2796 static struct clk auxclk1_ck = {
2797         .name           = "auxclk1_ck",
2798         .parent         = &sys_clkin_ck,
2799         .init           = &omap2_init_clksel_parent,
2800         .ops            = &clkops_omap2_dflt,
2801         .clksel         = auxclk_sel,
2802         .clksel_reg     = OMAP4_SCRM_AUXCLK1,
2803         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2804         .recalc         = &omap2_clksel_recalc,
2805         .enable_reg     = OMAP4_SCRM_AUXCLK1,
2806         .enable_bit     = OMAP4_ENABLE_SHIFT,
2807 };
2808
2809 static struct clk auxclk2_ck = {
2810         .name           = "auxclk2_ck",
2811         .parent         = &sys_clkin_ck,
2812         .init           = &omap2_init_clksel_parent,
2813         .ops            = &clkops_omap2_dflt,
2814         .clksel         = auxclk_sel,
2815         .clksel_reg     = OMAP4_SCRM_AUXCLK2,
2816         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2817         .recalc         = &omap2_clksel_recalc,
2818         .enable_reg     = OMAP4_SCRM_AUXCLK2,
2819         .enable_bit     = OMAP4_ENABLE_SHIFT,
2820 };
2821
2822 static struct clk auxclk3_ck = {
2823         .name           = "auxclk3_ck",
2824         .parent         = &sys_clkin_ck,
2825         .init           = &omap2_init_clksel_parent,
2826         .ops            = &clkops_omap2_dflt,
2827         .clksel         = auxclk_sel,
2828         .clksel_reg     = OMAP4_SCRM_AUXCLK3,
2829         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2830         .recalc         = &omap2_clksel_recalc,
2831         .enable_reg     = OMAP4_SCRM_AUXCLK3,
2832         .enable_bit     = OMAP4_ENABLE_SHIFT,
2833 };
2834
2835 static struct clk auxclk4_ck = {
2836         .name           = "auxclk4_ck",
2837         .parent         = &sys_clkin_ck,
2838         .init           = &omap2_init_clksel_parent,
2839         .ops            = &clkops_omap2_dflt,
2840         .clksel         = auxclk_sel,
2841         .clksel_reg     = OMAP4_SCRM_AUXCLK4,
2842         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2843         .recalc         = &omap2_clksel_recalc,
2844         .enable_reg     = OMAP4_SCRM_AUXCLK4,
2845         .enable_bit     = OMAP4_ENABLE_SHIFT,
2846 };
2847
2848 static struct clk auxclk5_ck = {
2849         .name           = "auxclk5_ck",
2850         .parent         = &sys_clkin_ck,
2851         .init           = &omap2_init_clksel_parent,
2852         .ops            = &clkops_omap2_dflt,
2853         .clksel         = auxclk_sel,
2854         .clksel_reg     = OMAP4_SCRM_AUXCLK5,
2855         .clksel_mask    = OMAP4_SRCSELECT_MASK,
2856         .recalc         = &omap2_clksel_recalc,
2857         .enable_reg     = OMAP4_SCRM_AUXCLK5,
2858         .enable_bit     = OMAP4_ENABLE_SHIFT,
2859 };
2860
2861 static const struct clksel auxclkreq_sel[] = {
2862         { .parent = &auxclk0_ck, .rates = div_1_0_rates },
2863         { .parent = &auxclk1_ck, .rates = div_1_1_rates },
2864         { .parent = &auxclk2_ck, .rates = div_1_2_rates },
2865         { .parent = &auxclk3_ck, .rates = div_1_3_rates },
2866         { .parent = &auxclk4_ck, .rates = div_1_4_rates },
2867         { .parent = &auxclk5_ck, .rates = div_1_5_rates },
2868         { .parent = NULL },
2869 };
2870
2871 static struct clk auxclkreq0_ck = {
2872         .name           = "auxclkreq0_ck",
2873         .parent         = &auxclk0_ck,
2874         .init           = &omap2_init_clksel_parent,
2875         .ops            = &clkops_null,
2876         .clksel         = auxclkreq_sel,
2877         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ0,
2878         .clksel_mask    = OMAP4_MAPPING_MASK,
2879         .recalc         = &omap2_clksel_recalc,
2880 };
2881
2882 static struct clk auxclkreq1_ck = {
2883         .name           = "auxclkreq1_ck",
2884         .parent         = &auxclk1_ck,
2885         .init           = &omap2_init_clksel_parent,
2886         .ops            = &clkops_null,
2887         .clksel         = auxclkreq_sel,
2888         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ1,
2889         .clksel_mask    = OMAP4_MAPPING_MASK,
2890         .recalc         = &omap2_clksel_recalc,
2891 };
2892
2893 static struct clk auxclkreq2_ck = {
2894         .name           = "auxclkreq2_ck",
2895         .parent         = &auxclk2_ck,
2896         .init           = &omap2_init_clksel_parent,
2897         .ops            = &clkops_null,
2898         .clksel         = auxclkreq_sel,
2899         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ2,
2900         .clksel_mask    = OMAP4_MAPPING_MASK,
2901         .recalc         = &omap2_clksel_recalc,
2902 };
2903
2904 static struct clk auxclkreq3_ck = {
2905         .name           = "auxclkreq3_ck",
2906         .parent         = &auxclk3_ck,
2907         .init           = &omap2_init_clksel_parent,
2908         .ops            = &clkops_null,
2909         .clksel         = auxclkreq_sel,
2910         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ3,
2911         .clksel_mask    = OMAP4_MAPPING_MASK,
2912         .recalc         = &omap2_clksel_recalc,
2913 };
2914
2915 static struct clk auxclkreq4_ck = {
2916         .name           = "auxclkreq4_ck",
2917         .parent         = &auxclk4_ck,
2918         .init           = &omap2_init_clksel_parent,
2919         .ops            = &clkops_null,
2920         .clksel         = auxclkreq_sel,
2921         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ4,
2922         .clksel_mask    = OMAP4_MAPPING_MASK,
2923         .recalc         = &omap2_clksel_recalc,
2924 };
2925
2926 static struct clk auxclkreq5_ck = {
2927         .name           = "auxclkreq5_ck",
2928         .parent         = &auxclk5_ck,
2929         .init           = &omap2_init_clksel_parent,
2930         .ops            = &clkops_null,
2931         .clksel         = auxclkreq_sel,
2932         .clksel_reg     = OMAP4_SCRM_AUXCLKREQ5,
2933         .clksel_mask    = OMAP4_MAPPING_MASK,
2934         .recalc         = &omap2_clksel_recalc,
2935 };
2936
2937 /*
2938  * clkdev
2939  */
2940
2941 static struct omap_clk omap44xx_clks[] = {
2942         CLK(NULL,       "extalt_clkin_ck",              &extalt_clkin_ck,       CK_443X),
2943         CLK(NULL,       "pad_clks_ck",                  &pad_clks_ck,   CK_443X),
2944         CLK(NULL,       "pad_slimbus_core_clks_ck",     &pad_slimbus_core_clks_ck,      CK_443X),
2945         CLK(NULL,       "secure_32k_clk_src_ck",        &secure_32k_clk_src_ck, CK_443X),
2946         CLK(NULL,       "slimbus_clk",                  &slimbus_clk,   CK_443X),
2947         CLK(NULL,       "sys_32k_ck",                   &sys_32k_ck,    CK_443X),
2948         CLK(NULL,       "virt_12000000_ck",             &virt_12000000_ck,      CK_443X),
2949         CLK(NULL,       "virt_13000000_ck",             &virt_13000000_ck,      CK_443X),
2950         CLK(NULL,       "virt_16800000_ck",             &virt_16800000_ck,      CK_443X),
2951         CLK(NULL,       "virt_19200000_ck",             &virt_19200000_ck,      CK_443X),
2952         CLK(NULL,       "virt_26000000_ck",             &virt_26000000_ck,      CK_443X),
2953         CLK(NULL,       "virt_27000000_ck",             &virt_27000000_ck,      CK_443X),
2954         CLK(NULL,       "virt_38400000_ck",             &virt_38400000_ck,      CK_443X),
2955         CLK(NULL,       "sys_clkin_ck",                 &sys_clkin_ck,  CK_443X),
2956         CLK(NULL,       "tie_low_clock_ck",             &tie_low_clock_ck,      CK_443X),
2957         CLK(NULL,       "utmi_phy_clkout_ck",           &utmi_phy_clkout_ck,    CK_443X),
2958         CLK(NULL,       "xclk60mhsp1_ck",               &xclk60mhsp1_ck,        CK_443X),
2959         CLK(NULL,       "xclk60mhsp2_ck",               &xclk60mhsp2_ck,        CK_443X),
2960         CLK(NULL,       "xclk60motg_ck",                &xclk60motg_ck, CK_443X),
2961         CLK(NULL,       "abe_dpll_bypass_clk_mux_ck",   &abe_dpll_bypass_clk_mux_ck,    CK_443X),
2962         CLK(NULL,       "abe_dpll_refclk_mux_ck",       &abe_dpll_refclk_mux_ck,        CK_443X),
2963         CLK(NULL,       "dpll_abe_ck",                  &dpll_abe_ck,   CK_443X),
2964         CLK(NULL,       "dpll_abe_x2_ck",               &dpll_abe_x2_ck,        CK_443X),
2965         CLK(NULL,       "dpll_abe_m2x2_ck",             &dpll_abe_m2x2_ck,      CK_443X),
2966         CLK(NULL,       "abe_24m_fclk",                 &abe_24m_fclk,  CK_443X),
2967         CLK(NULL,       "abe_clk",                      &abe_clk,       CK_443X),
2968         CLK(NULL,       "aess_fclk",                    &aess_fclk,     CK_443X),
2969         CLK(NULL,       "dpll_abe_m3x2_ck",             &dpll_abe_m3x2_ck,      CK_443X),
2970         CLK(NULL,       "core_hsd_byp_clk_mux_ck",      &core_hsd_byp_clk_mux_ck,       CK_443X),
2971         CLK(NULL,       "dpll_core_ck",                 &dpll_core_ck,  CK_443X),
2972         CLK(NULL,       "dpll_core_x2_ck",              &dpll_core_x2_ck,       CK_443X),
2973         CLK(NULL,       "dpll_core_m6x2_ck",            &dpll_core_m6x2_ck,     CK_443X),
2974         CLK(NULL,       "dbgclk_mux_ck",                &dbgclk_mux_ck, CK_443X),
2975         CLK(NULL,       "dpll_core_m2_ck",              &dpll_core_m2_ck,       CK_443X),
2976         CLK(NULL,       "ddrphy_ck",                    &ddrphy_ck,     CK_443X),
2977         CLK(NULL,       "dpll_core_m5x2_ck",            &dpll_core_m5x2_ck,     CK_443X),
2978         CLK(NULL,       "div_core_ck",                  &div_core_ck,   CK_443X),
2979         CLK(NULL,       "div_iva_hs_clk",               &div_iva_hs_clk,        CK_443X),
2980         CLK(NULL,       "div_mpu_hs_clk",               &div_mpu_hs_clk,        CK_443X),
2981         CLK(NULL,       "dpll_core_m4x2_ck",            &dpll_core_m4x2_ck,     CK_443X),
2982         CLK(NULL,       "dll_clk_div_ck",               &dll_clk_div_ck,        CK_443X),
2983         CLK(NULL,       "dpll_abe_m2_ck",               &dpll_abe_m2_ck,        CK_443X),
2984         CLK(NULL,       "dpll_core_m3x2_ck",            &dpll_core_m3x2_ck,     CK_443X),
2985         CLK(NULL,       "dpll_core_m7x2_ck",            &dpll_core_m7x2_ck,     CK_443X),
2986         CLK(NULL,       "iva_hsd_byp_clk_mux_ck",       &iva_hsd_byp_clk_mux_ck,        CK_443X),
2987         CLK(NULL,       "dpll_iva_ck",                  &dpll_iva_ck,   CK_443X),
2988         CLK(NULL,       "dpll_iva_x2_ck",               &dpll_iva_x2_ck,        CK_443X),
2989         CLK(NULL,       "dpll_iva_m4x2_ck",             &dpll_iva_m4x2_ck,      CK_443X),
2990         CLK(NULL,       "dpll_iva_m5x2_ck",             &dpll_iva_m5x2_ck,      CK_443X),
2991         CLK(NULL,       "dpll_mpu_ck",                  &dpll_mpu_ck,   CK_443X),
2992         CLK(NULL,       "dpll_mpu_m2_ck",               &dpll_mpu_m2_ck,        CK_443X),
2993         CLK(NULL,       "per_hs_clk_div_ck",            &per_hs_clk_div_ck,     CK_443X),
2994         CLK(NULL,       "per_hsd_byp_clk_mux_ck",       &per_hsd_byp_clk_mux_ck,        CK_443X),
2995         CLK(NULL,       "dpll_per_ck",                  &dpll_per_ck,   CK_443X),
2996         CLK(NULL,       "dpll_per_m2_ck",               &dpll_per_m2_ck,        CK_443X),
2997         CLK(NULL,       "dpll_per_x2_ck",               &dpll_per_x2_ck,        CK_443X),
2998         CLK(NULL,       "dpll_per_m2x2_ck",             &dpll_per_m2x2_ck,      CK_443X),
2999         CLK(NULL,       "dpll_per_m3x2_ck",             &dpll_per_m3x2_ck,      CK_443X),
3000         CLK(NULL,       "dpll_per_m4x2_ck",             &dpll_per_m4x2_ck,      CK_443X),
3001         CLK(NULL,       "dpll_per_m5x2_ck",             &dpll_per_m5x2_ck,      CK_443X),
3002         CLK(NULL,       "dpll_per_m6x2_ck",             &dpll_per_m6x2_ck,      CK_443X),
3003         CLK(NULL,       "dpll_per_m7x2_ck",             &dpll_per_m7x2_ck,      CK_443X),
3004         CLK(NULL,       "usb_hs_clk_div_ck",            &usb_hs_clk_div_ck,     CK_443X),
3005         CLK(NULL,       "dpll_usb_ck",                  &dpll_usb_ck,   CK_443X),
3006         CLK(NULL,       "dpll_usb_clkdcoldo_ck",        &dpll_usb_clkdcoldo_ck, CK_443X),
3007         CLK(NULL,       "dpll_usb_m2_ck",               &dpll_usb_m2_ck,        CK_443X),
3008         CLK(NULL,       "ducati_clk_mux_ck",            &ducati_clk_mux_ck,     CK_443X),
3009         CLK(NULL,       "func_12m_fclk",                &func_12m_fclk, CK_443X),
3010         CLK(NULL,       "func_24m_clk",                 &func_24m_clk,  CK_443X),
3011         CLK(NULL,       "func_24mc_fclk",               &func_24mc_fclk,        CK_443X),
3012         CLK(NULL,       "func_48m_fclk",                &func_48m_fclk, CK_443X),
3013         CLK(NULL,       "func_48mc_fclk",               &func_48mc_fclk,        CK_443X),
3014         CLK(NULL,       "func_64m_fclk",                &func_64m_fclk, CK_443X),
3015         CLK(NULL,       "func_96m_fclk",                &func_96m_fclk, CK_443X),
3016         CLK(NULL,       "init_60m_fclk",                &init_60m_fclk, CK_443X),
3017         CLK(NULL,       "l3_div_ck",                    &l3_div_ck,     CK_443X),
3018         CLK(NULL,       "l4_div_ck",                    &l4_div_ck,     CK_443X),
3019         CLK(NULL,       "lp_clk_div_ck",                &lp_clk_div_ck, CK_443X),
3020         CLK(NULL,       "l4_wkup_clk_mux_ck",           &l4_wkup_clk_mux_ck,    CK_443X),
3021         CLK(NULL,       "ocp_abe_iclk",                 &ocp_abe_iclk,  CK_443X),
3022         CLK(NULL,       "per_abe_24m_fclk",             &per_abe_24m_fclk,      CK_443X),
3023         CLK(NULL,       "per_abe_nc_fclk",              &per_abe_nc_fclk,       CK_443X),
3024         CLK(NULL,       "pmd_stm_clock_mux_ck",         &pmd_stm_clock_mux_ck,  CK_443X),
3025         CLK(NULL,       "pmd_trace_clk_mux_ck",         &pmd_trace_clk_mux_ck,  CK_443X),
3026         CLK(NULL,       "syc_clk_div_ck",               &syc_clk_div_ck,        CK_443X),
3027         CLK(NULL,       "aes1_fck",                     &aes1_fck,      CK_443X),
3028         CLK(NULL,       "aes2_fck",                     &aes2_fck,      CK_443X),
3029         CLK(NULL,       "aess_fck",                     &aess_fck,      CK_443X),
3030         CLK(NULL,       "bandgap_fclk",                 &bandgap_fclk,  CK_443X),
3031         CLK(NULL,       "des3des_fck",                  &des3des_fck,   CK_443X),
3032         CLK(NULL,       "dmic_sync_mux_ck",             &dmic_sync_mux_ck,      CK_443X),
3033         CLK(NULL,       "dmic_fck",                     &dmic_fck,      CK_443X),
3034         CLK(NULL,       "dsp_fck",                      &dsp_fck,       CK_443X),
3035         CLK("omapdss_dss",      "sys_clk",                      &dss_sys_clk,   CK_443X),
3036         CLK("omapdss_dss",      "tv_clk",                       &dss_tv_clk,    CK_443X),
3037         CLK("omapdss_dss",      "video_clk",                    &dss_48mhz_clk, CK_443X),
3038         CLK("omapdss_dss",      "fck",                          &dss_dss_clk,   CK_443X),
3039         CLK("omapdss_dss",      "ick",                          &dss_fck,       CK_443X),
3040         CLK(NULL,       "efuse_ctrl_cust_fck",          &efuse_ctrl_cust_fck,   CK_443X),
3041         CLK(NULL,       "emif1_fck",                    &emif1_fck,     CK_443X),
3042         CLK(NULL,       "emif2_fck",                    &emif2_fck,     CK_443X),
3043         CLK(NULL,       "fdif_fck",                     &fdif_fck,      CK_443X),
3044         CLK(NULL,       "fpka_fck",                     &fpka_fck,      CK_443X),
3045         CLK(NULL,       "gpio1_dbclk",                  &gpio1_dbclk,   CK_443X),
3046         CLK(NULL,       "gpio1_ick",                    &gpio1_ick,     CK_443X),
3047         CLK(NULL,       "gpio2_dbclk",                  &gpio2_dbclk,   CK_443X),
3048         CLK(NULL,       "gpio2_ick",                    &gpio2_ick,     CK_443X),
3049         CLK(NULL,       "gpio3_dbclk",                  &gpio3_dbclk,   CK_443X),
3050         CLK(NULL,       "gpio3_ick",                    &gpio3_ick,     CK_443X),
3051         CLK(NULL,       "gpio4_dbclk",                  &gpio4_dbclk,   CK_443X),
3052         CLK(NULL,       "gpio4_ick",                    &gpio4_ick,     CK_443X),
3053         CLK(NULL,       "gpio5_dbclk",                  &gpio5_dbclk,   CK_443X),
3054         CLK(NULL,       "gpio5_ick",                    &gpio5_ick,     CK_443X),
3055         CLK(NULL,       "gpio6_dbclk",                  &gpio6_dbclk,   CK_443X),
3056         CLK(NULL,       "gpio6_ick",                    &gpio6_ick,     CK_443X),
3057         CLK(NULL,       "gpmc_ick",                     &gpmc_ick,      CK_443X),
3058         CLK(NULL,       "gpu_fck",                      &gpu_fck,       CK_443X),
3059         CLK("omap2_hdq.0",      "fck",                          &hdq1w_fck,     CK_443X),
3060         CLK(NULL,       "hsi_fck",                      &hsi_fck,       CK_443X),
3061         CLK("omap_i2c.1",       "fck",                          &i2c1_fck,      CK_443X),
3062         CLK("omap_i2c.2",       "fck",                          &i2c2_fck,      CK_443X),
3063         CLK("omap_i2c.3",       "fck",                          &i2c3_fck,      CK_443X),
3064         CLK("omap_i2c.4",       "fck",                          &i2c4_fck,      CK_443X),
3065         CLK(NULL,       "ipu_fck",                      &ipu_fck,       CK_443X),
3066         CLK(NULL,       "iss_ctrlclk",                  &iss_ctrlclk,   CK_443X),
3067         CLK(NULL,       "iss_fck",                      &iss_fck,       CK_443X),
3068         CLK(NULL,       "iva_fck",                      &iva_fck,       CK_443X),
3069         CLK(NULL,       "kbd_fck",                      &kbd_fck,       CK_443X),
3070         CLK(NULL,       "l3_instr_ick",                 &l3_instr_ick,  CK_443X),
3071         CLK(NULL,       "l3_main_3_ick",                &l3_main_3_ick, CK_443X),
3072         CLK(NULL,       "mcasp_sync_mux_ck",            &mcasp_sync_mux_ck,     CK_443X),
3073         CLK(NULL,       "mcasp_fck",                    &mcasp_fck,     CK_443X),
3074         CLK(NULL,       "mcbsp1_sync_mux_ck",           &mcbsp1_sync_mux_ck,    CK_443X),
3075         CLK("omap-mcbsp.1",     "fck",                          &mcbsp1_fck,    CK_443X),
3076         CLK(NULL,       "mcbsp2_sync_mux_ck",           &mcbsp2_sync_mux_ck,    CK_443X),
3077         CLK("omap-mcbsp.2",     "fck",                          &mcbsp2_fck,    CK_443X),
3078         CLK(NULL,       "mcbsp3_sync_mux_ck",           &mcbsp3_sync_mux_ck,    CK_443X),
3079         CLK("omap-mcbsp.3",     "fck",                          &mcbsp3_fck,    CK_443X),
3080         CLK(NULL,       "mcbsp4_sync_mux_ck",           &mcbsp4_sync_mux_ck,    CK_443X),
3081         CLK("omap-mcbsp.4",     "fck",                          &mcbsp4_fck,    CK_443X),
3082         CLK(NULL,       "mcpdm_fck",                    &mcpdm_fck,     CK_443X),
3083         CLK("omap2_mcspi.1",    "fck",