19 #include <linux/kernel.h>
21 #include <linux/list.h>
43 #define OMAP_CM_REGADDR OMAP34XX_CM_REGADDR
46 #define OMAP3_MAX_DPLL_MULT 2047
47 #define OMAP3630_MAX_JTYPE_DPLL_MULT 4095
48 #define OMAP3_MAX_DPLL_DIV 128
59 static struct clk dpll1_fck;
60 static struct clk dpll2_fck;
65 static struct clk omap_32k_fck = {
66 .name =
"omap_32k_fck",
71 static struct clk secure_32k_fck = {
72 .name =
"secure_32k_fck",
78 static struct clk virt_12m_ck = {
79 .name =
"virt_12m_ck",
84 static struct clk virt_13m_ck = {
85 .name =
"virt_13m_ck",
90 static struct clk virt_16_8m_ck = {
91 .name =
"virt_16_8m_ck",
96 static struct clk virt_38_4m_ck = {
97 .name =
"virt_38_4m_ck",
102 static const struct clksel_rate osc_sys_12m_rates[] = {
103 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
107 static const struct clksel_rate osc_sys_13m_rates[] = {
108 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
112 static const struct clksel_rate osc_sys_16_8m_rates[] = {
113 { .div = 1, .val = 5, .flags = RATE_IN_3430ES2PLUS_36XX },
117 static const struct clksel_rate osc_sys_19_2m_rates[] = {
118 { .div = 1, .val = 2, .flags = RATE_IN_3XXX },
122 static const struct clksel_rate osc_sys_26m_rates[] = {
123 { .div = 1, .val = 3, .flags = RATE_IN_3XXX },
127 static const struct clksel_rate osc_sys_38_4m_rates[] = {
128 { .div = 1, .val = 4, .flags = RATE_IN_3XXX },
132 static const struct clksel osc_sys_clksel[] = {
133 { .parent = &virt_12m_ck, .
rates = osc_sys_12m_rates },
134 { .parent = &virt_13m_ck, .
rates = osc_sys_13m_rates },
135 { .parent = &virt_16_8m_ck, .
rates = osc_sys_16_8m_rates },
138 { .parent = &virt_38_4m_ck, .
rates = osc_sys_38_4m_rates },
144 static struct clk osc_sys_ck = {
145 .name =
"osc_sys_ck",
150 .clksel = osc_sys_clksel,
155 static const struct clksel_rate div2_rates[] = {
156 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
157 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
161 static const struct clksel sys_clksel[] = {
162 { .parent = &osc_sys_ck, .
rates = div2_rates },
171 .parent = &osc_sys_ck,
175 .clksel = sys_clksel,
179 static struct clk sys_altclk = {
180 .name =
"sys_altclk",
185 static struct clk mcbsp_clks = {
186 .name =
"mcbsp_clks",
192 static struct clk sys_clkout1 = {
193 .name =
"sys_clkout1",
195 .parent = &osc_sys_ck,
205 static const struct clksel_rate div16_dpll_rates[] = {
206 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
207 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
208 { .div = 3, .val = 3, .flags = RATE_IN_3XXX },
209 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
210 { .div = 5, .val = 5, .flags = RATE_IN_3XXX },
211 { .div = 6, .val = 6, .flags = RATE_IN_3XXX },
212 { .div = 7, .val = 7, .flags = RATE_IN_3XXX },
213 { .div = 8, .val = 8, .flags = RATE_IN_3XXX },
214 { .div = 9, .val = 9, .flags = RATE_IN_3XXX },
215 { .div = 10, .val = 10, .flags = RATE_IN_3XXX },
216 { .div = 11, .val = 11, .flags = RATE_IN_3XXX },
217 { .div = 12, .val = 12, .flags = RATE_IN_3XXX },
218 { .div = 13, .val = 13, .flags = RATE_IN_3XXX },
219 { .div = 14, .val = 14, .flags = RATE_IN_3XXX },
220 { .div = 15, .val = 15, .flags = RATE_IN_3XXX },
221 { .div = 16, .val = 16, .flags = RATE_IN_3XXX },
225 static const struct clksel_rate dpll4_rates[] = {
226 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
227 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
228 { .div = 3, .val = 3, .flags = RATE_IN_3XXX },
229 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
230 { .div = 5, .val = 5, .flags = RATE_IN_3XXX },
231 { .div = 6, .val = 6, .flags = RATE_IN_3XXX },
232 { .div = 7, .val = 7, .flags = RATE_IN_3XXX },
233 { .div = 8, .val = 8, .flags = RATE_IN_3XXX },
234 { .div = 9, .val = 9, .flags = RATE_IN_3XXX },
235 { .div = 10, .val = 10, .flags = RATE_IN_3XXX },
236 { .div = 11, .val = 11, .flags = RATE_IN_3XXX },
237 { .div = 12, .val = 12, .flags = RATE_IN_3XXX },
238 { .div = 13, .val = 13, .flags = RATE_IN_3XXX },
239 { .div = 14, .val = 14, .flags = RATE_IN_3XXX },
240 { .div = 15, .val = 15, .flags = RATE_IN_3XXX },
241 { .div = 16, .val = 16, .flags = RATE_IN_3XXX },
242 { .div = 17, .val = 17, .flags = RATE_IN_36XX },
243 { .div = 18, .val = 18, .flags = RATE_IN_36XX },
244 { .div = 19, .val = 19, .flags = RATE_IN_36XX },
245 { .div = 20, .val = 20, .flags = RATE_IN_36XX },
246 { .div = 21, .val = 21, .flags = RATE_IN_36XX },
247 { .div = 22, .val = 22, .flags = RATE_IN_36XX },
248 { .div = 23, .val = 23, .flags = RATE_IN_36XX },
249 { .div = 24, .val = 24, .flags = RATE_IN_36XX },
250 { .div = 25, .val = 25, .flags = RATE_IN_36XX },
251 { .div = 26, .val = 26, .flags = RATE_IN_36XX },
252 { .div = 27, .val = 27, .flags = RATE_IN_36XX },
253 { .div = 28, .val = 28, .flags = RATE_IN_36XX },
254 { .div = 29, .val = 29, .flags = RATE_IN_36XX },
255 { .div = 30, .val = 30, .flags = RATE_IN_36XX },
256 { .div = 31, .val = 31, .flags = RATE_IN_36XX },
257 { .div = 32, .val = 32, .flags = RATE_IN_36XX },
264 static struct dpll_data dpll1_dd = {
268 .clk_bypass = &dpll1_fck,
286 static struct clk dpll1_ck = {
290 .dpll_data = &dpll1_dd,
293 .clkdm_name =
"dpll1_clkdm",
301 static struct clk dpll1_x2_ck = {
302 .name =
"dpll1_x2_ck",
305 .clkdm_name =
"dpll1_clkdm",
310 static const struct clksel div16_dpll1_x2m2_clksel[] = {
311 { .parent = &dpll1_x2_ck, .
rates = div16_dpll_rates },
319 static struct clk dpll1_x2m2_ck = {
320 .name =
"dpll1_x2m2_ck",
322 .parent = &dpll1_x2_ck,
326 .clksel = div16_dpll1_x2m2_clksel,
327 .clkdm_name =
"dpll1_clkdm",
335 static struct dpll_data dpll2_dd = {
339 .clk_bypass = &dpll2_fck,
358 static struct clk dpll2_ck = {
362 .dpll_data = &dpll2_dd,
365 .clkdm_name =
"dpll2_clkdm",
369 static const struct clksel div16_dpll2_m2x2_clksel[] = {
370 { .parent = &dpll2_ck, .
rates = div16_dpll_rates },
378 static struct clk dpll2_m2_ck = {
379 .name =
"dpll2_m2_ck",
386 .clksel = div16_dpll2_m2x2_clksel,
387 .clkdm_name =
"dpll2_clkdm",
396 static struct dpll_data dpll3_dd = {
417 static struct clk dpll3_ck = {
421 .dpll_data = &dpll3_dd,
423 .clkdm_name =
"dpll3_clkdm",
431 static struct clk dpll3_x2_ck = {
432 .name =
"dpll3_x2_ck",
435 .clkdm_name =
"dpll3_clkdm",
439 static const struct clksel_rate div31_dpll3_rates[] = {
440 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
441 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
442 { .div = 3, .val = 3, .flags = RATE_IN_3430ES2PLUS_36XX },
443 { .div = 4, .val = 4, .flags = RATE_IN_3430ES2PLUS_36XX },
444 { .div = 5, .val = 5, .flags = RATE_IN_3430ES2PLUS_36XX },
445 { .div = 6, .val = 6, .flags = RATE_IN_3430ES2PLUS_36XX },
446 { .div = 7, .val = 7, .flags = RATE_IN_3430ES2PLUS_36XX },
447 { .div = 8, .val = 8, .flags = RATE_IN_3430ES2PLUS_36XX },
448 { .div = 9, .val = 9, .flags = RATE_IN_3430ES2PLUS_36XX },
449 { .div = 10, .val = 10, .flags = RATE_IN_3430ES2PLUS_36XX },
450 { .div = 11, .val = 11, .flags = RATE_IN_3430ES2PLUS_36XX },
451 { .div = 12, .val = 12, .flags = RATE_IN_3430ES2PLUS_36XX },
452 { .div = 13, .val = 13, .flags = RATE_IN_3430ES2PLUS_36XX },
453 { .div = 14, .val = 14, .flags = RATE_IN_3430ES2PLUS_36XX },
454 { .div = 15, .val = 15, .flags = RATE_IN_3430ES2PLUS_36XX },
455 { .div = 16, .val = 16, .flags = RATE_IN_3430ES2PLUS_36XX },
456 { .div = 17, .val = 17, .flags = RATE_IN_3430ES2PLUS_36XX },
457 { .div = 18, .val = 18, .flags = RATE_IN_3430ES2PLUS_36XX },
458 { .div = 19, .val = 19, .flags = RATE_IN_3430ES2PLUS_36XX },
459 { .div = 20, .val = 20, .flags = RATE_IN_3430ES2PLUS_36XX },
460 { .div = 21, .val = 21, .flags = RATE_IN_3430ES2PLUS_36XX },
461 { .div = 22, .val = 22, .flags = RATE_IN_3430ES2PLUS_36XX },
462 { .div = 23, .val = 23, .flags = RATE_IN_3430ES2PLUS_36XX },
463 { .div = 24, .val = 24, .flags = RATE_IN_3430ES2PLUS_36XX },
464 { .div = 25, .val = 25, .flags = RATE_IN_3430ES2PLUS_36XX },
465 { .div = 26, .val = 26, .flags = RATE_IN_3430ES2PLUS_36XX },
466 { .div = 27, .val = 27, .flags = RATE_IN_3430ES2PLUS_36XX },
467 { .div = 28, .val = 28, .flags = RATE_IN_3430ES2PLUS_36XX },
468 { .div = 29, .val = 29, .flags = RATE_IN_3430ES2PLUS_36XX },
469 { .div = 30, .val = 30, .flags = RATE_IN_3430ES2PLUS_36XX },
470 { .div = 31, .val = 31, .flags = RATE_IN_3430ES2PLUS_36XX },
474 static const struct clksel div31_dpll3m2_clksel[] = {
475 { .parent = &dpll3_ck, .
rates = div31_dpll3_rates },
480 static struct clk dpll3_m2_ck = {
481 .name =
"dpll3_m2_ck",
487 .clksel = div31_dpll3m2_clksel,
488 .clkdm_name =
"dpll3_clkdm",
494 static struct clk core_ck = {
497 .parent = &dpll3_m2_ck,
501 static struct clk dpll3_m2x2_ck = {
502 .name =
"dpll3_m2x2_ck",
504 .parent = &dpll3_m2_ck,
505 .clkdm_name =
"dpll3_clkdm",
510 static const struct clksel div16_dpll3_clksel[] = {
511 { .parent = &dpll3_ck, .
rates = div16_dpll_rates },
516 static struct clk dpll3_m3_ck = {
517 .name =
"dpll3_m3_ck",
523 .clksel = div16_dpll3_clksel,
524 .clkdm_name =
"dpll3_clkdm",
529 static struct clk dpll3_m3x2_ck = {
530 .name =
"dpll3_m3x2_ck",
532 .parent = &dpll3_m3_ck,
536 .clkdm_name =
"dpll3_clkdm",
540 static struct clk emu_core_alwon_ck = {
541 .name =
"emu_core_alwon_ck",
543 .parent = &dpll3_m3x2_ck,
544 .clkdm_name =
"dpll3_clkdm",
551 static struct dpll_data dpll4_dd;
553 static struct dpll_data dpll4_dd_34xx
__initdata = {
575 static struct dpll_data dpll4_dd_3630 __initdata = {
599 static struct clk dpll4_ck = {
603 .dpll_data = &dpll4_dd,
606 .clkdm_name =
"dpll4_clkdm",
615 static struct clk dpll4_x2_ck = {
616 .name =
"dpll4_x2_ck",
619 .clkdm_name =
"dpll4_clkdm",
623 static const struct clksel dpll4_clksel[] = {
624 { .parent = &dpll4_ck, .
rates = dpll4_rates },
629 static struct clk dpll4_m2_ck = {
630 .name =
"dpll4_m2_ck",
636 .clksel = dpll4_clksel,
637 .clkdm_name =
"dpll4_clkdm",
642 static struct clk dpll4_m2x2_ck = {
643 .name =
"dpll4_m2x2_ck",
645 .parent = &dpll4_m2_ck,
649 .clkdm_name =
"dpll4_clkdm",
661 static struct clk omap_192m_alwon_fck = {
662 .name =
"omap_192m_alwon_fck",
664 .parent = &dpll4_m2x2_ck,
668 static const struct clksel_rate omap_96m_alwon_fck_rates[] = {
669 { .div = 1, .val = 1, .flags = RATE_IN_36XX },
670 { .div = 2, .val = 2, .flags = RATE_IN_36XX },
674 static const struct clksel omap_96m_alwon_fck_clksel[] = {
675 { .parent = &omap_192m_alwon_fck, .
rates = omap_96m_alwon_fck_rates },
679 static const struct clksel_rate omap_96m_dpll_rates[] = {
680 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
684 static const struct clksel_rate omap_96m_sys_rates[] = {
685 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
689 static struct clk omap_96m_alwon_fck = {
690 .name =
"omap_96m_alwon_fck",
692 .parent = &dpll4_m2x2_ck,
696 static struct clk omap_96m_alwon_fck_3630 = {
697 .name =
"omap_96m_alwon_fck",
698 .parent = &omap_192m_alwon_fck,
704 .clksel = omap_96m_alwon_fck_clksel
707 static struct clk cm_96m_fck = {
708 .name =
"cm_96m_fck",
710 .parent = &omap_96m_alwon_fck,
714 static const struct clksel omap_96m_fck_clksel[] = {
715 { .parent = &cm_96m_fck, .
rates = omap_96m_dpll_rates },
716 { .parent = &
sys_ck, .rates = omap_96m_sys_rates },
720 static struct clk omap_96m_fck = {
721 .name =
"omap_96m_fck",
727 .clksel = omap_96m_fck_clksel,
732 static struct clk dpll4_m3_ck = {
733 .name =
"dpll4_m3_ck",
739 .clksel = dpll4_clksel,
740 .clkdm_name =
"dpll4_clkdm",
745 static struct clk dpll4_m3x2_ck = {
746 .name =
"dpll4_m3x2_ck",
748 .parent = &dpll4_m3_ck,
752 .clkdm_name =
"dpll4_clkdm",
756 static const struct clksel_rate omap_54m_d4m3x2_rates[] = {
757 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
761 static const struct clksel_rate omap_54m_alt_rates[] = {
762 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
766 static const struct clksel omap_54m_clksel[] = {
767 { .parent = &dpll4_m3x2_ck, .
rates = omap_54m_d4m3x2_rates },
768 { .parent = &sys_altclk, .
rates = omap_54m_alt_rates },
772 static struct clk omap_54m_fck = {
773 .name =
"omap_54m_fck",
778 .clksel = omap_54m_clksel,
782 static const struct clksel_rate omap_48m_cm96m_rates[] = {
783 { .div = 2, .val = 0, .flags = RATE_IN_3XXX },
787 static const struct clksel_rate omap_48m_alt_rates[] = {
788 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
792 static const struct clksel omap_48m_clksel[] = {
793 { .parent = &cm_96m_fck, .
rates = omap_48m_cm96m_rates },
794 { .parent = &sys_altclk, .
rates = omap_48m_alt_rates },
798 static struct clk omap_48m_fck = {
799 .name =
"omap_48m_fck",
804 .clksel = omap_48m_clksel,
808 static struct clk omap_12m_fck = {
809 .name =
"omap_12m_fck",
811 .parent = &omap_48m_fck,
818 .name =
"dpll4_m4_ck",
824 .clksel = dpll4_clksel,
825 .clkdm_name =
"dpll4_clkdm",
832 static struct clk dpll4_m4x2_ck = {
833 .name =
"dpll4_m4x2_ck",
839 .clkdm_name =
"dpll4_clkdm",
844 static struct clk dpll4_m5_ck = {
845 .name =
"dpll4_m5_ck",
851 .clksel = dpll4_clksel,
852 .clkdm_name =
"dpll4_clkdm",
859 static struct clk dpll4_m5x2_ck = {
860 .name =
"dpll4_m5x2_ck",
862 .parent = &dpll4_m5_ck,
866 .clkdm_name =
"dpll4_clkdm",
871 static struct clk dpll4_m6_ck = {
872 .name =
"dpll4_m6_ck",
878 .clksel = dpll4_clksel,
879 .clkdm_name =
"dpll4_clkdm",
884 static struct clk dpll4_m6x2_ck = {
885 .name =
"dpll4_m6x2_ck",
887 .parent = &dpll4_m6_ck,
891 .clkdm_name =
"dpll4_clkdm",
895 static struct clk emu_per_alwon_ck = {
896 .name =
"emu_per_alwon_ck",
898 .parent = &dpll4_m6x2_ck,
899 .clkdm_name =
"dpll4_clkdm",
907 static struct dpll_data dpll5_dd = {
929 static struct clk dpll5_ck = {
933 .dpll_data = &dpll5_dd,
936 .clkdm_name =
"dpll5_clkdm",
940 static const struct clksel div16_dpll5_clksel[] = {
941 { .parent = &dpll5_ck, .
rates = div16_dpll_rates },
945 static struct clk dpll5_m2_ck = {
946 .name =
"dpll5_m2_ck",
952 .clksel = div16_dpll5_clksel,
953 .clkdm_name =
"dpll5_clkdm",
959 static const struct clksel_rate clkout2_src_core_rates[] = {
960 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
964 static const struct clksel_rate clkout2_src_sys_rates[] = {
965 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
969 static const struct clksel_rate clkout2_src_96m_rates[] = {
970 { .div = 1, .val = 2, .flags = RATE_IN_3XXX },
974 static const struct clksel_rate clkout2_src_54m_rates[] = {
975 { .div = 1, .val = 3, .flags = RATE_IN_3XXX },
979 static const struct clksel clkout2_src_clksel[] = {
980 { .parent = &core_ck, .
rates = clkout2_src_core_rates },
981 { .parent = &
sys_ck, .rates = clkout2_src_sys_rates },
982 { .parent = &cm_96m_fck, .
rates = clkout2_src_96m_rates },
983 { .parent = &omap_54m_fck, .
rates = clkout2_src_54m_rates },
987 static struct clk clkout2_src_ck = {
988 .name =
"clkout2_src_ck",
995 .clksel = clkout2_src_clksel,
996 .clkdm_name =
"core_clkdm",
1000 static const struct clksel_rate sys_clkout2_rates[] = {
1001 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
1002 { .div = 2, .val = 1, .flags = RATE_IN_3XXX },
1003 { .div = 4, .val = 2, .flags = RATE_IN_3XXX },
1004 { .div = 8, .val = 3, .flags = RATE_IN_3XXX },
1005 { .div = 16, .val = 4, .flags = RATE_IN_3XXX },
1009 static const struct clksel sys_clkout2_clksel[] = {
1010 { .parent = &clkout2_src_ck, .
rates = sys_clkout2_rates },
1014 static struct clk sys_clkout2 = {
1015 .name =
"sys_clkout2",
1020 .clksel = sys_clkout2_clksel,
1028 static struct clk corex2_fck = {
1029 .name =
"corex2_fck",
1031 .parent = &dpll3_m2x2_ck,
1037 static const struct clksel_rate div4_rates[] = {
1038 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
1039 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
1040 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
1044 static const struct clksel div4_core_clksel[] = {
1045 { .parent = &core_ck, .
rates = div4_rates },
1053 static struct clk dpll1_fck = {
1054 .name =
"dpll1_fck",
1060 .clksel = div4_core_clksel,
1064 static struct clk mpu_ck = {
1067 .parent = &dpll1_x2m2_ck,
1068 .clkdm_name =
"mpu_clkdm",
1073 static const struct clksel_rate arm_fck_rates[] = {
1074 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
1075 { .div = 2, .val = 1, .flags = RATE_IN_3XXX },
1079 static const struct clksel arm_fck_clksel[] = {
1080 { .parent = &mpu_ck, .
rates = arm_fck_rates },
1084 static struct clk arm_fck = {
1091 .clksel = arm_fck_clksel,
1092 .clkdm_name =
"mpu_clkdm",
1102 static struct clk emu_mpu_alwon_ck = {
1103 .name =
"emu_mpu_alwon_ck",
1109 static struct clk dpll2_fck = {
1110 .name =
"dpll2_fck",
1116 .clksel = div4_core_clksel,
1120 static struct clk iva2_ck = {
1123 .parent = &dpll2_m2_ck,
1126 .clkdm_name =
"iva2_clkdm",
1132 static const struct clksel div2_core_clksel[] = {
1133 { .parent = &core_ck, .
rates = div2_rates },
1137 static struct clk l3_ick = {
1144 .clksel = div2_core_clksel,
1145 .clkdm_name =
"core_l3_clkdm",
1149 static const struct clksel div2_l3_clksel[] = {
1150 { .parent = &l3_ick, .
rates = div2_rates },
1154 static struct clk l4_ick = {
1161 .clksel = div2_l3_clksel,
1162 .clkdm_name =
"core_l4_clkdm",
1167 static const struct clksel div2_l4_clksel[] = {
1168 { .parent = &l4_ick, .
rates = div2_rates },
1172 static struct clk rm_ick = {
1179 .clksel = div2_l4_clksel,
1187 static const struct clksel gfx_l3_clksel[] = {
1196 static struct clk gfx_l3_ck = {
1197 .name =
"gfx_l3_ck",
1205 static struct clk gfx_l3_fck = {
1206 .name =
"gfx_l3_fck",
1208 .parent = &gfx_l3_ck,
1212 .clksel = gfx_l3_clksel,
1213 .clkdm_name =
"gfx_3430es1_clkdm",
1217 static struct clk gfx_l3_ick = {
1218 .name =
"gfx_l3_ick",
1220 .parent = &gfx_l3_ck,
1221 .clkdm_name =
"gfx_3430es1_clkdm",
1225 static struct clk gfx_cg1_ck = {
1226 .name =
"gfx_cg1_ck",
1228 .parent = &gfx_l3_fck,
1231 .clkdm_name =
"gfx_3430es1_clkdm",
1235 static struct clk gfx_cg2_ck = {
1236 .name =
"gfx_cg2_ck",
1238 .parent = &gfx_l3_fck,
1241 .clkdm_name =
"gfx_3430es1_clkdm",
1247 static const struct clksel_rate sgx_core_rates[] = {
1248 { .div = 2, .val = 5, .flags = RATE_IN_36XX },
1249 { .div = 3, .val = 0, .flags = RATE_IN_3XXX },
1250 { .div = 4, .val = 1, .flags = RATE_IN_3XXX },
1251 { .div = 6, .val = 2, .flags = RATE_IN_3XXX },
1255 static const struct clksel_rate sgx_192m_rates[] = {
1256 { .div = 1, .val = 4, .flags = RATE_IN_36XX },
1260 static const struct clksel_rate sgx_corex2_rates[] = {
1261 { .div = 3, .val = 6, .flags = RATE_IN_36XX },
1262 { .div = 5, .val = 7, .flags = RATE_IN_36XX },
1266 static const struct clksel_rate sgx_96m_rates[] = {
1267 { .div = 1, .val = 3, .flags = RATE_IN_3XXX },
1271 static const struct clksel sgx_clksel[] = {
1272 { .parent = &core_ck, .
rates = sgx_core_rates },
1273 { .parent = &cm_96m_fck, .
rates = sgx_96m_rates },
1274 { .parent = &omap_192m_alwon_fck, .
rates = sgx_192m_rates },
1275 { .parent = &corex2_fck, .
rates = sgx_corex2_rates },
1279 static struct clk sgx_fck = {
1287 .clksel = sgx_clksel,
1288 .clkdm_name =
"sgx_clkdm",
1295 static struct clk sgx_ick = {
1301 .clkdm_name =
"sgx_clkdm",
1307 static struct clk d2d_26m_fck = {
1308 .name =
"d2d_26m_fck",
1313 .clkdm_name =
"d2d_clkdm",
1317 static struct clk modem_fck = {
1318 .name =
"modem_fck",
1323 .clkdm_name =
"d2d_clkdm",
1327 static struct clk sad2d_ick = {
1328 .name =
"sad2d_ick",
1333 .clkdm_name =
"d2d_clkdm",
1337 static struct clk mad2d_ick = {
1338 .name =
"mad2d_ick",
1343 .clkdm_name =
"d2d_clkdm",
1347 static const struct clksel omap343x_gpt_clksel[] = {
1353 static struct clk gpt10_fck = {
1354 .name =
"gpt10_fck",
1362 .clksel = omap343x_gpt_clksel,
1363 .clkdm_name =
"core_l4_clkdm",
1367 static struct clk gpt11_fck = {
1368 .name =
"gpt11_fck",
1376 .clksel = omap343x_gpt_clksel,
1377 .clkdm_name =
"core_l4_clkdm",
1381 static struct clk cpefuse_fck = {
1382 .name =
"cpefuse_fck",
1385 .clkdm_name =
"core_l4_clkdm",
1391 static struct clk ts_fck = {
1394 .parent = &omap_32k_fck,
1395 .clkdm_name =
"core_l4_clkdm",
1401 static struct clk usbtll_fck = {
1402 .name =
"usbtll_fck",
1404 .parent = &dpll5_m2_ck,
1405 .clkdm_name =
"core_l4_clkdm",
1413 static struct clk core_96m_fck = {
1414 .name =
"core_96m_fck",
1416 .parent = &omap_96m_fck,
1417 .clkdm_name =
"core_l4_clkdm",
1421 static struct clk mmchs3_fck = {
1422 .name =
"mmchs3_fck",
1424 .parent = &core_96m_fck,
1427 .clkdm_name =
"core_l4_clkdm",
1431 static struct clk mmchs2_fck = {
1432 .name =
"mmchs2_fck",
1434 .parent = &core_96m_fck,
1437 .clkdm_name =
"core_l4_clkdm",
1441 static struct clk mspro_fck = {
1442 .name =
"mspro_fck",
1444 .parent = &core_96m_fck,
1447 .clkdm_name =
"core_l4_clkdm",
1451 static struct clk mmchs1_fck = {
1452 .name =
"mmchs1_fck",
1454 .parent = &core_96m_fck,
1457 .clkdm_name =
"core_l4_clkdm",
1461 static struct clk i2c3_fck = {
1464 .parent = &core_96m_fck,
1467 .clkdm_name =
"core_l4_clkdm",
1471 static struct clk i2c2_fck = {
1474 .parent = &core_96m_fck,
1477 .clkdm_name =
"core_l4_clkdm",
1481 static struct clk i2c1_fck = {
1484 .parent = &core_96m_fck,
1487 .clkdm_name =
"core_l4_clkdm",
1495 static const struct clksel_rate common_mcbsp_96m_rates[] = {
1496 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
1500 static const struct clksel_rate common_mcbsp_mcbsp_rates[] = {
1501 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
1505 static const struct clksel mcbsp_15_clksel[] = {
1506 { .parent = &core_96m_fck, .
rates = common_mcbsp_96m_rates },
1507 { .parent = &mcbsp_clks, .
rates = common_mcbsp_mcbsp_rates },
1511 static struct clk mcbsp5_fck = {
1512 .name =
"mcbsp5_fck",
1519 .clksel = mcbsp_15_clksel,
1520 .clkdm_name =
"core_l4_clkdm",
1524 static struct clk mcbsp1_fck = {
1525 .name =
"mcbsp1_fck",
1532 .clksel = mcbsp_15_clksel,
1533 .clkdm_name =
"core_l4_clkdm",
1539 static struct clk core_48m_fck = {
1540 .name =
"core_48m_fck",
1542 .parent = &omap_48m_fck,
1543 .clkdm_name =
"core_l4_clkdm",
1547 static struct clk mcspi4_fck = {
1548 .name =
"mcspi4_fck",
1550 .parent = &core_48m_fck,
1554 .clkdm_name =
"core_l4_clkdm",
1557 static struct clk mcspi3_fck = {
1558 .name =
"mcspi3_fck",
1560 .parent = &core_48m_fck,
1564 .clkdm_name =
"core_l4_clkdm",
1567 static struct clk mcspi2_fck = {
1568 .name =
"mcspi2_fck",
1570 .parent = &core_48m_fck,
1574 .clkdm_name =
"core_l4_clkdm",
1577 static struct clk mcspi1_fck = {
1578 .name =
"mcspi1_fck",
1580 .parent = &core_48m_fck,
1584 .clkdm_name =
"core_l4_clkdm",
1587 static struct clk uart2_fck = {
1588 .name =
"uart2_fck",
1590 .parent = &core_48m_fck,
1593 .clkdm_name =
"core_l4_clkdm",
1597 static struct clk uart1_fck = {
1598 .name =
"uart1_fck",
1600 .parent = &core_48m_fck,
1603 .clkdm_name =
"core_l4_clkdm",
1607 static struct clk fshostusb_fck = {
1608 .name =
"fshostusb_fck",
1610 .parent = &core_48m_fck,
1611 .clkdm_name =
"core_l4_clkdm",
1619 static struct clk core_12m_fck = {
1620 .name =
"core_12m_fck",
1622 .parent = &omap_12m_fck,
1623 .clkdm_name =
"core_l4_clkdm",
1627 static struct clk hdq_fck = {
1630 .parent = &core_12m_fck,
1631 .clkdm_name =
"core_l4_clkdm",
1639 static const struct clksel_rate ssi_ssr_corex2_rates[] = {
1640 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
1641 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
1642 { .div = 3, .val = 3, .flags = RATE_IN_3XXX },
1643 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
1644 { .div = 6, .val = 6, .flags = RATE_IN_3XXX },
1645 { .div = 8, .val = 8, .flags = RATE_IN_3XXX },
1649 static const struct clksel ssi_ssr_clksel[] = {
1650 { .parent = &corex2_fck, .
rates = ssi_ssr_corex2_rates },
1654 static struct clk ssi_ssr_fck_3430es1 = {
1655 .name =
"ssi_ssr_fck",
1662 .clksel = ssi_ssr_clksel,
1663 .clkdm_name =
"core_l4_clkdm",
1667 static struct clk ssi_ssr_fck_3430es2 = {
1668 .name =
"ssi_ssr_fck",
1675 .clksel = ssi_ssr_clksel,
1676 .clkdm_name =
"core_l4_clkdm",
1680 static struct clk ssi_sst_fck_3430es1 = {
1681 .name =
"ssi_sst_fck",
1683 .parent = &ssi_ssr_fck_3430es1,
1688 static struct clk ssi_sst_fck_3430es2 = {
1689 .name =
"ssi_sst_fck",
1691 .parent = &ssi_ssr_fck_3430es2,
1704 static struct clk core_l3_ick = {
1705 .name =
"core_l3_ick",
1708 .clkdm_name =
"core_l3_clkdm",
1712 static struct clk hsotgusb_ick_3430es1 = {
1713 .name =
"hsotgusb_ick",
1715 .parent = &core_l3_ick,
1718 .clkdm_name =
"core_l3_clkdm",
1722 static struct clk hsotgusb_ick_3430es2 = {
1723 .name =
"hsotgusb_ick",
1725 .parent = &core_l3_ick,
1728 .clkdm_name =
"core_l3_clkdm",
1733 static struct clk sdrc_ick = {
1736 .parent = &core_l3_ick,
1740 .clkdm_name =
"core_l3_clkdm",
1744 static struct clk gpmc_fck = {
1747 .parent = &core_l3_ick,
1749 .clkdm_name =
"core_l3_clkdm",
1755 static struct clk security_l3_ick = {
1756 .name =
"security_l3_ick",
1762 static struct clk pka_ick = {
1765 .parent = &security_l3_ick,
1773 static struct clk core_l4_ick = {
1774 .name =
"core_l4_ick",
1777 .clkdm_name =
"core_l4_clkdm",
1781 static struct clk usbtll_ick = {
1782 .name =
"usbtll_ick",
1784 .parent = &core_l4_ick,
1787 .clkdm_name =
"core_l4_clkdm",
1791 static struct clk mmchs3_ick = {
1792 .name =
"mmchs3_ick",
1794 .parent = &core_l4_ick,
1797 .clkdm_name =
"core_l4_clkdm",
1802 static struct clk icr_ick = {
1805 .parent = &core_l4_ick,
1808 .clkdm_name =
"core_l4_clkdm",
1812 static struct clk aes2_ick = {
1815 .parent = &core_l4_ick,
1818 .clkdm_name =
"core_l4_clkdm",
1822 static struct clk sha12_ick = {
1823 .name =
"sha12_ick",
1825 .parent = &core_l4_ick,
1828 .clkdm_name =
"core_l4_clkdm",
1832 static struct clk des2_ick = {
1835 .parent = &core_l4_ick,
1838 .clkdm_name =
"core_l4_clkdm",
1842 static struct clk mmchs2_ick = {
1843 .name =
"mmchs2_ick",
1845 .parent = &core_l4_ick,
1848 .clkdm_name =
"core_l4_clkdm",
1852 static struct clk mmchs1_ick = {
1853 .name =
"mmchs1_ick",
1855 .parent = &core_l4_ick,
1858 .clkdm_name =
"core_l4_clkdm",
1862 static struct clk mspro_ick = {
1863 .name =
"mspro_ick",
1865 .parent = &core_l4_ick,
1868 .clkdm_name =
"core_l4_clkdm",
1872 static struct clk hdq_ick = {
1875 .parent = &core_l4_ick,
1878 .clkdm_name =
"core_l4_clkdm",
1882 static struct clk mcspi4_ick = {
1883 .name =
"mcspi4_ick",
1885 .parent = &core_l4_ick,
1888 .clkdm_name =
"core_l4_clkdm",
1892 static struct clk mcspi3_ick = {
1893 .name =
"mcspi3_ick",
1895 .parent = &core_l4_ick,
1898 .clkdm_name =
"core_l4_clkdm",
1902 static struct clk mcspi2_ick = {
1903 .name =
"mcspi2_ick",
1905 .parent = &core_l4_ick,
1908 .clkdm_name =
"core_l4_clkdm",
1912 static struct clk mcspi1_ick = {
1913 .name =
"mcspi1_ick",
1915 .parent = &core_l4_ick,
1918 .clkdm_name =
"core_l4_clkdm",
1922 static struct clk i2c3_ick = {
1925 .parent = &core_l4_ick,
1928 .clkdm_name =
"core_l4_clkdm",
1932 static struct clk i2c2_ick = {
1935 .parent = &core_l4_ick,
1938 .clkdm_name =
"core_l4_clkdm",
1942 static struct clk i2c1_ick = {
1945 .parent = &core_l4_ick,
1948 .clkdm_name =
"core_l4_clkdm",
1952 static struct clk uart2_ick = {
1953 .name =
"uart2_ick",
1955 .parent = &core_l4_ick,
1958 .clkdm_name =
"core_l4_clkdm",
1962 static struct clk uart1_ick = {
1963 .name =
"uart1_ick",
1965 .parent = &core_l4_ick,
1968 .clkdm_name =
"core_l4_clkdm",
1972 static struct clk gpt11_ick = {
1973 .name =
"gpt11_ick",
1975 .parent = &core_l4_ick,
1978 .clkdm_name =
"core_l4_clkdm",
1982 static struct clk gpt10_ick = {
1983 .name =
"gpt10_ick",
1985 .parent = &core_l4_ick,
1988 .clkdm_name =
"core_l4_clkdm",
1992 static struct clk mcbsp5_ick = {
1993 .name =
"mcbsp5_ick",
1995 .parent = &core_l4_ick,
1998 .clkdm_name =
"core_l4_clkdm",
2002 static struct clk mcbsp1_ick = {
2003 .name =
"mcbsp1_ick",
2005 .parent = &core_l4_ick,
2008 .clkdm_name =
"core_l4_clkdm",
2012 static struct clk fac_ick = {
2015 .parent = &core_l4_ick,
2018 .clkdm_name =
"core_l4_clkdm",
2022 static struct clk mailboxes_ick = {
2023 .name =
"mailboxes_ick",
2025 .parent = &core_l4_ick,
2028 .clkdm_name =
"core_l4_clkdm",
2032 static struct clk omapctrl_ick = {
2033 .name =
"omapctrl_ick",
2035 .parent = &core_l4_ick,
2039 .clkdm_name =
"core_l4_clkdm",
2045 static struct clk ssi_l4_ick = {
2046 .name =
"ssi_l4_ick",
2049 .clkdm_name =
"core_l4_clkdm",
2053 static struct clk ssi_ick_3430es1 = {
2056 .parent = &ssi_l4_ick,
2059 .clkdm_name =
"core_l4_clkdm",
2063 static struct clk ssi_ick_3430es2 = {
2066 .parent = &ssi_l4_ick,
2069 .clkdm_name =
"core_l4_clkdm",
2076 static const struct clksel usb_l4_clksel[] = {
2077 { .parent = &l4_ick, .
rates = div2_rates },
2081 static struct clk usb_l4_ick = {
2082 .name =
"usb_l4_ick",
2090 .clksel = usb_l4_clksel,
2091 .clkdm_name =
"core_l4_clkdm",
2097 static struct clk security_l4_ick2 = {
2098 .name =
"security_l4_ick2",
2104 static struct clk aes1_ick = {
2107 .parent = &security_l4_ick2,
2113 static struct clk rng_ick = {
2116 .parent = &security_l4_ick2,
2122 static struct clk sha11_ick = {
2123 .name =
"sha11_ick",
2125 .parent = &security_l4_ick2,
2131 static struct clk des1_ick = {
2134 .parent = &security_l4_ick2,
2141 static struct clk dss1_alwon_fck_3430es1 = {
2142 .name =
"dss1_alwon_fck",
2144 .parent = &dpll4_m4x2_ck,
2147 .clkdm_name =
"dss_clkdm",
2151 static struct clk dss1_alwon_fck_3430es2 = {
2152 .name =
"dss1_alwon_fck",
2154 .parent = &dpll4_m4x2_ck,
2157 .clkdm_name =
"dss_clkdm",
2161 static struct clk dss_tv_fck = {
2162 .name =
"dss_tv_fck",
2164 .parent = &omap_54m_fck,
2167 .clkdm_name =
"dss_clkdm",
2171 static struct clk dss_96m_fck = {
2172 .name =
"dss_96m_fck",
2174 .parent = &omap_96m_fck,
2177 .clkdm_name =
"dss_clkdm",
2181 static struct clk dss2_alwon_fck = {
2182 .name =
"dss2_alwon_fck",
2187 .clkdm_name =
"dss_clkdm",
2191 static struct clk dss_ick_3430es1 = {
2198 .clkdm_name =
"dss_clkdm",
2202 static struct clk dss_ick_3430es2 = {
2209 .clkdm_name =
"dss_clkdm",
2215 static struct clk cam_mclk = {
2218 .parent = &dpll4_m5x2_ck,
2221 .clkdm_name =
"cam_clkdm",
2225 static struct clk cam_ick = {
2232 .clkdm_name =
"cam_clkdm",
2236 static struct clk csi2_96m_fck = {
2237 .name =
"csi2_96m_fck",
2239 .parent = &core_96m_fck,
2242 .clkdm_name =
"cam_clkdm",
2248 static struct clk usbhost_120m_fck = {
2249 .name =
"usbhost_120m_fck",
2251 .parent = &dpll5_m2_ck,
2254 .clkdm_name =
"usbhost_clkdm",
2258 static struct clk usbhost_48m_fck = {
2259 .name =
"usbhost_48m_fck",
2261 .parent = &omap_48m_fck,
2264 .clkdm_name =
"usbhost_clkdm",
2268 static struct clk usbhost_ick = {
2270 .name =
"usbhost_ick",
2275 .clkdm_name =
"usbhost_clkdm",
2281 static const struct clksel_rate usim_96m_rates[] = {
2282 { .div = 2, .val = 3, .flags = RATE_IN_3XXX },
2283 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
2284 { .div = 8, .val = 5, .flags = RATE_IN_3XXX },
2285 { .div = 10, .val = 6, .flags = RATE_IN_3XXX },
2289 static const struct clksel_rate usim_120m_rates[] = {
2290 { .div = 4, .val = 7, .flags = RATE_IN_3XXX },
2291 { .div = 8, .val = 8, .flags = RATE_IN_3XXX },
2292 { .div = 16, .val = 9, .flags = RATE_IN_3XXX },
2293 { .div = 20, .val = 10, .flags = RATE_IN_3XXX },
2297 static const struct clksel usim_clksel[] = {
2298 { .parent = &omap_96m_fck, .
rates = usim_96m_rates },
2299 { .parent = &dpll5_m2_ck, .
rates = usim_120m_rates },
2300 { .parent = &
sys_ck, .rates = div2_rates },
2305 static struct clk usim_fck = {
2313 .clksel = usim_clksel,
2318 static struct clk gpt1_fck = {
2326 .clksel = omap343x_gpt_clksel,
2327 .clkdm_name =
"wkup_clkdm",
2331 static struct clk wkup_32k_fck = {
2332 .name =
"wkup_32k_fck",
2334 .parent = &omap_32k_fck,
2335 .clkdm_name =
"wkup_clkdm",
2339 static struct clk gpio1_dbck = {
2340 .name =
"gpio1_dbck",
2342 .parent = &wkup_32k_fck,
2345 .clkdm_name =
"wkup_clkdm",
2349 static struct clk wdt2_fck = {
2352 .parent = &wkup_32k_fck,
2355 .clkdm_name =
"wkup_clkdm",
2359 static struct clk wkup_l4_ick = {
2360 .name =
"wkup_l4_ick",
2363 .clkdm_name =
"wkup_clkdm",
2369 static struct clk usim_ick = {
2372 .parent = &wkup_l4_ick,
2375 .clkdm_name =
"wkup_clkdm",
2379 static struct clk wdt2_ick = {
2382 .parent = &wkup_l4_ick,
2385 .clkdm_name =
"wkup_clkdm",
2389 static struct clk wdt1_ick = {
2392 .parent = &wkup_l4_ick,
2395 .clkdm_name =
"wkup_clkdm",
2399 static struct clk gpio1_ick = {
2400 .name =
"gpio1_ick",
2402 .parent = &wkup_l4_ick,
2405 .clkdm_name =
"wkup_clkdm",
2409 static struct clk omap_32ksync_ick = {
2410 .name =
"omap_32ksync_ick",
2412 .parent = &wkup_l4_ick,
2415 .clkdm_name =
"wkup_clkdm",
2420 static struct clk gpt12_ick = {
2421 .name =
"gpt12_ick",
2423 .parent = &wkup_l4_ick,
2426 .clkdm_name =
"wkup_clkdm",
2430 static struct clk gpt1_ick = {
2433 .parent = &wkup_l4_ick,
2436 .clkdm_name =
"wkup_clkdm",
2444 static struct clk per_96m_fck = {
2445 .name =
"per_96m_fck",
2447 .parent = &omap_96m_alwon_fck,
2448 .clkdm_name =
"per_clkdm",
2452 static struct clk per_48m_fck = {
2453 .name =
"per_48m_fck",
2455 .parent = &omap_48m_fck,
2456 .clkdm_name =
"per_clkdm",
2460 static struct clk uart3_fck = {
2461 .name =
"uart3_fck",
2463 .parent = &per_48m_fck,
2466 .clkdm_name =
"per_clkdm",
2470 static struct clk uart4_fck = {
2471 .name =
"uart4_fck",
2473 .parent = &per_48m_fck,
2476 .clkdm_name =
"per_clkdm",
2480 static struct clk uart4_fck_am35xx = {
2481 .name =
"uart4_fck",
2483 .parent = &core_48m_fck,
2486 .clkdm_name =
"core_l4_clkdm",
2490 static struct clk gpt2_fck = {
2498 .clksel = omap343x_gpt_clksel,
2499 .clkdm_name =
"per_clkdm",
2503 static struct clk gpt3_fck = {
2511 .clksel = omap343x_gpt_clksel,
2512 .clkdm_name =
"per_clkdm",
2516 static struct clk gpt4_fck = {
2524 .clksel = omap343x_gpt_clksel,
2525 .clkdm_name =
"per_clkdm",
2529 static struct clk gpt5_fck = {
2537 .clksel = omap343x_gpt_clksel,
2538 .clkdm_name =
"per_clkdm",
2542 static struct clk gpt6_fck = {
2550 .clksel = omap343x_gpt_clksel,
2551 .clkdm_name =
"per_clkdm",
2555 static struct clk gpt7_fck = {
2563 .clksel = omap343x_gpt_clksel,
2564 .clkdm_name =
"per_clkdm",
2568 static struct clk gpt8_fck = {
2576 .clksel = omap343x_gpt_clksel,
2577 .clkdm_name =
"per_clkdm",
2581 static struct clk gpt9_fck = {
2589 .clksel = omap343x_gpt_clksel,
2590 .clkdm_name =
"per_clkdm",
2594 static struct clk per_32k_alwon_fck = {
2595 .name =
"per_32k_alwon_fck",
2597 .parent = &omap_32k_fck,
2598 .clkdm_name =
"per_clkdm",
2602 static struct clk gpio6_dbck = {
2603 .name =
"gpio6_dbck",
2605 .parent = &per_32k_alwon_fck,
2608 .clkdm_name =
"per_clkdm",
2612 static struct clk gpio5_dbck = {
2613 .name =
"gpio5_dbck",
2615 .parent = &per_32k_alwon_fck,
2618 .clkdm_name =
"per_clkdm",
2622 static struct clk gpio4_dbck = {
2623 .name =
"gpio4_dbck",
2625 .parent = &per_32k_alwon_fck,
2628 .clkdm_name =
"per_clkdm",
2632 static struct clk gpio3_dbck = {
2633 .name =
"gpio3_dbck",
2635 .parent = &per_32k_alwon_fck,
2638 .clkdm_name =
"per_clkdm",
2642 static struct clk gpio2_dbck = {
2643 .name =
"gpio2_dbck",
2645 .parent = &per_32k_alwon_fck,
2648 .clkdm_name =
"per_clkdm",
2652 static struct clk wdt3_fck = {
2655 .parent = &per_32k_alwon_fck,
2658 .clkdm_name =
"per_clkdm",
2662 static struct clk per_l4_ick = {
2663 .name =
"per_l4_ick",
2666 .clkdm_name =
"per_clkdm",
2670 static struct clk gpio6_ick = {
2671 .name =
"gpio6_ick",
2673 .parent = &per_l4_ick,
2676 .clkdm_name =
"per_clkdm",
2680 static struct clk gpio5_ick = {
2681 .name =
"gpio5_ick",
2683 .parent = &per_l4_ick,
2686 .clkdm_name =
"per_clkdm",
2690 static struct clk gpio4_ick = {
2691 .name =
"gpio4_ick",
2693 .parent = &per_l4_ick,
2696 .clkdm_name =
"per_clkdm",
2700 static struct clk gpio3_ick = {
2701 .name =
"gpio3_ick",
2703 .parent = &per_l4_ick,
2706 .clkdm_name =
"per_clkdm",
2710 static struct clk gpio2_ick = {
2711 .name =
"gpio2_ick",
2713 .parent = &per_l4_ick,
2716 .clkdm_name =
"per_clkdm",
2720 static struct clk wdt3_ick = {
2723 .parent = &per_l4_ick,
2726 .clkdm_name =
"per_clkdm",
2730 static struct clk uart3_ick = {
2731 .name =
"uart3_ick",
2733 .parent = &per_l4_ick,
2736 .clkdm_name =
"per_clkdm",
2740 static struct clk uart4_ick = {
2741 .name =
"uart4_ick",
2743 .parent = &per_l4_ick,
2746 .clkdm_name =
"per_clkdm",
2750 static struct clk gpt9_ick = {
2753 .parent = &per_l4_ick,
2756 .clkdm_name =
"per_clkdm",
2760 static struct clk gpt8_ick = {
2763 .parent = &per_l4_ick,
2766 .clkdm_name =
"per_clkdm",
2770 static struct clk gpt7_ick = {
2773 .parent = &per_l4_ick,
2776 .clkdm_name =
"per_clkdm",
2780 static struct clk gpt6_ick = {
2783 .parent = &per_l4_ick,
2786 .clkdm_name =
"per_clkdm",
2790 static struct clk gpt5_ick = {
2793 .parent = &per_l4_ick,
2796 .clkdm_name =
"per_clkdm",
2800 static struct clk gpt4_ick = {
2803 .parent = &per_l4_ick,
2806 .clkdm_name =
"per_clkdm",
2810 static struct clk gpt3_ick = {
2813 .parent = &per_l4_ick,
2816 .clkdm_name =
"per_clkdm",
2820 static struct clk gpt2_ick = {
2823 .parent = &per_l4_ick,
2826 .clkdm_name =
"per_clkdm",
2830 static struct clk mcbsp2_ick = {
2831 .name =
"mcbsp2_ick",
2833 .parent = &per_l4_ick,
2836 .clkdm_name =
"per_clkdm",
2840 static struct clk mcbsp3_ick = {
2841 .name =
"mcbsp3_ick",
2843 .parent = &per_l4_ick,
2846 .clkdm_name =
"per_clkdm",
2850 static struct clk mcbsp4_ick = {
2851 .name =
"mcbsp4_ick",
2853 .parent = &per_l4_ick,
2856 .clkdm_name =
"per_clkdm",
2860 static const struct clksel mcbsp_234_clksel[] = {
2861 { .parent = &per_96m_fck, .
rates = common_mcbsp_96m_rates },
2862 { .parent = &mcbsp_clks, .
rates = common_mcbsp_mcbsp_rates },
2866 static struct clk mcbsp2_fck = {
2867 .name =
"mcbsp2_fck",
2874 .clksel = mcbsp_234_clksel,
2875 .clkdm_name =
"per_clkdm",
2879 static struct clk mcbsp3_fck = {
2880 .name =
"mcbsp3_fck",
2887 .clksel = mcbsp_234_clksel,
2888 .clkdm_name =
"per_clkdm",
2892 static struct clk mcbsp4_fck = {
2893 .name =
"mcbsp4_fck",
2900 .clksel = mcbsp_234_clksel,
2901 .clkdm_name =
"per_clkdm",
2909 static const struct clksel_rate emu_src_sys_rates[] = {
2910 { .div = 1, .val = 0, .flags = RATE_IN_3XXX },
2914 static const struct clksel_rate emu_src_core_rates[] = {
2915 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
2919 static const struct clksel_rate emu_src_per_rates[] = {
2920 { .div = 1, .val = 2, .flags = RATE_IN_3XXX },
2924 static const struct clksel_rate emu_src_mpu_rates[] = {
2925 { .div = 1, .val = 3, .flags = RATE_IN_3XXX },
2929 static const struct clksel emu_src_clksel[] = {
2930 { .parent = &
sys_ck, .rates = emu_src_sys_rates },
2931 { .parent = &emu_core_alwon_ck, .
rates = emu_src_core_rates },
2932 { .parent = &emu_per_alwon_ck, .
rates = emu_src_per_rates },
2933 { .parent = &emu_mpu_alwon_ck, .
rates = emu_src_mpu_rates },
2942 static struct clk emu_src_ck = {
2943 .name =
"emu_src_ck",
2948 .clksel = emu_src_clksel,
2949 .clkdm_name =
"emu_clkdm",
2953 static const struct clksel_rate pclk_emu_rates[] = {
2954 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
2955 { .div = 3, .val = 3, .flags = RATE_IN_3XXX },
2956 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
2957 { .div = 6, .val = 6, .flags = RATE_IN_3XXX },
2961 static const struct clksel pclk_emu_clksel[] = {
2962 { .parent = &emu_src_ck, .
rates = pclk_emu_rates },
2966 static struct clk pclk_fck = {
2972 .clksel = pclk_emu_clksel,
2973 .clkdm_name =
"emu_clkdm",
2977 static const struct clksel_rate pclkx2_emu_rates[] = {
2978 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
2979 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
2980 { .div = 3, .val = 3, .flags = RATE_IN_3XXX },
2984 static const struct clksel pclkx2_emu_clksel[] = {
2985 { .parent = &emu_src_ck, .
rates = pclkx2_emu_rates },
2989 static struct clk pclkx2_fck = {
2990 .name =
"pclkx2_fck",
2995 .clksel = pclkx2_emu_clksel,
2996 .clkdm_name =
"emu_clkdm",
3000 static const struct clksel atclk_emu_clksel[] = {
3001 { .parent = &emu_src_ck, .
rates = div2_rates },
3005 static struct clk atclk_fck = {
3006 .name =
"atclk_fck",
3011 .clksel = atclk_emu_clksel,
3012 .clkdm_name =
"emu_clkdm",
3016 static struct clk traceclk_src_fck = {
3017 .name =
"traceclk_src_fck",
3022 .clksel = emu_src_clksel,
3023 .clkdm_name =
"emu_clkdm",
3027 static const struct clksel_rate traceclk_rates[] = {
3028 { .div = 1, .val = 1, .flags = RATE_IN_3XXX },
3029 { .div = 2, .val = 2, .flags = RATE_IN_3XXX },
3030 { .div = 4, .val = 4, .flags = RATE_IN_3XXX },
3034 static const struct clksel traceclk_clksel[] = {
3035 { .parent = &traceclk_src_fck, .
rates = traceclk_rates },
3039 static struct clk traceclk_fck = {
3040 .name =
"traceclk_fck",
3045 .clksel = traceclk_clksel,
3046 .clkdm_name =
"emu_clkdm",
3053 static struct clk sr1_fck = {
3059 .clkdm_name =
"wkup_clkdm",
3064 static struct clk sr2_fck = {
3070 .clkdm_name =
"wkup_clkdm",
3074 static struct clk sr_l4_ick = {
3075 .name =
"sr_l4_ick",
3078 .clkdm_name =
"core_l4_clkdm",
3084 static struct clk gpt12_fck = {
3085 .name =
"gpt12_fck",
3087 .parent = &secure_32k_fck,
3088 .clkdm_name =
"wkup_clkdm",
3092 static struct clk wdt1_fck = {
3095 .parent = &secure_32k_fck,
3096 .clkdm_name =
"wkup_clkdm",
3101 static struct clk ipss_ick = {
3104 .parent = &core_l3_ick,
3105 .clkdm_name =
"core_l3_clkdm",
3111 static struct clk emac_ick = {
3114 .parent = &ipss_ick,
3115 .clkdm_name =
"core_l3_clkdm",
3121 static struct clk rmii_ck = {
3127 static struct clk emac_fck = {
3136 static struct clk hsotgusb_ick_am35xx = {
3137 .name =
"hsotgusb_ick",
3139 .parent = &ipss_ick,
3140 .clkdm_name =
"core_l3_clkdm",
3146 static struct clk hsotgusb_fck_am35xx = {
3147 .name =
"hsotgusb_fck",
3150 .clkdm_name =
"core_l3_clkdm",
3156 static struct clk hecc_ck = {
3160 .clkdm_name =
"core_l3_clkdm",
3166 static struct clk vpfe_ick = {
3169 .parent = &ipss_ick,
3170 .clkdm_name =
"core_l3_clkdm",
3176 static struct clk pclk_ck = {
3182 static struct clk vpfe_fck = {
3199 static struct clk uart4_ick_am35xx = {
3200 .name =
"uart4_ick",
3202 .parent = &core_l4_ick,
3205 .clkdm_name =
"core_l4_clkdm",
3209 static struct clk dummy_apb_pclk = {
3218 static struct omap_clk omap3xxx_clks[] = {
3246 CLK(
"etb",
"emu_core_alwon_ck", &emu_core_alwon_ck,
CK_3XXX),
3251 CLK(
NULL,
"omap_96m_alwon_fck_3630", &omap_96m_alwon_fck_3630,
CK_36XX),
3268 CLK(
"etb",
"emu_per_alwon_ck", &emu_per_alwon_ck,
CK_3XXX),
3278 CLK(
"etb",
"emu_mpu_alwon_ck", &emu_mpu_alwon_ck,
CK_3XXX),
3328 CLK(
"musb-omap2430",
"ick", &hsotgusb_ick_3430es1,
CK_3430ES1),
3346 CLK(
"omap_hsmmc.1",
"ick", &mmchs2_ick,
CK_3XXX),
3347 CLK(
"omap_hsmmc.0",
"ick", &mmchs1_ick,
CK_3XXX),
3353 CLK(
"omap2_mcspi.4",
"ick", &mcspi4_ick,
CK_3XXX),
3354 CLK(
"omap2_mcspi.3",
"ick", &mcspi3_ick,
CK_3XXX),
3355 CLK(
"omap2_mcspi.2",
"ick", &mcspi2_ick,
CK_3XXX),
3356 CLK(
"omap2_mcspi.1",
"ick", &mcspi1_ick,
CK_3XXX),
3361 CLK(
"omap_i2c.3",
"ick", &i2c3_ick,
CK_3XXX),
3362 CLK(
"omap_i2c.2",
"ick", &i2c2_ick,
CK_3XXX),
3363 CLK(
"omap_i2c.1",
"ick", &i2c1_ick,
CK_3XXX),
3371 CLK(
"omap-mcbsp.5",
"ick", &mcbsp5_ick,
CK_3XXX),
3372 CLK(
"omap-mcbsp.1",
"ick", &mcbsp1_ick,
CK_3XXX),
3465 CLK(
"omap-mcbsp.2",
"ick", &mcbsp2_ick,
CK_3XXX),
3466 CLK(
"omap-mcbsp.3",
"ick", &mcbsp3_ick,
CK_3XXX),
3467 CLK(
"omap-mcbsp.4",
"ick", &mcbsp4_ick,
CK_3XXX),
3475 CLK(
"etb",
"emu_src_ck", &emu_src_ck,
CK_3XXX),
3517 cpu_mask = (RATE_IN_34XX | RATE_IN_36XX);
3539 WARN(1,
"clock: could not identify OMAP3 variant\n");
3542 if (omap3_has_192mhz_clk())
3543 omap_96m_alwon_fck = omap_96m_alwon_fck_3630;
3572 dpll4_dd = dpll4_dd_3630;
3574 dpll4_dd = dpll4_dd_34xx;
3578 for (c = omap3xxx_clks; c < omap3xxx_clks +
ARRAY_SIZE(omap3xxx_clks);
3582 for (c = omap3xxx_clks; c < omap3xxx_clks +
ARRAY_SIZE(omap3xxx_clks);
3584 if (c->
cpu & cpu_clkflg) {
3595 pr_info(
"Clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ld MHz\n",
3596 (osc_sys_ck.
rate / 1000000), (osc_sys_ck.
rate / 100000) % 10,
3597 (core_ck.
rate / 1000000), (arm_fck.
rate / 1000000));