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-msm8974.h>
26 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
29 #include "clk-regmap.h"
32 #include "clk-branch.h"
43 static const struct parent_map gcc_xo_gpll0_map
[] = {
48 static const char * const gcc_xo_gpll0
[] = {
53 static const struct parent_map gcc_xo_gpll0_gpll4_map
[] = {
59 static const char * const gcc_xo_gpll0_gpll4
[] = {
65 static struct clk_pll gpll0
= {
73 .clkr
.hw
.init
= &(struct clk_init_data
){
75 .parent_names
= (const char *[]){ "xo" },
81 static struct clk_regmap gpll0_vote
= {
83 .enable_mask
= BIT(0),
84 .hw
.init
= &(struct clk_init_data
){
86 .parent_names
= (const char *[]){ "gpll0" },
88 .ops
= &clk_pll_vote_ops
,
92 static struct clk_rcg2 config_noc_clk_src
= {
95 .parent_map
= gcc_xo_gpll0_map
,
96 .clkr
.hw
.init
= &(struct clk_init_data
){
97 .name
= "config_noc_clk_src",
98 .parent_names
= gcc_xo_gpll0
,
100 .ops
= &clk_rcg2_ops
,
104 static struct clk_rcg2 periph_noc_clk_src
= {
107 .parent_map
= gcc_xo_gpll0_map
,
108 .clkr
.hw
.init
= &(struct clk_init_data
){
109 .name
= "periph_noc_clk_src",
110 .parent_names
= gcc_xo_gpll0
,
112 .ops
= &clk_rcg2_ops
,
116 static struct clk_rcg2 system_noc_clk_src
= {
119 .parent_map
= gcc_xo_gpll0_map
,
120 .clkr
.hw
.init
= &(struct clk_init_data
){
121 .name
= "system_noc_clk_src",
122 .parent_names
= gcc_xo_gpll0
,
124 .ops
= &clk_rcg2_ops
,
128 static struct clk_pll gpll1
= {
132 .config_reg
= 0x0054,
134 .status_reg
= 0x005c,
136 .clkr
.hw
.init
= &(struct clk_init_data
){
138 .parent_names
= (const char *[]){ "xo" },
144 static struct clk_regmap gpll1_vote
= {
145 .enable_reg
= 0x1480,
146 .enable_mask
= BIT(1),
147 .hw
.init
= &(struct clk_init_data
){
148 .name
= "gpll1_vote",
149 .parent_names
= (const char *[]){ "gpll1" },
151 .ops
= &clk_pll_vote_ops
,
155 static struct clk_pll gpll4
= {
159 .config_reg
= 0x1dd4,
161 .status_reg
= 0x1ddc,
163 .clkr
.hw
.init
= &(struct clk_init_data
){
165 .parent_names
= (const char *[]){ "xo" },
171 static struct clk_regmap gpll4_vote
= {
172 .enable_reg
= 0x1480,
173 .enable_mask
= BIT(4),
174 .hw
.init
= &(struct clk_init_data
){
175 .name
= "gpll4_vote",
176 .parent_names
= (const char *[]){ "gpll4" },
178 .ops
= &clk_pll_vote_ops
,
182 static const struct freq_tbl ftbl_gcc_usb30_master_clk
[] = {
183 F(125000000, P_GPLL0
, 1, 5, 24),
187 static struct clk_rcg2 usb30_master_clk_src
= {
191 .parent_map
= gcc_xo_gpll0_map
,
192 .freq_tbl
= ftbl_gcc_usb30_master_clk
,
193 .clkr
.hw
.init
= &(struct clk_init_data
){
194 .name
= "usb30_master_clk_src",
195 .parent_names
= gcc_xo_gpll0
,
197 .ops
= &clk_rcg2_ops
,
201 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
[] = {
202 F(19200000, P_XO
, 1, 0, 0),
203 F(37500000, P_GPLL0
, 16, 0, 0),
204 F(50000000, P_GPLL0
, 12, 0, 0),
208 static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src
= {
211 .parent_map
= gcc_xo_gpll0_map
,
212 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
213 .clkr
.hw
.init
= &(struct clk_init_data
){
214 .name
= "blsp1_qup1_i2c_apps_clk_src",
215 .parent_names
= gcc_xo_gpll0
,
217 .ops
= &clk_rcg2_ops
,
221 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
[] = {
222 F(960000, P_XO
, 10, 1, 2),
223 F(4800000, P_XO
, 4, 0, 0),
224 F(9600000, P_XO
, 2, 0, 0),
225 F(15000000, P_GPLL0
, 10, 1, 4),
226 F(19200000, P_XO
, 1, 0, 0),
227 F(25000000, P_GPLL0
, 12, 1, 2),
228 F(50000000, P_GPLL0
, 12, 0, 0),
232 static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src
= {
236 .parent_map
= gcc_xo_gpll0_map
,
237 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
238 .clkr
.hw
.init
= &(struct clk_init_data
){
239 .name
= "blsp1_qup1_spi_apps_clk_src",
240 .parent_names
= gcc_xo_gpll0
,
242 .ops
= &clk_rcg2_ops
,
246 static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src
= {
249 .parent_map
= gcc_xo_gpll0_map
,
250 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
251 .clkr
.hw
.init
= &(struct clk_init_data
){
252 .name
= "blsp1_qup2_i2c_apps_clk_src",
253 .parent_names
= gcc_xo_gpll0
,
255 .ops
= &clk_rcg2_ops
,
259 static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src
= {
263 .parent_map
= gcc_xo_gpll0_map
,
264 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
265 .clkr
.hw
.init
= &(struct clk_init_data
){
266 .name
= "blsp1_qup2_spi_apps_clk_src",
267 .parent_names
= gcc_xo_gpll0
,
269 .ops
= &clk_rcg2_ops
,
273 static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src
= {
276 .parent_map
= gcc_xo_gpll0_map
,
277 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
278 .clkr
.hw
.init
= &(struct clk_init_data
){
279 .name
= "blsp1_qup3_i2c_apps_clk_src",
280 .parent_names
= gcc_xo_gpll0
,
282 .ops
= &clk_rcg2_ops
,
286 static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src
= {
290 .parent_map
= gcc_xo_gpll0_map
,
291 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
292 .clkr
.hw
.init
= &(struct clk_init_data
){
293 .name
= "blsp1_qup3_spi_apps_clk_src",
294 .parent_names
= gcc_xo_gpll0
,
296 .ops
= &clk_rcg2_ops
,
300 static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src
= {
303 .parent_map
= gcc_xo_gpll0_map
,
304 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
305 .clkr
.hw
.init
= &(struct clk_init_data
){
306 .name
= "blsp1_qup4_i2c_apps_clk_src",
307 .parent_names
= gcc_xo_gpll0
,
309 .ops
= &clk_rcg2_ops
,
313 static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src
= {
317 .parent_map
= gcc_xo_gpll0_map
,
318 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
319 .clkr
.hw
.init
= &(struct clk_init_data
){
320 .name
= "blsp1_qup4_spi_apps_clk_src",
321 .parent_names
= gcc_xo_gpll0
,
323 .ops
= &clk_rcg2_ops
,
327 static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src
= {
330 .parent_map
= gcc_xo_gpll0_map
,
331 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
332 .clkr
.hw
.init
= &(struct clk_init_data
){
333 .name
= "blsp1_qup5_i2c_apps_clk_src",
334 .parent_names
= gcc_xo_gpll0
,
336 .ops
= &clk_rcg2_ops
,
340 static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src
= {
344 .parent_map
= gcc_xo_gpll0_map
,
345 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
346 .clkr
.hw
.init
= &(struct clk_init_data
){
347 .name
= "blsp1_qup5_spi_apps_clk_src",
348 .parent_names
= gcc_xo_gpll0
,
350 .ops
= &clk_rcg2_ops
,
354 static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src
= {
357 .parent_map
= gcc_xo_gpll0_map
,
358 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
359 .clkr
.hw
.init
= &(struct clk_init_data
){
360 .name
= "blsp1_qup6_i2c_apps_clk_src",
361 .parent_names
= gcc_xo_gpll0
,
363 .ops
= &clk_rcg2_ops
,
367 static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src
= {
371 .parent_map
= gcc_xo_gpll0_map
,
372 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
373 .clkr
.hw
.init
= &(struct clk_init_data
){
374 .name
= "blsp1_qup6_spi_apps_clk_src",
375 .parent_names
= gcc_xo_gpll0
,
377 .ops
= &clk_rcg2_ops
,
381 static const struct freq_tbl ftbl_gcc_blsp1_2_uart1_6_apps_clk
[] = {
382 F(3686400, P_GPLL0
, 1, 96, 15625),
383 F(7372800, P_GPLL0
, 1, 192, 15625),
384 F(14745600, P_GPLL0
, 1, 384, 15625),
385 F(16000000, P_GPLL0
, 5, 2, 15),
386 F(19200000, P_XO
, 1, 0, 0),
387 F(24000000, P_GPLL0
, 5, 1, 5),
388 F(32000000, P_GPLL0
, 1, 4, 75),
389 F(40000000, P_GPLL0
, 15, 0, 0),
390 F(46400000, P_GPLL0
, 1, 29, 375),
391 F(48000000, P_GPLL0
, 12.5, 0, 0),
392 F(51200000, P_GPLL0
, 1, 32, 375),
393 F(56000000, P_GPLL0
, 1, 7, 75),
394 F(58982400, P_GPLL0
, 1, 1536, 15625),
395 F(60000000, P_GPLL0
, 10, 0, 0),
396 F(63160000, P_GPLL0
, 9.5, 0, 0),
400 static struct clk_rcg2 blsp1_uart1_apps_clk_src
= {
404 .parent_map
= gcc_xo_gpll0_map
,
405 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
406 .clkr
.hw
.init
= &(struct clk_init_data
){
407 .name
= "blsp1_uart1_apps_clk_src",
408 .parent_names
= gcc_xo_gpll0
,
410 .ops
= &clk_rcg2_ops
,
414 static struct clk_rcg2 blsp1_uart2_apps_clk_src
= {
418 .parent_map
= gcc_xo_gpll0_map
,
419 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
420 .clkr
.hw
.init
= &(struct clk_init_data
){
421 .name
= "blsp1_uart2_apps_clk_src",
422 .parent_names
= gcc_xo_gpll0
,
424 .ops
= &clk_rcg2_ops
,
428 static struct clk_rcg2 blsp1_uart3_apps_clk_src
= {
432 .parent_map
= gcc_xo_gpll0_map
,
433 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
434 .clkr
.hw
.init
= &(struct clk_init_data
){
435 .name
= "blsp1_uart3_apps_clk_src",
436 .parent_names
= gcc_xo_gpll0
,
438 .ops
= &clk_rcg2_ops
,
442 static struct clk_rcg2 blsp1_uart4_apps_clk_src
= {
446 .parent_map
= gcc_xo_gpll0_map
,
447 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
448 .clkr
.hw
.init
= &(struct clk_init_data
){
449 .name
= "blsp1_uart4_apps_clk_src",
450 .parent_names
= gcc_xo_gpll0
,
452 .ops
= &clk_rcg2_ops
,
456 static struct clk_rcg2 blsp1_uart5_apps_clk_src
= {
460 .parent_map
= gcc_xo_gpll0_map
,
461 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
462 .clkr
.hw
.init
= &(struct clk_init_data
){
463 .name
= "blsp1_uart5_apps_clk_src",
464 .parent_names
= gcc_xo_gpll0
,
466 .ops
= &clk_rcg2_ops
,
470 static struct clk_rcg2 blsp1_uart6_apps_clk_src
= {
474 .parent_map
= gcc_xo_gpll0_map
,
475 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
476 .clkr
.hw
.init
= &(struct clk_init_data
){
477 .name
= "blsp1_uart6_apps_clk_src",
478 .parent_names
= gcc_xo_gpll0
,
480 .ops
= &clk_rcg2_ops
,
484 static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src
= {
487 .parent_map
= gcc_xo_gpll0_map
,
488 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
489 .clkr
.hw
.init
= &(struct clk_init_data
){
490 .name
= "blsp2_qup1_i2c_apps_clk_src",
491 .parent_names
= gcc_xo_gpll0
,
493 .ops
= &clk_rcg2_ops
,
497 static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src
= {
501 .parent_map
= gcc_xo_gpll0_map
,
502 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
503 .clkr
.hw
.init
= &(struct clk_init_data
){
504 .name
= "blsp2_qup1_spi_apps_clk_src",
505 .parent_names
= gcc_xo_gpll0
,
507 .ops
= &clk_rcg2_ops
,
511 static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src
= {
514 .parent_map
= gcc_xo_gpll0_map
,
515 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
516 .clkr
.hw
.init
= &(struct clk_init_data
){
517 .name
= "blsp2_qup2_i2c_apps_clk_src",
518 .parent_names
= gcc_xo_gpll0
,
520 .ops
= &clk_rcg2_ops
,
524 static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src
= {
528 .parent_map
= gcc_xo_gpll0_map
,
529 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
530 .clkr
.hw
.init
= &(struct clk_init_data
){
531 .name
= "blsp2_qup2_spi_apps_clk_src",
532 .parent_names
= gcc_xo_gpll0
,
534 .ops
= &clk_rcg2_ops
,
538 static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src
= {
541 .parent_map
= gcc_xo_gpll0_map
,
542 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
543 .clkr
.hw
.init
= &(struct clk_init_data
){
544 .name
= "blsp2_qup3_i2c_apps_clk_src",
545 .parent_names
= gcc_xo_gpll0
,
547 .ops
= &clk_rcg2_ops
,
551 static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src
= {
555 .parent_map
= gcc_xo_gpll0_map
,
556 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
557 .clkr
.hw
.init
= &(struct clk_init_data
){
558 .name
= "blsp2_qup3_spi_apps_clk_src",
559 .parent_names
= gcc_xo_gpll0
,
561 .ops
= &clk_rcg2_ops
,
565 static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src
= {
568 .parent_map
= gcc_xo_gpll0_map
,
569 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
570 .clkr
.hw
.init
= &(struct clk_init_data
){
571 .name
= "blsp2_qup4_i2c_apps_clk_src",
572 .parent_names
= gcc_xo_gpll0
,
574 .ops
= &clk_rcg2_ops
,
578 static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src
= {
582 .parent_map
= gcc_xo_gpll0_map
,
583 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
584 .clkr
.hw
.init
= &(struct clk_init_data
){
585 .name
= "blsp2_qup4_spi_apps_clk_src",
586 .parent_names
= gcc_xo_gpll0
,
588 .ops
= &clk_rcg2_ops
,
592 static struct clk_rcg2 blsp2_qup5_i2c_apps_clk_src
= {
595 .parent_map
= gcc_xo_gpll0_map
,
596 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
597 .clkr
.hw
.init
= &(struct clk_init_data
){
598 .name
= "blsp2_qup5_i2c_apps_clk_src",
599 .parent_names
= gcc_xo_gpll0
,
601 .ops
= &clk_rcg2_ops
,
605 static struct clk_rcg2 blsp2_qup5_spi_apps_clk_src
= {
609 .parent_map
= gcc_xo_gpll0_map
,
610 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
611 .clkr
.hw
.init
= &(struct clk_init_data
){
612 .name
= "blsp2_qup5_spi_apps_clk_src",
613 .parent_names
= gcc_xo_gpll0
,
615 .ops
= &clk_rcg2_ops
,
619 static struct clk_rcg2 blsp2_qup6_i2c_apps_clk_src
= {
622 .parent_map
= gcc_xo_gpll0_map
,
623 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
624 .clkr
.hw
.init
= &(struct clk_init_data
){
625 .name
= "blsp2_qup6_i2c_apps_clk_src",
626 .parent_names
= gcc_xo_gpll0
,
628 .ops
= &clk_rcg2_ops
,
632 static struct clk_rcg2 blsp2_qup6_spi_apps_clk_src
= {
636 .parent_map
= gcc_xo_gpll0_map
,
637 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
638 .clkr
.hw
.init
= &(struct clk_init_data
){
639 .name
= "blsp2_qup6_spi_apps_clk_src",
640 .parent_names
= gcc_xo_gpll0
,
642 .ops
= &clk_rcg2_ops
,
646 static struct clk_rcg2 blsp2_uart1_apps_clk_src
= {
650 .parent_map
= gcc_xo_gpll0_map
,
651 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
652 .clkr
.hw
.init
= &(struct clk_init_data
){
653 .name
= "blsp2_uart1_apps_clk_src",
654 .parent_names
= gcc_xo_gpll0
,
656 .ops
= &clk_rcg2_ops
,
660 static struct clk_rcg2 blsp2_uart2_apps_clk_src
= {
664 .parent_map
= gcc_xo_gpll0_map
,
665 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
666 .clkr
.hw
.init
= &(struct clk_init_data
){
667 .name
= "blsp2_uart2_apps_clk_src",
668 .parent_names
= gcc_xo_gpll0
,
670 .ops
= &clk_rcg2_ops
,
674 static struct clk_rcg2 blsp2_uart3_apps_clk_src
= {
678 .parent_map
= gcc_xo_gpll0_map
,
679 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
680 .clkr
.hw
.init
= &(struct clk_init_data
){
681 .name
= "blsp2_uart3_apps_clk_src",
682 .parent_names
= gcc_xo_gpll0
,
684 .ops
= &clk_rcg2_ops
,
688 static struct clk_rcg2 blsp2_uart4_apps_clk_src
= {
692 .parent_map
= gcc_xo_gpll0_map
,
693 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
694 .clkr
.hw
.init
= &(struct clk_init_data
){
695 .name
= "blsp2_uart4_apps_clk_src",
696 .parent_names
= gcc_xo_gpll0
,
698 .ops
= &clk_rcg2_ops
,
702 static struct clk_rcg2 blsp2_uart5_apps_clk_src
= {
706 .parent_map
= gcc_xo_gpll0_map
,
707 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
708 .clkr
.hw
.init
= &(struct clk_init_data
){
709 .name
= "blsp2_uart5_apps_clk_src",
710 .parent_names
= gcc_xo_gpll0
,
712 .ops
= &clk_rcg2_ops
,
716 static struct clk_rcg2 blsp2_uart6_apps_clk_src
= {
720 .parent_map
= gcc_xo_gpll0_map
,
721 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
722 .clkr
.hw
.init
= &(struct clk_init_data
){
723 .name
= "blsp2_uart6_apps_clk_src",
724 .parent_names
= gcc_xo_gpll0
,
726 .ops
= &clk_rcg2_ops
,
730 static const struct freq_tbl ftbl_gcc_ce1_clk
[] = {
731 F(50000000, P_GPLL0
, 12, 0, 0),
732 F(75000000, P_GPLL0
, 8, 0, 0),
733 F(100000000, P_GPLL0
, 6, 0, 0),
734 F(150000000, P_GPLL0
, 4, 0, 0),
738 static struct clk_rcg2 ce1_clk_src
= {
741 .parent_map
= gcc_xo_gpll0_map
,
742 .freq_tbl
= ftbl_gcc_ce1_clk
,
743 .clkr
.hw
.init
= &(struct clk_init_data
){
744 .name
= "ce1_clk_src",
745 .parent_names
= gcc_xo_gpll0
,
747 .ops
= &clk_rcg2_ops
,
751 static const struct freq_tbl ftbl_gcc_ce2_clk
[] = {
752 F(50000000, P_GPLL0
, 12, 0, 0),
753 F(75000000, P_GPLL0
, 8, 0, 0),
754 F(100000000, P_GPLL0
, 6, 0, 0),
755 F(150000000, P_GPLL0
, 4, 0, 0),
759 static struct clk_rcg2 ce2_clk_src
= {
762 .parent_map
= gcc_xo_gpll0_map
,
763 .freq_tbl
= ftbl_gcc_ce2_clk
,
764 .clkr
.hw
.init
= &(struct clk_init_data
){
765 .name
= "ce2_clk_src",
766 .parent_names
= gcc_xo_gpll0
,
768 .ops
= &clk_rcg2_ops
,
772 static const struct freq_tbl ftbl_gcc_gp_clk
[] = {
773 F(4800000, P_XO
, 4, 0, 0),
774 F(6000000, P_GPLL0
, 10, 1, 10),
775 F(6750000, P_GPLL0
, 1, 1, 89),
776 F(8000000, P_GPLL0
, 15, 1, 5),
777 F(9600000, P_XO
, 2, 0, 0),
778 F(16000000, P_GPLL0
, 1, 2, 75),
779 F(19200000, P_XO
, 1, 0, 0),
780 F(24000000, P_GPLL0
, 5, 1, 5),
785 static struct clk_rcg2 gp1_clk_src
= {
789 .parent_map
= gcc_xo_gpll0_map
,
790 .freq_tbl
= ftbl_gcc_gp_clk
,
791 .clkr
.hw
.init
= &(struct clk_init_data
){
792 .name
= "gp1_clk_src",
793 .parent_names
= gcc_xo_gpll0
,
795 .ops
= &clk_rcg2_ops
,
799 static struct clk_rcg2 gp2_clk_src
= {
803 .parent_map
= gcc_xo_gpll0_map
,
804 .freq_tbl
= ftbl_gcc_gp_clk
,
805 .clkr
.hw
.init
= &(struct clk_init_data
){
806 .name
= "gp2_clk_src",
807 .parent_names
= gcc_xo_gpll0
,
809 .ops
= &clk_rcg2_ops
,
813 static struct clk_rcg2 gp3_clk_src
= {
817 .parent_map
= gcc_xo_gpll0_map
,
818 .freq_tbl
= ftbl_gcc_gp_clk
,
819 .clkr
.hw
.init
= &(struct clk_init_data
){
820 .name
= "gp3_clk_src",
821 .parent_names
= gcc_xo_gpll0
,
823 .ops
= &clk_rcg2_ops
,
827 static const struct freq_tbl ftbl_gcc_pdm2_clk
[] = {
828 F(60000000, P_GPLL0
, 10, 0, 0),
832 static struct clk_rcg2 pdm2_clk_src
= {
835 .parent_map
= gcc_xo_gpll0_map
,
836 .freq_tbl
= ftbl_gcc_pdm2_clk
,
837 .clkr
.hw
.init
= &(struct clk_init_data
){
838 .name
= "pdm2_clk_src",
839 .parent_names
= gcc_xo_gpll0
,
841 .ops
= &clk_rcg2_ops
,
845 static const struct freq_tbl ftbl_gcc_sdcc1_4_apps_clk
[] = {
846 F(144000, P_XO
, 16, 3, 25),
847 F(400000, P_XO
, 12, 1, 4),
848 F(20000000, P_GPLL0
, 15, 1, 2),
849 F(25000000, P_GPLL0
, 12, 1, 2),
850 F(50000000, P_GPLL0
, 12, 0, 0),
851 F(100000000, P_GPLL0
, 6, 0, 0),
852 F(200000000, P_GPLL0
, 3, 0, 0),
856 static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_pro
[] = {
857 F(144000, P_XO
, 16, 3, 25),
858 F(400000, P_XO
, 12, 1, 4),
859 F(20000000, P_GPLL0
, 15, 1, 2),
860 F(25000000, P_GPLL0
, 12, 1, 2),
861 F(50000000, P_GPLL0
, 12, 0, 0),
862 F(100000000, P_GPLL0
, 6, 0, 0),
863 F(192000000, P_GPLL4
, 4, 0, 0),
864 F(200000000, P_GPLL0
, 3, 0, 0),
865 F(384000000, P_GPLL4
, 2, 0, 0),
869 static struct clk_init_data sdcc1_apps_clk_src_init
= {
870 .name
= "sdcc1_apps_clk_src",
871 .parent_names
= gcc_xo_gpll0
,
873 .ops
= &clk_rcg2_floor_ops
,
876 static struct clk_rcg2 sdcc1_apps_clk_src
= {
880 .parent_map
= gcc_xo_gpll0_map
,
881 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
882 .clkr
.hw
.init
= &sdcc1_apps_clk_src_init
,
885 static struct clk_rcg2 sdcc2_apps_clk_src
= {
889 .parent_map
= gcc_xo_gpll0_map
,
890 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
891 .clkr
.hw
.init
= &(struct clk_init_data
){
892 .name
= "sdcc2_apps_clk_src",
893 .parent_names
= gcc_xo_gpll0
,
895 .ops
= &clk_rcg2_floor_ops
,
899 static struct clk_rcg2 sdcc3_apps_clk_src
= {
903 .parent_map
= gcc_xo_gpll0_map
,
904 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
905 .clkr
.hw
.init
= &(struct clk_init_data
){
906 .name
= "sdcc3_apps_clk_src",
907 .parent_names
= gcc_xo_gpll0
,
909 .ops
= &clk_rcg2_floor_ops
,
913 static struct clk_rcg2 sdcc4_apps_clk_src
= {
917 .parent_map
= gcc_xo_gpll0_map
,
918 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
919 .clkr
.hw
.init
= &(struct clk_init_data
){
920 .name
= "sdcc4_apps_clk_src",
921 .parent_names
= gcc_xo_gpll0
,
923 .ops
= &clk_rcg2_floor_ops
,
927 static const struct freq_tbl ftbl_gcc_tsif_ref_clk
[] = {
928 F(105000, P_XO
, 2, 1, 91),
932 static struct clk_rcg2 tsif_ref_clk_src
= {
936 .parent_map
= gcc_xo_gpll0_map
,
937 .freq_tbl
= ftbl_gcc_tsif_ref_clk
,
938 .clkr
.hw
.init
= &(struct clk_init_data
){
939 .name
= "tsif_ref_clk_src",
940 .parent_names
= gcc_xo_gpll0
,
942 .ops
= &clk_rcg2_ops
,
946 static const struct freq_tbl ftbl_gcc_usb30_mock_utmi_clk
[] = {
947 F(60000000, P_GPLL0
, 10, 0, 0),
951 static struct clk_rcg2 usb30_mock_utmi_clk_src
= {
954 .parent_map
= gcc_xo_gpll0_map
,
955 .freq_tbl
= ftbl_gcc_usb30_mock_utmi_clk
,
956 .clkr
.hw
.init
= &(struct clk_init_data
){
957 .name
= "usb30_mock_utmi_clk_src",
958 .parent_names
= gcc_xo_gpll0
,
960 .ops
= &clk_rcg2_ops
,
964 static const struct freq_tbl ftbl_gcc_usb_hs_system_clk
[] = {
965 F(60000000, P_GPLL0
, 10, 0, 0),
966 F(75000000, P_GPLL0
, 8, 0, 0),
970 static struct clk_rcg2 usb_hs_system_clk_src
= {
973 .parent_map
= gcc_xo_gpll0_map
,
974 .freq_tbl
= ftbl_gcc_usb_hs_system_clk
,
975 .clkr
.hw
.init
= &(struct clk_init_data
){
976 .name
= "usb_hs_system_clk_src",
977 .parent_names
= gcc_xo_gpll0
,
979 .ops
= &clk_rcg2_ops
,
983 static const struct freq_tbl ftbl_gcc_usb_hsic_clk
[] = {
984 F(480000000, P_GPLL1
, 1, 0, 0),
988 static const struct parent_map usb_hsic_clk_src_map
[] = {
993 static struct clk_rcg2 usb_hsic_clk_src
= {
996 .parent_map
= usb_hsic_clk_src_map
,
997 .freq_tbl
= ftbl_gcc_usb_hsic_clk
,
998 .clkr
.hw
.init
= &(struct clk_init_data
){
999 .name
= "usb_hsic_clk_src",
1000 .parent_names
= (const char *[]){
1005 .ops
= &clk_rcg2_ops
,
1009 static const struct freq_tbl ftbl_gcc_usb_hsic_io_cal_clk
[] = {
1010 F(9600000, P_XO
, 2, 0, 0),
1014 static struct clk_rcg2 usb_hsic_io_cal_clk_src
= {
1017 .parent_map
= gcc_xo_gpll0_map
,
1018 .freq_tbl
= ftbl_gcc_usb_hsic_io_cal_clk
,
1019 .clkr
.hw
.init
= &(struct clk_init_data
){
1020 .name
= "usb_hsic_io_cal_clk_src",
1021 .parent_names
= gcc_xo_gpll0
,
1023 .ops
= &clk_rcg2_ops
,
1027 static const struct freq_tbl ftbl_gcc_usb_hsic_system_clk
[] = {
1028 F(60000000, P_GPLL0
, 10, 0, 0),
1029 F(75000000, P_GPLL0
, 8, 0, 0),
1033 static struct clk_rcg2 usb_hsic_system_clk_src
= {
1036 .parent_map
= gcc_xo_gpll0_map
,
1037 .freq_tbl
= ftbl_gcc_usb_hsic_system_clk
,
1038 .clkr
.hw
.init
= &(struct clk_init_data
){
1039 .name
= "usb_hsic_system_clk_src",
1040 .parent_names
= gcc_xo_gpll0
,
1042 .ops
= &clk_rcg2_ops
,
1046 static struct clk_regmap gcc_mmss_gpll0_clk_src
= {
1047 .enable_reg
= 0x1484,
1048 .enable_mask
= BIT(26),
1049 .hw
.init
= &(struct clk_init_data
){
1050 .name
= "mmss_gpll0_vote",
1051 .parent_names
= (const char *[]){
1055 .ops
= &clk_branch_simple_ops
,
1059 static struct clk_branch gcc_bam_dma_ahb_clk
= {
1061 .halt_check
= BRANCH_HALT_VOTED
,
1063 .enable_reg
= 0x1484,
1064 .enable_mask
= BIT(12),
1065 .hw
.init
= &(struct clk_init_data
){
1066 .name
= "gcc_bam_dma_ahb_clk",
1067 .parent_names
= (const char *[]){
1068 "periph_noc_clk_src",
1071 .ops
= &clk_branch2_ops
,
1076 static struct clk_branch gcc_blsp1_ahb_clk
= {
1078 .halt_check
= BRANCH_HALT_VOTED
,
1080 .enable_reg
= 0x1484,
1081 .enable_mask
= BIT(17),
1082 .hw
.init
= &(struct clk_init_data
){
1083 .name
= "gcc_blsp1_ahb_clk",
1084 .parent_names
= (const char *[]){
1085 "periph_noc_clk_src",
1088 .ops
= &clk_branch2_ops
,
1093 static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk
= {
1096 .enable_reg
= 0x0648,
1097 .enable_mask
= BIT(0),
1098 .hw
.init
= &(struct clk_init_data
){
1099 .name
= "gcc_blsp1_qup1_i2c_apps_clk",
1100 .parent_names
= (const char *[]){
1101 "blsp1_qup1_i2c_apps_clk_src",
1104 .flags
= CLK_SET_RATE_PARENT
,
1105 .ops
= &clk_branch2_ops
,
1110 static struct clk_branch gcc_blsp1_qup1_spi_apps_clk
= {
1113 .enable_reg
= 0x0644,
1114 .enable_mask
= BIT(0),
1115 .hw
.init
= &(struct clk_init_data
){
1116 .name
= "gcc_blsp1_qup1_spi_apps_clk",
1117 .parent_names
= (const char *[]){
1118 "blsp1_qup1_spi_apps_clk_src",
1121 .flags
= CLK_SET_RATE_PARENT
,
1122 .ops
= &clk_branch2_ops
,
1127 static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk
= {
1130 .enable_reg
= 0x06c8,
1131 .enable_mask
= BIT(0),
1132 .hw
.init
= &(struct clk_init_data
){
1133 .name
= "gcc_blsp1_qup2_i2c_apps_clk",
1134 .parent_names
= (const char *[]){
1135 "blsp1_qup2_i2c_apps_clk_src",
1138 .flags
= CLK_SET_RATE_PARENT
,
1139 .ops
= &clk_branch2_ops
,
1144 static struct clk_branch gcc_blsp1_qup2_spi_apps_clk
= {
1147 .enable_reg
= 0x06c4,
1148 .enable_mask
= BIT(0),
1149 .hw
.init
= &(struct clk_init_data
){
1150 .name
= "gcc_blsp1_qup2_spi_apps_clk",
1151 .parent_names
= (const char *[]){
1152 "blsp1_qup2_spi_apps_clk_src",
1155 .flags
= CLK_SET_RATE_PARENT
,
1156 .ops
= &clk_branch2_ops
,
1161 static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk
= {
1164 .enable_reg
= 0x0748,
1165 .enable_mask
= BIT(0),
1166 .hw
.init
= &(struct clk_init_data
){
1167 .name
= "gcc_blsp1_qup3_i2c_apps_clk",
1168 .parent_names
= (const char *[]){
1169 "blsp1_qup3_i2c_apps_clk_src",
1172 .flags
= CLK_SET_RATE_PARENT
,
1173 .ops
= &clk_branch2_ops
,
1178 static struct clk_branch gcc_blsp1_qup3_spi_apps_clk
= {
1181 .enable_reg
= 0x0744,
1182 .enable_mask
= BIT(0),
1183 .hw
.init
= &(struct clk_init_data
){
1184 .name
= "gcc_blsp1_qup3_spi_apps_clk",
1185 .parent_names
= (const char *[]){
1186 "blsp1_qup3_spi_apps_clk_src",
1189 .flags
= CLK_SET_RATE_PARENT
,
1190 .ops
= &clk_branch2_ops
,
1195 static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk
= {
1198 .enable_reg
= 0x07c8,
1199 .enable_mask
= BIT(0),
1200 .hw
.init
= &(struct clk_init_data
){
1201 .name
= "gcc_blsp1_qup4_i2c_apps_clk",
1202 .parent_names
= (const char *[]){
1203 "blsp1_qup4_i2c_apps_clk_src",
1206 .flags
= CLK_SET_RATE_PARENT
,
1207 .ops
= &clk_branch2_ops
,
1212 static struct clk_branch gcc_blsp1_qup4_spi_apps_clk
= {
1215 .enable_reg
= 0x07c4,
1216 .enable_mask
= BIT(0),
1217 .hw
.init
= &(struct clk_init_data
){
1218 .name
= "gcc_blsp1_qup4_spi_apps_clk",
1219 .parent_names
= (const char *[]){
1220 "blsp1_qup4_spi_apps_clk_src",
1223 .flags
= CLK_SET_RATE_PARENT
,
1224 .ops
= &clk_branch2_ops
,
1229 static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk
= {
1232 .enable_reg
= 0x0848,
1233 .enable_mask
= BIT(0),
1234 .hw
.init
= &(struct clk_init_data
){
1235 .name
= "gcc_blsp1_qup5_i2c_apps_clk",
1236 .parent_names
= (const char *[]){
1237 "blsp1_qup5_i2c_apps_clk_src",
1240 .flags
= CLK_SET_RATE_PARENT
,
1241 .ops
= &clk_branch2_ops
,
1246 static struct clk_branch gcc_blsp1_qup5_spi_apps_clk
= {
1249 .enable_reg
= 0x0844,
1250 .enable_mask
= BIT(0),
1251 .hw
.init
= &(struct clk_init_data
){
1252 .name
= "gcc_blsp1_qup5_spi_apps_clk",
1253 .parent_names
= (const char *[]){
1254 "blsp1_qup5_spi_apps_clk_src",
1257 .flags
= CLK_SET_RATE_PARENT
,
1258 .ops
= &clk_branch2_ops
,
1263 static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk
= {
1266 .enable_reg
= 0x08c8,
1267 .enable_mask
= BIT(0),
1268 .hw
.init
= &(struct clk_init_data
){
1269 .name
= "gcc_blsp1_qup6_i2c_apps_clk",
1270 .parent_names
= (const char *[]){
1271 "blsp1_qup6_i2c_apps_clk_src",
1274 .flags
= CLK_SET_RATE_PARENT
,
1275 .ops
= &clk_branch2_ops
,
1280 static struct clk_branch gcc_blsp1_qup6_spi_apps_clk
= {
1283 .enable_reg
= 0x08c4,
1284 .enable_mask
= BIT(0),
1285 .hw
.init
= &(struct clk_init_data
){
1286 .name
= "gcc_blsp1_qup6_spi_apps_clk",
1287 .parent_names
= (const char *[]){
1288 "blsp1_qup6_spi_apps_clk_src",
1291 .flags
= CLK_SET_RATE_PARENT
,
1292 .ops
= &clk_branch2_ops
,
1297 static struct clk_branch gcc_blsp1_uart1_apps_clk
= {
1300 .enable_reg
= 0x0684,
1301 .enable_mask
= BIT(0),
1302 .hw
.init
= &(struct clk_init_data
){
1303 .name
= "gcc_blsp1_uart1_apps_clk",
1304 .parent_names
= (const char *[]){
1305 "blsp1_uart1_apps_clk_src",
1308 .flags
= CLK_SET_RATE_PARENT
,
1309 .ops
= &clk_branch2_ops
,
1314 static struct clk_branch gcc_blsp1_uart2_apps_clk
= {
1317 .enable_reg
= 0x0704,
1318 .enable_mask
= BIT(0),
1319 .hw
.init
= &(struct clk_init_data
){
1320 .name
= "gcc_blsp1_uart2_apps_clk",
1321 .parent_names
= (const char *[]){
1322 "blsp1_uart2_apps_clk_src",
1325 .flags
= CLK_SET_RATE_PARENT
,
1326 .ops
= &clk_branch2_ops
,
1331 static struct clk_branch gcc_blsp1_uart3_apps_clk
= {
1334 .enable_reg
= 0x0784,
1335 .enable_mask
= BIT(0),
1336 .hw
.init
= &(struct clk_init_data
){
1337 .name
= "gcc_blsp1_uart3_apps_clk",
1338 .parent_names
= (const char *[]){
1339 "blsp1_uart3_apps_clk_src",
1342 .flags
= CLK_SET_RATE_PARENT
,
1343 .ops
= &clk_branch2_ops
,
1348 static struct clk_branch gcc_blsp1_uart4_apps_clk
= {
1351 .enable_reg
= 0x0804,
1352 .enable_mask
= BIT(0),
1353 .hw
.init
= &(struct clk_init_data
){
1354 .name
= "gcc_blsp1_uart4_apps_clk",
1355 .parent_names
= (const char *[]){
1356 "blsp1_uart4_apps_clk_src",
1359 .flags
= CLK_SET_RATE_PARENT
,
1360 .ops
= &clk_branch2_ops
,
1365 static struct clk_branch gcc_blsp1_uart5_apps_clk
= {
1368 .enable_reg
= 0x0884,
1369 .enable_mask
= BIT(0),
1370 .hw
.init
= &(struct clk_init_data
){
1371 .name
= "gcc_blsp1_uart5_apps_clk",
1372 .parent_names
= (const char *[]){
1373 "blsp1_uart5_apps_clk_src",
1376 .flags
= CLK_SET_RATE_PARENT
,
1377 .ops
= &clk_branch2_ops
,
1382 static struct clk_branch gcc_blsp1_uart6_apps_clk
= {
1385 .enable_reg
= 0x0904,
1386 .enable_mask
= BIT(0),
1387 .hw
.init
= &(struct clk_init_data
){
1388 .name
= "gcc_blsp1_uart6_apps_clk",
1389 .parent_names
= (const char *[]){
1390 "blsp1_uart6_apps_clk_src",
1393 .flags
= CLK_SET_RATE_PARENT
,
1394 .ops
= &clk_branch2_ops
,
1399 static struct clk_branch gcc_blsp2_ahb_clk
= {
1401 .halt_check
= BRANCH_HALT_VOTED
,
1403 .enable_reg
= 0x1484,
1404 .enable_mask
= BIT(15),
1405 .hw
.init
= &(struct clk_init_data
){
1406 .name
= "gcc_blsp2_ahb_clk",
1407 .parent_names
= (const char *[]){
1408 "periph_noc_clk_src",
1411 .ops
= &clk_branch2_ops
,
1416 static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk
= {
1419 .enable_reg
= 0x0988,
1420 .enable_mask
= BIT(0),
1421 .hw
.init
= &(struct clk_init_data
){
1422 .name
= "gcc_blsp2_qup1_i2c_apps_clk",
1423 .parent_names
= (const char *[]){
1424 "blsp2_qup1_i2c_apps_clk_src",
1427 .flags
= CLK_SET_RATE_PARENT
,
1428 .ops
= &clk_branch2_ops
,
1433 static struct clk_branch gcc_blsp2_qup1_spi_apps_clk
= {
1436 .enable_reg
= 0x0984,
1437 .enable_mask
= BIT(0),
1438 .hw
.init
= &(struct clk_init_data
){
1439 .name
= "gcc_blsp2_qup1_spi_apps_clk",
1440 .parent_names
= (const char *[]){
1441 "blsp2_qup1_spi_apps_clk_src",
1444 .flags
= CLK_SET_RATE_PARENT
,
1445 .ops
= &clk_branch2_ops
,
1450 static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk
= {
1453 .enable_reg
= 0x0a08,
1454 .enable_mask
= BIT(0),
1455 .hw
.init
= &(struct clk_init_data
){
1456 .name
= "gcc_blsp2_qup2_i2c_apps_clk",
1457 .parent_names
= (const char *[]){
1458 "blsp2_qup2_i2c_apps_clk_src",
1461 .flags
= CLK_SET_RATE_PARENT
,
1462 .ops
= &clk_branch2_ops
,
1467 static struct clk_branch gcc_blsp2_qup2_spi_apps_clk
= {
1470 .enable_reg
= 0x0a04,
1471 .enable_mask
= BIT(0),
1472 .hw
.init
= &(struct clk_init_data
){
1473 .name
= "gcc_blsp2_qup2_spi_apps_clk",
1474 .parent_names
= (const char *[]){
1475 "blsp2_qup2_spi_apps_clk_src",
1478 .flags
= CLK_SET_RATE_PARENT
,
1479 .ops
= &clk_branch2_ops
,
1484 static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk
= {
1487 .enable_reg
= 0x0a88,
1488 .enable_mask
= BIT(0),
1489 .hw
.init
= &(struct clk_init_data
){
1490 .name
= "gcc_blsp2_qup3_i2c_apps_clk",
1491 .parent_names
= (const char *[]){
1492 "blsp2_qup3_i2c_apps_clk_src",
1495 .flags
= CLK_SET_RATE_PARENT
,
1496 .ops
= &clk_branch2_ops
,
1501 static struct clk_branch gcc_blsp2_qup3_spi_apps_clk
= {
1504 .enable_reg
= 0x0a84,
1505 .enable_mask
= BIT(0),
1506 .hw
.init
= &(struct clk_init_data
){
1507 .name
= "gcc_blsp2_qup3_spi_apps_clk",
1508 .parent_names
= (const char *[]){
1509 "blsp2_qup3_spi_apps_clk_src",
1512 .flags
= CLK_SET_RATE_PARENT
,
1513 .ops
= &clk_branch2_ops
,
1518 static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk
= {
1521 .enable_reg
= 0x0b08,
1522 .enable_mask
= BIT(0),
1523 .hw
.init
= &(struct clk_init_data
){
1524 .name
= "gcc_blsp2_qup4_i2c_apps_clk",
1525 .parent_names
= (const char *[]){
1526 "blsp2_qup4_i2c_apps_clk_src",
1529 .flags
= CLK_SET_RATE_PARENT
,
1530 .ops
= &clk_branch2_ops
,
1535 static struct clk_branch gcc_blsp2_qup4_spi_apps_clk
= {
1538 .enable_reg
= 0x0b04,
1539 .enable_mask
= BIT(0),
1540 .hw
.init
= &(struct clk_init_data
){
1541 .name
= "gcc_blsp2_qup4_spi_apps_clk",
1542 .parent_names
= (const char *[]){
1543 "blsp2_qup4_spi_apps_clk_src",
1546 .flags
= CLK_SET_RATE_PARENT
,
1547 .ops
= &clk_branch2_ops
,
1552 static struct clk_branch gcc_blsp2_qup5_i2c_apps_clk
= {
1555 .enable_reg
= 0x0b88,
1556 .enable_mask
= BIT(0),
1557 .hw
.init
= &(struct clk_init_data
){
1558 .name
= "gcc_blsp2_qup5_i2c_apps_clk",
1559 .parent_names
= (const char *[]){
1560 "blsp2_qup5_i2c_apps_clk_src",
1563 .flags
= CLK_SET_RATE_PARENT
,
1564 .ops
= &clk_branch2_ops
,
1569 static struct clk_branch gcc_blsp2_qup5_spi_apps_clk
= {
1572 .enable_reg
= 0x0b84,
1573 .enable_mask
= BIT(0),
1574 .hw
.init
= &(struct clk_init_data
){
1575 .name
= "gcc_blsp2_qup5_spi_apps_clk",
1576 .parent_names
= (const char *[]){
1577 "blsp2_qup5_spi_apps_clk_src",
1580 .flags
= CLK_SET_RATE_PARENT
,
1581 .ops
= &clk_branch2_ops
,
1586 static struct clk_branch gcc_blsp2_qup6_i2c_apps_clk
= {
1589 .enable_reg
= 0x0c08,
1590 .enable_mask
= BIT(0),
1591 .hw
.init
= &(struct clk_init_data
){
1592 .name
= "gcc_blsp2_qup6_i2c_apps_clk",
1593 .parent_names
= (const char *[]){
1594 "blsp2_qup6_i2c_apps_clk_src",
1597 .flags
= CLK_SET_RATE_PARENT
,
1598 .ops
= &clk_branch2_ops
,
1603 static struct clk_branch gcc_blsp2_qup6_spi_apps_clk
= {
1606 .enable_reg
= 0x0c04,
1607 .enable_mask
= BIT(0),
1608 .hw
.init
= &(struct clk_init_data
){
1609 .name
= "gcc_blsp2_qup6_spi_apps_clk",
1610 .parent_names
= (const char *[]){
1611 "blsp2_qup6_spi_apps_clk_src",
1614 .flags
= CLK_SET_RATE_PARENT
,
1615 .ops
= &clk_branch2_ops
,
1620 static struct clk_branch gcc_blsp2_uart1_apps_clk
= {
1623 .enable_reg
= 0x09c4,
1624 .enable_mask
= BIT(0),
1625 .hw
.init
= &(struct clk_init_data
){
1626 .name
= "gcc_blsp2_uart1_apps_clk",
1627 .parent_names
= (const char *[]){
1628 "blsp2_uart1_apps_clk_src",
1631 .flags
= CLK_SET_RATE_PARENT
,
1632 .ops
= &clk_branch2_ops
,
1637 static struct clk_branch gcc_blsp2_uart2_apps_clk
= {
1640 .enable_reg
= 0x0a44,
1641 .enable_mask
= BIT(0),
1642 .hw
.init
= &(struct clk_init_data
){
1643 .name
= "gcc_blsp2_uart2_apps_clk",
1644 .parent_names
= (const char *[]){
1645 "blsp2_uart2_apps_clk_src",
1648 .flags
= CLK_SET_RATE_PARENT
,
1649 .ops
= &clk_branch2_ops
,
1654 static struct clk_branch gcc_blsp2_uart3_apps_clk
= {
1657 .enable_reg
= 0x0ac4,
1658 .enable_mask
= BIT(0),
1659 .hw
.init
= &(struct clk_init_data
){
1660 .name
= "gcc_blsp2_uart3_apps_clk",
1661 .parent_names
= (const char *[]){
1662 "blsp2_uart3_apps_clk_src",
1665 .flags
= CLK_SET_RATE_PARENT
,
1666 .ops
= &clk_branch2_ops
,
1671 static struct clk_branch gcc_blsp2_uart4_apps_clk
= {
1674 .enable_reg
= 0x0b44,
1675 .enable_mask
= BIT(0),
1676 .hw
.init
= &(struct clk_init_data
){
1677 .name
= "gcc_blsp2_uart4_apps_clk",
1678 .parent_names
= (const char *[]){
1679 "blsp2_uart4_apps_clk_src",
1682 .flags
= CLK_SET_RATE_PARENT
,
1683 .ops
= &clk_branch2_ops
,
1688 static struct clk_branch gcc_blsp2_uart5_apps_clk
= {
1691 .enable_reg
= 0x0bc4,
1692 .enable_mask
= BIT(0),
1693 .hw
.init
= &(struct clk_init_data
){
1694 .name
= "gcc_blsp2_uart5_apps_clk",
1695 .parent_names
= (const char *[]){
1696 "blsp2_uart5_apps_clk_src",
1699 .flags
= CLK_SET_RATE_PARENT
,
1700 .ops
= &clk_branch2_ops
,
1705 static struct clk_branch gcc_blsp2_uart6_apps_clk
= {
1708 .enable_reg
= 0x0c44,
1709 .enable_mask
= BIT(0),
1710 .hw
.init
= &(struct clk_init_data
){
1711 .name
= "gcc_blsp2_uart6_apps_clk",
1712 .parent_names
= (const char *[]){
1713 "blsp2_uart6_apps_clk_src",
1716 .flags
= CLK_SET_RATE_PARENT
,
1717 .ops
= &clk_branch2_ops
,
1722 static struct clk_branch gcc_boot_rom_ahb_clk
= {
1724 .halt_check
= BRANCH_HALT_VOTED
,
1726 .enable_reg
= 0x1484,
1727 .enable_mask
= BIT(10),
1728 .hw
.init
= &(struct clk_init_data
){
1729 .name
= "gcc_boot_rom_ahb_clk",
1730 .parent_names
= (const char *[]){
1731 "config_noc_clk_src",
1734 .ops
= &clk_branch2_ops
,
1739 static struct clk_branch gcc_ce1_ahb_clk
= {
1741 .halt_check
= BRANCH_HALT_VOTED
,
1743 .enable_reg
= 0x1484,
1744 .enable_mask
= BIT(3),
1745 .hw
.init
= &(struct clk_init_data
){
1746 .name
= "gcc_ce1_ahb_clk",
1747 .parent_names
= (const char *[]){
1748 "config_noc_clk_src",
1751 .ops
= &clk_branch2_ops
,
1756 static struct clk_branch gcc_ce1_axi_clk
= {
1758 .halt_check
= BRANCH_HALT_VOTED
,
1760 .enable_reg
= 0x1484,
1761 .enable_mask
= BIT(4),
1762 .hw
.init
= &(struct clk_init_data
){
1763 .name
= "gcc_ce1_axi_clk",
1764 .parent_names
= (const char *[]){
1765 "system_noc_clk_src",
1768 .ops
= &clk_branch2_ops
,
1773 static struct clk_branch gcc_ce1_clk
= {
1775 .halt_check
= BRANCH_HALT_VOTED
,
1777 .enable_reg
= 0x1484,
1778 .enable_mask
= BIT(5),
1779 .hw
.init
= &(struct clk_init_data
){
1780 .name
= "gcc_ce1_clk",
1781 .parent_names
= (const char *[]){
1785 .flags
= CLK_SET_RATE_PARENT
,
1786 .ops
= &clk_branch2_ops
,
1791 static struct clk_branch gcc_ce2_ahb_clk
= {
1793 .halt_check
= BRANCH_HALT_VOTED
,
1795 .enable_reg
= 0x1484,
1796 .enable_mask
= BIT(0),
1797 .hw
.init
= &(struct clk_init_data
){
1798 .name
= "gcc_ce2_ahb_clk",
1799 .parent_names
= (const char *[]){
1800 "config_noc_clk_src",
1803 .ops
= &clk_branch2_ops
,
1808 static struct clk_branch gcc_ce2_axi_clk
= {
1810 .halt_check
= BRANCH_HALT_VOTED
,
1812 .enable_reg
= 0x1484,
1813 .enable_mask
= BIT(1),
1814 .hw
.init
= &(struct clk_init_data
){
1815 .name
= "gcc_ce2_axi_clk",
1816 .parent_names
= (const char *[]){
1817 "system_noc_clk_src",
1820 .ops
= &clk_branch2_ops
,
1825 static struct clk_branch gcc_ce2_clk
= {
1827 .halt_check
= BRANCH_HALT_VOTED
,
1829 .enable_reg
= 0x1484,
1830 .enable_mask
= BIT(2),
1831 .hw
.init
= &(struct clk_init_data
){
1832 .name
= "gcc_ce2_clk",
1833 .parent_names
= (const char *[]){
1837 .flags
= CLK_SET_RATE_PARENT
,
1838 .ops
= &clk_branch2_ops
,
1843 static struct clk_branch gcc_gp1_clk
= {
1846 .enable_reg
= 0x1900,
1847 .enable_mask
= BIT(0),
1848 .hw
.init
= &(struct clk_init_data
){
1849 .name
= "gcc_gp1_clk",
1850 .parent_names
= (const char *[]){
1854 .flags
= CLK_SET_RATE_PARENT
,
1855 .ops
= &clk_branch2_ops
,
1860 static struct clk_branch gcc_gp2_clk
= {
1863 .enable_reg
= 0x1940,
1864 .enable_mask
= BIT(0),
1865 .hw
.init
= &(struct clk_init_data
){
1866 .name
= "gcc_gp2_clk",
1867 .parent_names
= (const char *[]){
1871 .flags
= CLK_SET_RATE_PARENT
,
1872 .ops
= &clk_branch2_ops
,
1877 static struct clk_branch gcc_gp3_clk
= {
1880 .enable_reg
= 0x1980,
1881 .enable_mask
= BIT(0),
1882 .hw
.init
= &(struct clk_init_data
){
1883 .name
= "gcc_gp3_clk",
1884 .parent_names
= (const char *[]){
1888 .flags
= CLK_SET_RATE_PARENT
,
1889 .ops
= &clk_branch2_ops
,
1894 static struct clk_branch gcc_lpass_q6_axi_clk
= {
1897 .enable_reg
= 0x11c0,
1898 .enable_mask
= BIT(0),
1899 .hw
.init
= &(struct clk_init_data
){
1900 .name
= "gcc_lpass_q6_axi_clk",
1901 .parent_names
= (const char *[]){
1902 "system_noc_clk_src",
1905 .ops
= &clk_branch2_ops
,
1910 static struct clk_branch gcc_mmss_noc_cfg_ahb_clk
= {
1913 .enable_reg
= 0x024c,
1914 .enable_mask
= BIT(0),
1915 .hw
.init
= &(struct clk_init_data
){
1916 .name
= "gcc_mmss_noc_cfg_ahb_clk",
1917 .parent_names
= (const char *[]){
1918 "config_noc_clk_src",
1921 .ops
= &clk_branch2_ops
,
1922 .flags
= CLK_IGNORE_UNUSED
,
1927 static struct clk_branch gcc_ocmem_noc_cfg_ahb_clk
= {
1930 .enable_reg
= 0x0248,
1931 .enable_mask
= BIT(0),
1932 .hw
.init
= &(struct clk_init_data
){
1933 .name
= "gcc_ocmem_noc_cfg_ahb_clk",
1934 .parent_names
= (const char *[]){
1935 "config_noc_clk_src",
1938 .ops
= &clk_branch2_ops
,
1943 static struct clk_branch gcc_mss_cfg_ahb_clk
= {
1946 .enable_reg
= 0x0280,
1947 .enable_mask
= BIT(0),
1948 .hw
.init
= &(struct clk_init_data
){
1949 .name
= "gcc_mss_cfg_ahb_clk",
1950 .parent_names
= (const char *[]){
1951 "config_noc_clk_src",
1954 .ops
= &clk_branch2_ops
,
1959 static struct clk_branch gcc_mss_q6_bimc_axi_clk
= {
1962 .enable_reg
= 0x0284,
1963 .enable_mask
= BIT(0),
1964 .hw
.init
= &(struct clk_init_data
){
1965 .name
= "gcc_mss_q6_bimc_axi_clk",
1966 .ops
= &clk_branch2_ops
,
1971 static struct clk_branch gcc_pdm2_clk
= {
1974 .enable_reg
= 0x0ccc,
1975 .enable_mask
= BIT(0),
1976 .hw
.init
= &(struct clk_init_data
){
1977 .name
= "gcc_pdm2_clk",
1978 .parent_names
= (const char *[]){
1982 .flags
= CLK_SET_RATE_PARENT
,
1983 .ops
= &clk_branch2_ops
,
1988 static struct clk_branch gcc_pdm_ahb_clk
= {
1991 .enable_reg
= 0x0cc4,
1992 .enable_mask
= BIT(0),
1993 .hw
.init
= &(struct clk_init_data
){
1994 .name
= "gcc_pdm_ahb_clk",
1995 .parent_names
= (const char *[]){
1996 "periph_noc_clk_src",
1999 .ops
= &clk_branch2_ops
,
2004 static struct clk_branch gcc_prng_ahb_clk
= {
2006 .halt_check
= BRANCH_HALT_VOTED
,
2008 .enable_reg
= 0x1484,
2009 .enable_mask
= BIT(13),
2010 .hw
.init
= &(struct clk_init_data
){
2011 .name
= "gcc_prng_ahb_clk",
2012 .parent_names
= (const char *[]){
2013 "periph_noc_clk_src",
2016 .ops
= &clk_branch2_ops
,
2021 static struct clk_branch gcc_sdcc1_ahb_clk
= {
2024 .enable_reg
= 0x04c8,
2025 .enable_mask
= BIT(0),
2026 .hw
.init
= &(struct clk_init_data
){
2027 .name
= "gcc_sdcc1_ahb_clk",
2028 .parent_names
= (const char *[]){
2029 "periph_noc_clk_src",
2032 .ops
= &clk_branch2_ops
,
2037 static struct clk_branch gcc_sdcc1_apps_clk
= {
2040 .enable_reg
= 0x04c4,
2041 .enable_mask
= BIT(0),
2042 .hw
.init
= &(struct clk_init_data
){
2043 .name
= "gcc_sdcc1_apps_clk",
2044 .parent_names
= (const char *[]){
2045 "sdcc1_apps_clk_src",
2048 .flags
= CLK_SET_RATE_PARENT
,
2049 .ops
= &clk_branch2_ops
,
2054 static struct clk_branch gcc_sdcc1_cdccal_ff_clk
= {
2057 .enable_reg
= 0x04e8,
2058 .enable_mask
= BIT(0),
2059 .hw
.init
= &(struct clk_init_data
){
2060 .name
= "gcc_sdcc1_cdccal_ff_clk",
2061 .parent_names
= (const char *[]){
2065 .ops
= &clk_branch2_ops
,
2070 static struct clk_branch gcc_sdcc1_cdccal_sleep_clk
= {
2073 .enable_reg
= 0x04e4,
2074 .enable_mask
= BIT(0),
2075 .hw
.init
= &(struct clk_init_data
){
2076 .name
= "gcc_sdcc1_cdccal_sleep_clk",
2077 .parent_names
= (const char *[]){
2081 .ops
= &clk_branch2_ops
,
2086 static struct clk_branch gcc_sdcc2_ahb_clk
= {
2089 .enable_reg
= 0x0508,
2090 .enable_mask
= BIT(0),
2091 .hw
.init
= &(struct clk_init_data
){
2092 .name
= "gcc_sdcc2_ahb_clk",
2093 .parent_names
= (const char *[]){
2094 "periph_noc_clk_src",
2097 .ops
= &clk_branch2_ops
,
2102 static struct clk_branch gcc_sdcc2_apps_clk
= {
2105 .enable_reg
= 0x0504,
2106 .enable_mask
= BIT(0),
2107 .hw
.init
= &(struct clk_init_data
){
2108 .name
= "gcc_sdcc2_apps_clk",
2109 .parent_names
= (const char *[]){
2110 "sdcc2_apps_clk_src",
2113 .flags
= CLK_SET_RATE_PARENT
,
2114 .ops
= &clk_branch2_ops
,
2119 static struct clk_branch gcc_sdcc3_ahb_clk
= {
2122 .enable_reg
= 0x0548,
2123 .enable_mask
= BIT(0),
2124 .hw
.init
= &(struct clk_init_data
){
2125 .name
= "gcc_sdcc3_ahb_clk",
2126 .parent_names
= (const char *[]){
2127 "periph_noc_clk_src",
2130 .ops
= &clk_branch2_ops
,
2135 static struct clk_branch gcc_sdcc3_apps_clk
= {
2138 .enable_reg
= 0x0544,
2139 .enable_mask
= BIT(0),
2140 .hw
.init
= &(struct clk_init_data
){
2141 .name
= "gcc_sdcc3_apps_clk",
2142 .parent_names
= (const char *[]){
2143 "sdcc3_apps_clk_src",
2146 .flags
= CLK_SET_RATE_PARENT
,
2147 .ops
= &clk_branch2_ops
,
2152 static struct clk_branch gcc_sdcc4_ahb_clk
= {
2155 .enable_reg
= 0x0588,
2156 .enable_mask
= BIT(0),
2157 .hw
.init
= &(struct clk_init_data
){
2158 .name
= "gcc_sdcc4_ahb_clk",
2159 .parent_names
= (const char *[]){
2160 "periph_noc_clk_src",
2163 .ops
= &clk_branch2_ops
,
2168 static struct clk_branch gcc_sdcc4_apps_clk
= {
2171 .enable_reg
= 0x0584,
2172 .enable_mask
= BIT(0),
2173 .hw
.init
= &(struct clk_init_data
){
2174 .name
= "gcc_sdcc4_apps_clk",
2175 .parent_names
= (const char *[]){
2176 "sdcc4_apps_clk_src",
2179 .flags
= CLK_SET_RATE_PARENT
,
2180 .ops
= &clk_branch2_ops
,
2185 static struct clk_branch gcc_sys_noc_usb3_axi_clk
= {
2188 .enable_reg
= 0x0108,
2189 .enable_mask
= BIT(0),
2190 .hw
.init
= &(struct clk_init_data
){
2191 .name
= "gcc_sys_noc_usb3_axi_clk",
2192 .parent_names
= (const char *[]){
2193 "usb30_master_clk_src",
2196 .flags
= CLK_SET_RATE_PARENT
,
2197 .ops
= &clk_branch2_ops
,
2202 static struct clk_branch gcc_tsif_ahb_clk
= {
2205 .enable_reg
= 0x0d84,
2206 .enable_mask
= BIT(0),
2207 .hw
.init
= &(struct clk_init_data
){
2208 .name
= "gcc_tsif_ahb_clk",
2209 .parent_names
= (const char *[]){
2210 "periph_noc_clk_src",
2213 .ops
= &clk_branch2_ops
,
2218 static struct clk_branch gcc_tsif_ref_clk
= {
2221 .enable_reg
= 0x0d88,
2222 .enable_mask
= BIT(0),
2223 .hw
.init
= &(struct clk_init_data
){
2224 .name
= "gcc_tsif_ref_clk",
2225 .parent_names
= (const char *[]){
2229 .flags
= CLK_SET_RATE_PARENT
,
2230 .ops
= &clk_branch2_ops
,
2235 static struct clk_branch gcc_usb2a_phy_sleep_clk
= {
2238 .enable_reg
= 0x04ac,
2239 .enable_mask
= BIT(0),
2240 .hw
.init
= &(struct clk_init_data
){
2241 .name
= "gcc_usb2a_phy_sleep_clk",
2242 .parent_names
= (const char *[]){
2246 .ops
= &clk_branch2_ops
,
2251 static struct clk_branch gcc_usb2b_phy_sleep_clk
= {
2254 .enable_reg
= 0x04b4,
2255 .enable_mask
= BIT(0),
2256 .hw
.init
= &(struct clk_init_data
){
2257 .name
= "gcc_usb2b_phy_sleep_clk",
2258 .parent_names
= (const char *[]){
2262 .ops
= &clk_branch2_ops
,
2267 static struct clk_branch gcc_usb30_master_clk
= {
2270 .enable_reg
= 0x03c8,
2271 .enable_mask
= BIT(0),
2272 .hw
.init
= &(struct clk_init_data
){
2273 .name
= "gcc_usb30_master_clk",
2274 .parent_names
= (const char *[]){
2275 "usb30_master_clk_src",
2278 .flags
= CLK_SET_RATE_PARENT
,
2279 .ops
= &clk_branch2_ops
,
2284 static struct clk_branch gcc_usb30_mock_utmi_clk
= {
2287 .enable_reg
= 0x03d0,
2288 .enable_mask
= BIT(0),
2289 .hw
.init
= &(struct clk_init_data
){
2290 .name
= "gcc_usb30_mock_utmi_clk",
2291 .parent_names
= (const char *[]){
2292 "usb30_mock_utmi_clk_src",
2295 .flags
= CLK_SET_RATE_PARENT
,
2296 .ops
= &clk_branch2_ops
,
2301 static struct clk_branch gcc_usb30_sleep_clk
= {
2304 .enable_reg
= 0x03cc,
2305 .enable_mask
= BIT(0),
2306 .hw
.init
= &(struct clk_init_data
){
2307 .name
= "gcc_usb30_sleep_clk",
2308 .parent_names
= (const char *[]){
2312 .ops
= &clk_branch2_ops
,
2317 static struct clk_branch gcc_usb_hs_ahb_clk
= {
2320 .enable_reg
= 0x0488,
2321 .enable_mask
= BIT(0),
2322 .hw
.init
= &(struct clk_init_data
){
2323 .name
= "gcc_usb_hs_ahb_clk",
2324 .parent_names
= (const char *[]){
2325 "periph_noc_clk_src",
2328 .ops
= &clk_branch2_ops
,
2333 static struct clk_branch gcc_usb_hs_system_clk
= {
2336 .enable_reg
= 0x0484,
2337 .enable_mask
= BIT(0),
2338 .hw
.init
= &(struct clk_init_data
){
2339 .name
= "gcc_usb_hs_system_clk",
2340 .parent_names
= (const char *[]){
2341 "usb_hs_system_clk_src",
2344 .flags
= CLK_SET_RATE_PARENT
,
2345 .ops
= &clk_branch2_ops
,
2350 static struct clk_branch gcc_usb_hsic_ahb_clk
= {
2353 .enable_reg
= 0x0408,
2354 .enable_mask
= BIT(0),
2355 .hw
.init
= &(struct clk_init_data
){
2356 .name
= "gcc_usb_hsic_ahb_clk",
2357 .parent_names
= (const char *[]){
2358 "periph_noc_clk_src",
2361 .ops
= &clk_branch2_ops
,
2366 static struct clk_branch gcc_usb_hsic_clk
= {
2369 .enable_reg
= 0x0410,
2370 .enable_mask
= BIT(0),
2371 .hw
.init
= &(struct clk_init_data
){
2372 .name
= "gcc_usb_hsic_clk",
2373 .parent_names
= (const char *[]){
2377 .flags
= CLK_SET_RATE_PARENT
,
2378 .ops
= &clk_branch2_ops
,
2383 static struct clk_branch gcc_usb_hsic_io_cal_clk
= {
2386 .enable_reg
= 0x0414,
2387 .enable_mask
= BIT(0),
2388 .hw
.init
= &(struct clk_init_data
){
2389 .name
= "gcc_usb_hsic_io_cal_clk",
2390 .parent_names
= (const char *[]){
2391 "usb_hsic_io_cal_clk_src",
2394 .flags
= CLK_SET_RATE_PARENT
,
2395 .ops
= &clk_branch2_ops
,
2400 static struct clk_branch gcc_usb_hsic_io_cal_sleep_clk
= {
2403 .enable_reg
= 0x0418,
2404 .enable_mask
= BIT(0),
2405 .hw
.init
= &(struct clk_init_data
){
2406 .name
= "gcc_usb_hsic_io_cal_sleep_clk",
2407 .parent_names
= (const char *[]){
2411 .ops
= &clk_branch2_ops
,
2416 static struct clk_branch gcc_usb_hsic_system_clk
= {
2419 .enable_reg
= 0x040c,
2420 .enable_mask
= BIT(0),
2421 .hw
.init
= &(struct clk_init_data
){
2422 .name
= "gcc_usb_hsic_system_clk",
2423 .parent_names
= (const char *[]){
2424 "usb_hsic_system_clk_src",
2427 .flags
= CLK_SET_RATE_PARENT
,
2428 .ops
= &clk_branch2_ops
,
2433 static struct gdsc usb_hs_hsic_gdsc
= {
2436 .name
= "usb_hs_hsic",
2438 .pwrsts
= PWRSTS_OFF_ON
,
2441 static struct clk_regmap
*gcc_msm8974_clocks
[] = {
2442 [GPLL0
] = &gpll0
.clkr
,
2443 [GPLL0_VOTE
] = &gpll0_vote
,
2444 [CONFIG_NOC_CLK_SRC
] = &config_noc_clk_src
.clkr
,
2445 [PERIPH_NOC_CLK_SRC
] = &periph_noc_clk_src
.clkr
,
2446 [SYSTEM_NOC_CLK_SRC
] = &system_noc_clk_src
.clkr
,
2447 [GPLL1
] = &gpll1
.clkr
,
2448 [GPLL1_VOTE
] = &gpll1_vote
,
2449 [USB30_MASTER_CLK_SRC
] = &usb30_master_clk_src
.clkr
,
2450 [BLSP1_QUP1_I2C_APPS_CLK_SRC
] = &blsp1_qup1_i2c_apps_clk_src
.clkr
,
2451 [BLSP1_QUP1_SPI_APPS_CLK_SRC
] = &blsp1_qup1_spi_apps_clk_src
.clkr
,
2452 [BLSP1_QUP2_I2C_APPS_CLK_SRC
] = &blsp1_qup2_i2c_apps_clk_src
.clkr
,
2453 [BLSP1_QUP2_SPI_APPS_CLK_SRC
] = &blsp1_qup2_spi_apps_clk_src
.clkr
,
2454 [BLSP1_QUP3_I2C_APPS_CLK_SRC
] = &blsp1_qup3_i2c_apps_clk_src
.clkr
,
2455 [BLSP1_QUP3_SPI_APPS_CLK_SRC
] = &blsp1_qup3_spi_apps_clk_src
.clkr
,
2456 [BLSP1_QUP4_I2C_APPS_CLK_SRC
] = &blsp1_qup4_i2c_apps_clk_src
.clkr
,
2457 [BLSP1_QUP4_SPI_APPS_CLK_SRC
] = &blsp1_qup4_spi_apps_clk_src
.clkr
,
2458 [BLSP1_QUP5_I2C_APPS_CLK_SRC
] = &blsp1_qup5_i2c_apps_clk_src
.clkr
,
2459 [BLSP1_QUP5_SPI_APPS_CLK_SRC
] = &blsp1_qup5_spi_apps_clk_src
.clkr
,
2460 [BLSP1_QUP6_I2C_APPS_CLK_SRC
] = &blsp1_qup6_i2c_apps_clk_src
.clkr
,
2461 [BLSP1_QUP6_SPI_APPS_CLK_SRC
] = &blsp1_qup6_spi_apps_clk_src
.clkr
,
2462 [BLSP1_UART1_APPS_CLK_SRC
] = &blsp1_uart1_apps_clk_src
.clkr
,
2463 [BLSP1_UART2_APPS_CLK_SRC
] = &blsp1_uart2_apps_clk_src
.clkr
,
2464 [BLSP1_UART3_APPS_CLK_SRC
] = &blsp1_uart3_apps_clk_src
.clkr
,
2465 [BLSP1_UART4_APPS_CLK_SRC
] = &blsp1_uart4_apps_clk_src
.clkr
,
2466 [BLSP1_UART5_APPS_CLK_SRC
] = &blsp1_uart5_apps_clk_src
.clkr
,
2467 [BLSP1_UART6_APPS_CLK_SRC
] = &blsp1_uart6_apps_clk_src
.clkr
,
2468 [BLSP2_QUP1_I2C_APPS_CLK_SRC
] = &blsp2_qup1_i2c_apps_clk_src
.clkr
,
2469 [BLSP2_QUP1_SPI_APPS_CLK_SRC
] = &blsp2_qup1_spi_apps_clk_src
.clkr
,
2470 [BLSP2_QUP2_I2C_APPS_CLK_SRC
] = &blsp2_qup2_i2c_apps_clk_src
.clkr
,
2471 [BLSP2_QUP2_SPI_APPS_CLK_SRC
] = &blsp2_qup2_spi_apps_clk_src
.clkr
,
2472 [BLSP2_QUP3_I2C_APPS_CLK_SRC
] = &blsp2_qup3_i2c_apps_clk_src
.clkr
,
2473 [BLSP2_QUP3_SPI_APPS_CLK_SRC
] = &blsp2_qup3_spi_apps_clk_src
.clkr
,
2474 [BLSP2_QUP4_I2C_APPS_CLK_SRC
] = &blsp2_qup4_i2c_apps_clk_src
.clkr
,
2475 [BLSP2_QUP4_SPI_APPS_CLK_SRC
] = &blsp2_qup4_spi_apps_clk_src
.clkr
,
2476 [BLSP2_QUP5_I2C_APPS_CLK_SRC
] = &blsp2_qup5_i2c_apps_clk_src
.clkr
,
2477 [BLSP2_QUP5_SPI_APPS_CLK_SRC
] = &blsp2_qup5_spi_apps_clk_src
.clkr
,
2478 [BLSP2_QUP6_I2C_APPS_CLK_SRC
] = &blsp2_qup6_i2c_apps_clk_src
.clkr
,
2479 [BLSP2_QUP6_SPI_APPS_CLK_SRC
] = &blsp2_qup6_spi_apps_clk_src
.clkr
,
2480 [BLSP2_UART1_APPS_CLK_SRC
] = &blsp2_uart1_apps_clk_src
.clkr
,
2481 [BLSP2_UART2_APPS_CLK_SRC
] = &blsp2_uart2_apps_clk_src
.clkr
,
2482 [BLSP2_UART3_APPS_CLK_SRC
] = &blsp2_uart3_apps_clk_src
.clkr
,
2483 [BLSP2_UART4_APPS_CLK_SRC
] = &blsp2_uart4_apps_clk_src
.clkr
,
2484 [BLSP2_UART5_APPS_CLK_SRC
] = &blsp2_uart5_apps_clk_src
.clkr
,
2485 [BLSP2_UART6_APPS_CLK_SRC
] = &blsp2_uart6_apps_clk_src
.clkr
,
2486 [CE1_CLK_SRC
] = &ce1_clk_src
.clkr
,
2487 [CE2_CLK_SRC
] = &ce2_clk_src
.clkr
,
2488 [GP1_CLK_SRC
] = &gp1_clk_src
.clkr
,
2489 [GP2_CLK_SRC
] = &gp2_clk_src
.clkr
,
2490 [GP3_CLK_SRC
] = &gp3_clk_src
.clkr
,
2491 [PDM2_CLK_SRC
] = &pdm2_clk_src
.clkr
,
2492 [SDCC1_APPS_CLK_SRC
] = &sdcc1_apps_clk_src
.clkr
,
2493 [SDCC2_APPS_CLK_SRC
] = &sdcc2_apps_clk_src
.clkr
,
2494 [SDCC3_APPS_CLK_SRC
] = &sdcc3_apps_clk_src
.clkr
,
2495 [SDCC4_APPS_CLK_SRC
] = &sdcc4_apps_clk_src
.clkr
,
2496 [TSIF_REF_CLK_SRC
] = &tsif_ref_clk_src
.clkr
,
2497 [USB30_MOCK_UTMI_CLK_SRC
] = &usb30_mock_utmi_clk_src
.clkr
,
2498 [USB_HS_SYSTEM_CLK_SRC
] = &usb_hs_system_clk_src
.clkr
,
2499 [USB_HSIC_CLK_SRC
] = &usb_hsic_clk_src
.clkr
,
2500 [USB_HSIC_IO_CAL_CLK_SRC
] = &usb_hsic_io_cal_clk_src
.clkr
,
2501 [USB_HSIC_SYSTEM_CLK_SRC
] = &usb_hsic_system_clk_src
.clkr
,
2502 [GCC_BAM_DMA_AHB_CLK
] = &gcc_bam_dma_ahb_clk
.clkr
,
2503 [GCC_BLSP1_AHB_CLK
] = &gcc_blsp1_ahb_clk
.clkr
,
2504 [GCC_BLSP1_QUP1_I2C_APPS_CLK
] = &gcc_blsp1_qup1_i2c_apps_clk
.clkr
,
2505 [GCC_BLSP1_QUP1_SPI_APPS_CLK
] = &gcc_blsp1_qup1_spi_apps_clk
.clkr
,
2506 [GCC_BLSP1_QUP2_I2C_APPS_CLK
] = &gcc_blsp1_qup2_i2c_apps_clk
.clkr
,
2507 [GCC_BLSP1_QUP2_SPI_APPS_CLK
] = &gcc_blsp1_qup2_spi_apps_clk
.clkr
,
2508 [GCC_BLSP1_QUP3_I2C_APPS_CLK
] = &gcc_blsp1_qup3_i2c_apps_clk
.clkr
,
2509 [GCC_BLSP1_QUP3_SPI_APPS_CLK
] = &gcc_blsp1_qup3_spi_apps_clk
.clkr
,
2510 [GCC_BLSP1_QUP4_I2C_APPS_CLK
] = &gcc_blsp1_qup4_i2c_apps_clk
.clkr
,
2511 [GCC_BLSP1_QUP4_SPI_APPS_CLK
] = &gcc_blsp1_qup4_spi_apps_clk
.clkr
,
2512 [GCC_BLSP1_QUP5_I2C_APPS_CLK
] = &gcc_blsp1_qup5_i2c_apps_clk
.clkr
,
2513 [GCC_BLSP1_QUP5_SPI_APPS_CLK
] = &gcc_blsp1_qup5_spi_apps_clk
.clkr
,
2514 [GCC_BLSP1_QUP6_I2C_APPS_CLK
] = &gcc_blsp1_qup6_i2c_apps_clk
.clkr
,
2515 [GCC_BLSP1_QUP6_SPI_APPS_CLK
] = &gcc_blsp1_qup6_spi_apps_clk
.clkr
,
2516 [GCC_BLSP1_UART1_APPS_CLK
] = &gcc_blsp1_uart1_apps_clk
.clkr
,
2517 [GCC_BLSP1_UART2_APPS_CLK
] = &gcc_blsp1_uart2_apps_clk
.clkr
,
2518 [GCC_BLSP1_UART3_APPS_CLK
] = &gcc_blsp1_uart3_apps_clk
.clkr
,
2519 [GCC_BLSP1_UART4_APPS_CLK
] = &gcc_blsp1_uart4_apps_clk
.clkr
,
2520 [GCC_BLSP1_UART5_APPS_CLK
] = &gcc_blsp1_uart5_apps_clk
.clkr
,
2521 [GCC_BLSP1_UART6_APPS_CLK
] = &gcc_blsp1_uart6_apps_clk
.clkr
,
2522 [GCC_BLSP2_AHB_CLK
] = &gcc_blsp2_ahb_clk
.clkr
,
2523 [GCC_BLSP2_QUP1_I2C_APPS_CLK
] = &gcc_blsp2_qup1_i2c_apps_clk
.clkr
,
2524 [GCC_BLSP2_QUP1_SPI_APPS_CLK
] = &gcc_blsp2_qup1_spi_apps_clk
.clkr
,
2525 [GCC_BLSP2_QUP2_I2C_APPS_CLK
] = &gcc_blsp2_qup2_i2c_apps_clk
.clkr
,
2526 [GCC_BLSP2_QUP2_SPI_APPS_CLK
] = &gcc_blsp2_qup2_spi_apps_clk
.clkr
,
2527 [GCC_BLSP2_QUP3_I2C_APPS_CLK
] = &gcc_blsp2_qup3_i2c_apps_clk
.clkr
,
2528 [GCC_BLSP2_QUP3_SPI_APPS_CLK
] = &gcc_blsp2_qup3_spi_apps_clk
.clkr
,
2529 [GCC_BLSP2_QUP4_I2C_APPS_CLK
] = &gcc_blsp2_qup4_i2c_apps_clk
.clkr
,
2530 [GCC_BLSP2_QUP4_SPI_APPS_CLK
] = &gcc_blsp2_qup4_spi_apps_clk
.clkr
,
2531 [GCC_BLSP2_QUP5_I2C_APPS_CLK
] = &gcc_blsp2_qup5_i2c_apps_clk
.clkr
,
2532 [GCC_BLSP2_QUP5_SPI_APPS_CLK
] = &gcc_blsp2_qup5_spi_apps_clk
.clkr
,
2533 [GCC_BLSP2_QUP6_I2C_APPS_CLK
] = &gcc_blsp2_qup6_i2c_apps_clk
.clkr
,
2534 [GCC_BLSP2_QUP6_SPI_APPS_CLK
] = &gcc_blsp2_qup6_spi_apps_clk
.clkr
,
2535 [GCC_BLSP2_UART1_APPS_CLK
] = &gcc_blsp2_uart1_apps_clk
.clkr
,
2536 [GCC_BLSP2_UART2_APPS_CLK
] = &gcc_blsp2_uart2_apps_clk
.clkr
,
2537 [GCC_BLSP2_UART3_APPS_CLK
] = &gcc_blsp2_uart3_apps_clk
.clkr
,
2538 [GCC_BLSP2_UART4_APPS_CLK
] = &gcc_blsp2_uart4_apps_clk
.clkr
,
2539 [GCC_BLSP2_UART5_APPS_CLK
] = &gcc_blsp2_uart5_apps_clk
.clkr
,
2540 [GCC_BLSP2_UART6_APPS_CLK
] = &gcc_blsp2_uart6_apps_clk
.clkr
,
2541 [GCC_BOOT_ROM_AHB_CLK
] = &gcc_boot_rom_ahb_clk
.clkr
,
2542 [GCC_CE1_AHB_CLK
] = &gcc_ce1_ahb_clk
.clkr
,
2543 [GCC_CE1_AXI_CLK
] = &gcc_ce1_axi_clk
.clkr
,
2544 [GCC_CE1_CLK
] = &gcc_ce1_clk
.clkr
,
2545 [GCC_CE2_AHB_CLK
] = &gcc_ce2_ahb_clk
.clkr
,
2546 [GCC_CE2_AXI_CLK
] = &gcc_ce2_axi_clk
.clkr
,
2547 [GCC_CE2_CLK
] = &gcc_ce2_clk
.clkr
,
2548 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
2549 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
2550 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
2551 [GCC_LPASS_Q6_AXI_CLK
] = &gcc_lpass_q6_axi_clk
.clkr
,
2552 [GCC_MMSS_NOC_CFG_AHB_CLK
] = &gcc_mmss_noc_cfg_ahb_clk
.clkr
,
2553 [GCC_OCMEM_NOC_CFG_AHB_CLK
] = &gcc_ocmem_noc_cfg_ahb_clk
.clkr
,
2554 [GCC_MSS_CFG_AHB_CLK
] = &gcc_mss_cfg_ahb_clk
.clkr
,
2555 [GCC_MSS_Q6_BIMC_AXI_CLK
] = &gcc_mss_q6_bimc_axi_clk
.clkr
,
2556 [GCC_PDM2_CLK
] = &gcc_pdm2_clk
.clkr
,
2557 [GCC_PDM_AHB_CLK
] = &gcc_pdm_ahb_clk
.clkr
,
2558 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
2559 [GCC_SDCC1_AHB_CLK
] = &gcc_sdcc1_ahb_clk
.clkr
,
2560 [GCC_SDCC1_APPS_CLK
] = &gcc_sdcc1_apps_clk
.clkr
,
2561 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
2562 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
2563 [GCC_SDCC3_AHB_CLK
] = &gcc_sdcc3_ahb_clk
.clkr
,
2564 [GCC_SDCC3_APPS_CLK
] = &gcc_sdcc3_apps_clk
.clkr
,
2565 [GCC_SDCC4_AHB_CLK
] = &gcc_sdcc4_ahb_clk
.clkr
,
2566 [GCC_SDCC4_APPS_CLK
] = &gcc_sdcc4_apps_clk
.clkr
,
2567 [GCC_SYS_NOC_USB3_AXI_CLK
] = &gcc_sys_noc_usb3_axi_clk
.clkr
,
2568 [GCC_TSIF_AHB_CLK
] = &gcc_tsif_ahb_clk
.clkr
,
2569 [GCC_TSIF_REF_CLK
] = &gcc_tsif_ref_clk
.clkr
,
2570 [GCC_USB2A_PHY_SLEEP_CLK
] = &gcc_usb2a_phy_sleep_clk
.clkr
,
2571 [GCC_USB2B_PHY_SLEEP_CLK
] = &gcc_usb2b_phy_sleep_clk
.clkr
,
2572 [GCC_USB30_MASTER_CLK
] = &gcc_usb30_master_clk
.clkr
,
2573 [GCC_USB30_MOCK_UTMI_CLK
] = &gcc_usb30_mock_utmi_clk
.clkr
,
2574 [GCC_USB30_SLEEP_CLK
] = &gcc_usb30_sleep_clk
.clkr
,
2575 [GCC_USB_HS_AHB_CLK
] = &gcc_usb_hs_ahb_clk
.clkr
,
2576 [GCC_USB_HS_SYSTEM_CLK
] = &gcc_usb_hs_system_clk
.clkr
,
2577 [GCC_USB_HSIC_AHB_CLK
] = &gcc_usb_hsic_ahb_clk
.clkr
,
2578 [GCC_USB_HSIC_CLK
] = &gcc_usb_hsic_clk
.clkr
,
2579 [GCC_USB_HSIC_IO_CAL_CLK
] = &gcc_usb_hsic_io_cal_clk
.clkr
,
2580 [GCC_USB_HSIC_IO_CAL_SLEEP_CLK
] = &gcc_usb_hsic_io_cal_sleep_clk
.clkr
,
2581 [GCC_USB_HSIC_SYSTEM_CLK
] = &gcc_usb_hsic_system_clk
.clkr
,
2582 [GCC_MMSS_GPLL0_CLK_SRC
] = &gcc_mmss_gpll0_clk_src
,
2584 [GPLL4_VOTE
] = NULL
,
2585 [GCC_SDCC1_CDCCAL_SLEEP_CLK
] = NULL
,
2586 [GCC_SDCC1_CDCCAL_FF_CLK
] = NULL
,
2589 static const struct qcom_reset_map gcc_msm8974_resets
[] = {
2590 [GCC_SYSTEM_NOC_BCR
] = { 0x0100 },
2591 [GCC_CONFIG_NOC_BCR
] = { 0x0140 },
2592 [GCC_PERIPH_NOC_BCR
] = { 0x0180 },
2593 [GCC_IMEM_BCR
] = { 0x0200 },
2594 [GCC_MMSS_BCR
] = { 0x0240 },
2595 [GCC_QDSS_BCR
] = { 0x0300 },
2596 [GCC_USB_30_BCR
] = { 0x03c0 },
2597 [GCC_USB3_PHY_BCR
] = { 0x03fc },
2598 [GCC_USB_HS_HSIC_BCR
] = { 0x0400 },
2599 [GCC_USB_HS_BCR
] = { 0x0480 },
2600 [GCC_USB2A_PHY_BCR
] = { 0x04a8 },
2601 [GCC_USB2B_PHY_BCR
] = { 0x04b0 },
2602 [GCC_SDCC1_BCR
] = { 0x04c0 },
2603 [GCC_SDCC2_BCR
] = { 0x0500 },
2604 [GCC_SDCC3_BCR
] = { 0x0540 },
2605 [GCC_SDCC4_BCR
] = { 0x0580 },
2606 [GCC_BLSP1_BCR
] = { 0x05c0 },
2607 [GCC_BLSP1_QUP1_BCR
] = { 0x0640 },
2608 [GCC_BLSP1_UART1_BCR
] = { 0x0680 },
2609 [GCC_BLSP1_QUP2_BCR
] = { 0x06c0 },
2610 [GCC_BLSP1_UART2_BCR
] = { 0x0700 },
2611 [GCC_BLSP1_QUP3_BCR
] = { 0x0740 },
2612 [GCC_BLSP1_UART3_BCR
] = { 0x0780 },
2613 [GCC_BLSP1_QUP4_BCR
] = { 0x07c0 },
2614 [GCC_BLSP1_UART4_BCR
] = { 0x0800 },
2615 [GCC_BLSP1_QUP5_BCR
] = { 0x0840 },
2616 [GCC_BLSP1_UART5_BCR
] = { 0x0880 },
2617 [GCC_BLSP1_QUP6_BCR
] = { 0x08c0 },
2618 [GCC_BLSP1_UART6_BCR
] = { 0x0900 },
2619 [GCC_BLSP2_BCR
] = { 0x0940 },
2620 [GCC_BLSP2_QUP1_BCR
] = { 0x0980 },
2621 [GCC_BLSP2_UART1_BCR
] = { 0x09c0 },
2622 [GCC_BLSP2_QUP2_BCR
] = { 0x0a00 },
2623 [GCC_BLSP2_UART2_BCR
] = { 0x0a40 },
2624 [GCC_BLSP2_QUP3_BCR
] = { 0x0a80 },
2625 [GCC_BLSP2_UART3_BCR
] = { 0x0ac0 },
2626 [GCC_BLSP2_QUP4_BCR
] = { 0x0b00 },
2627 [GCC_BLSP2_UART4_BCR
] = { 0x0b40 },
2628 [GCC_BLSP2_QUP5_BCR
] = { 0x0b80 },
2629 [GCC_BLSP2_UART5_BCR
] = { 0x0bc0 },
2630 [GCC_BLSP2_QUP6_BCR
] = { 0x0c00 },
2631 [GCC_BLSP2_UART6_BCR
] = { 0x0c40 },
2632 [GCC_PDM_BCR
] = { 0x0cc0 },
2633 [GCC_BAM_DMA_BCR
] = { 0x0d40 },
2634 [GCC_TSIF_BCR
] = { 0x0d80 },
2635 [GCC_TCSR_BCR
] = { 0x0dc0 },
2636 [GCC_BOOT_ROM_BCR
] = { 0x0e00 },
2637 [GCC_MSG_RAM_BCR
] = { 0x0e40 },
2638 [GCC_TLMM_BCR
] = { 0x0e80 },
2639 [GCC_MPM_BCR
] = { 0x0ec0 },
2640 [GCC_SEC_CTRL_BCR
] = { 0x0f40 },
2641 [GCC_SPMI_BCR
] = { 0x0fc0 },
2642 [GCC_SPDM_BCR
] = { 0x1000 },
2643 [GCC_CE1_BCR
] = { 0x1040 },
2644 [GCC_CE2_BCR
] = { 0x1080 },
2645 [GCC_BIMC_BCR
] = { 0x1100 },
2646 [GCC_MPM_NON_AHB_RESET
] = { 0x0ec4, 2 },
2647 [GCC_MPM_AHB_RESET
] = { 0x0ec4, 1 },
2648 [GCC_SNOC_BUS_TIMEOUT0_BCR
] = { 0x1240 },
2649 [GCC_SNOC_BUS_TIMEOUT2_BCR
] = { 0x1248 },
2650 [GCC_PNOC_BUS_TIMEOUT0_BCR
] = { 0x1280 },
2651 [GCC_PNOC_BUS_TIMEOUT1_BCR
] = { 0x1288 },
2652 [GCC_PNOC_BUS_TIMEOUT2_BCR
] = { 0x1290 },
2653 [GCC_PNOC_BUS_TIMEOUT3_BCR
] = { 0x1298 },
2654 [GCC_PNOC_BUS_TIMEOUT4_BCR
] = { 0x12a0 },
2655 [GCC_CNOC_BUS_TIMEOUT0_BCR
] = { 0x12c0 },
2656 [GCC_CNOC_BUS_TIMEOUT1_BCR
] = { 0x12c8 },
2657 [GCC_CNOC_BUS_TIMEOUT2_BCR
] = { 0x12d0 },
2658 [GCC_CNOC_BUS_TIMEOUT3_BCR
] = { 0x12d8 },
2659 [GCC_CNOC_BUS_TIMEOUT4_BCR
] = { 0x12e0 },
2660 [GCC_CNOC_BUS_TIMEOUT5_BCR
] = { 0x12e8 },
2661 [GCC_CNOC_BUS_TIMEOUT6_BCR
] = { 0x12f0 },
2662 [GCC_DEHR_BCR
] = { 0x1300 },
2663 [GCC_RBCPR_BCR
] = { 0x1380 },
2664 [GCC_MSS_RESTART
] = { 0x1680 },
2665 [GCC_LPASS_RESTART
] = { 0x16c0 },
2666 [GCC_WCSS_RESTART
] = { 0x1700 },
2667 [GCC_VENUS_RESTART
] = { 0x1740 },
2670 static struct gdsc
*gcc_msm8974_gdscs
[] = {
2671 [USB_HS_HSIC_GDSC
] = &usb_hs_hsic_gdsc
,
2674 static const struct regmap_config gcc_msm8974_regmap_config
= {
2678 .max_register
= 0x1fc0,
2682 static const struct qcom_cc_desc gcc_msm8974_desc
= {
2683 .config
= &gcc_msm8974_regmap_config
,
2684 .clks
= gcc_msm8974_clocks
,
2685 .num_clks
= ARRAY_SIZE(gcc_msm8974_clocks
),
2686 .resets
= gcc_msm8974_resets
,
2687 .num_resets
= ARRAY_SIZE(gcc_msm8974_resets
),
2688 .gdscs
= gcc_msm8974_gdscs
,
2689 .num_gdscs
= ARRAY_SIZE(gcc_msm8974_gdscs
),
2692 static const struct of_device_id gcc_msm8974_match_table
[] = {
2693 { .compatible
= "qcom,gcc-msm8974" },
2694 { .compatible
= "qcom,gcc-msm8974pro" , .data
= (void *)1UL },
2695 { .compatible
= "qcom,gcc-msm8974pro-ac", .data
= (void *)1UL },
2698 MODULE_DEVICE_TABLE(of
, gcc_msm8974_match_table
);
2700 static void msm8974_pro_clock_override(void)
2702 sdcc1_apps_clk_src_init
.parent_names
= gcc_xo_gpll0_gpll4
;
2703 sdcc1_apps_clk_src_init
.num_parents
= 3;
2704 sdcc1_apps_clk_src
.freq_tbl
= ftbl_gcc_sdcc1_apps_clk_pro
;
2705 sdcc1_apps_clk_src
.parent_map
= gcc_xo_gpll0_gpll4_map
;
2707 gcc_msm8974_clocks
[GPLL4
] = &gpll4
.clkr
;
2708 gcc_msm8974_clocks
[GPLL4_VOTE
] = &gpll4_vote
;
2709 gcc_msm8974_clocks
[GCC_SDCC1_CDCCAL_SLEEP_CLK
] =
2710 &gcc_sdcc1_cdccal_sleep_clk
.clkr
;
2711 gcc_msm8974_clocks
[GCC_SDCC1_CDCCAL_FF_CLK
] =
2712 &gcc_sdcc1_cdccal_ff_clk
.clkr
;
2715 static int gcc_msm8974_probe(struct platform_device
*pdev
)
2718 struct device
*dev
= &pdev
->dev
;
2720 const struct of_device_id
*id
;
2722 id
= of_match_device(gcc_msm8974_match_table
, dev
);
2728 msm8974_pro_clock_override();
2730 ret
= qcom_cc_register_board_clk(dev
, "xo_board", "xo", 19200000);
2734 ret
= qcom_cc_register_sleep_clk(dev
);
2738 return qcom_cc_probe(pdev
, &gcc_msm8974_desc
);
2741 static struct platform_driver gcc_msm8974_driver
= {
2742 .probe
= gcc_msm8974_probe
,
2744 .name
= "gcc-msm8974",
2745 .of_match_table
= gcc_msm8974_match_table
,
2749 static int __init
gcc_msm8974_init(void)
2751 return platform_driver_register(&gcc_msm8974_driver
);
2753 core_initcall(gcc_msm8974_init
);
2755 static void __exit
gcc_msm8974_exit(void)
2757 platform_driver_unregister(&gcc_msm8974_driver
);
2759 module_exit(gcc_msm8974_exit
);
2761 MODULE_DESCRIPTION("QCOM GCC MSM8974 Driver");
2762 MODULE_LICENSE("GPL v2");
2763 MODULE_ALIAS("platform:gcc-msm8974");