2 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/kernel.h>
15 #include <linux/bitops.h>
16 #include <linux/err.h>
17 #include <linux/platform_device.h>
18 #include <linux/module.h>
20 #include <linux/of_device.h>
21 #include <linux/clk-provider.h>
22 #include <linux/regmap.h>
23 #include <linux/reset-controller.h>
25 #include <dt-bindings/clock/qcom,gcc-msm8660.h>
26 #include <dt-bindings/reset/qcom,gcc-msm8660.h>
29 #include "clk-regmap.h"
32 #include "clk-branch.h"
35 static struct clk_pll pll8
= {
43 .clkr
.hw
.init
= &(struct clk_init_data
){
45 .parent_names
= (const char *[]){ "pxo" },
51 static struct clk_regmap pll8_vote
= {
53 .enable_mask
= BIT(8),
54 .hw
.init
= &(struct clk_init_data
){
56 .parent_names
= (const char *[]){ "pll8" },
58 .ops
= &clk_pll_vote_ops
,
68 static const struct parent_map gcc_pxo_pll8_map
[] = {
73 static const char * const gcc_pxo_pll8
[] = {
78 static const struct parent_map gcc_pxo_pll8_cxo_map
[] = {
84 static const char * const gcc_pxo_pll8_cxo
[] = {
90 static struct freq_tbl clk_tbl_gsbi_uart
[] = {
91 { 1843200, P_PLL8
, 2, 6, 625 },
92 { 3686400, P_PLL8
, 2, 12, 625 },
93 { 7372800, P_PLL8
, 2, 24, 625 },
94 { 14745600, P_PLL8
, 2, 48, 625 },
95 { 16000000, P_PLL8
, 4, 1, 6 },
96 { 24000000, P_PLL8
, 4, 1, 4 },
97 { 32000000, P_PLL8
, 4, 1, 3 },
98 { 40000000, P_PLL8
, 1, 5, 48 },
99 { 46400000, P_PLL8
, 1, 29, 240 },
100 { 48000000, P_PLL8
, 4, 1, 2 },
101 { 51200000, P_PLL8
, 1, 2, 15 },
102 { 56000000, P_PLL8
, 1, 7, 48 },
103 { 58982400, P_PLL8
, 1, 96, 625 },
104 { 64000000, P_PLL8
, 2, 1, 3 },
108 static struct clk_rcg gsbi1_uart_src
= {
113 .mnctr_reset_bit
= 7,
114 .mnctr_mode_shift
= 5,
125 .parent_map
= gcc_pxo_pll8_map
,
127 .freq_tbl
= clk_tbl_gsbi_uart
,
129 .enable_reg
= 0x29d4,
130 .enable_mask
= BIT(11),
131 .hw
.init
= &(struct clk_init_data
){
132 .name
= "gsbi1_uart_src",
133 .parent_names
= gcc_pxo_pll8
,
136 .flags
= CLK_SET_PARENT_GATE
,
141 static struct clk_branch gsbi1_uart_clk
= {
145 .enable_reg
= 0x29d4,
146 .enable_mask
= BIT(9),
147 .hw
.init
= &(struct clk_init_data
){
148 .name
= "gsbi1_uart_clk",
149 .parent_names
= (const char *[]){
153 .ops
= &clk_branch_ops
,
154 .flags
= CLK_SET_RATE_PARENT
,
159 static struct clk_rcg gsbi2_uart_src
= {
164 .mnctr_reset_bit
= 7,
165 .mnctr_mode_shift
= 5,
176 .parent_map
= gcc_pxo_pll8_map
,
178 .freq_tbl
= clk_tbl_gsbi_uart
,
180 .enable_reg
= 0x29f4,
181 .enable_mask
= BIT(11),
182 .hw
.init
= &(struct clk_init_data
){
183 .name
= "gsbi2_uart_src",
184 .parent_names
= gcc_pxo_pll8
,
187 .flags
= CLK_SET_PARENT_GATE
,
192 static struct clk_branch gsbi2_uart_clk
= {
196 .enable_reg
= 0x29f4,
197 .enable_mask
= BIT(9),
198 .hw
.init
= &(struct clk_init_data
){
199 .name
= "gsbi2_uart_clk",
200 .parent_names
= (const char *[]){
204 .ops
= &clk_branch_ops
,
205 .flags
= CLK_SET_RATE_PARENT
,
210 static struct clk_rcg gsbi3_uart_src
= {
215 .mnctr_reset_bit
= 7,
216 .mnctr_mode_shift
= 5,
227 .parent_map
= gcc_pxo_pll8_map
,
229 .freq_tbl
= clk_tbl_gsbi_uart
,
231 .enable_reg
= 0x2a14,
232 .enable_mask
= BIT(11),
233 .hw
.init
= &(struct clk_init_data
){
234 .name
= "gsbi3_uart_src",
235 .parent_names
= gcc_pxo_pll8
,
238 .flags
= CLK_SET_PARENT_GATE
,
243 static struct clk_branch gsbi3_uart_clk
= {
247 .enable_reg
= 0x2a14,
248 .enable_mask
= BIT(9),
249 .hw
.init
= &(struct clk_init_data
){
250 .name
= "gsbi3_uart_clk",
251 .parent_names
= (const char *[]){
255 .ops
= &clk_branch_ops
,
256 .flags
= CLK_SET_RATE_PARENT
,
261 static struct clk_rcg gsbi4_uart_src
= {
266 .mnctr_reset_bit
= 7,
267 .mnctr_mode_shift
= 5,
278 .parent_map
= gcc_pxo_pll8_map
,
280 .freq_tbl
= clk_tbl_gsbi_uart
,
282 .enable_reg
= 0x2a34,
283 .enable_mask
= BIT(11),
284 .hw
.init
= &(struct clk_init_data
){
285 .name
= "gsbi4_uart_src",
286 .parent_names
= gcc_pxo_pll8
,
289 .flags
= CLK_SET_PARENT_GATE
,
294 static struct clk_branch gsbi4_uart_clk
= {
298 .enable_reg
= 0x2a34,
299 .enable_mask
= BIT(9),
300 .hw
.init
= &(struct clk_init_data
){
301 .name
= "gsbi4_uart_clk",
302 .parent_names
= (const char *[]){
306 .ops
= &clk_branch_ops
,
307 .flags
= CLK_SET_RATE_PARENT
,
312 static struct clk_rcg gsbi5_uart_src
= {
317 .mnctr_reset_bit
= 7,
318 .mnctr_mode_shift
= 5,
329 .parent_map
= gcc_pxo_pll8_map
,
331 .freq_tbl
= clk_tbl_gsbi_uart
,
333 .enable_reg
= 0x2a54,
334 .enable_mask
= BIT(11),
335 .hw
.init
= &(struct clk_init_data
){
336 .name
= "gsbi5_uart_src",
337 .parent_names
= gcc_pxo_pll8
,
340 .flags
= CLK_SET_PARENT_GATE
,
345 static struct clk_branch gsbi5_uart_clk
= {
349 .enable_reg
= 0x2a54,
350 .enable_mask
= BIT(9),
351 .hw
.init
= &(struct clk_init_data
){
352 .name
= "gsbi5_uart_clk",
353 .parent_names
= (const char *[]){
357 .ops
= &clk_branch_ops
,
358 .flags
= CLK_SET_RATE_PARENT
,
363 static struct clk_rcg gsbi6_uart_src
= {
368 .mnctr_reset_bit
= 7,
369 .mnctr_mode_shift
= 5,
380 .parent_map
= gcc_pxo_pll8_map
,
382 .freq_tbl
= clk_tbl_gsbi_uart
,
384 .enable_reg
= 0x2a74,
385 .enable_mask
= BIT(11),
386 .hw
.init
= &(struct clk_init_data
){
387 .name
= "gsbi6_uart_src",
388 .parent_names
= gcc_pxo_pll8
,
391 .flags
= CLK_SET_PARENT_GATE
,
396 static struct clk_branch gsbi6_uart_clk
= {
400 .enable_reg
= 0x2a74,
401 .enable_mask
= BIT(9),
402 .hw
.init
= &(struct clk_init_data
){
403 .name
= "gsbi6_uart_clk",
404 .parent_names
= (const char *[]){
408 .ops
= &clk_branch_ops
,
409 .flags
= CLK_SET_RATE_PARENT
,
414 static struct clk_rcg gsbi7_uart_src
= {
419 .mnctr_reset_bit
= 7,
420 .mnctr_mode_shift
= 5,
431 .parent_map
= gcc_pxo_pll8_map
,
433 .freq_tbl
= clk_tbl_gsbi_uart
,
435 .enable_reg
= 0x2a94,
436 .enable_mask
= BIT(11),
437 .hw
.init
= &(struct clk_init_data
){
438 .name
= "gsbi7_uart_src",
439 .parent_names
= gcc_pxo_pll8
,
442 .flags
= CLK_SET_PARENT_GATE
,
447 static struct clk_branch gsbi7_uart_clk
= {
451 .enable_reg
= 0x2a94,
452 .enable_mask
= BIT(9),
453 .hw
.init
= &(struct clk_init_data
){
454 .name
= "gsbi7_uart_clk",
455 .parent_names
= (const char *[]){
459 .ops
= &clk_branch_ops
,
460 .flags
= CLK_SET_RATE_PARENT
,
465 static struct clk_rcg gsbi8_uart_src
= {
470 .mnctr_reset_bit
= 7,
471 .mnctr_mode_shift
= 5,
482 .parent_map
= gcc_pxo_pll8_map
,
484 .freq_tbl
= clk_tbl_gsbi_uart
,
486 .enable_reg
= 0x2ab4,
487 .enable_mask
= BIT(11),
488 .hw
.init
= &(struct clk_init_data
){
489 .name
= "gsbi8_uart_src",
490 .parent_names
= gcc_pxo_pll8
,
493 .flags
= CLK_SET_PARENT_GATE
,
498 static struct clk_branch gsbi8_uart_clk
= {
502 .enable_reg
= 0x2ab4,
503 .enable_mask
= BIT(9),
504 .hw
.init
= &(struct clk_init_data
){
505 .name
= "gsbi8_uart_clk",
506 .parent_names
= (const char *[]){ "gsbi8_uart_src" },
508 .ops
= &clk_branch_ops
,
509 .flags
= CLK_SET_RATE_PARENT
,
514 static struct clk_rcg gsbi9_uart_src
= {
519 .mnctr_reset_bit
= 7,
520 .mnctr_mode_shift
= 5,
531 .parent_map
= gcc_pxo_pll8_map
,
533 .freq_tbl
= clk_tbl_gsbi_uart
,
535 .enable_reg
= 0x2ad4,
536 .enable_mask
= BIT(11),
537 .hw
.init
= &(struct clk_init_data
){
538 .name
= "gsbi9_uart_src",
539 .parent_names
= gcc_pxo_pll8
,
542 .flags
= CLK_SET_PARENT_GATE
,
547 static struct clk_branch gsbi9_uart_clk
= {
551 .enable_reg
= 0x2ad4,
552 .enable_mask
= BIT(9),
553 .hw
.init
= &(struct clk_init_data
){
554 .name
= "gsbi9_uart_clk",
555 .parent_names
= (const char *[]){ "gsbi9_uart_src" },
557 .ops
= &clk_branch_ops
,
558 .flags
= CLK_SET_RATE_PARENT
,
563 static struct clk_rcg gsbi10_uart_src
= {
568 .mnctr_reset_bit
= 7,
569 .mnctr_mode_shift
= 5,
580 .parent_map
= gcc_pxo_pll8_map
,
582 .freq_tbl
= clk_tbl_gsbi_uart
,
584 .enable_reg
= 0x2af4,
585 .enable_mask
= BIT(11),
586 .hw
.init
= &(struct clk_init_data
){
587 .name
= "gsbi10_uart_src",
588 .parent_names
= gcc_pxo_pll8
,
591 .flags
= CLK_SET_PARENT_GATE
,
596 static struct clk_branch gsbi10_uart_clk
= {
600 .enable_reg
= 0x2af4,
601 .enable_mask
= BIT(9),
602 .hw
.init
= &(struct clk_init_data
){
603 .name
= "gsbi10_uart_clk",
604 .parent_names
= (const char *[]){ "gsbi10_uart_src" },
606 .ops
= &clk_branch_ops
,
607 .flags
= CLK_SET_RATE_PARENT
,
612 static struct clk_rcg gsbi11_uart_src
= {
617 .mnctr_reset_bit
= 7,
618 .mnctr_mode_shift
= 5,
629 .parent_map
= gcc_pxo_pll8_map
,
631 .freq_tbl
= clk_tbl_gsbi_uart
,
633 .enable_reg
= 0x2b14,
634 .enable_mask
= BIT(11),
635 .hw
.init
= &(struct clk_init_data
){
636 .name
= "gsbi11_uart_src",
637 .parent_names
= gcc_pxo_pll8
,
640 .flags
= CLK_SET_PARENT_GATE
,
645 static struct clk_branch gsbi11_uart_clk
= {
649 .enable_reg
= 0x2b14,
650 .enable_mask
= BIT(9),
651 .hw
.init
= &(struct clk_init_data
){
652 .name
= "gsbi11_uart_clk",
653 .parent_names
= (const char *[]){ "gsbi11_uart_src" },
655 .ops
= &clk_branch_ops
,
656 .flags
= CLK_SET_RATE_PARENT
,
661 static struct clk_rcg gsbi12_uart_src
= {
666 .mnctr_reset_bit
= 7,
667 .mnctr_mode_shift
= 5,
678 .parent_map
= gcc_pxo_pll8_map
,
680 .freq_tbl
= clk_tbl_gsbi_uart
,
682 .enable_reg
= 0x2b34,
683 .enable_mask
= BIT(11),
684 .hw
.init
= &(struct clk_init_data
){
685 .name
= "gsbi12_uart_src",
686 .parent_names
= gcc_pxo_pll8
,
689 .flags
= CLK_SET_PARENT_GATE
,
694 static struct clk_branch gsbi12_uart_clk
= {
698 .enable_reg
= 0x2b34,
699 .enable_mask
= BIT(9),
700 .hw
.init
= &(struct clk_init_data
){
701 .name
= "gsbi12_uart_clk",
702 .parent_names
= (const char *[]){ "gsbi12_uart_src" },
704 .ops
= &clk_branch_ops
,
705 .flags
= CLK_SET_RATE_PARENT
,
710 static struct freq_tbl clk_tbl_gsbi_qup
[] = {
711 { 1100000, P_PXO
, 1, 2, 49 },
712 { 5400000, P_PXO
, 1, 1, 5 },
713 { 10800000, P_PXO
, 1, 2, 5 },
714 { 15060000, P_PLL8
, 1, 2, 51 },
715 { 24000000, P_PLL8
, 4, 1, 4 },
716 { 25600000, P_PLL8
, 1, 1, 15 },
717 { 27000000, P_PXO
, 1, 0, 0 },
718 { 48000000, P_PLL8
, 4, 1, 2 },
719 { 51200000, P_PLL8
, 1, 2, 15 },
723 static struct clk_rcg gsbi1_qup_src
= {
728 .mnctr_reset_bit
= 7,
729 .mnctr_mode_shift
= 5,
740 .parent_map
= gcc_pxo_pll8_map
,
742 .freq_tbl
= clk_tbl_gsbi_qup
,
744 .enable_reg
= 0x29cc,
745 .enable_mask
= BIT(11),
746 .hw
.init
= &(struct clk_init_data
){
747 .name
= "gsbi1_qup_src",
748 .parent_names
= gcc_pxo_pll8
,
751 .flags
= CLK_SET_PARENT_GATE
,
756 static struct clk_branch gsbi1_qup_clk
= {
760 .enable_reg
= 0x29cc,
761 .enable_mask
= BIT(9),
762 .hw
.init
= &(struct clk_init_data
){
763 .name
= "gsbi1_qup_clk",
764 .parent_names
= (const char *[]){ "gsbi1_qup_src" },
766 .ops
= &clk_branch_ops
,
767 .flags
= CLK_SET_RATE_PARENT
,
772 static struct clk_rcg gsbi2_qup_src
= {
777 .mnctr_reset_bit
= 7,
778 .mnctr_mode_shift
= 5,
789 .parent_map
= gcc_pxo_pll8_map
,
791 .freq_tbl
= clk_tbl_gsbi_qup
,
793 .enable_reg
= 0x29ec,
794 .enable_mask
= BIT(11),
795 .hw
.init
= &(struct clk_init_data
){
796 .name
= "gsbi2_qup_src",
797 .parent_names
= gcc_pxo_pll8
,
800 .flags
= CLK_SET_PARENT_GATE
,
805 static struct clk_branch gsbi2_qup_clk
= {
809 .enable_reg
= 0x29ec,
810 .enable_mask
= BIT(9),
811 .hw
.init
= &(struct clk_init_data
){
812 .name
= "gsbi2_qup_clk",
813 .parent_names
= (const char *[]){ "gsbi2_qup_src" },
815 .ops
= &clk_branch_ops
,
816 .flags
= CLK_SET_RATE_PARENT
,
821 static struct clk_rcg gsbi3_qup_src
= {
826 .mnctr_reset_bit
= 7,
827 .mnctr_mode_shift
= 5,
838 .parent_map
= gcc_pxo_pll8_map
,
840 .freq_tbl
= clk_tbl_gsbi_qup
,
842 .enable_reg
= 0x2a0c,
843 .enable_mask
= BIT(11),
844 .hw
.init
= &(struct clk_init_data
){
845 .name
= "gsbi3_qup_src",
846 .parent_names
= gcc_pxo_pll8
,
849 .flags
= CLK_SET_PARENT_GATE
,
854 static struct clk_branch gsbi3_qup_clk
= {
858 .enable_reg
= 0x2a0c,
859 .enable_mask
= BIT(9),
860 .hw
.init
= &(struct clk_init_data
){
861 .name
= "gsbi3_qup_clk",
862 .parent_names
= (const char *[]){ "gsbi3_qup_src" },
864 .ops
= &clk_branch_ops
,
865 .flags
= CLK_SET_RATE_PARENT
,
870 static struct clk_rcg gsbi4_qup_src
= {
875 .mnctr_reset_bit
= 7,
876 .mnctr_mode_shift
= 5,
887 .parent_map
= gcc_pxo_pll8_map
,
889 .freq_tbl
= clk_tbl_gsbi_qup
,
891 .enable_reg
= 0x2a2c,
892 .enable_mask
= BIT(11),
893 .hw
.init
= &(struct clk_init_data
){
894 .name
= "gsbi4_qup_src",
895 .parent_names
= gcc_pxo_pll8
,
898 .flags
= CLK_SET_PARENT_GATE
,
903 static struct clk_branch gsbi4_qup_clk
= {
907 .enable_reg
= 0x2a2c,
908 .enable_mask
= BIT(9),
909 .hw
.init
= &(struct clk_init_data
){
910 .name
= "gsbi4_qup_clk",
911 .parent_names
= (const char *[]){ "gsbi4_qup_src" },
913 .ops
= &clk_branch_ops
,
914 .flags
= CLK_SET_RATE_PARENT
,
919 static struct clk_rcg gsbi5_qup_src
= {
924 .mnctr_reset_bit
= 7,
925 .mnctr_mode_shift
= 5,
936 .parent_map
= gcc_pxo_pll8_map
,
938 .freq_tbl
= clk_tbl_gsbi_qup
,
940 .enable_reg
= 0x2a4c,
941 .enable_mask
= BIT(11),
942 .hw
.init
= &(struct clk_init_data
){
943 .name
= "gsbi5_qup_src",
944 .parent_names
= gcc_pxo_pll8
,
947 .flags
= CLK_SET_PARENT_GATE
,
952 static struct clk_branch gsbi5_qup_clk
= {
956 .enable_reg
= 0x2a4c,
957 .enable_mask
= BIT(9),
958 .hw
.init
= &(struct clk_init_data
){
959 .name
= "gsbi5_qup_clk",
960 .parent_names
= (const char *[]){ "gsbi5_qup_src" },
962 .ops
= &clk_branch_ops
,
963 .flags
= CLK_SET_RATE_PARENT
,
968 static struct clk_rcg gsbi6_qup_src
= {
973 .mnctr_reset_bit
= 7,
974 .mnctr_mode_shift
= 5,
985 .parent_map
= gcc_pxo_pll8_map
,
987 .freq_tbl
= clk_tbl_gsbi_qup
,
989 .enable_reg
= 0x2a6c,
990 .enable_mask
= BIT(11),
991 .hw
.init
= &(struct clk_init_data
){
992 .name
= "gsbi6_qup_src",
993 .parent_names
= gcc_pxo_pll8
,
996 .flags
= CLK_SET_PARENT_GATE
,
1001 static struct clk_branch gsbi6_qup_clk
= {
1005 .enable_reg
= 0x2a6c,
1006 .enable_mask
= BIT(9),
1007 .hw
.init
= &(struct clk_init_data
){
1008 .name
= "gsbi6_qup_clk",
1009 .parent_names
= (const char *[]){ "gsbi6_qup_src" },
1011 .ops
= &clk_branch_ops
,
1012 .flags
= CLK_SET_RATE_PARENT
,
1017 static struct clk_rcg gsbi7_qup_src
= {
1022 .mnctr_reset_bit
= 7,
1023 .mnctr_mode_shift
= 5,
1034 .parent_map
= gcc_pxo_pll8_map
,
1036 .freq_tbl
= clk_tbl_gsbi_qup
,
1038 .enable_reg
= 0x2a8c,
1039 .enable_mask
= BIT(11),
1040 .hw
.init
= &(struct clk_init_data
){
1041 .name
= "gsbi7_qup_src",
1042 .parent_names
= gcc_pxo_pll8
,
1044 .ops
= &clk_rcg_ops
,
1045 .flags
= CLK_SET_PARENT_GATE
,
1050 static struct clk_branch gsbi7_qup_clk
= {
1054 .enable_reg
= 0x2a8c,
1055 .enable_mask
= BIT(9),
1056 .hw
.init
= &(struct clk_init_data
){
1057 .name
= "gsbi7_qup_clk",
1058 .parent_names
= (const char *[]){ "gsbi7_qup_src" },
1060 .ops
= &clk_branch_ops
,
1061 .flags
= CLK_SET_RATE_PARENT
,
1066 static struct clk_rcg gsbi8_qup_src
= {
1071 .mnctr_reset_bit
= 7,
1072 .mnctr_mode_shift
= 5,
1083 .parent_map
= gcc_pxo_pll8_map
,
1085 .freq_tbl
= clk_tbl_gsbi_qup
,
1087 .enable_reg
= 0x2aac,
1088 .enable_mask
= BIT(11),
1089 .hw
.init
= &(struct clk_init_data
){
1090 .name
= "gsbi8_qup_src",
1091 .parent_names
= gcc_pxo_pll8
,
1093 .ops
= &clk_rcg_ops
,
1094 .flags
= CLK_SET_PARENT_GATE
,
1099 static struct clk_branch gsbi8_qup_clk
= {
1103 .enable_reg
= 0x2aac,
1104 .enable_mask
= BIT(9),
1105 .hw
.init
= &(struct clk_init_data
){
1106 .name
= "gsbi8_qup_clk",
1107 .parent_names
= (const char *[]){ "gsbi8_qup_src" },
1109 .ops
= &clk_branch_ops
,
1110 .flags
= CLK_SET_RATE_PARENT
,
1115 static struct clk_rcg gsbi9_qup_src
= {
1120 .mnctr_reset_bit
= 7,
1121 .mnctr_mode_shift
= 5,
1132 .parent_map
= gcc_pxo_pll8_map
,
1134 .freq_tbl
= clk_tbl_gsbi_qup
,
1136 .enable_reg
= 0x2acc,
1137 .enable_mask
= BIT(11),
1138 .hw
.init
= &(struct clk_init_data
){
1139 .name
= "gsbi9_qup_src",
1140 .parent_names
= gcc_pxo_pll8
,
1142 .ops
= &clk_rcg_ops
,
1143 .flags
= CLK_SET_PARENT_GATE
,
1148 static struct clk_branch gsbi9_qup_clk
= {
1152 .enable_reg
= 0x2acc,
1153 .enable_mask
= BIT(9),
1154 .hw
.init
= &(struct clk_init_data
){
1155 .name
= "gsbi9_qup_clk",
1156 .parent_names
= (const char *[]){ "gsbi9_qup_src" },
1158 .ops
= &clk_branch_ops
,
1159 .flags
= CLK_SET_RATE_PARENT
,
1164 static struct clk_rcg gsbi10_qup_src
= {
1169 .mnctr_reset_bit
= 7,
1170 .mnctr_mode_shift
= 5,
1181 .parent_map
= gcc_pxo_pll8_map
,
1183 .freq_tbl
= clk_tbl_gsbi_qup
,
1185 .enable_reg
= 0x2aec,
1186 .enable_mask
= BIT(11),
1187 .hw
.init
= &(struct clk_init_data
){
1188 .name
= "gsbi10_qup_src",
1189 .parent_names
= gcc_pxo_pll8
,
1191 .ops
= &clk_rcg_ops
,
1192 .flags
= CLK_SET_PARENT_GATE
,
1197 static struct clk_branch gsbi10_qup_clk
= {
1201 .enable_reg
= 0x2aec,
1202 .enable_mask
= BIT(9),
1203 .hw
.init
= &(struct clk_init_data
){
1204 .name
= "gsbi10_qup_clk",
1205 .parent_names
= (const char *[]){ "gsbi10_qup_src" },
1207 .ops
= &clk_branch_ops
,
1208 .flags
= CLK_SET_RATE_PARENT
,
1213 static struct clk_rcg gsbi11_qup_src
= {
1218 .mnctr_reset_bit
= 7,
1219 .mnctr_mode_shift
= 5,
1230 .parent_map
= gcc_pxo_pll8_map
,
1232 .freq_tbl
= clk_tbl_gsbi_qup
,
1234 .enable_reg
= 0x2b0c,
1235 .enable_mask
= BIT(11),
1236 .hw
.init
= &(struct clk_init_data
){
1237 .name
= "gsbi11_qup_src",
1238 .parent_names
= gcc_pxo_pll8
,
1240 .ops
= &clk_rcg_ops
,
1241 .flags
= CLK_SET_PARENT_GATE
,
1246 static struct clk_branch gsbi11_qup_clk
= {
1250 .enable_reg
= 0x2b0c,
1251 .enable_mask
= BIT(9),
1252 .hw
.init
= &(struct clk_init_data
){
1253 .name
= "gsbi11_qup_clk",
1254 .parent_names
= (const char *[]){ "gsbi11_qup_src" },
1256 .ops
= &clk_branch_ops
,
1257 .flags
= CLK_SET_RATE_PARENT
,
1262 static struct clk_rcg gsbi12_qup_src
= {
1267 .mnctr_reset_bit
= 7,
1268 .mnctr_mode_shift
= 5,
1279 .parent_map
= gcc_pxo_pll8_map
,
1281 .freq_tbl
= clk_tbl_gsbi_qup
,
1283 .enable_reg
= 0x2b2c,
1284 .enable_mask
= BIT(11),
1285 .hw
.init
= &(struct clk_init_data
){
1286 .name
= "gsbi12_qup_src",
1287 .parent_names
= gcc_pxo_pll8
,
1289 .ops
= &clk_rcg_ops
,
1290 .flags
= CLK_SET_PARENT_GATE
,
1295 static struct clk_branch gsbi12_qup_clk
= {
1299 .enable_reg
= 0x2b2c,
1300 .enable_mask
= BIT(9),
1301 .hw
.init
= &(struct clk_init_data
){
1302 .name
= "gsbi12_qup_clk",
1303 .parent_names
= (const char *[]){ "gsbi12_qup_src" },
1305 .ops
= &clk_branch_ops
,
1306 .flags
= CLK_SET_RATE_PARENT
,
1311 static const struct freq_tbl clk_tbl_gp
[] = {
1312 { 9600000, P_CXO
, 2, 0, 0 },
1313 { 13500000, P_PXO
, 2, 0, 0 },
1314 { 19200000, P_CXO
, 1, 0, 0 },
1315 { 27000000, P_PXO
, 1, 0, 0 },
1316 { 64000000, P_PLL8
, 2, 1, 3 },
1317 { 76800000, P_PLL8
, 1, 1, 5 },
1318 { 96000000, P_PLL8
, 4, 0, 0 },
1319 { 128000000, P_PLL8
, 3, 0, 0 },
1320 { 192000000, P_PLL8
, 2, 0, 0 },
1324 static struct clk_rcg gp0_src
= {
1329 .mnctr_reset_bit
= 7,
1330 .mnctr_mode_shift
= 5,
1341 .parent_map
= gcc_pxo_pll8_cxo_map
,
1343 .freq_tbl
= clk_tbl_gp
,
1345 .enable_reg
= 0x2d24,
1346 .enable_mask
= BIT(11),
1347 .hw
.init
= &(struct clk_init_data
){
1349 .parent_names
= gcc_pxo_pll8_cxo
,
1351 .ops
= &clk_rcg_ops
,
1352 .flags
= CLK_SET_PARENT_GATE
,
1357 static struct clk_branch gp0_clk
= {
1361 .enable_reg
= 0x2d24,
1362 .enable_mask
= BIT(9),
1363 .hw
.init
= &(struct clk_init_data
){
1365 .parent_names
= (const char *[]){ "gp0_src" },
1367 .ops
= &clk_branch_ops
,
1368 .flags
= CLK_SET_RATE_PARENT
,
1373 static struct clk_rcg gp1_src
= {
1378 .mnctr_reset_bit
= 7,
1379 .mnctr_mode_shift
= 5,
1390 .parent_map
= gcc_pxo_pll8_cxo_map
,
1392 .freq_tbl
= clk_tbl_gp
,
1394 .enable_reg
= 0x2d44,
1395 .enable_mask
= BIT(11),
1396 .hw
.init
= &(struct clk_init_data
){
1398 .parent_names
= gcc_pxo_pll8_cxo
,
1400 .ops
= &clk_rcg_ops
,
1401 .flags
= CLK_SET_RATE_GATE
,
1406 static struct clk_branch gp1_clk
= {
1410 .enable_reg
= 0x2d44,
1411 .enable_mask
= BIT(9),
1412 .hw
.init
= &(struct clk_init_data
){
1414 .parent_names
= (const char *[]){ "gp1_src" },
1416 .ops
= &clk_branch_ops
,
1417 .flags
= CLK_SET_RATE_PARENT
,
1422 static struct clk_rcg gp2_src
= {
1427 .mnctr_reset_bit
= 7,
1428 .mnctr_mode_shift
= 5,
1439 .parent_map
= gcc_pxo_pll8_cxo_map
,
1441 .freq_tbl
= clk_tbl_gp
,
1443 .enable_reg
= 0x2d64,
1444 .enable_mask
= BIT(11),
1445 .hw
.init
= &(struct clk_init_data
){
1447 .parent_names
= gcc_pxo_pll8_cxo
,
1449 .ops
= &clk_rcg_ops
,
1450 .flags
= CLK_SET_RATE_GATE
,
1455 static struct clk_branch gp2_clk
= {
1459 .enable_reg
= 0x2d64,
1460 .enable_mask
= BIT(9),
1461 .hw
.init
= &(struct clk_init_data
){
1463 .parent_names
= (const char *[]){ "gp2_src" },
1465 .ops
= &clk_branch_ops
,
1466 .flags
= CLK_SET_RATE_PARENT
,
1471 static struct clk_branch pmem_clk
= {
1477 .enable_reg
= 0x25a0,
1478 .enable_mask
= BIT(4),
1479 .hw
.init
= &(struct clk_init_data
){
1481 .ops
= &clk_branch_ops
,
1486 static struct clk_rcg prng_src
= {
1494 .parent_map
= gcc_pxo_pll8_map
,
1497 .init
= &(struct clk_init_data
){
1499 .parent_names
= gcc_pxo_pll8
,
1501 .ops
= &clk_rcg_ops
,
1506 static struct clk_branch prng_clk
= {
1508 .halt_check
= BRANCH_HALT_VOTED
,
1511 .enable_reg
= 0x3080,
1512 .enable_mask
= BIT(10),
1513 .hw
.init
= &(struct clk_init_data
){
1515 .parent_names
= (const char *[]){ "prng_src" },
1517 .ops
= &clk_branch_ops
,
1522 static const struct freq_tbl clk_tbl_sdc
[] = {
1523 { 144000, P_PXO
, 3, 2, 125 },
1524 { 400000, P_PLL8
, 4, 1, 240 },
1525 { 16000000, P_PLL8
, 4, 1, 6 },
1526 { 17070000, P_PLL8
, 1, 2, 45 },
1527 { 20210000, P_PLL8
, 1, 1, 19 },
1528 { 24000000, P_PLL8
, 4, 1, 4 },
1529 { 48000000, P_PLL8
, 4, 1, 2 },
1533 static struct clk_rcg sdc1_src
= {
1538 .mnctr_reset_bit
= 7,
1539 .mnctr_mode_shift
= 5,
1550 .parent_map
= gcc_pxo_pll8_map
,
1552 .freq_tbl
= clk_tbl_sdc
,
1554 .enable_reg
= 0x282c,
1555 .enable_mask
= BIT(11),
1556 .hw
.init
= &(struct clk_init_data
){
1558 .parent_names
= gcc_pxo_pll8
,
1560 .ops
= &clk_rcg_ops
,
1561 .flags
= CLK_SET_RATE_GATE
,
1566 static struct clk_branch sdc1_clk
= {
1570 .enable_reg
= 0x282c,
1571 .enable_mask
= BIT(9),
1572 .hw
.init
= &(struct clk_init_data
){
1574 .parent_names
= (const char *[]){ "sdc1_src" },
1576 .ops
= &clk_branch_ops
,
1577 .flags
= CLK_SET_RATE_PARENT
,
1582 static struct clk_rcg sdc2_src
= {
1587 .mnctr_reset_bit
= 7,
1588 .mnctr_mode_shift
= 5,
1599 .parent_map
= gcc_pxo_pll8_map
,
1601 .freq_tbl
= clk_tbl_sdc
,
1603 .enable_reg
= 0x284c,
1604 .enable_mask
= BIT(11),
1605 .hw
.init
= &(struct clk_init_data
){
1607 .parent_names
= gcc_pxo_pll8
,
1609 .ops
= &clk_rcg_ops
,
1610 .flags
= CLK_SET_RATE_GATE
,
1615 static struct clk_branch sdc2_clk
= {
1619 .enable_reg
= 0x284c,
1620 .enable_mask
= BIT(9),
1621 .hw
.init
= &(struct clk_init_data
){
1623 .parent_names
= (const char *[]){ "sdc2_src" },
1625 .ops
= &clk_branch_ops
,
1626 .flags
= CLK_SET_RATE_PARENT
,
1631 static struct clk_rcg sdc3_src
= {
1636 .mnctr_reset_bit
= 7,
1637 .mnctr_mode_shift
= 5,
1648 .parent_map
= gcc_pxo_pll8_map
,
1650 .freq_tbl
= clk_tbl_sdc
,
1652 .enable_reg
= 0x286c,
1653 .enable_mask
= BIT(11),
1654 .hw
.init
= &(struct clk_init_data
){
1656 .parent_names
= gcc_pxo_pll8
,
1658 .ops
= &clk_rcg_ops
,
1659 .flags
= CLK_SET_RATE_GATE
,
1664 static struct clk_branch sdc3_clk
= {
1668 .enable_reg
= 0x286c,
1669 .enable_mask
= BIT(9),
1670 .hw
.init
= &(struct clk_init_data
){
1672 .parent_names
= (const char *[]){ "sdc3_src" },
1674 .ops
= &clk_branch_ops
,
1675 .flags
= CLK_SET_RATE_PARENT
,
1680 static struct clk_rcg sdc4_src
= {
1685 .mnctr_reset_bit
= 7,
1686 .mnctr_mode_shift
= 5,
1697 .parent_map
= gcc_pxo_pll8_map
,
1699 .freq_tbl
= clk_tbl_sdc
,
1701 .enable_reg
= 0x288c,
1702 .enable_mask
= BIT(11),
1703 .hw
.init
= &(struct clk_init_data
){
1705 .parent_names
= gcc_pxo_pll8
,
1707 .ops
= &clk_rcg_ops
,
1708 .flags
= CLK_SET_RATE_GATE
,
1713 static struct clk_branch sdc4_clk
= {
1717 .enable_reg
= 0x288c,
1718 .enable_mask
= BIT(9),
1719 .hw
.init
= &(struct clk_init_data
){
1721 .parent_names
= (const char *[]){ "sdc4_src" },
1723 .ops
= &clk_branch_ops
,
1724 .flags
= CLK_SET_RATE_PARENT
,
1729 static struct clk_rcg sdc5_src
= {
1734 .mnctr_reset_bit
= 7,
1735 .mnctr_mode_shift
= 5,
1746 .parent_map
= gcc_pxo_pll8_map
,
1748 .freq_tbl
= clk_tbl_sdc
,
1750 .enable_reg
= 0x28ac,
1751 .enable_mask
= BIT(11),
1752 .hw
.init
= &(struct clk_init_data
){
1754 .parent_names
= gcc_pxo_pll8
,
1756 .ops
= &clk_rcg_ops
,
1757 .flags
= CLK_SET_RATE_GATE
,
1762 static struct clk_branch sdc5_clk
= {
1766 .enable_reg
= 0x28ac,
1767 .enable_mask
= BIT(9),
1768 .hw
.init
= &(struct clk_init_data
){
1770 .parent_names
= (const char *[]){ "sdc5_src" },
1772 .ops
= &clk_branch_ops
,
1773 .flags
= CLK_SET_RATE_PARENT
,
1778 static const struct freq_tbl clk_tbl_tsif_ref
[] = {
1779 { 105000, P_PXO
, 1, 1, 256 },
1783 static struct clk_rcg tsif_ref_src
= {
1788 .mnctr_reset_bit
= 7,
1789 .mnctr_mode_shift
= 5,
1800 .parent_map
= gcc_pxo_pll8_map
,
1802 .freq_tbl
= clk_tbl_tsif_ref
,
1804 .enable_reg
= 0x2710,
1805 .enable_mask
= BIT(11),
1806 .hw
.init
= &(struct clk_init_data
){
1807 .name
= "tsif_ref_src",
1808 .parent_names
= gcc_pxo_pll8
,
1810 .ops
= &clk_rcg_ops
,
1811 .flags
= CLK_SET_RATE_GATE
,
1816 static struct clk_branch tsif_ref_clk
= {
1820 .enable_reg
= 0x2710,
1821 .enable_mask
= BIT(9),
1822 .hw
.init
= &(struct clk_init_data
){
1823 .name
= "tsif_ref_clk",
1824 .parent_names
= (const char *[]){ "tsif_ref_src" },
1826 .ops
= &clk_branch_ops
,
1827 .flags
= CLK_SET_RATE_PARENT
,
1832 static const struct freq_tbl clk_tbl_usb
[] = {
1833 { 60000000, P_PLL8
, 1, 5, 32 },
1837 static struct clk_rcg usb_hs1_xcvr_src
= {
1842 .mnctr_reset_bit
= 7,
1843 .mnctr_mode_shift
= 5,
1854 .parent_map
= gcc_pxo_pll8_map
,
1856 .freq_tbl
= clk_tbl_usb
,
1858 .enable_reg
= 0x290c,
1859 .enable_mask
= BIT(11),
1860 .hw
.init
= &(struct clk_init_data
){
1861 .name
= "usb_hs1_xcvr_src",
1862 .parent_names
= gcc_pxo_pll8
,
1864 .ops
= &clk_rcg_ops
,
1865 .flags
= CLK_SET_RATE_GATE
,
1870 static struct clk_branch usb_hs1_xcvr_clk
= {
1874 .enable_reg
= 0x290c,
1875 .enable_mask
= BIT(9),
1876 .hw
.init
= &(struct clk_init_data
){
1877 .name
= "usb_hs1_xcvr_clk",
1878 .parent_names
= (const char *[]){ "usb_hs1_xcvr_src" },
1880 .ops
= &clk_branch_ops
,
1881 .flags
= CLK_SET_RATE_PARENT
,
1886 static struct clk_rcg usb_fs1_xcvr_fs_src
= {
1891 .mnctr_reset_bit
= 7,
1892 .mnctr_mode_shift
= 5,
1903 .parent_map
= gcc_pxo_pll8_map
,
1905 .freq_tbl
= clk_tbl_usb
,
1907 .enable_reg
= 0x2968,
1908 .enable_mask
= BIT(11),
1909 .hw
.init
= &(struct clk_init_data
){
1910 .name
= "usb_fs1_xcvr_fs_src",
1911 .parent_names
= gcc_pxo_pll8
,
1913 .ops
= &clk_rcg_ops
,
1914 .flags
= CLK_SET_RATE_GATE
,
1919 static const char * const usb_fs1_xcvr_fs_src_p
[] = { "usb_fs1_xcvr_fs_src" };
1921 static struct clk_branch usb_fs1_xcvr_fs_clk
= {
1925 .enable_reg
= 0x2968,
1926 .enable_mask
= BIT(9),
1927 .hw
.init
= &(struct clk_init_data
){
1928 .name
= "usb_fs1_xcvr_fs_clk",
1929 .parent_names
= usb_fs1_xcvr_fs_src_p
,
1931 .ops
= &clk_branch_ops
,
1932 .flags
= CLK_SET_RATE_PARENT
,
1937 static struct clk_branch usb_fs1_system_clk
= {
1941 .enable_reg
= 0x296c,
1942 .enable_mask
= BIT(4),
1943 .hw
.init
= &(struct clk_init_data
){
1944 .parent_names
= usb_fs1_xcvr_fs_src_p
,
1946 .name
= "usb_fs1_system_clk",
1947 .ops
= &clk_branch_ops
,
1948 .flags
= CLK_SET_RATE_PARENT
,
1953 static struct clk_rcg usb_fs2_xcvr_fs_src
= {
1958 .mnctr_reset_bit
= 7,
1959 .mnctr_mode_shift
= 5,
1970 .parent_map
= gcc_pxo_pll8_map
,
1972 .freq_tbl
= clk_tbl_usb
,
1974 .enable_reg
= 0x2988,
1975 .enable_mask
= BIT(11),
1976 .hw
.init
= &(struct clk_init_data
){
1977 .name
= "usb_fs2_xcvr_fs_src",
1978 .parent_names
= gcc_pxo_pll8
,
1980 .ops
= &clk_rcg_ops
,
1981 .flags
= CLK_SET_RATE_GATE
,
1986 static const char * const usb_fs2_xcvr_fs_src_p
[] = { "usb_fs2_xcvr_fs_src" };
1988 static struct clk_branch usb_fs2_xcvr_fs_clk
= {
1992 .enable_reg
= 0x2988,
1993 .enable_mask
= BIT(9),
1994 .hw
.init
= &(struct clk_init_data
){
1995 .name
= "usb_fs2_xcvr_fs_clk",
1996 .parent_names
= usb_fs2_xcvr_fs_src_p
,
1998 .ops
= &clk_branch_ops
,
1999 .flags
= CLK_SET_RATE_PARENT
,
2004 static struct clk_branch usb_fs2_system_clk
= {
2008 .enable_reg
= 0x298c,
2009 .enable_mask
= BIT(4),
2010 .hw
.init
= &(struct clk_init_data
){
2011 .name
= "usb_fs2_system_clk",
2012 .parent_names
= usb_fs2_xcvr_fs_src_p
,
2014 .ops
= &clk_branch_ops
,
2015 .flags
= CLK_SET_RATE_PARENT
,
2020 static struct clk_branch gsbi1_h_clk
= {
2024 .enable_reg
= 0x29c0,
2025 .enable_mask
= BIT(4),
2026 .hw
.init
= &(struct clk_init_data
){
2027 .name
= "gsbi1_h_clk",
2028 .ops
= &clk_branch_ops
,
2033 static struct clk_branch gsbi2_h_clk
= {
2037 .enable_reg
= 0x29e0,
2038 .enable_mask
= BIT(4),
2039 .hw
.init
= &(struct clk_init_data
){
2040 .name
= "gsbi2_h_clk",
2041 .ops
= &clk_branch_ops
,
2046 static struct clk_branch gsbi3_h_clk
= {
2050 .enable_reg
= 0x2a00,
2051 .enable_mask
= BIT(4),
2052 .hw
.init
= &(struct clk_init_data
){
2053 .name
= "gsbi3_h_clk",
2054 .ops
= &clk_branch_ops
,
2059 static struct clk_branch gsbi4_h_clk
= {
2063 .enable_reg
= 0x2a20,
2064 .enable_mask
= BIT(4),
2065 .hw
.init
= &(struct clk_init_data
){
2066 .name
= "gsbi4_h_clk",
2067 .ops
= &clk_branch_ops
,
2072 static struct clk_branch gsbi5_h_clk
= {
2076 .enable_reg
= 0x2a40,
2077 .enable_mask
= BIT(4),
2078 .hw
.init
= &(struct clk_init_data
){
2079 .name
= "gsbi5_h_clk",
2080 .ops
= &clk_branch_ops
,
2085 static struct clk_branch gsbi6_h_clk
= {
2089 .enable_reg
= 0x2a60,
2090 .enable_mask
= BIT(4),
2091 .hw
.init
= &(struct clk_init_data
){
2092 .name
= "gsbi6_h_clk",
2093 .ops
= &clk_branch_ops
,
2098 static struct clk_branch gsbi7_h_clk
= {
2102 .enable_reg
= 0x2a80,
2103 .enable_mask
= BIT(4),
2104 .hw
.init
= &(struct clk_init_data
){
2105 .name
= "gsbi7_h_clk",
2106 .ops
= &clk_branch_ops
,
2111 static struct clk_branch gsbi8_h_clk
= {
2115 .enable_reg
= 0x2aa0,
2116 .enable_mask
= BIT(4),
2117 .hw
.init
= &(struct clk_init_data
){
2118 .name
= "gsbi8_h_clk",
2119 .ops
= &clk_branch_ops
,
2124 static struct clk_branch gsbi9_h_clk
= {
2128 .enable_reg
= 0x2ac0,
2129 .enable_mask
= BIT(4),
2130 .hw
.init
= &(struct clk_init_data
){
2131 .name
= "gsbi9_h_clk",
2132 .ops
= &clk_branch_ops
,
2137 static struct clk_branch gsbi10_h_clk
= {
2141 .enable_reg
= 0x2ae0,
2142 .enable_mask
= BIT(4),
2143 .hw
.init
= &(struct clk_init_data
){
2144 .name
= "gsbi10_h_clk",
2145 .ops
= &clk_branch_ops
,
2150 static struct clk_branch gsbi11_h_clk
= {
2154 .enable_reg
= 0x2b00,
2155 .enable_mask
= BIT(4),
2156 .hw
.init
= &(struct clk_init_data
){
2157 .name
= "gsbi11_h_clk",
2158 .ops
= &clk_branch_ops
,
2163 static struct clk_branch gsbi12_h_clk
= {
2167 .enable_reg
= 0x2b20,
2168 .enable_mask
= BIT(4),
2169 .hw
.init
= &(struct clk_init_data
){
2170 .name
= "gsbi12_h_clk",
2171 .ops
= &clk_branch_ops
,
2176 static struct clk_branch tsif_h_clk
= {
2180 .enable_reg
= 0x2700,
2181 .enable_mask
= BIT(4),
2182 .hw
.init
= &(struct clk_init_data
){
2183 .name
= "tsif_h_clk",
2184 .ops
= &clk_branch_ops
,
2189 static struct clk_branch usb_fs1_h_clk
= {
2193 .enable_reg
= 0x2960,
2194 .enable_mask
= BIT(4),
2195 .hw
.init
= &(struct clk_init_data
){
2196 .name
= "usb_fs1_h_clk",
2197 .ops
= &clk_branch_ops
,
2202 static struct clk_branch usb_fs2_h_clk
= {
2206 .enable_reg
= 0x2980,
2207 .enable_mask
= BIT(4),
2208 .hw
.init
= &(struct clk_init_data
){
2209 .name
= "usb_fs2_h_clk",
2210 .ops
= &clk_branch_ops
,
2215 static struct clk_branch usb_hs1_h_clk
= {
2219 .enable_reg
= 0x2900,
2220 .enable_mask
= BIT(4),
2221 .hw
.init
= &(struct clk_init_data
){
2222 .name
= "usb_hs1_h_clk",
2223 .ops
= &clk_branch_ops
,
2228 static struct clk_branch sdc1_h_clk
= {
2232 .enable_reg
= 0x2820,
2233 .enable_mask
= BIT(4),
2234 .hw
.init
= &(struct clk_init_data
){
2235 .name
= "sdc1_h_clk",
2236 .ops
= &clk_branch_ops
,
2241 static struct clk_branch sdc2_h_clk
= {
2245 .enable_reg
= 0x2840,
2246 .enable_mask
= BIT(4),
2247 .hw
.init
= &(struct clk_init_data
){
2248 .name
= "sdc2_h_clk",
2249 .ops
= &clk_branch_ops
,
2254 static struct clk_branch sdc3_h_clk
= {
2258 .enable_reg
= 0x2860,
2259 .enable_mask
= BIT(4),
2260 .hw
.init
= &(struct clk_init_data
){
2261 .name
= "sdc3_h_clk",
2262 .ops
= &clk_branch_ops
,
2267 static struct clk_branch sdc4_h_clk
= {
2271 .enable_reg
= 0x2880,
2272 .enable_mask
= BIT(4),
2273 .hw
.init
= &(struct clk_init_data
){
2274 .name
= "sdc4_h_clk",
2275 .ops
= &clk_branch_ops
,
2280 static struct clk_branch sdc5_h_clk
= {
2284 .enable_reg
= 0x28a0,
2285 .enable_mask
= BIT(4),
2286 .hw
.init
= &(struct clk_init_data
){
2287 .name
= "sdc5_h_clk",
2288 .ops
= &clk_branch_ops
,
2293 static struct clk_branch ebi2_2x_clk
= {
2297 .enable_reg
= 0x2660,
2298 .enable_mask
= BIT(4),
2299 .hw
.init
= &(struct clk_init_data
){
2300 .name
= "ebi2_2x_clk",
2301 .ops
= &clk_branch_ops
,
2306 static struct clk_branch ebi2_clk
= {
2310 .enable_reg
= 0x2664,
2311 .enable_mask
= BIT(4),
2312 .hw
.init
= &(struct clk_init_data
){
2314 .ops
= &clk_branch_ops
,
2319 static struct clk_branch adm0_clk
= {
2321 .halt_check
= BRANCH_HALT_VOTED
,
2324 .enable_reg
= 0x3080,
2325 .enable_mask
= BIT(2),
2326 .hw
.init
= &(struct clk_init_data
){
2328 .ops
= &clk_branch_ops
,
2333 static struct clk_branch adm0_pbus_clk
= {
2335 .halt_check
= BRANCH_HALT_VOTED
,
2338 .enable_reg
= 0x3080,
2339 .enable_mask
= BIT(3),
2340 .hw
.init
= &(struct clk_init_data
){
2341 .name
= "adm0_pbus_clk",
2342 .ops
= &clk_branch_ops
,
2347 static struct clk_branch adm1_clk
= {
2350 .halt_check
= BRANCH_HALT_VOTED
,
2352 .enable_reg
= 0x3080,
2353 .enable_mask
= BIT(4),
2354 .hw
.init
= &(struct clk_init_data
){
2356 .ops
= &clk_branch_ops
,
2361 static struct clk_branch adm1_pbus_clk
= {
2364 .halt_check
= BRANCH_HALT_VOTED
,
2366 .enable_reg
= 0x3080,
2367 .enable_mask
= BIT(5),
2368 .hw
.init
= &(struct clk_init_data
){
2369 .name
= "adm1_pbus_clk",
2370 .ops
= &clk_branch_ops
,
2375 static struct clk_branch modem_ahb1_h_clk
= {
2378 .halt_check
= BRANCH_HALT_VOTED
,
2380 .enable_reg
= 0x3080,
2381 .enable_mask
= BIT(0),
2382 .hw
.init
= &(struct clk_init_data
){
2383 .name
= "modem_ahb1_h_clk",
2384 .ops
= &clk_branch_ops
,
2389 static struct clk_branch modem_ahb2_h_clk
= {
2392 .halt_check
= BRANCH_HALT_VOTED
,
2394 .enable_reg
= 0x3080,
2395 .enable_mask
= BIT(1),
2396 .hw
.init
= &(struct clk_init_data
){
2397 .name
= "modem_ahb2_h_clk",
2398 .ops
= &clk_branch_ops
,
2403 static struct clk_branch pmic_arb0_h_clk
= {
2405 .halt_check
= BRANCH_HALT_VOTED
,
2408 .enable_reg
= 0x3080,
2409 .enable_mask
= BIT(8),
2410 .hw
.init
= &(struct clk_init_data
){
2411 .name
= "pmic_arb0_h_clk",
2412 .ops
= &clk_branch_ops
,
2417 static struct clk_branch pmic_arb1_h_clk
= {
2419 .halt_check
= BRANCH_HALT_VOTED
,
2422 .enable_reg
= 0x3080,
2423 .enable_mask
= BIT(9),
2424 .hw
.init
= &(struct clk_init_data
){
2425 .name
= "pmic_arb1_h_clk",
2426 .ops
= &clk_branch_ops
,
2431 static struct clk_branch pmic_ssbi2_clk
= {
2433 .halt_check
= BRANCH_HALT_VOTED
,
2436 .enable_reg
= 0x3080,
2437 .enable_mask
= BIT(7),
2438 .hw
.init
= &(struct clk_init_data
){
2439 .name
= "pmic_ssbi2_clk",
2440 .ops
= &clk_branch_ops
,
2445 static struct clk_branch rpm_msg_ram_h_clk
= {
2449 .halt_check
= BRANCH_HALT_VOTED
,
2452 .enable_reg
= 0x3080,
2453 .enable_mask
= BIT(6),
2454 .hw
.init
= &(struct clk_init_data
){
2455 .name
= "rpm_msg_ram_h_clk",
2456 .ops
= &clk_branch_ops
,
2461 static struct clk_regmap
*gcc_msm8660_clks
[] = {
2462 [PLL8
] = &pll8
.clkr
,
2463 [PLL8_VOTE
] = &pll8_vote
,
2464 [GSBI1_UART_SRC
] = &gsbi1_uart_src
.clkr
,
2465 [GSBI1_UART_CLK
] = &gsbi1_uart_clk
.clkr
,
2466 [GSBI2_UART_SRC
] = &gsbi2_uart_src
.clkr
,
2467 [GSBI2_UART_CLK
] = &gsbi2_uart_clk
.clkr
,
2468 [GSBI3_UART_SRC
] = &gsbi3_uart_src
.clkr
,
2469 [GSBI3_UART_CLK
] = &gsbi3_uart_clk
.clkr
,
2470 [GSBI4_UART_SRC
] = &gsbi4_uart_src
.clkr
,
2471 [GSBI4_UART_CLK
] = &gsbi4_uart_clk
.clkr
,
2472 [GSBI5_UART_SRC
] = &gsbi5_uart_src
.clkr
,
2473 [GSBI5_UART_CLK
] = &gsbi5_uart_clk
.clkr
,
2474 [GSBI6_UART_SRC
] = &gsbi6_uart_src
.clkr
,
2475 [GSBI6_UART_CLK
] = &gsbi6_uart_clk
.clkr
,
2476 [GSBI7_UART_SRC
] = &gsbi7_uart_src
.clkr
,
2477 [GSBI7_UART_CLK
] = &gsbi7_uart_clk
.clkr
,
2478 [GSBI8_UART_SRC
] = &gsbi8_uart_src
.clkr
,
2479 [GSBI8_UART_CLK
] = &gsbi8_uart_clk
.clkr
,
2480 [GSBI9_UART_SRC
] = &gsbi9_uart_src
.clkr
,
2481 [GSBI9_UART_CLK
] = &gsbi9_uart_clk
.clkr
,
2482 [GSBI10_UART_SRC
] = &gsbi10_uart_src
.clkr
,
2483 [GSBI10_UART_CLK
] = &gsbi10_uart_clk
.clkr
,
2484 [GSBI11_UART_SRC
] = &gsbi11_uart_src
.clkr
,
2485 [GSBI11_UART_CLK
] = &gsbi11_uart_clk
.clkr
,
2486 [GSBI12_UART_SRC
] = &gsbi12_uart_src
.clkr
,
2487 [GSBI12_UART_CLK
] = &gsbi12_uart_clk
.clkr
,
2488 [GSBI1_QUP_SRC
] = &gsbi1_qup_src
.clkr
,
2489 [GSBI1_QUP_CLK
] = &gsbi1_qup_clk
.clkr
,
2490 [GSBI2_QUP_SRC
] = &gsbi2_qup_src
.clkr
,
2491 [GSBI2_QUP_CLK
] = &gsbi2_qup_clk
.clkr
,
2492 [GSBI3_QUP_SRC
] = &gsbi3_qup_src
.clkr
,
2493 [GSBI3_QUP_CLK
] = &gsbi3_qup_clk
.clkr
,
2494 [GSBI4_QUP_SRC
] = &gsbi4_qup_src
.clkr
,
2495 [GSBI4_QUP_CLK
] = &gsbi4_qup_clk
.clkr
,
2496 [GSBI5_QUP_SRC
] = &gsbi5_qup_src
.clkr
,
2497 [GSBI5_QUP_CLK
] = &gsbi5_qup_clk
.clkr
,
2498 [GSBI6_QUP_SRC
] = &gsbi6_qup_src
.clkr
,
2499 [GSBI6_QUP_CLK
] = &gsbi6_qup_clk
.clkr
,
2500 [GSBI7_QUP_SRC
] = &gsbi7_qup_src
.clkr
,
2501 [GSBI7_QUP_CLK
] = &gsbi7_qup_clk
.clkr
,
2502 [GSBI8_QUP_SRC
] = &gsbi8_qup_src
.clkr
,
2503 [GSBI8_QUP_CLK
] = &gsbi8_qup_clk
.clkr
,
2504 [GSBI9_QUP_SRC
] = &gsbi9_qup_src
.clkr
,
2505 [GSBI9_QUP_CLK
] = &gsbi9_qup_clk
.clkr
,
2506 [GSBI10_QUP_SRC
] = &gsbi10_qup_src
.clkr
,
2507 [GSBI10_QUP_CLK
] = &gsbi10_qup_clk
.clkr
,
2508 [GSBI11_QUP_SRC
] = &gsbi11_qup_src
.clkr
,
2509 [GSBI11_QUP_CLK
] = &gsbi11_qup_clk
.clkr
,
2510 [GSBI12_QUP_SRC
] = &gsbi12_qup_src
.clkr
,
2511 [GSBI12_QUP_CLK
] = &gsbi12_qup_clk
.clkr
,
2512 [GP0_SRC
] = &gp0_src
.clkr
,
2513 [GP0_CLK
] = &gp0_clk
.clkr
,
2514 [GP1_SRC
] = &gp1_src
.clkr
,
2515 [GP1_CLK
] = &gp1_clk
.clkr
,
2516 [GP2_SRC
] = &gp2_src
.clkr
,
2517 [GP2_CLK
] = &gp2_clk
.clkr
,
2518 [PMEM_CLK
] = &pmem_clk
.clkr
,
2519 [PRNG_SRC
] = &prng_src
.clkr
,
2520 [PRNG_CLK
] = &prng_clk
.clkr
,
2521 [SDC1_SRC
] = &sdc1_src
.clkr
,
2522 [SDC1_CLK
] = &sdc1_clk
.clkr
,
2523 [SDC2_SRC
] = &sdc2_src
.clkr
,
2524 [SDC2_CLK
] = &sdc2_clk
.clkr
,
2525 [SDC3_SRC
] = &sdc3_src
.clkr
,
2526 [SDC3_CLK
] = &sdc3_clk
.clkr
,
2527 [SDC4_SRC
] = &sdc4_src
.clkr
,
2528 [SDC4_CLK
] = &sdc4_clk
.clkr
,
2529 [SDC5_SRC
] = &sdc5_src
.clkr
,
2530 [SDC5_CLK
] = &sdc5_clk
.clkr
,
2531 [TSIF_REF_SRC
] = &tsif_ref_src
.clkr
,
2532 [TSIF_REF_CLK
] = &tsif_ref_clk
.clkr
,
2533 [USB_HS1_XCVR_SRC
] = &usb_hs1_xcvr_src
.clkr
,
2534 [USB_HS1_XCVR_CLK
] = &usb_hs1_xcvr_clk
.clkr
,
2535 [USB_FS1_XCVR_FS_SRC
] = &usb_fs1_xcvr_fs_src
.clkr
,
2536 [USB_FS1_XCVR_FS_CLK
] = &usb_fs1_xcvr_fs_clk
.clkr
,
2537 [USB_FS1_SYSTEM_CLK
] = &usb_fs1_system_clk
.clkr
,
2538 [USB_FS2_XCVR_FS_SRC
] = &usb_fs2_xcvr_fs_src
.clkr
,
2539 [USB_FS2_XCVR_FS_CLK
] = &usb_fs2_xcvr_fs_clk
.clkr
,
2540 [USB_FS2_SYSTEM_CLK
] = &usb_fs2_system_clk
.clkr
,
2541 [GSBI1_H_CLK
] = &gsbi1_h_clk
.clkr
,
2542 [GSBI2_H_CLK
] = &gsbi2_h_clk
.clkr
,
2543 [GSBI3_H_CLK
] = &gsbi3_h_clk
.clkr
,
2544 [GSBI4_H_CLK
] = &gsbi4_h_clk
.clkr
,
2545 [GSBI5_H_CLK
] = &gsbi5_h_clk
.clkr
,
2546 [GSBI6_H_CLK
] = &gsbi6_h_clk
.clkr
,
2547 [GSBI7_H_CLK
] = &gsbi7_h_clk
.clkr
,
2548 [GSBI8_H_CLK
] = &gsbi8_h_clk
.clkr
,
2549 [GSBI9_H_CLK
] = &gsbi9_h_clk
.clkr
,
2550 [GSBI10_H_CLK
] = &gsbi10_h_clk
.clkr
,
2551 [GSBI11_H_CLK
] = &gsbi11_h_clk
.clkr
,
2552 [GSBI12_H_CLK
] = &gsbi12_h_clk
.clkr
,
2553 [TSIF_H_CLK
] = &tsif_h_clk
.clkr
,
2554 [USB_FS1_H_CLK
] = &usb_fs1_h_clk
.clkr
,
2555 [USB_FS2_H_CLK
] = &usb_fs2_h_clk
.clkr
,
2556 [USB_HS1_H_CLK
] = &usb_hs1_h_clk
.clkr
,
2557 [SDC1_H_CLK
] = &sdc1_h_clk
.clkr
,
2558 [SDC2_H_CLK
] = &sdc2_h_clk
.clkr
,
2559 [SDC3_H_CLK
] = &sdc3_h_clk
.clkr
,
2560 [SDC4_H_CLK
] = &sdc4_h_clk
.clkr
,
2561 [SDC5_H_CLK
] = &sdc5_h_clk
.clkr
,
2562 [EBI2_2X_CLK
] = &ebi2_2x_clk
.clkr
,
2563 [EBI2_CLK
] = &ebi2_clk
.clkr
,
2564 [ADM0_CLK
] = &adm0_clk
.clkr
,
2565 [ADM0_PBUS_CLK
] = &adm0_pbus_clk
.clkr
,
2566 [ADM1_CLK
] = &adm1_clk
.clkr
,
2567 [ADM1_PBUS_CLK
] = &adm1_pbus_clk
.clkr
,
2568 [MODEM_AHB1_H_CLK
] = &modem_ahb1_h_clk
.clkr
,
2569 [MODEM_AHB2_H_CLK
] = &modem_ahb2_h_clk
.clkr
,
2570 [PMIC_ARB0_H_CLK
] = &pmic_arb0_h_clk
.clkr
,
2571 [PMIC_ARB1_H_CLK
] = &pmic_arb1_h_clk
.clkr
,
2572 [PMIC_SSBI2_CLK
] = &pmic_ssbi2_clk
.clkr
,
2573 [RPM_MSG_RAM_H_CLK
] = &rpm_msg_ram_h_clk
.clkr
,
2576 static const struct qcom_reset_map gcc_msm8660_resets
[] = {
2577 [AFAB_CORE_RESET
] = { 0x2080, 7 },
2578 [SCSS_SYS_RESET
] = { 0x20b4, 1 },
2579 [SCSS_SYS_POR_RESET
] = { 0x20b4 },
2580 [AFAB_SMPSS_S_RESET
] = { 0x20b8, 2 },
2581 [AFAB_SMPSS_M1_RESET
] = { 0x20b8, 1 },
2582 [AFAB_SMPSS_M0_RESET
] = { 0x20b8 },
2583 [AFAB_EBI1_S_RESET
] = { 0x20c0, 7 },
2584 [SFAB_CORE_RESET
] = { 0x2120, 7 },
2585 [SFAB_ADM0_M0_RESET
] = { 0x21e0, 7 },
2586 [SFAB_ADM0_M1_RESET
] = { 0x21e4, 7 },
2587 [SFAB_ADM0_M2_RESET
] = { 0x21e4, 7 },
2588 [ADM0_C2_RESET
] = { 0x220c, 4 },
2589 [ADM0_C1_RESET
] = { 0x220c, 3 },
2590 [ADM0_C0_RESET
] = { 0x220c, 2 },
2591 [ADM0_PBUS_RESET
] = { 0x220c, 1 },
2592 [ADM0_RESET
] = { 0x220c },
2593 [SFAB_ADM1_M0_RESET
] = { 0x2220, 7 },
2594 [SFAB_ADM1_M1_RESET
] = { 0x2224, 7 },
2595 [SFAB_ADM1_M2_RESET
] = { 0x2228, 7 },
2596 [MMFAB_ADM1_M3_RESET
] = { 0x2240, 7 },
2597 [ADM1_C3_RESET
] = { 0x226c, 5 },
2598 [ADM1_C2_RESET
] = { 0x226c, 4 },
2599 [ADM1_C1_RESET
] = { 0x226c, 3 },
2600 [ADM1_C0_RESET
] = { 0x226c, 2 },
2601 [ADM1_PBUS_RESET
] = { 0x226c, 1 },
2602 [ADM1_RESET
] = { 0x226c },
2603 [IMEM0_RESET
] = { 0x2280, 7 },
2604 [SFAB_LPASS_Q6_RESET
] = { 0x23a0, 7 },
2605 [SFAB_AFAB_M_RESET
] = { 0x23e0, 7 },
2606 [AFAB_SFAB_M0_RESET
] = { 0x2420, 7 },
2607 [AFAB_SFAB_M1_RESET
] = { 0x2424, 7 },
2608 [DFAB_CORE_RESET
] = { 0x24ac, 7 },
2609 [SFAB_DFAB_M_RESET
] = { 0x2500, 7 },
2610 [DFAB_SFAB_M_RESET
] = { 0x2520, 7 },
2611 [DFAB_SWAY0_RESET
] = { 0x2540, 7 },
2612 [DFAB_SWAY1_RESET
] = { 0x2544, 7 },
2613 [DFAB_ARB0_RESET
] = { 0x2560, 7 },
2614 [DFAB_ARB1_RESET
] = { 0x2564, 7 },
2615 [PPSS_PROC_RESET
] = { 0x2594, 1 },
2616 [PPSS_RESET
] = { 0x2594 },
2617 [PMEM_RESET
] = { 0x25a0, 7 },
2618 [DMA_BAM_RESET
] = { 0x25c0, 7 },
2619 [SIC_RESET
] = { 0x25e0, 7 },
2620 [SPS_TIC_RESET
] = { 0x2600, 7 },
2621 [CFBP0_RESET
] = { 0x2650, 7 },
2622 [CFBP1_RESET
] = { 0x2654, 7 },
2623 [CFBP2_RESET
] = { 0x2658, 7 },
2624 [EBI2_RESET
] = { 0x2664, 7 },
2625 [SFAB_CFPB_M_RESET
] = { 0x2680, 7 },
2626 [CFPB_MASTER_RESET
] = { 0x26a0, 7 },
2627 [SFAB_CFPB_S_RESET
] = { 0x26c0, 7 },
2628 [CFPB_SPLITTER_RESET
] = { 0x26e0, 7 },
2629 [TSIF_RESET
] = { 0x2700, 7 },
2630 [CE1_RESET
] = { 0x2720, 7 },
2631 [CE2_RESET
] = { 0x2740, 7 },
2632 [SFAB_SFPB_M_RESET
] = { 0x2780, 7 },
2633 [SFAB_SFPB_S_RESET
] = { 0x27a0, 7 },
2634 [RPM_PROC_RESET
] = { 0x27c0, 7 },
2635 [RPM_BUS_RESET
] = { 0x27c4, 7 },
2636 [RPM_MSG_RAM_RESET
] = { 0x27e0, 7 },
2637 [PMIC_ARB0_RESET
] = { 0x2800, 7 },
2638 [PMIC_ARB1_RESET
] = { 0x2804, 7 },
2639 [PMIC_SSBI2_RESET
] = { 0x280c, 12 },
2640 [SDC1_RESET
] = { 0x2830 },
2641 [SDC2_RESET
] = { 0x2850 },
2642 [SDC3_RESET
] = { 0x2870 },
2643 [SDC4_RESET
] = { 0x2890 },
2644 [SDC5_RESET
] = { 0x28b0 },
2645 [USB_HS1_RESET
] = { 0x2910 },
2646 [USB_HS2_XCVR_RESET
] = { 0x2934, 1 },
2647 [USB_HS2_RESET
] = { 0x2934 },
2648 [USB_FS1_XCVR_RESET
] = { 0x2974, 1 },
2649 [USB_FS1_RESET
] = { 0x2974 },
2650 [USB_FS2_XCVR_RESET
] = { 0x2994, 1 },
2651 [USB_FS2_RESET
] = { 0x2994 },
2652 [GSBI1_RESET
] = { 0x29dc },
2653 [GSBI2_RESET
] = { 0x29fc },
2654 [GSBI3_RESET
] = { 0x2a1c },
2655 [GSBI4_RESET
] = { 0x2a3c },
2656 [GSBI5_RESET
] = { 0x2a5c },
2657 [GSBI6_RESET
] = { 0x2a7c },
2658 [GSBI7_RESET
] = { 0x2a9c },
2659 [GSBI8_RESET
] = { 0x2abc },
2660 [GSBI9_RESET
] = { 0x2adc },
2661 [GSBI10_RESET
] = { 0x2afc },
2662 [GSBI11_RESET
] = { 0x2b1c },
2663 [GSBI12_RESET
] = { 0x2b3c },
2664 [SPDM_RESET
] = { 0x2b6c },
2665 [SEC_CTRL_RESET
] = { 0x2b80, 7 },
2666 [TLMM_H_RESET
] = { 0x2ba0, 7 },
2667 [TLMM_RESET
] = { 0x2ba4, 7 },
2668 [MARRM_PWRON_RESET
] = { 0x2bd4, 1 },
2669 [MARM_RESET
] = { 0x2bd4 },
2670 [MAHB1_RESET
] = { 0x2be4, 7 },
2671 [SFAB_MSS_S_RESET
] = { 0x2c00, 7 },
2672 [MAHB2_RESET
] = { 0x2c20, 7 },
2673 [MODEM_SW_AHB_RESET
] = { 0x2c48, 1 },
2674 [MODEM_RESET
] = { 0x2c48 },
2675 [SFAB_MSS_MDM1_RESET
] = { 0x2c4c, 1 },
2676 [SFAB_MSS_MDM0_RESET
] = { 0x2c4c },
2677 [MSS_SLP_RESET
] = { 0x2c60, 7 },
2678 [MSS_MARM_SAW_RESET
] = { 0x2c68, 1 },
2679 [MSS_WDOG_RESET
] = { 0x2c68 },
2680 [TSSC_RESET
] = { 0x2ca0, 7 },
2681 [PDM_RESET
] = { 0x2cc0, 12 },
2682 [SCSS_CORE0_RESET
] = { 0x2d60, 1 },
2683 [SCSS_CORE0_POR_RESET
] = { 0x2d60 },
2684 [SCSS_CORE1_RESET
] = { 0x2d80, 1 },
2685 [SCSS_CORE1_POR_RESET
] = { 0x2d80 },
2686 [MPM_RESET
] = { 0x2da4, 1 },
2687 [EBI1_1X_DIV_RESET
] = { 0x2dec, 9 },
2688 [EBI1_RESET
] = { 0x2dec, 7 },
2689 [SFAB_SMPSS_S_RESET
] = { 0x2e00, 7 },
2690 [USB_PHY0_RESET
] = { 0x2e20 },
2691 [USB_PHY1_RESET
] = { 0x2e40 },
2692 [PRNG_RESET
] = { 0x2e80, 12 },
2695 static const struct regmap_config gcc_msm8660_regmap_config
= {
2699 .max_register
= 0x363c,
2703 static const struct qcom_cc_desc gcc_msm8660_desc
= {
2704 .config
= &gcc_msm8660_regmap_config
,
2705 .clks
= gcc_msm8660_clks
,
2706 .num_clks
= ARRAY_SIZE(gcc_msm8660_clks
),
2707 .resets
= gcc_msm8660_resets
,
2708 .num_resets
= ARRAY_SIZE(gcc_msm8660_resets
),
2711 static const struct of_device_id gcc_msm8660_match_table
[] = {
2712 { .compatible
= "qcom,gcc-msm8660" },
2715 MODULE_DEVICE_TABLE(of
, gcc_msm8660_match_table
);
2717 static int gcc_msm8660_probe(struct platform_device
*pdev
)
2720 struct device
*dev
= &pdev
->dev
;
2722 ret
= qcom_cc_register_board_clk(dev
, "cxo_board", "cxo", 19200000);
2726 ret
= qcom_cc_register_board_clk(dev
, "pxo_board", "pxo", 27000000);
2730 return qcom_cc_probe(pdev
, &gcc_msm8660_desc
);
2733 static struct platform_driver gcc_msm8660_driver
= {
2734 .probe
= gcc_msm8660_probe
,
2736 .name
= "gcc-msm8660",
2737 .of_match_table
= gcc_msm8660_match_table
,
2741 static int __init
gcc_msm8660_init(void)
2743 return platform_driver_register(&gcc_msm8660_driver
);
2745 core_initcall(gcc_msm8660_init
);
2747 static void __exit
gcc_msm8660_exit(void)
2749 platform_driver_unregister(&gcc_msm8660_driver
);
2751 module_exit(gcc_msm8660_exit
);
2753 MODULE_DESCRIPTION("GCC MSM 8660 Driver");
2754 MODULE_LICENSE("GPL v2");
2755 MODULE_ALIAS("platform:gcc-msm8660");