1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
6 #include <linux/kernel.h>
7 #include <linux/bitops.h>
9 #include <linux/platform_device.h>
10 #include <linux/module.h>
12 #include <linux/of_device.h>
13 #include <linux/clk-provider.h>
14 #include <linux/regmap.h>
15 #include <linux/reset-controller.h>
17 #include <dt-bindings/clock/qcom,gcc-apq8084.h>
18 #include <dt-bindings/reset/qcom,gcc-apq8084.h>
21 #include "clk-regmap.h"
24 #include "clk-branch.h"
39 static const struct parent_map gcc_xo_gpll0_map
[] = {
44 static const char * const gcc_xo_gpll0
[] = {
49 static const struct parent_map gcc_xo_gpll0_gpll4_map
[] = {
55 static const char * const gcc_xo_gpll0_gpll4
[] = {
61 static const struct parent_map gcc_xo_sata_asic0_map
[] = {
63 { P_SATA_ASIC0_CLK
, 2 }
66 static const char * const gcc_xo_sata_asic0
[] = {
71 static const struct parent_map gcc_xo_sata_rx_map
[] = {
76 static const char * const gcc_xo_sata_rx
[] = {
81 static const struct parent_map gcc_xo_pcie_map
[] = {
83 { P_PCIE_0_1_PIPE_CLK
, 2 }
86 static const char * const gcc_xo_pcie
[] = {
91 static const struct parent_map gcc_xo_pcie_sleep_map
[] = {
96 static const char * const gcc_xo_pcie_sleep
[] = {
101 static struct clk_pll gpll0
= {
105 .config_reg
= 0x0014,
107 .status_reg
= 0x001c,
109 .clkr
.hw
.init
= &(struct clk_init_data
){
111 .parent_names
= (const char *[]){ "xo" },
117 static struct clk_regmap gpll0_vote
= {
118 .enable_reg
= 0x1480,
119 .enable_mask
= BIT(0),
120 .hw
.init
= &(struct clk_init_data
){
121 .name
= "gpll0_vote",
122 .parent_names
= (const char *[]){ "gpll0" },
124 .ops
= &clk_pll_vote_ops
,
128 static struct clk_rcg2 config_noc_clk_src
= {
131 .parent_map
= gcc_xo_gpll0_map
,
132 .clkr
.hw
.init
= &(struct clk_init_data
){
133 .name
= "config_noc_clk_src",
134 .parent_names
= gcc_xo_gpll0
,
136 .ops
= &clk_rcg2_ops
,
140 static struct clk_rcg2 periph_noc_clk_src
= {
143 .parent_map
= gcc_xo_gpll0_map
,
144 .clkr
.hw
.init
= &(struct clk_init_data
){
145 .name
= "periph_noc_clk_src",
146 .parent_names
= gcc_xo_gpll0
,
148 .ops
= &clk_rcg2_ops
,
152 static struct clk_rcg2 system_noc_clk_src
= {
155 .parent_map
= gcc_xo_gpll0_map
,
156 .clkr
.hw
.init
= &(struct clk_init_data
){
157 .name
= "system_noc_clk_src",
158 .parent_names
= gcc_xo_gpll0
,
160 .ops
= &clk_rcg2_ops
,
164 static struct clk_pll gpll1
= {
168 .config_reg
= 0x0054,
170 .status_reg
= 0x005c,
172 .clkr
.hw
.init
= &(struct clk_init_data
){
174 .parent_names
= (const char *[]){ "xo" },
180 static struct clk_regmap gpll1_vote
= {
181 .enable_reg
= 0x1480,
182 .enable_mask
= BIT(1),
183 .hw
.init
= &(struct clk_init_data
){
184 .name
= "gpll1_vote",
185 .parent_names
= (const char *[]){ "gpll1" },
187 .ops
= &clk_pll_vote_ops
,
191 static struct clk_pll gpll4
= {
195 .config_reg
= 0x1dd4,
197 .status_reg
= 0x1ddc,
199 .clkr
.hw
.init
= &(struct clk_init_data
){
201 .parent_names
= (const char *[]){ "xo" },
207 static struct clk_regmap gpll4_vote
= {
208 .enable_reg
= 0x1480,
209 .enable_mask
= BIT(4),
210 .hw
.init
= &(struct clk_init_data
){
211 .name
= "gpll4_vote",
212 .parent_names
= (const char *[]){ "gpll4" },
214 .ops
= &clk_pll_vote_ops
,
218 static const struct freq_tbl ftbl_gcc_ufs_axi_clk
[] = {
219 F(100000000, P_GPLL0
, 6, 0, 0),
220 F(200000000, P_GPLL0
, 3, 0, 0),
221 F(240000000, P_GPLL0
, 2.5, 0, 0),
225 static struct clk_rcg2 ufs_axi_clk_src
= {
229 .parent_map
= gcc_xo_gpll0_map
,
230 .freq_tbl
= ftbl_gcc_ufs_axi_clk
,
231 .clkr
.hw
.init
= &(struct clk_init_data
){
232 .name
= "ufs_axi_clk_src",
233 .parent_names
= gcc_xo_gpll0
,
235 .ops
= &clk_rcg2_ops
,
239 static const struct freq_tbl ftbl_gcc_usb30_master_clk
[] = {
240 F(125000000, P_GPLL0
, 1, 5, 24),
244 static struct clk_rcg2 usb30_master_clk_src
= {
248 .parent_map
= gcc_xo_gpll0_map
,
249 .freq_tbl
= ftbl_gcc_usb30_master_clk
,
250 .clkr
.hw
.init
= &(struct clk_init_data
){
251 .name
= "usb30_master_clk_src",
252 .parent_names
= gcc_xo_gpll0
,
254 .ops
= &clk_rcg2_ops
,
258 static const struct freq_tbl ftbl_gcc_usb30_sec_master_clk
[] = {
259 F(125000000, P_GPLL0
, 1, 5, 24),
263 static struct clk_rcg2 usb30_sec_master_clk_src
= {
267 .parent_map
= gcc_xo_gpll0_map
,
268 .freq_tbl
= ftbl_gcc_usb30_sec_master_clk
,
269 .clkr
.hw
.init
= &(struct clk_init_data
){
270 .name
= "usb30_sec_master_clk_src",
271 .parent_names
= gcc_xo_gpll0
,
273 .ops
= &clk_rcg2_ops
,
277 static struct clk_branch gcc_usb30_sec_mock_utmi_clk
= {
280 .enable_reg
= 0x1bd0,
281 .enable_mask
= BIT(0),
282 .hw
.init
= &(struct clk_init_data
){
283 .name
= "gcc_usb30_sec_mock_utmi_clk",
284 .parent_names
= (const char *[]){
285 "usb30_sec_mock_utmi_clk_src",
288 .flags
= CLK_SET_RATE_PARENT
,
289 .ops
= &clk_branch2_ops
,
294 static struct clk_branch gcc_usb30_sec_sleep_clk
= {
297 .enable_reg
= 0x1bcc,
298 .enable_mask
= BIT(0),
299 .hw
.init
= &(struct clk_init_data
){
300 .name
= "gcc_usb30_sec_sleep_clk",
301 .parent_names
= (const char *[]){
305 .flags
= CLK_SET_RATE_PARENT
,
306 .ops
= &clk_branch2_ops
,
311 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
[] = {
312 F(19200000, P_XO
, 1, 0, 0),
313 F(50000000, P_GPLL0
, 12, 0, 0),
317 static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src
= {
320 .parent_map
= gcc_xo_gpll0_map
,
321 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
322 .clkr
.hw
.init
= &(struct clk_init_data
){
323 .name
= "blsp1_qup1_i2c_apps_clk_src",
324 .parent_names
= gcc_xo_gpll0
,
326 .ops
= &clk_rcg2_ops
,
330 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
[] = {
331 F(960000, P_XO
, 10, 1, 2),
332 F(4800000, P_XO
, 4, 0, 0),
333 F(9600000, P_XO
, 2, 0, 0),
334 F(15000000, P_GPLL0
, 10, 1, 4),
335 F(19200000, P_XO
, 1, 0, 0),
336 F(25000000, P_GPLL0
, 12, 1, 2),
337 F(50000000, P_GPLL0
, 12, 0, 0),
341 static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src
= {
345 .parent_map
= gcc_xo_gpll0_map
,
346 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
347 .clkr
.hw
.init
= &(struct clk_init_data
){
348 .name
= "blsp1_qup1_spi_apps_clk_src",
349 .parent_names
= gcc_xo_gpll0
,
351 .ops
= &clk_rcg2_ops
,
355 static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src
= {
358 .parent_map
= gcc_xo_gpll0_map
,
359 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
360 .clkr
.hw
.init
= &(struct clk_init_data
){
361 .name
= "blsp1_qup2_i2c_apps_clk_src",
362 .parent_names
= gcc_xo_gpll0
,
364 .ops
= &clk_rcg2_ops
,
368 static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src
= {
372 .parent_map
= gcc_xo_gpll0_map
,
373 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
374 .clkr
.hw
.init
= &(struct clk_init_data
){
375 .name
= "blsp1_qup2_spi_apps_clk_src",
376 .parent_names
= gcc_xo_gpll0
,
378 .ops
= &clk_rcg2_ops
,
382 static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src
= {
385 .parent_map
= gcc_xo_gpll0_map
,
386 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
387 .clkr
.hw
.init
= &(struct clk_init_data
){
388 .name
= "blsp1_qup3_i2c_apps_clk_src",
389 .parent_names
= gcc_xo_gpll0
,
391 .ops
= &clk_rcg2_ops
,
395 static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src
= {
399 .parent_map
= gcc_xo_gpll0_map
,
400 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
401 .clkr
.hw
.init
= &(struct clk_init_data
){
402 .name
= "blsp1_qup3_spi_apps_clk_src",
403 .parent_names
= gcc_xo_gpll0
,
405 .ops
= &clk_rcg2_ops
,
409 static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src
= {
412 .parent_map
= gcc_xo_gpll0_map
,
413 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
414 .clkr
.hw
.init
= &(struct clk_init_data
){
415 .name
= "blsp1_qup4_i2c_apps_clk_src",
416 .parent_names
= gcc_xo_gpll0
,
418 .ops
= &clk_rcg2_ops
,
422 static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src
= {
426 .parent_map
= gcc_xo_gpll0_map
,
427 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
428 .clkr
.hw
.init
= &(struct clk_init_data
){
429 .name
= "blsp1_qup4_spi_apps_clk_src",
430 .parent_names
= gcc_xo_gpll0
,
432 .ops
= &clk_rcg2_ops
,
436 static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src
= {
439 .parent_map
= gcc_xo_gpll0_map
,
440 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
441 .clkr
.hw
.init
= &(struct clk_init_data
){
442 .name
= "blsp1_qup5_i2c_apps_clk_src",
443 .parent_names
= gcc_xo_gpll0
,
445 .ops
= &clk_rcg2_ops
,
449 static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src
= {
453 .parent_map
= gcc_xo_gpll0_map
,
454 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
455 .clkr
.hw
.init
= &(struct clk_init_data
){
456 .name
= "blsp1_qup5_spi_apps_clk_src",
457 .parent_names
= gcc_xo_gpll0
,
459 .ops
= &clk_rcg2_ops
,
463 static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src
= {
466 .parent_map
= gcc_xo_gpll0_map
,
467 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
468 .clkr
.hw
.init
= &(struct clk_init_data
){
469 .name
= "blsp1_qup6_i2c_apps_clk_src",
470 .parent_names
= gcc_xo_gpll0
,
472 .ops
= &clk_rcg2_ops
,
476 static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src
= {
480 .parent_map
= gcc_xo_gpll0_map
,
481 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
482 .clkr
.hw
.init
= &(struct clk_init_data
){
483 .name
= "blsp1_qup6_spi_apps_clk_src",
484 .parent_names
= gcc_xo_gpll0
,
486 .ops
= &clk_rcg2_ops
,
490 static const struct freq_tbl ftbl_gcc_blsp1_2_uart1_6_apps_clk
[] = {
491 F(3686400, P_GPLL0
, 1, 96, 15625),
492 F(7372800, P_GPLL0
, 1, 192, 15625),
493 F(14745600, P_GPLL0
, 1, 384, 15625),
494 F(16000000, P_GPLL0
, 5, 2, 15),
495 F(19200000, P_XO
, 1, 0, 0),
496 F(24000000, P_GPLL0
, 5, 1, 5),
497 F(32000000, P_GPLL0
, 1, 4, 75),
498 F(40000000, P_GPLL0
, 15, 0, 0),
499 F(46400000, P_GPLL0
, 1, 29, 375),
500 F(48000000, P_GPLL0
, 12.5, 0, 0),
501 F(51200000, P_GPLL0
, 1, 32, 375),
502 F(56000000, P_GPLL0
, 1, 7, 75),
503 F(58982400, P_GPLL0
, 1, 1536, 15625),
504 F(60000000, P_GPLL0
, 10, 0, 0),
505 F(63160000, P_GPLL0
, 9.5, 0, 0),
509 static struct clk_rcg2 blsp1_uart1_apps_clk_src
= {
513 .parent_map
= gcc_xo_gpll0_map
,
514 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
515 .clkr
.hw
.init
= &(struct clk_init_data
){
516 .name
= "blsp1_uart1_apps_clk_src",
517 .parent_names
= gcc_xo_gpll0
,
519 .ops
= &clk_rcg2_ops
,
523 static struct clk_rcg2 blsp1_uart2_apps_clk_src
= {
527 .parent_map
= gcc_xo_gpll0_map
,
528 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
529 .clkr
.hw
.init
= &(struct clk_init_data
){
530 .name
= "blsp1_uart2_apps_clk_src",
531 .parent_names
= gcc_xo_gpll0
,
533 .ops
= &clk_rcg2_ops
,
537 static struct clk_rcg2 blsp1_uart3_apps_clk_src
= {
541 .parent_map
= gcc_xo_gpll0_map
,
542 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
543 .clkr
.hw
.init
= &(struct clk_init_data
){
544 .name
= "blsp1_uart3_apps_clk_src",
545 .parent_names
= gcc_xo_gpll0
,
547 .ops
= &clk_rcg2_ops
,
551 static struct clk_rcg2 blsp1_uart4_apps_clk_src
= {
555 .parent_map
= gcc_xo_gpll0_map
,
556 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
557 .clkr
.hw
.init
= &(struct clk_init_data
){
558 .name
= "blsp1_uart4_apps_clk_src",
559 .parent_names
= gcc_xo_gpll0
,
561 .ops
= &clk_rcg2_ops
,
565 static struct clk_rcg2 blsp1_uart5_apps_clk_src
= {
569 .parent_map
= gcc_xo_gpll0_map
,
570 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
571 .clkr
.hw
.init
= &(struct clk_init_data
){
572 .name
= "blsp1_uart5_apps_clk_src",
573 .parent_names
= gcc_xo_gpll0
,
575 .ops
= &clk_rcg2_ops
,
579 static struct clk_rcg2 blsp1_uart6_apps_clk_src
= {
583 .parent_map
= gcc_xo_gpll0_map
,
584 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
585 .clkr
.hw
.init
= &(struct clk_init_data
){
586 .name
= "blsp1_uart6_apps_clk_src",
587 .parent_names
= gcc_xo_gpll0
,
589 .ops
= &clk_rcg2_ops
,
593 static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src
= {
596 .parent_map
= gcc_xo_gpll0_map
,
597 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
598 .clkr
.hw
.init
= &(struct clk_init_data
){
599 .name
= "blsp2_qup1_i2c_apps_clk_src",
600 .parent_names
= gcc_xo_gpll0
,
602 .ops
= &clk_rcg2_ops
,
606 static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src
= {
610 .parent_map
= gcc_xo_gpll0_map
,
611 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
612 .clkr
.hw
.init
= &(struct clk_init_data
){
613 .name
= "blsp2_qup1_spi_apps_clk_src",
614 .parent_names
= gcc_xo_gpll0
,
616 .ops
= &clk_rcg2_ops
,
620 static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src
= {
623 .parent_map
= gcc_xo_gpll0_map
,
624 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
625 .clkr
.hw
.init
= &(struct clk_init_data
){
626 .name
= "blsp2_qup2_i2c_apps_clk_src",
627 .parent_names
= gcc_xo_gpll0
,
629 .ops
= &clk_rcg2_ops
,
633 static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src
= {
637 .parent_map
= gcc_xo_gpll0_map
,
638 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
639 .clkr
.hw
.init
= &(struct clk_init_data
){
640 .name
= "blsp2_qup2_spi_apps_clk_src",
641 .parent_names
= gcc_xo_gpll0
,
643 .ops
= &clk_rcg2_ops
,
647 static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src
= {
650 .parent_map
= gcc_xo_gpll0_map
,
651 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
652 .clkr
.hw
.init
= &(struct clk_init_data
){
653 .name
= "blsp2_qup3_i2c_apps_clk_src",
654 .parent_names
= gcc_xo_gpll0
,
656 .ops
= &clk_rcg2_ops
,
660 static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src
= {
664 .parent_map
= gcc_xo_gpll0_map
,
665 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
666 .clkr
.hw
.init
= &(struct clk_init_data
){
667 .name
= "blsp2_qup3_spi_apps_clk_src",
668 .parent_names
= gcc_xo_gpll0
,
670 .ops
= &clk_rcg2_ops
,
674 static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src
= {
677 .parent_map
= gcc_xo_gpll0_map
,
678 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
679 .clkr
.hw
.init
= &(struct clk_init_data
){
680 .name
= "blsp2_qup4_i2c_apps_clk_src",
681 .parent_names
= gcc_xo_gpll0
,
683 .ops
= &clk_rcg2_ops
,
687 static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src
= {
691 .parent_map
= gcc_xo_gpll0_map
,
692 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
693 .clkr
.hw
.init
= &(struct clk_init_data
){
694 .name
= "blsp2_qup4_spi_apps_clk_src",
695 .parent_names
= gcc_xo_gpll0
,
697 .ops
= &clk_rcg2_ops
,
701 static struct clk_rcg2 blsp2_qup5_i2c_apps_clk_src
= {
704 .parent_map
= gcc_xo_gpll0_map
,
705 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
706 .clkr
.hw
.init
= &(struct clk_init_data
){
707 .name
= "blsp2_qup5_i2c_apps_clk_src",
708 .parent_names
= gcc_xo_gpll0
,
710 .ops
= &clk_rcg2_ops
,
714 static struct clk_rcg2 blsp2_qup5_spi_apps_clk_src
= {
718 .parent_map
= gcc_xo_gpll0_map
,
719 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
720 .clkr
.hw
.init
= &(struct clk_init_data
){
721 .name
= "blsp2_qup5_spi_apps_clk_src",
722 .parent_names
= gcc_xo_gpll0
,
724 .ops
= &clk_rcg2_ops
,
728 static struct clk_rcg2 blsp2_qup6_i2c_apps_clk_src
= {
731 .parent_map
= gcc_xo_gpll0_map
,
732 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
733 .clkr
.hw
.init
= &(struct clk_init_data
){
734 .name
= "blsp2_qup6_i2c_apps_clk_src",
735 .parent_names
= gcc_xo_gpll0
,
737 .ops
= &clk_rcg2_ops
,
741 static struct clk_rcg2 blsp2_qup6_spi_apps_clk_src
= {
745 .parent_map
= gcc_xo_gpll0_map
,
746 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
747 .clkr
.hw
.init
= &(struct clk_init_data
){
748 .name
= "blsp2_qup6_spi_apps_clk_src",
749 .parent_names
= gcc_xo_gpll0
,
751 .ops
= &clk_rcg2_ops
,
755 static struct clk_rcg2 blsp2_uart1_apps_clk_src
= {
759 .parent_map
= gcc_xo_gpll0_map
,
760 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
761 .clkr
.hw
.init
= &(struct clk_init_data
){
762 .name
= "blsp2_uart1_apps_clk_src",
763 .parent_names
= gcc_xo_gpll0
,
765 .ops
= &clk_rcg2_ops
,
769 static struct clk_rcg2 blsp2_uart2_apps_clk_src
= {
773 .parent_map
= gcc_xo_gpll0_map
,
774 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
775 .clkr
.hw
.init
= &(struct clk_init_data
){
776 .name
= "blsp2_uart2_apps_clk_src",
777 .parent_names
= gcc_xo_gpll0
,
779 .ops
= &clk_rcg2_ops
,
783 static struct clk_rcg2 blsp2_uart3_apps_clk_src
= {
787 .parent_map
= gcc_xo_gpll0_map
,
788 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
789 .clkr
.hw
.init
= &(struct clk_init_data
){
790 .name
= "blsp2_uart3_apps_clk_src",
791 .parent_names
= gcc_xo_gpll0
,
793 .ops
= &clk_rcg2_ops
,
797 static struct clk_rcg2 blsp2_uart4_apps_clk_src
= {
801 .parent_map
= gcc_xo_gpll0_map
,
802 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
803 .clkr
.hw
.init
= &(struct clk_init_data
){
804 .name
= "blsp2_uart4_apps_clk_src",
805 .parent_names
= gcc_xo_gpll0
,
807 .ops
= &clk_rcg2_ops
,
811 static struct clk_rcg2 blsp2_uart5_apps_clk_src
= {
815 .parent_map
= gcc_xo_gpll0_map
,
816 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
817 .clkr
.hw
.init
= &(struct clk_init_data
){
818 .name
= "blsp2_uart5_apps_clk_src",
819 .parent_names
= gcc_xo_gpll0
,
821 .ops
= &clk_rcg2_ops
,
825 static struct clk_rcg2 blsp2_uart6_apps_clk_src
= {
829 .parent_map
= gcc_xo_gpll0_map
,
830 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
831 .clkr
.hw
.init
= &(struct clk_init_data
){
832 .name
= "blsp2_uart6_apps_clk_src",
833 .parent_names
= gcc_xo_gpll0
,
835 .ops
= &clk_rcg2_ops
,
839 static const struct freq_tbl ftbl_gcc_ce1_clk
[] = {
840 F(50000000, P_GPLL0
, 12, 0, 0),
841 F(85710000, P_GPLL0
, 7, 0, 0),
842 F(100000000, P_GPLL0
, 6, 0, 0),
843 F(171430000, P_GPLL0
, 3.5, 0, 0),
847 static struct clk_rcg2 ce1_clk_src
= {
850 .parent_map
= gcc_xo_gpll0_map
,
851 .freq_tbl
= ftbl_gcc_ce1_clk
,
852 .clkr
.hw
.init
= &(struct clk_init_data
){
853 .name
= "ce1_clk_src",
854 .parent_names
= gcc_xo_gpll0
,
856 .ops
= &clk_rcg2_ops
,
860 static const struct freq_tbl ftbl_gcc_ce2_clk
[] = {
861 F(50000000, P_GPLL0
, 12, 0, 0),
862 F(85710000, P_GPLL0
, 7, 0, 0),
863 F(100000000, P_GPLL0
, 6, 0, 0),
864 F(171430000, P_GPLL0
, 3.5, 0, 0),
868 static struct clk_rcg2 ce2_clk_src
= {
871 .parent_map
= gcc_xo_gpll0_map
,
872 .freq_tbl
= ftbl_gcc_ce2_clk
,
873 .clkr
.hw
.init
= &(struct clk_init_data
){
874 .name
= "ce2_clk_src",
875 .parent_names
= gcc_xo_gpll0
,
877 .ops
= &clk_rcg2_ops
,
881 static const struct freq_tbl ftbl_gcc_ce3_clk
[] = {
882 F(50000000, P_GPLL0
, 12, 0, 0),
883 F(85710000, P_GPLL0
, 7, 0, 0),
884 F(100000000, P_GPLL0
, 6, 0, 0),
885 F(171430000, P_GPLL0
, 3.5, 0, 0),
889 static struct clk_rcg2 ce3_clk_src
= {
892 .parent_map
= gcc_xo_gpll0_map
,
893 .freq_tbl
= ftbl_gcc_ce3_clk
,
894 .clkr
.hw
.init
= &(struct clk_init_data
){
895 .name
= "ce3_clk_src",
896 .parent_names
= gcc_xo_gpll0
,
898 .ops
= &clk_rcg2_ops
,
902 static const struct freq_tbl ftbl_gcc_gp_clk
[] = {
903 F(19200000, P_XO
, 1, 0, 0),
904 F(100000000, P_GPLL0
, 6, 0, 0),
905 F(200000000, P_GPLL0
, 3, 0, 0),
909 static struct clk_rcg2 gp1_clk_src
= {
913 .parent_map
= gcc_xo_gpll0_map
,
914 .freq_tbl
= ftbl_gcc_gp_clk
,
915 .clkr
.hw
.init
= &(struct clk_init_data
){
916 .name
= "gp1_clk_src",
917 .parent_names
= gcc_xo_gpll0
,
919 .ops
= &clk_rcg2_ops
,
923 static struct clk_rcg2 gp2_clk_src
= {
927 .parent_map
= gcc_xo_gpll0_map
,
928 .freq_tbl
= ftbl_gcc_gp_clk
,
929 .clkr
.hw
.init
= &(struct clk_init_data
){
930 .name
= "gp2_clk_src",
931 .parent_names
= gcc_xo_gpll0
,
933 .ops
= &clk_rcg2_ops
,
937 static struct clk_rcg2 gp3_clk_src
= {
941 .parent_map
= gcc_xo_gpll0_map
,
942 .freq_tbl
= ftbl_gcc_gp_clk
,
943 .clkr
.hw
.init
= &(struct clk_init_data
){
944 .name
= "gp3_clk_src",
945 .parent_names
= gcc_xo_gpll0
,
947 .ops
= &clk_rcg2_ops
,
951 static const struct freq_tbl ftbl_gcc_pcie_0_1_aux_clk
[] = {
952 F(1010000, P_XO
, 1, 1, 19),
956 static struct clk_rcg2 pcie_0_aux_clk_src
= {
960 .parent_map
= gcc_xo_pcie_sleep_map
,
961 .freq_tbl
= ftbl_gcc_pcie_0_1_aux_clk
,
962 .clkr
.hw
.init
= &(struct clk_init_data
){
963 .name
= "pcie_0_aux_clk_src",
964 .parent_names
= gcc_xo_pcie_sleep
,
966 .ops
= &clk_rcg2_ops
,
970 static struct clk_rcg2 pcie_1_aux_clk_src
= {
974 .parent_map
= gcc_xo_pcie_sleep_map
,
975 .freq_tbl
= ftbl_gcc_pcie_0_1_aux_clk
,
976 .clkr
.hw
.init
= &(struct clk_init_data
){
977 .name
= "pcie_1_aux_clk_src",
978 .parent_names
= gcc_xo_pcie_sleep
,
980 .ops
= &clk_rcg2_ops
,
984 static const struct freq_tbl ftbl_gcc_pcie_0_1_pipe_clk
[] = {
985 F(125000000, P_PCIE_0_1_PIPE_CLK
, 1, 0, 0),
986 F(250000000, P_PCIE_0_1_PIPE_CLK
, 1, 0, 0),
990 static struct clk_rcg2 pcie_0_pipe_clk_src
= {
993 .parent_map
= gcc_xo_pcie_map
,
994 .freq_tbl
= ftbl_gcc_pcie_0_1_pipe_clk
,
995 .clkr
.hw
.init
= &(struct clk_init_data
){
996 .name
= "pcie_0_pipe_clk_src",
997 .parent_names
= gcc_xo_pcie
,
999 .ops
= &clk_rcg2_ops
,
1003 static struct clk_rcg2 pcie_1_pipe_clk_src
= {
1006 .parent_map
= gcc_xo_pcie_map
,
1007 .freq_tbl
= ftbl_gcc_pcie_0_1_pipe_clk
,
1008 .clkr
.hw
.init
= &(struct clk_init_data
){
1009 .name
= "pcie_1_pipe_clk_src",
1010 .parent_names
= gcc_xo_pcie
,
1012 .ops
= &clk_rcg2_ops
,
1016 static const struct freq_tbl ftbl_gcc_pdm2_clk
[] = {
1017 F(60000000, P_GPLL0
, 10, 0, 0),
1021 static struct clk_rcg2 pdm2_clk_src
= {
1024 .parent_map
= gcc_xo_gpll0_map
,
1025 .freq_tbl
= ftbl_gcc_pdm2_clk
,
1026 .clkr
.hw
.init
= &(struct clk_init_data
){
1027 .name
= "pdm2_clk_src",
1028 .parent_names
= gcc_xo_gpll0
,
1030 .ops
= &clk_rcg2_ops
,
1034 static const struct freq_tbl ftbl_gcc_sata_asic0_clk
[] = {
1035 F(75000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1036 F(150000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1037 F(300000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1041 static struct clk_rcg2 sata_asic0_clk_src
= {
1044 .parent_map
= gcc_xo_sata_asic0_map
,
1045 .freq_tbl
= ftbl_gcc_sata_asic0_clk
,
1046 .clkr
.hw
.init
= &(struct clk_init_data
){
1047 .name
= "sata_asic0_clk_src",
1048 .parent_names
= gcc_xo_sata_asic0
,
1050 .ops
= &clk_rcg2_ops
,
1054 static const struct freq_tbl ftbl_gcc_sata_pmalive_clk
[] = {
1055 F(19200000, P_XO
, 1, 0, 0),
1056 F(50000000, P_GPLL0
, 12, 0, 0),
1057 F(100000000, P_GPLL0
, 6, 0, 0),
1061 static struct clk_rcg2 sata_pmalive_clk_src
= {
1064 .parent_map
= gcc_xo_gpll0_map
,
1065 .freq_tbl
= ftbl_gcc_sata_pmalive_clk
,
1066 .clkr
.hw
.init
= &(struct clk_init_data
){
1067 .name
= "sata_pmalive_clk_src",
1068 .parent_names
= gcc_xo_gpll0
,
1070 .ops
= &clk_rcg2_ops
,
1074 static const struct freq_tbl ftbl_gcc_sata_rx_clk
[] = {
1075 F(75000000, P_SATA_RX_CLK
, 1, 0, 0),
1076 F(150000000, P_SATA_RX_CLK
, 1, 0, 0),
1077 F(300000000, P_SATA_RX_CLK
, 1, 0, 0),
1081 static struct clk_rcg2 sata_rx_clk_src
= {
1084 .parent_map
= gcc_xo_sata_rx_map
,
1085 .freq_tbl
= ftbl_gcc_sata_rx_clk
,
1086 .clkr
.hw
.init
= &(struct clk_init_data
){
1087 .name
= "sata_rx_clk_src",
1088 .parent_names
= gcc_xo_sata_rx
,
1090 .ops
= &clk_rcg2_ops
,
1094 static const struct freq_tbl ftbl_gcc_sata_rx_oob_clk
[] = {
1095 F(100000000, P_GPLL0
, 6, 0, 0),
1099 static struct clk_rcg2 sata_rx_oob_clk_src
= {
1102 .parent_map
= gcc_xo_gpll0_map
,
1103 .freq_tbl
= ftbl_gcc_sata_rx_oob_clk
,
1104 .clkr
.hw
.init
= &(struct clk_init_data
){
1105 .name
= "sata_rx_oob_clk_src",
1106 .parent_names
= gcc_xo_gpll0
,
1108 .ops
= &clk_rcg2_ops
,
1112 static const struct freq_tbl ftbl_gcc_sdcc1_4_apps_clk
[] = {
1113 F(144000, P_XO
, 16, 3, 25),
1114 F(400000, P_XO
, 12, 1, 4),
1115 F(20000000, P_GPLL0
, 15, 1, 2),
1116 F(25000000, P_GPLL0
, 12, 1, 2),
1117 F(50000000, P_GPLL0
, 12, 0, 0),
1118 F(100000000, P_GPLL0
, 6, 0, 0),
1119 F(192000000, P_GPLL4
, 4, 0, 0),
1120 F(200000000, P_GPLL0
, 3, 0, 0),
1121 F(384000000, P_GPLL4
, 2, 0, 0),
1125 static struct clk_rcg2 sdcc1_apps_clk_src
= {
1129 .parent_map
= gcc_xo_gpll0_gpll4_map
,
1130 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1131 .clkr
.hw
.init
= &(struct clk_init_data
){
1132 .name
= "sdcc1_apps_clk_src",
1133 .parent_names
= gcc_xo_gpll0_gpll4
,
1135 .ops
= &clk_rcg2_floor_ops
,
1139 static struct clk_rcg2 sdcc2_apps_clk_src
= {
1143 .parent_map
= gcc_xo_gpll0_map
,
1144 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1145 .clkr
.hw
.init
= &(struct clk_init_data
){
1146 .name
= "sdcc2_apps_clk_src",
1147 .parent_names
= gcc_xo_gpll0
,
1149 .ops
= &clk_rcg2_floor_ops
,
1153 static struct clk_rcg2 sdcc3_apps_clk_src
= {
1157 .parent_map
= gcc_xo_gpll0_map
,
1158 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1159 .clkr
.hw
.init
= &(struct clk_init_data
){
1160 .name
= "sdcc3_apps_clk_src",
1161 .parent_names
= gcc_xo_gpll0
,
1163 .ops
= &clk_rcg2_floor_ops
,
1167 static struct clk_rcg2 sdcc4_apps_clk_src
= {
1171 .parent_map
= gcc_xo_gpll0_map
,
1172 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1173 .clkr
.hw
.init
= &(struct clk_init_data
){
1174 .name
= "sdcc4_apps_clk_src",
1175 .parent_names
= gcc_xo_gpll0
,
1177 .ops
= &clk_rcg2_floor_ops
,
1181 static const struct freq_tbl ftbl_gcc_tsif_ref_clk
[] = {
1182 F(105000, P_XO
, 2, 1, 91),
1186 static struct clk_rcg2 tsif_ref_clk_src
= {
1190 .parent_map
= gcc_xo_gpll0_map
,
1191 .freq_tbl
= ftbl_gcc_tsif_ref_clk
,
1192 .clkr
.hw
.init
= &(struct clk_init_data
){
1193 .name
= "tsif_ref_clk_src",
1194 .parent_names
= gcc_xo_gpll0
,
1196 .ops
= &clk_rcg2_ops
,
1200 static const struct freq_tbl ftbl_gcc_usb30_mock_utmi_clk
[] = {
1201 F(60000000, P_GPLL0
, 10, 0, 0),
1205 static struct clk_rcg2 usb30_mock_utmi_clk_src
= {
1208 .parent_map
= gcc_xo_gpll0_map
,
1209 .freq_tbl
= ftbl_gcc_usb30_mock_utmi_clk
,
1210 .clkr
.hw
.init
= &(struct clk_init_data
){
1211 .name
= "usb30_mock_utmi_clk_src",
1212 .parent_names
= gcc_xo_gpll0
,
1214 .ops
= &clk_rcg2_ops
,
1218 static const struct freq_tbl ftbl_gcc_usb30_sec_mock_utmi_clk
[] = {
1219 F(125000000, P_GPLL0
, 1, 5, 24),
1223 static struct clk_rcg2 usb30_sec_mock_utmi_clk_src
= {
1226 .parent_map
= gcc_xo_gpll0_map
,
1227 .freq_tbl
= ftbl_gcc_usb30_sec_mock_utmi_clk
,
1228 .clkr
.hw
.init
= &(struct clk_init_data
){
1229 .name
= "usb30_sec_mock_utmi_clk_src",
1230 .parent_names
= gcc_xo_gpll0
,
1232 .ops
= &clk_rcg2_ops
,
1236 static const struct freq_tbl ftbl_gcc_usb_hs_system_clk
[] = {
1237 F(75000000, P_GPLL0
, 8, 0, 0),
1241 static struct clk_rcg2 usb_hs_system_clk_src
= {
1244 .parent_map
= gcc_xo_gpll0_map
,
1245 .freq_tbl
= ftbl_gcc_usb_hs_system_clk
,
1246 .clkr
.hw
.init
= &(struct clk_init_data
){
1247 .name
= "usb_hs_system_clk_src",
1248 .parent_names
= gcc_xo_gpll0
,
1250 .ops
= &clk_rcg2_ops
,
1254 static const struct freq_tbl ftbl_gcc_usb_hsic_clk
[] = {
1255 F(480000000, P_GPLL1
, 1, 0, 0),
1259 static const struct parent_map usb_hsic_clk_src_map
[] = {
1264 static struct clk_rcg2 usb_hsic_clk_src
= {
1267 .parent_map
= usb_hsic_clk_src_map
,
1268 .freq_tbl
= ftbl_gcc_usb_hsic_clk
,
1269 .clkr
.hw
.init
= &(struct clk_init_data
){
1270 .name
= "usb_hsic_clk_src",
1271 .parent_names
= (const char *[]){
1276 .ops
= &clk_rcg2_ops
,
1280 static const struct freq_tbl ftbl_gcc_usb_hsic_ahb_clk_src
[] = {
1281 F(60000000, P_GPLL1
, 8, 0, 0),
1285 static struct clk_rcg2 usb_hsic_ahb_clk_src
= {
1289 .parent_map
= usb_hsic_clk_src_map
,
1290 .freq_tbl
= ftbl_gcc_usb_hsic_ahb_clk_src
,
1291 .clkr
.hw
.init
= &(struct clk_init_data
){
1292 .name
= "usb_hsic_ahb_clk_src",
1293 .parent_names
= (const char *[]){
1298 .ops
= &clk_rcg2_ops
,
1302 static const struct freq_tbl ftbl_gcc_usb_hsic_io_cal_clk
[] = {
1303 F(9600000, P_XO
, 2, 0, 0),
1307 static struct clk_rcg2 usb_hsic_io_cal_clk_src
= {
1310 .parent_map
= gcc_xo_gpll0_map
,
1311 .freq_tbl
= ftbl_gcc_usb_hsic_io_cal_clk
,
1312 .clkr
.hw
.init
= &(struct clk_init_data
){
1313 .name
= "usb_hsic_io_cal_clk_src",
1314 .parent_names
= gcc_xo_gpll0
,
1316 .ops
= &clk_rcg2_ops
,
1320 static struct clk_branch gcc_usb_hsic_mock_utmi_clk
= {
1323 .enable_reg
= 0x1f14,
1324 .enable_mask
= BIT(0),
1325 .hw
.init
= &(struct clk_init_data
){
1326 .name
= "gcc_usb_hsic_mock_utmi_clk",
1327 .parent_names
= (const char *[]){
1328 "usb_hsic_mock_utmi_clk_src",
1331 .flags
= CLK_SET_RATE_PARENT
,
1332 .ops
= &clk_branch2_ops
,
1337 static const struct freq_tbl ftbl_gcc_usb_hsic_mock_utmi_clk
[] = {
1338 F(60000000, P_GPLL0
, 10, 0, 0),
1342 static struct clk_rcg2 usb_hsic_mock_utmi_clk_src
= {
1345 .parent_map
= gcc_xo_gpll0_map
,
1346 .freq_tbl
= ftbl_gcc_usb_hsic_mock_utmi_clk
,
1347 .clkr
.hw
.init
= &(struct clk_init_data
){
1348 .name
= "usb_hsic_mock_utmi_clk_src",
1349 .parent_names
= gcc_xo_gpll0
,
1351 .ops
= &clk_rcg2_ops
,
1355 static const struct freq_tbl ftbl_gcc_usb_hsic_system_clk
[] = {
1356 F(75000000, P_GPLL0
, 8, 0, 0),
1360 static struct clk_rcg2 usb_hsic_system_clk_src
= {
1363 .parent_map
= gcc_xo_gpll0_map
,
1364 .freq_tbl
= ftbl_gcc_usb_hsic_system_clk
,
1365 .clkr
.hw
.init
= &(struct clk_init_data
){
1366 .name
= "usb_hsic_system_clk_src",
1367 .parent_names
= gcc_xo_gpll0
,
1369 .ops
= &clk_rcg2_ops
,
1373 static struct clk_branch gcc_bam_dma_ahb_clk
= {
1375 .halt_check
= BRANCH_HALT_VOTED
,
1377 .enable_reg
= 0x1484,
1378 .enable_mask
= BIT(12),
1379 .hw
.init
= &(struct clk_init_data
){
1380 .name
= "gcc_bam_dma_ahb_clk",
1381 .parent_names
= (const char *[]){
1382 "periph_noc_clk_src",
1385 .ops
= &clk_branch2_ops
,
1390 static struct clk_branch gcc_blsp1_ahb_clk
= {
1392 .halt_check
= BRANCH_HALT_VOTED
,
1394 .enable_reg
= 0x1484,
1395 .enable_mask
= BIT(17),
1396 .hw
.init
= &(struct clk_init_data
){
1397 .name
= "gcc_blsp1_ahb_clk",
1398 .parent_names
= (const char *[]){
1399 "periph_noc_clk_src",
1402 .ops
= &clk_branch2_ops
,
1407 static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk
= {
1410 .enable_reg
= 0x0648,
1411 .enable_mask
= BIT(0),
1412 .hw
.init
= &(struct clk_init_data
){
1413 .name
= "gcc_blsp1_qup1_i2c_apps_clk",
1414 .parent_names
= (const char *[]){
1415 "blsp1_qup1_i2c_apps_clk_src",
1418 .flags
= CLK_SET_RATE_PARENT
,
1419 .ops
= &clk_branch2_ops
,
1424 static struct clk_branch gcc_blsp1_qup1_spi_apps_clk
= {
1427 .enable_reg
= 0x0644,
1428 .enable_mask
= BIT(0),
1429 .hw
.init
= &(struct clk_init_data
){
1430 .name
= "gcc_blsp1_qup1_spi_apps_clk",
1431 .parent_names
= (const char *[]){
1432 "blsp1_qup1_spi_apps_clk_src",
1435 .flags
= CLK_SET_RATE_PARENT
,
1436 .ops
= &clk_branch2_ops
,
1441 static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk
= {
1444 .enable_reg
= 0x06c8,
1445 .enable_mask
= BIT(0),
1446 .hw
.init
= &(struct clk_init_data
){
1447 .name
= "gcc_blsp1_qup2_i2c_apps_clk",
1448 .parent_names
= (const char *[]){
1449 "blsp1_qup2_i2c_apps_clk_src",
1452 .flags
= CLK_SET_RATE_PARENT
,
1453 .ops
= &clk_branch2_ops
,
1458 static struct clk_branch gcc_blsp1_qup2_spi_apps_clk
= {
1461 .enable_reg
= 0x06c4,
1462 .enable_mask
= BIT(0),
1463 .hw
.init
= &(struct clk_init_data
){
1464 .name
= "gcc_blsp1_qup2_spi_apps_clk",
1465 .parent_names
= (const char *[]){
1466 "blsp1_qup2_spi_apps_clk_src",
1469 .flags
= CLK_SET_RATE_PARENT
,
1470 .ops
= &clk_branch2_ops
,
1475 static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk
= {
1478 .enable_reg
= 0x0748,
1479 .enable_mask
= BIT(0),
1480 .hw
.init
= &(struct clk_init_data
){
1481 .name
= "gcc_blsp1_qup3_i2c_apps_clk",
1482 .parent_names
= (const char *[]){
1483 "blsp1_qup3_i2c_apps_clk_src",
1486 .flags
= CLK_SET_RATE_PARENT
,
1487 .ops
= &clk_branch2_ops
,
1492 static struct clk_branch gcc_blsp1_qup3_spi_apps_clk
= {
1495 .enable_reg
= 0x0744,
1496 .enable_mask
= BIT(0),
1497 .hw
.init
= &(struct clk_init_data
){
1498 .name
= "gcc_blsp1_qup3_spi_apps_clk",
1499 .parent_names
= (const char *[]){
1500 "blsp1_qup3_spi_apps_clk_src",
1503 .flags
= CLK_SET_RATE_PARENT
,
1504 .ops
= &clk_branch2_ops
,
1509 static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk
= {
1512 .enable_reg
= 0x07c8,
1513 .enable_mask
= BIT(0),
1514 .hw
.init
= &(struct clk_init_data
){
1515 .name
= "gcc_blsp1_qup4_i2c_apps_clk",
1516 .parent_names
= (const char *[]){
1517 "blsp1_qup4_i2c_apps_clk_src",
1520 .flags
= CLK_SET_RATE_PARENT
,
1521 .ops
= &clk_branch2_ops
,
1526 static struct clk_branch gcc_blsp1_qup4_spi_apps_clk
= {
1529 .enable_reg
= 0x07c4,
1530 .enable_mask
= BIT(0),
1531 .hw
.init
= &(struct clk_init_data
){
1532 .name
= "gcc_blsp1_qup4_spi_apps_clk",
1533 .parent_names
= (const char *[]){
1534 "blsp1_qup4_spi_apps_clk_src",
1537 .flags
= CLK_SET_RATE_PARENT
,
1538 .ops
= &clk_branch2_ops
,
1543 static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk
= {
1546 .enable_reg
= 0x0848,
1547 .enable_mask
= BIT(0),
1548 .hw
.init
= &(struct clk_init_data
){
1549 .name
= "gcc_blsp1_qup5_i2c_apps_clk",
1550 .parent_names
= (const char *[]){
1551 "blsp1_qup5_i2c_apps_clk_src",
1554 .flags
= CLK_SET_RATE_PARENT
,
1555 .ops
= &clk_branch2_ops
,
1560 static struct clk_branch gcc_blsp1_qup5_spi_apps_clk
= {
1563 .enable_reg
= 0x0844,
1564 .enable_mask
= BIT(0),
1565 .hw
.init
= &(struct clk_init_data
){
1566 .name
= "gcc_blsp1_qup5_spi_apps_clk",
1567 .parent_names
= (const char *[]){
1568 "blsp1_qup5_spi_apps_clk_src",
1571 .flags
= CLK_SET_RATE_PARENT
,
1572 .ops
= &clk_branch2_ops
,
1577 static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk
= {
1580 .enable_reg
= 0x08c8,
1581 .enable_mask
= BIT(0),
1582 .hw
.init
= &(struct clk_init_data
){
1583 .name
= "gcc_blsp1_qup6_i2c_apps_clk",
1584 .parent_names
= (const char *[]){
1585 "blsp1_qup6_i2c_apps_clk_src",
1588 .flags
= CLK_SET_RATE_PARENT
,
1589 .ops
= &clk_branch2_ops
,
1594 static struct clk_branch gcc_blsp1_qup6_spi_apps_clk
= {
1597 .enable_reg
= 0x08c4,
1598 .enable_mask
= BIT(0),
1599 .hw
.init
= &(struct clk_init_data
){
1600 .name
= "gcc_blsp1_qup6_spi_apps_clk",
1601 .parent_names
= (const char *[]){
1602 "blsp1_qup6_spi_apps_clk_src",
1605 .flags
= CLK_SET_RATE_PARENT
,
1606 .ops
= &clk_branch2_ops
,
1611 static struct clk_branch gcc_blsp1_uart1_apps_clk
= {
1614 .enable_reg
= 0x0684,
1615 .enable_mask
= BIT(0),
1616 .hw
.init
= &(struct clk_init_data
){
1617 .name
= "gcc_blsp1_uart1_apps_clk",
1618 .parent_names
= (const char *[]){
1619 "blsp1_uart1_apps_clk_src",
1622 .flags
= CLK_SET_RATE_PARENT
,
1623 .ops
= &clk_branch2_ops
,
1628 static struct clk_branch gcc_blsp1_uart2_apps_clk
= {
1631 .enable_reg
= 0x0704,
1632 .enable_mask
= BIT(0),
1633 .hw
.init
= &(struct clk_init_data
){
1634 .name
= "gcc_blsp1_uart2_apps_clk",
1635 .parent_names
= (const char *[]){
1636 "blsp1_uart2_apps_clk_src",
1639 .flags
= CLK_SET_RATE_PARENT
,
1640 .ops
= &clk_branch2_ops
,
1645 static struct clk_branch gcc_blsp1_uart3_apps_clk
= {
1648 .enable_reg
= 0x0784,
1649 .enable_mask
= BIT(0),
1650 .hw
.init
= &(struct clk_init_data
){
1651 .name
= "gcc_blsp1_uart3_apps_clk",
1652 .parent_names
= (const char *[]){
1653 "blsp1_uart3_apps_clk_src",
1656 .flags
= CLK_SET_RATE_PARENT
,
1657 .ops
= &clk_branch2_ops
,
1662 static struct clk_branch gcc_blsp1_uart4_apps_clk
= {
1665 .enable_reg
= 0x0804,
1666 .enable_mask
= BIT(0),
1667 .hw
.init
= &(struct clk_init_data
){
1668 .name
= "gcc_blsp1_uart4_apps_clk",
1669 .parent_names
= (const char *[]){
1670 "blsp1_uart4_apps_clk_src",
1673 .flags
= CLK_SET_RATE_PARENT
,
1674 .ops
= &clk_branch2_ops
,
1679 static struct clk_branch gcc_blsp1_uart5_apps_clk
= {
1682 .enable_reg
= 0x0884,
1683 .enable_mask
= BIT(0),
1684 .hw
.init
= &(struct clk_init_data
){
1685 .name
= "gcc_blsp1_uart5_apps_clk",
1686 .parent_names
= (const char *[]){
1687 "blsp1_uart5_apps_clk_src",
1690 .flags
= CLK_SET_RATE_PARENT
,
1691 .ops
= &clk_branch2_ops
,
1696 static struct clk_branch gcc_blsp1_uart6_apps_clk
= {
1699 .enable_reg
= 0x0904,
1700 .enable_mask
= BIT(0),
1701 .hw
.init
= &(struct clk_init_data
){
1702 .name
= "gcc_blsp1_uart6_apps_clk",
1703 .parent_names
= (const char *[]){
1704 "blsp1_uart6_apps_clk_src",
1707 .flags
= CLK_SET_RATE_PARENT
,
1708 .ops
= &clk_branch2_ops
,
1713 static struct clk_branch gcc_blsp2_ahb_clk
= {
1715 .halt_check
= BRANCH_HALT_VOTED
,
1717 .enable_reg
= 0x1484,
1718 .enable_mask
= BIT(15),
1719 .hw
.init
= &(struct clk_init_data
){
1720 .name
= "gcc_blsp2_ahb_clk",
1721 .parent_names
= (const char *[]){
1722 "periph_noc_clk_src",
1725 .ops
= &clk_branch2_ops
,
1730 static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk
= {
1733 .enable_reg
= 0x0988,
1734 .enable_mask
= BIT(0),
1735 .hw
.init
= &(struct clk_init_data
){
1736 .name
= "gcc_blsp2_qup1_i2c_apps_clk",
1737 .parent_names
= (const char *[]){
1738 "blsp2_qup1_i2c_apps_clk_src",
1741 .flags
= CLK_SET_RATE_PARENT
,
1742 .ops
= &clk_branch2_ops
,
1747 static struct clk_branch gcc_blsp2_qup1_spi_apps_clk
= {
1750 .enable_reg
= 0x0984,
1751 .enable_mask
= BIT(0),
1752 .hw
.init
= &(struct clk_init_data
){
1753 .name
= "gcc_blsp2_qup1_spi_apps_clk",
1754 .parent_names
= (const char *[]){
1755 "blsp2_qup1_spi_apps_clk_src",
1758 .flags
= CLK_SET_RATE_PARENT
,
1759 .ops
= &clk_branch2_ops
,
1764 static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk
= {
1767 .enable_reg
= 0x0a08,
1768 .enable_mask
= BIT(0),
1769 .hw
.init
= &(struct clk_init_data
){
1770 .name
= "gcc_blsp2_qup2_i2c_apps_clk",
1771 .parent_names
= (const char *[]){
1772 "blsp2_qup2_i2c_apps_clk_src",
1775 .flags
= CLK_SET_RATE_PARENT
,
1776 .ops
= &clk_branch2_ops
,
1781 static struct clk_branch gcc_blsp2_qup2_spi_apps_clk
= {
1784 .enable_reg
= 0x0a04,
1785 .enable_mask
= BIT(0),
1786 .hw
.init
= &(struct clk_init_data
){
1787 .name
= "gcc_blsp2_qup2_spi_apps_clk",
1788 .parent_names
= (const char *[]){
1789 "blsp2_qup2_spi_apps_clk_src",
1792 .flags
= CLK_SET_RATE_PARENT
,
1793 .ops
= &clk_branch2_ops
,
1798 static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk
= {
1801 .enable_reg
= 0x0a88,
1802 .enable_mask
= BIT(0),
1803 .hw
.init
= &(struct clk_init_data
){
1804 .name
= "gcc_blsp2_qup3_i2c_apps_clk",
1805 .parent_names
= (const char *[]){
1806 "blsp2_qup3_i2c_apps_clk_src",
1809 .flags
= CLK_SET_RATE_PARENT
,
1810 .ops
= &clk_branch2_ops
,
1815 static struct clk_branch gcc_blsp2_qup3_spi_apps_clk
= {
1818 .enable_reg
= 0x0a84,
1819 .enable_mask
= BIT(0),
1820 .hw
.init
= &(struct clk_init_data
){
1821 .name
= "gcc_blsp2_qup3_spi_apps_clk",
1822 .parent_names
= (const char *[]){
1823 "blsp2_qup3_spi_apps_clk_src",
1826 .flags
= CLK_SET_RATE_PARENT
,
1827 .ops
= &clk_branch2_ops
,
1832 static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk
= {
1835 .enable_reg
= 0x0b08,
1836 .enable_mask
= BIT(0),
1837 .hw
.init
= &(struct clk_init_data
){
1838 .name
= "gcc_blsp2_qup4_i2c_apps_clk",
1839 .parent_names
= (const char *[]){
1840 "blsp2_qup4_i2c_apps_clk_src",
1843 .flags
= CLK_SET_RATE_PARENT
,
1844 .ops
= &clk_branch2_ops
,
1849 static struct clk_branch gcc_blsp2_qup4_spi_apps_clk
= {
1852 .enable_reg
= 0x0b04,
1853 .enable_mask
= BIT(0),
1854 .hw
.init
= &(struct clk_init_data
){
1855 .name
= "gcc_blsp2_qup4_spi_apps_clk",
1856 .parent_names
= (const char *[]){
1857 "blsp2_qup4_spi_apps_clk_src",
1860 .flags
= CLK_SET_RATE_PARENT
,
1861 .ops
= &clk_branch2_ops
,
1866 static struct clk_branch gcc_blsp2_qup5_i2c_apps_clk
= {
1869 .enable_reg
= 0x0b88,
1870 .enable_mask
= BIT(0),
1871 .hw
.init
= &(struct clk_init_data
){
1872 .name
= "gcc_blsp2_qup5_i2c_apps_clk",
1873 .parent_names
= (const char *[]){
1874 "blsp2_qup5_i2c_apps_clk_src",
1877 .flags
= CLK_SET_RATE_PARENT
,
1878 .ops
= &clk_branch2_ops
,
1883 static struct clk_branch gcc_blsp2_qup5_spi_apps_clk
= {
1886 .enable_reg
= 0x0b84,
1887 .enable_mask
= BIT(0),
1888 .hw
.init
= &(struct clk_init_data
){
1889 .name
= "gcc_blsp2_qup5_spi_apps_clk",
1890 .parent_names
= (const char *[]){
1891 "blsp2_qup5_spi_apps_clk_src",
1894 .flags
= CLK_SET_RATE_PARENT
,
1895 .ops
= &clk_branch2_ops
,
1900 static struct clk_branch gcc_blsp2_qup6_i2c_apps_clk
= {
1903 .enable_reg
= 0x0c08,
1904 .enable_mask
= BIT(0),
1905 .hw
.init
= &(struct clk_init_data
){
1906 .name
= "gcc_blsp2_qup6_i2c_apps_clk",
1907 .parent_names
= (const char *[]){
1908 "blsp2_qup6_i2c_apps_clk_src",
1911 .flags
= CLK_SET_RATE_PARENT
,
1912 .ops
= &clk_branch2_ops
,
1917 static struct clk_branch gcc_blsp2_qup6_spi_apps_clk
= {
1920 .enable_reg
= 0x0c04,
1921 .enable_mask
= BIT(0),
1922 .hw
.init
= &(struct clk_init_data
){
1923 .name
= "gcc_blsp2_qup6_spi_apps_clk",
1924 .parent_names
= (const char *[]){
1925 "blsp2_qup6_spi_apps_clk_src",
1928 .flags
= CLK_SET_RATE_PARENT
,
1929 .ops
= &clk_branch2_ops
,
1934 static struct clk_branch gcc_blsp2_uart1_apps_clk
= {
1937 .enable_reg
= 0x09c4,
1938 .enable_mask
= BIT(0),
1939 .hw
.init
= &(struct clk_init_data
){
1940 .name
= "gcc_blsp2_uart1_apps_clk",
1941 .parent_names
= (const char *[]){
1942 "blsp2_uart1_apps_clk_src",
1945 .flags
= CLK_SET_RATE_PARENT
,
1946 .ops
= &clk_branch2_ops
,
1951 static struct clk_branch gcc_blsp2_uart2_apps_clk
= {
1954 .enable_reg
= 0x0a44,
1955 .enable_mask
= BIT(0),
1956 .hw
.init
= &(struct clk_init_data
){
1957 .name
= "gcc_blsp2_uart2_apps_clk",
1958 .parent_names
= (const char *[]){
1959 "blsp2_uart2_apps_clk_src",
1962 .flags
= CLK_SET_RATE_PARENT
,
1963 .ops
= &clk_branch2_ops
,
1968 static struct clk_branch gcc_blsp2_uart3_apps_clk
= {
1971 .enable_reg
= 0x0ac4,
1972 .enable_mask
= BIT(0),
1973 .hw
.init
= &(struct clk_init_data
){
1974 .name
= "gcc_blsp2_uart3_apps_clk",
1975 .parent_names
= (const char *[]){
1976 "blsp2_uart3_apps_clk_src",
1979 .flags
= CLK_SET_RATE_PARENT
,
1980 .ops
= &clk_branch2_ops
,
1985 static struct clk_branch gcc_blsp2_uart4_apps_clk
= {
1988 .enable_reg
= 0x0b44,
1989 .enable_mask
= BIT(0),
1990 .hw
.init
= &(struct clk_init_data
){
1991 .name
= "gcc_blsp2_uart4_apps_clk",
1992 .parent_names
= (const char *[]){
1993 "blsp2_uart4_apps_clk_src",
1996 .flags
= CLK_SET_RATE_PARENT
,
1997 .ops
= &clk_branch2_ops
,
2002 static struct clk_branch gcc_blsp2_uart5_apps_clk
= {
2005 .enable_reg
= 0x0bc4,
2006 .enable_mask
= BIT(0),
2007 .hw
.init
= &(struct clk_init_data
){
2008 .name
= "gcc_blsp2_uart5_apps_clk",
2009 .parent_names
= (const char *[]){
2010 "blsp2_uart5_apps_clk_src",
2013 .flags
= CLK_SET_RATE_PARENT
,
2014 .ops
= &clk_branch2_ops
,
2019 static struct clk_branch gcc_blsp2_uart6_apps_clk
= {
2022 .enable_reg
= 0x0c44,
2023 .enable_mask
= BIT(0),
2024 .hw
.init
= &(struct clk_init_data
){
2025 .name
= "gcc_blsp2_uart6_apps_clk",
2026 .parent_names
= (const char *[]){
2027 "blsp2_uart6_apps_clk_src",
2030 .flags
= CLK_SET_RATE_PARENT
,
2031 .ops
= &clk_branch2_ops
,
2036 static struct clk_branch gcc_boot_rom_ahb_clk
= {
2038 .halt_check
= BRANCH_HALT_VOTED
,
2040 .enable_reg
= 0x1484,
2041 .enable_mask
= BIT(10),
2042 .hw
.init
= &(struct clk_init_data
){
2043 .name
= "gcc_boot_rom_ahb_clk",
2044 .parent_names
= (const char *[]){
2045 "config_noc_clk_src",
2048 .ops
= &clk_branch2_ops
,
2053 static struct clk_branch gcc_ce1_ahb_clk
= {
2055 .halt_check
= BRANCH_HALT_VOTED
,
2057 .enable_reg
= 0x1484,
2058 .enable_mask
= BIT(3),
2059 .hw
.init
= &(struct clk_init_data
){
2060 .name
= "gcc_ce1_ahb_clk",
2061 .parent_names
= (const char *[]){
2062 "config_noc_clk_src",
2065 .ops
= &clk_branch2_ops
,
2070 static struct clk_branch gcc_ce1_axi_clk
= {
2072 .halt_check
= BRANCH_HALT_VOTED
,
2074 .enable_reg
= 0x1484,
2075 .enable_mask
= BIT(4),
2076 .hw
.init
= &(struct clk_init_data
){
2077 .name
= "gcc_ce1_axi_clk",
2078 .parent_names
= (const char *[]){
2079 "system_noc_clk_src",
2082 .ops
= &clk_branch2_ops
,
2087 static struct clk_branch gcc_ce1_clk
= {
2089 .halt_check
= BRANCH_HALT_VOTED
,
2091 .enable_reg
= 0x1484,
2092 .enable_mask
= BIT(5),
2093 .hw
.init
= &(struct clk_init_data
){
2094 .name
= "gcc_ce1_clk",
2095 .parent_names
= (const char *[]){
2099 .flags
= CLK_SET_RATE_PARENT
,
2100 .ops
= &clk_branch2_ops
,
2105 static struct clk_branch gcc_ce2_ahb_clk
= {
2107 .halt_check
= BRANCH_HALT_VOTED
,
2109 .enable_reg
= 0x1484,
2110 .enable_mask
= BIT(0),
2111 .hw
.init
= &(struct clk_init_data
){
2112 .name
= "gcc_ce2_ahb_clk",
2113 .parent_names
= (const char *[]){
2114 "config_noc_clk_src",
2117 .ops
= &clk_branch2_ops
,
2122 static struct clk_branch gcc_ce2_axi_clk
= {
2124 .halt_check
= BRANCH_HALT_VOTED
,
2126 .enable_reg
= 0x1484,
2127 .enable_mask
= BIT(1),
2128 .hw
.init
= &(struct clk_init_data
){
2129 .name
= "gcc_ce2_axi_clk",
2130 .parent_names
= (const char *[]){
2131 "system_noc_clk_src",
2134 .ops
= &clk_branch2_ops
,
2139 static struct clk_branch gcc_ce2_clk
= {
2141 .halt_check
= BRANCH_HALT_VOTED
,
2143 .enable_reg
= 0x1484,
2144 .enable_mask
= BIT(2),
2145 .hw
.init
= &(struct clk_init_data
){
2146 .name
= "gcc_ce2_clk",
2147 .parent_names
= (const char *[]){
2151 .flags
= CLK_SET_RATE_PARENT
,
2152 .ops
= &clk_branch2_ops
,
2157 static struct clk_branch gcc_ce3_ahb_clk
= {
2159 .halt_check
= BRANCH_HALT_VOTED
,
2161 .enable_reg
= 0x1d0c,
2162 .enable_mask
= BIT(0),
2163 .hw
.init
= &(struct clk_init_data
){
2164 .name
= "gcc_ce3_ahb_clk",
2165 .parent_names
= (const char *[]){
2166 "config_noc_clk_src",
2169 .ops
= &clk_branch2_ops
,
2174 static struct clk_branch gcc_ce3_axi_clk
= {
2176 .halt_check
= BRANCH_HALT_VOTED
,
2178 .enable_reg
= 0x1d08,
2179 .enable_mask
= BIT(0),
2180 .hw
.init
= &(struct clk_init_data
){
2181 .name
= "gcc_ce3_axi_clk",
2182 .parent_names
= (const char *[]){
2183 "system_noc_clk_src",
2186 .ops
= &clk_branch2_ops
,
2191 static struct clk_branch gcc_ce3_clk
= {
2193 .halt_check
= BRANCH_HALT_VOTED
,
2195 .enable_reg
= 0x1d04,
2196 .enable_mask
= BIT(0),
2197 .hw
.init
= &(struct clk_init_data
){
2198 .name
= "gcc_ce3_clk",
2199 .parent_names
= (const char *[]){
2203 .flags
= CLK_SET_RATE_PARENT
,
2204 .ops
= &clk_branch2_ops
,
2209 static struct clk_branch gcc_gp1_clk
= {
2212 .enable_reg
= 0x1900,
2213 .enable_mask
= BIT(0),
2214 .hw
.init
= &(struct clk_init_data
){
2215 .name
= "gcc_gp1_clk",
2216 .parent_names
= (const char *[]){
2220 .flags
= CLK_SET_RATE_PARENT
,
2221 .ops
= &clk_branch2_ops
,
2226 static struct clk_branch gcc_gp2_clk
= {
2229 .enable_reg
= 0x1940,
2230 .enable_mask
= BIT(0),
2231 .hw
.init
= &(struct clk_init_data
){
2232 .name
= "gcc_gp2_clk",
2233 .parent_names
= (const char *[]){
2237 .flags
= CLK_SET_RATE_PARENT
,
2238 .ops
= &clk_branch2_ops
,
2243 static struct clk_branch gcc_gp3_clk
= {
2246 .enable_reg
= 0x1980,
2247 .enable_mask
= BIT(0),
2248 .hw
.init
= &(struct clk_init_data
){
2249 .name
= "gcc_gp3_clk",
2250 .parent_names
= (const char *[]){
2254 .flags
= CLK_SET_RATE_PARENT
,
2255 .ops
= &clk_branch2_ops
,
2260 static struct clk_branch gcc_ocmem_noc_cfg_ahb_clk
= {
2263 .enable_reg
= 0x0248,
2264 .enable_mask
= BIT(0),
2265 .hw
.init
= &(struct clk_init_data
){
2266 .name
= "gcc_ocmem_noc_cfg_ahb_clk",
2267 .parent_names
= (const char *[]){
2268 "config_noc_clk_src",
2271 .ops
= &clk_branch2_ops
,
2276 static struct clk_branch gcc_pcie_0_aux_clk
= {
2279 .enable_reg
= 0x1b10,
2280 .enable_mask
= BIT(0),
2281 .hw
.init
= &(struct clk_init_data
){
2282 .name
= "gcc_pcie_0_aux_clk",
2283 .parent_names
= (const char *[]){
2284 "pcie_0_aux_clk_src",
2287 .flags
= CLK_SET_RATE_PARENT
,
2288 .ops
= &clk_branch2_ops
,
2293 static struct clk_branch gcc_pcie_0_cfg_ahb_clk
= {
2296 .enable_reg
= 0x1b0c,
2297 .enable_mask
= BIT(0),
2298 .hw
.init
= &(struct clk_init_data
){
2299 .name
= "gcc_pcie_0_cfg_ahb_clk",
2300 .parent_names
= (const char *[]){
2301 "config_noc_clk_src",
2304 .flags
= CLK_SET_RATE_PARENT
,
2305 .ops
= &clk_branch2_ops
,
2310 static struct clk_branch gcc_pcie_0_mstr_axi_clk
= {
2313 .enable_reg
= 0x1b08,
2314 .enable_mask
= BIT(0),
2315 .hw
.init
= &(struct clk_init_data
){
2316 .name
= "gcc_pcie_0_mstr_axi_clk",
2317 .parent_names
= (const char *[]){
2318 "config_noc_clk_src",
2321 .flags
= CLK_SET_RATE_PARENT
,
2322 .ops
= &clk_branch2_ops
,
2327 static struct clk_branch gcc_pcie_0_pipe_clk
= {
2330 .enable_reg
= 0x1b14,
2331 .enable_mask
= BIT(0),
2332 .hw
.init
= &(struct clk_init_data
){
2333 .name
= "gcc_pcie_0_pipe_clk",
2334 .parent_names
= (const char *[]){
2335 "pcie_0_pipe_clk_src",
2338 .flags
= CLK_SET_RATE_PARENT
,
2339 .ops
= &clk_branch2_ops
,
2344 static struct clk_branch gcc_pcie_0_slv_axi_clk
= {
2347 .enable_reg
= 0x1b04,
2348 .enable_mask
= BIT(0),
2349 .hw
.init
= &(struct clk_init_data
){
2350 .name
= "gcc_pcie_0_slv_axi_clk",
2351 .parent_names
= (const char *[]){
2352 "config_noc_clk_src",
2355 .flags
= CLK_SET_RATE_PARENT
,
2356 .ops
= &clk_branch2_ops
,
2361 static struct clk_branch gcc_pcie_1_aux_clk
= {
2364 .enable_reg
= 0x1b90,
2365 .enable_mask
= BIT(0),
2366 .hw
.init
= &(struct clk_init_data
){
2367 .name
= "gcc_pcie_1_aux_clk",
2368 .parent_names
= (const char *[]){
2369 "pcie_1_aux_clk_src",
2372 .flags
= CLK_SET_RATE_PARENT
,
2373 .ops
= &clk_branch2_ops
,
2378 static struct clk_branch gcc_pcie_1_cfg_ahb_clk
= {
2381 .enable_reg
= 0x1b8c,
2382 .enable_mask
= BIT(0),
2383 .hw
.init
= &(struct clk_init_data
){
2384 .name
= "gcc_pcie_1_cfg_ahb_clk",
2385 .parent_names
= (const char *[]){
2386 "config_noc_clk_src",
2389 .flags
= CLK_SET_RATE_PARENT
,
2390 .ops
= &clk_branch2_ops
,
2395 static struct clk_branch gcc_pcie_1_mstr_axi_clk
= {
2398 .enable_reg
= 0x1b88,
2399 .enable_mask
= BIT(0),
2400 .hw
.init
= &(struct clk_init_data
){
2401 .name
= "gcc_pcie_1_mstr_axi_clk",
2402 .parent_names
= (const char *[]){
2403 "config_noc_clk_src",
2406 .flags
= CLK_SET_RATE_PARENT
,
2407 .ops
= &clk_branch2_ops
,
2412 static struct clk_branch gcc_pcie_1_pipe_clk
= {
2415 .enable_reg
= 0x1b94,
2416 .enable_mask
= BIT(0),
2417 .hw
.init
= &(struct clk_init_data
){
2418 .name
= "gcc_pcie_1_pipe_clk",
2419 .parent_names
= (const char *[]){
2420 "pcie_1_pipe_clk_src",
2423 .flags
= CLK_SET_RATE_PARENT
,
2424 .ops
= &clk_branch2_ops
,
2429 static struct clk_branch gcc_pcie_1_slv_axi_clk
= {
2432 .enable_reg
= 0x1b84,
2433 .enable_mask
= BIT(0),
2434 .hw
.init
= &(struct clk_init_data
){
2435 .name
= "gcc_pcie_1_slv_axi_clk",
2436 .parent_names
= (const char *[]){
2437 "config_noc_clk_src",
2440 .flags
= CLK_SET_RATE_PARENT
,
2441 .ops
= &clk_branch2_ops
,
2446 static struct clk_branch gcc_pdm2_clk
= {
2449 .enable_reg
= 0x0ccc,
2450 .enable_mask
= BIT(0),
2451 .hw
.init
= &(struct clk_init_data
){
2452 .name
= "gcc_pdm2_clk",
2453 .parent_names
= (const char *[]){
2457 .flags
= CLK_SET_RATE_PARENT
,
2458 .ops
= &clk_branch2_ops
,
2463 static struct clk_branch gcc_pdm_ahb_clk
= {
2466 .enable_reg
= 0x0cc4,
2467 .enable_mask
= BIT(0),
2468 .hw
.init
= &(struct clk_init_data
){
2469 .name
= "gcc_pdm_ahb_clk",
2470 .parent_names
= (const char *[]){
2471 "periph_noc_clk_src",
2474 .ops
= &clk_branch2_ops
,
2479 static struct clk_branch gcc_periph_noc_usb_hsic_ahb_clk
= {
2482 .enable_reg
= 0x01a4,
2483 .enable_mask
= BIT(0),
2484 .hw
.init
= &(struct clk_init_data
){
2485 .name
= "gcc_periph_noc_usb_hsic_ahb_clk",
2486 .parent_names
= (const char *[]){
2487 "usb_hsic_ahb_clk_src",
2490 .flags
= CLK_SET_RATE_PARENT
,
2491 .ops
= &clk_branch2_ops
,
2496 static struct clk_branch gcc_prng_ahb_clk
= {
2498 .halt_check
= BRANCH_HALT_VOTED
,
2500 .enable_reg
= 0x1484,
2501 .enable_mask
= BIT(13),
2502 .hw
.init
= &(struct clk_init_data
){
2503 .name
= "gcc_prng_ahb_clk",
2504 .parent_names
= (const char *[]){
2505 "periph_noc_clk_src",
2508 .ops
= &clk_branch2_ops
,
2513 static struct clk_branch gcc_sata_asic0_clk
= {
2516 .enable_reg
= 0x1c54,
2517 .enable_mask
= BIT(0),
2518 .hw
.init
= &(struct clk_init_data
){
2519 .name
= "gcc_sata_asic0_clk",
2520 .parent_names
= (const char *[]){
2521 "sata_asic0_clk_src",
2524 .flags
= CLK_SET_RATE_PARENT
,
2525 .ops
= &clk_branch2_ops
,
2530 static struct clk_branch gcc_sata_axi_clk
= {
2533 .enable_reg
= 0x1c44,
2534 .enable_mask
= BIT(0),
2535 .hw
.init
= &(struct clk_init_data
){
2536 .name
= "gcc_sata_axi_clk",
2537 .parent_names
= (const char *[]){
2538 "config_noc_clk_src",
2541 .flags
= CLK_SET_RATE_PARENT
,
2542 .ops
= &clk_branch2_ops
,
2547 static struct clk_branch gcc_sata_cfg_ahb_clk
= {
2550 .enable_reg
= 0x1c48,
2551 .enable_mask
= BIT(0),
2552 .hw
.init
= &(struct clk_init_data
){
2553 .name
= "gcc_sata_cfg_ahb_clk",
2554 .parent_names
= (const char *[]){
2555 "config_noc_clk_src",
2558 .flags
= CLK_SET_RATE_PARENT
,
2559 .ops
= &clk_branch2_ops
,
2564 static struct clk_branch gcc_sata_pmalive_clk
= {
2567 .enable_reg
= 0x1c50,
2568 .enable_mask
= BIT(0),
2569 .hw
.init
= &(struct clk_init_data
){
2570 .name
= "gcc_sata_pmalive_clk",
2571 .parent_names
= (const char *[]){
2572 "sata_pmalive_clk_src",
2575 .flags
= CLK_SET_RATE_PARENT
,
2576 .ops
= &clk_branch2_ops
,
2581 static struct clk_branch gcc_sata_rx_clk
= {
2584 .enable_reg
= 0x1c58,
2585 .enable_mask
= BIT(0),
2586 .hw
.init
= &(struct clk_init_data
){
2587 .name
= "gcc_sata_rx_clk",
2588 .parent_names
= (const char *[]){
2592 .flags
= CLK_SET_RATE_PARENT
,
2593 .ops
= &clk_branch2_ops
,
2598 static struct clk_branch gcc_sata_rx_oob_clk
= {
2601 .enable_reg
= 0x1c4c,
2602 .enable_mask
= BIT(0),
2603 .hw
.init
= &(struct clk_init_data
){
2604 .name
= "gcc_sata_rx_oob_clk",
2605 .parent_names
= (const char *[]){
2606 "sata_rx_oob_clk_src",
2609 .flags
= CLK_SET_RATE_PARENT
,
2610 .ops
= &clk_branch2_ops
,
2615 static struct clk_branch gcc_sdcc1_ahb_clk
= {
2618 .enable_reg
= 0x04c8,
2619 .enable_mask
= BIT(0),
2620 .hw
.init
= &(struct clk_init_data
){
2621 .name
= "gcc_sdcc1_ahb_clk",
2622 .parent_names
= (const char *[]){
2623 "periph_noc_clk_src",
2626 .ops
= &clk_branch2_ops
,
2631 static struct clk_branch gcc_sdcc1_apps_clk
= {
2634 .enable_reg
= 0x04c4,
2635 .enable_mask
= BIT(0),
2636 .hw
.init
= &(struct clk_init_data
){
2637 .name
= "gcc_sdcc1_apps_clk",
2638 .parent_names
= (const char *[]){
2639 "sdcc1_apps_clk_src",
2642 .flags
= CLK_SET_RATE_PARENT
,
2643 .ops
= &clk_branch2_ops
,
2648 static struct clk_branch gcc_sdcc1_cdccal_ff_clk
= {
2651 .enable_reg
= 0x04e8,
2652 .enable_mask
= BIT(0),
2653 .hw
.init
= &(struct clk_init_data
){
2654 .name
= "gcc_sdcc1_cdccal_ff_clk",
2655 .parent_names
= (const char *[]){
2659 .ops
= &clk_branch2_ops
,
2664 static struct clk_branch gcc_sdcc1_cdccal_sleep_clk
= {
2667 .enable_reg
= 0x04e4,
2668 .enable_mask
= BIT(0),
2669 .hw
.init
= &(struct clk_init_data
){
2670 .name
= "gcc_sdcc1_cdccal_sleep_clk",
2671 .parent_names
= (const char *[]){
2675 .ops
= &clk_branch2_ops
,
2680 static struct clk_branch gcc_sdcc2_ahb_clk
= {
2683 .enable_reg
= 0x0508,
2684 .enable_mask
= BIT(0),
2685 .hw
.init
= &(struct clk_init_data
){
2686 .name
= "gcc_sdcc2_ahb_clk",
2687 .parent_names
= (const char *[]){
2688 "periph_noc_clk_src",
2691 .ops
= &clk_branch2_ops
,
2696 static struct clk_branch gcc_sdcc2_apps_clk
= {
2699 .enable_reg
= 0x0504,
2700 .enable_mask
= BIT(0),
2701 .hw
.init
= &(struct clk_init_data
){
2702 .name
= "gcc_sdcc2_apps_clk",
2703 .parent_names
= (const char *[]){
2704 "sdcc2_apps_clk_src",
2707 .flags
= CLK_SET_RATE_PARENT
,
2708 .ops
= &clk_branch2_ops
,
2713 static struct clk_branch gcc_sdcc3_ahb_clk
= {
2716 .enable_reg
= 0x0548,
2717 .enable_mask
= BIT(0),
2718 .hw
.init
= &(struct clk_init_data
){
2719 .name
= "gcc_sdcc3_ahb_clk",
2720 .parent_names
= (const char *[]){
2721 "periph_noc_clk_src",
2724 .ops
= &clk_branch2_ops
,
2729 static struct clk_branch gcc_sdcc3_apps_clk
= {
2732 .enable_reg
= 0x0544,
2733 .enable_mask
= BIT(0),
2734 .hw
.init
= &(struct clk_init_data
){
2735 .name
= "gcc_sdcc3_apps_clk",
2736 .parent_names
= (const char *[]){
2737 "sdcc3_apps_clk_src",
2740 .flags
= CLK_SET_RATE_PARENT
,
2741 .ops
= &clk_branch2_ops
,
2746 static struct clk_branch gcc_sdcc4_ahb_clk
= {
2749 .enable_reg
= 0x0588,
2750 .enable_mask
= BIT(0),
2751 .hw
.init
= &(struct clk_init_data
){
2752 .name
= "gcc_sdcc4_ahb_clk",
2753 .parent_names
= (const char *[]){
2754 "periph_noc_clk_src",
2757 .ops
= &clk_branch2_ops
,
2762 static struct clk_branch gcc_sdcc4_apps_clk
= {
2765 .enable_reg
= 0x0584,
2766 .enable_mask
= BIT(0),
2767 .hw
.init
= &(struct clk_init_data
){
2768 .name
= "gcc_sdcc4_apps_clk",
2769 .parent_names
= (const char *[]){
2770 "sdcc4_apps_clk_src",
2773 .flags
= CLK_SET_RATE_PARENT
,
2774 .ops
= &clk_branch2_ops
,
2779 static struct clk_branch gcc_sys_noc_ufs_axi_clk
= {
2782 .enable_reg
= 0x013c,
2783 .enable_mask
= BIT(0),
2784 .hw
.init
= &(struct clk_init_data
){
2785 .name
= "gcc_sys_noc_ufs_axi_clk",
2786 .parent_names
= (const char *[]){
2790 .flags
= CLK_SET_RATE_PARENT
,
2791 .ops
= &clk_branch2_ops
,
2796 static struct clk_branch gcc_sys_noc_usb3_axi_clk
= {
2799 .enable_reg
= 0x0108,
2800 .enable_mask
= BIT(0),
2801 .hw
.init
= &(struct clk_init_data
){
2802 .name
= "gcc_sys_noc_usb3_axi_clk",
2803 .parent_names
= (const char *[]){
2804 "usb30_master_clk_src",
2807 .flags
= CLK_SET_RATE_PARENT
,
2808 .ops
= &clk_branch2_ops
,
2813 static struct clk_branch gcc_sys_noc_usb3_sec_axi_clk
= {
2816 .enable_reg
= 0x0138,
2817 .enable_mask
= BIT(0),
2818 .hw
.init
= &(struct clk_init_data
){
2819 .name
= "gcc_sys_noc_usb3_sec_axi_clk",
2820 .parent_names
= (const char *[]){
2821 "usb30_sec_master_clk_src",
2824 .flags
= CLK_SET_RATE_PARENT
,
2825 .ops
= &clk_branch2_ops
,
2830 static struct clk_branch gcc_tsif_ahb_clk
= {
2833 .enable_reg
= 0x0d84,
2834 .enable_mask
= BIT(0),
2835 .hw
.init
= &(struct clk_init_data
){
2836 .name
= "gcc_tsif_ahb_clk",
2837 .parent_names
= (const char *[]){
2838 "periph_noc_clk_src",
2841 .ops
= &clk_branch2_ops
,
2846 static struct clk_branch gcc_tsif_inactivity_timers_clk
= {
2849 .enable_reg
= 0x0d8c,
2850 .enable_mask
= BIT(0),
2851 .hw
.init
= &(struct clk_init_data
){
2852 .name
= "gcc_tsif_inactivity_timers_clk",
2853 .parent_names
= (const char *[]){
2857 .flags
= CLK_SET_RATE_PARENT
,
2858 .ops
= &clk_branch2_ops
,
2863 static struct clk_branch gcc_tsif_ref_clk
= {
2866 .enable_reg
= 0x0d88,
2867 .enable_mask
= BIT(0),
2868 .hw
.init
= &(struct clk_init_data
){
2869 .name
= "gcc_tsif_ref_clk",
2870 .parent_names
= (const char *[]){
2874 .flags
= CLK_SET_RATE_PARENT
,
2875 .ops
= &clk_branch2_ops
,
2880 static struct clk_branch gcc_ufs_ahb_clk
= {
2883 .enable_reg
= 0x1d48,
2884 .enable_mask
= BIT(0),
2885 .hw
.init
= &(struct clk_init_data
){
2886 .name
= "gcc_ufs_ahb_clk",
2887 .parent_names
= (const char *[]){
2888 "config_noc_clk_src",
2891 .flags
= CLK_SET_RATE_PARENT
,
2892 .ops
= &clk_branch2_ops
,
2897 static struct clk_branch gcc_ufs_axi_clk
= {
2900 .enable_reg
= 0x1d44,
2901 .enable_mask
= BIT(0),
2902 .hw
.init
= &(struct clk_init_data
){
2903 .name
= "gcc_ufs_axi_clk",
2904 .parent_names
= (const char *[]){
2908 .flags
= CLK_SET_RATE_PARENT
,
2909 .ops
= &clk_branch2_ops
,
2914 static struct clk_branch gcc_ufs_rx_cfg_clk
= {
2917 .enable_reg
= 0x1d50,
2918 .enable_mask
= BIT(0),
2919 .hw
.init
= &(struct clk_init_data
){
2920 .name
= "gcc_ufs_rx_cfg_clk",
2921 .parent_names
= (const char *[]){
2925 .flags
= CLK_SET_RATE_PARENT
,
2926 .ops
= &clk_branch2_ops
,
2931 static struct clk_branch gcc_ufs_rx_symbol_0_clk
= {
2934 .enable_reg
= 0x1d5c,
2935 .enable_mask
= BIT(0),
2936 .hw
.init
= &(struct clk_init_data
){
2937 .name
= "gcc_ufs_rx_symbol_0_clk",
2938 .parent_names
= (const char *[]){
2939 "ufs_rx_symbol_0_clk_src",
2942 .flags
= CLK_SET_RATE_PARENT
,
2943 .ops
= &clk_branch2_ops
,
2948 static struct clk_branch gcc_ufs_rx_symbol_1_clk
= {
2951 .enable_reg
= 0x1d60,
2952 .enable_mask
= BIT(0),
2953 .hw
.init
= &(struct clk_init_data
){
2954 .name
= "gcc_ufs_rx_symbol_1_clk",
2955 .parent_names
= (const char *[]){
2956 "ufs_rx_symbol_1_clk_src",
2959 .flags
= CLK_SET_RATE_PARENT
,
2960 .ops
= &clk_branch2_ops
,
2965 static struct clk_branch gcc_ufs_tx_cfg_clk
= {
2968 .enable_reg
= 0x1d4c,
2969 .enable_mask
= BIT(0),
2970 .hw
.init
= &(struct clk_init_data
){
2971 .name
= "gcc_ufs_tx_cfg_clk",
2972 .parent_names
= (const char *[]){
2976 .flags
= CLK_SET_RATE_PARENT
,
2977 .ops
= &clk_branch2_ops
,
2982 static struct clk_branch gcc_ufs_tx_symbol_0_clk
= {
2985 .enable_reg
= 0x1d54,
2986 .enable_mask
= BIT(0),
2987 .hw
.init
= &(struct clk_init_data
){
2988 .name
= "gcc_ufs_tx_symbol_0_clk",
2989 .parent_names
= (const char *[]){
2990 "ufs_tx_symbol_0_clk_src",
2993 .flags
= CLK_SET_RATE_PARENT
,
2994 .ops
= &clk_branch2_ops
,
2999 static struct clk_branch gcc_ufs_tx_symbol_1_clk
= {
3002 .enable_reg
= 0x1d58,
3003 .enable_mask
= BIT(0),
3004 .hw
.init
= &(struct clk_init_data
){
3005 .name
= "gcc_ufs_tx_symbol_1_clk",
3006 .parent_names
= (const char *[]){
3007 "ufs_tx_symbol_1_clk_src",
3010 .flags
= CLK_SET_RATE_PARENT
,
3011 .ops
= &clk_branch2_ops
,
3016 static struct clk_branch gcc_usb2a_phy_sleep_clk
= {
3019 .enable_reg
= 0x04ac,
3020 .enable_mask
= BIT(0),
3021 .hw
.init
= &(struct clk_init_data
){
3022 .name
= "gcc_usb2a_phy_sleep_clk",
3023 .parent_names
= (const char *[]){
3027 .ops
= &clk_branch2_ops
,
3032 static struct clk_branch gcc_usb2b_phy_sleep_clk
= {
3035 .enable_reg
= 0x04b4,
3036 .enable_mask
= BIT(0),
3037 .hw
.init
= &(struct clk_init_data
){
3038 .name
= "gcc_usb2b_phy_sleep_clk",
3039 .parent_names
= (const char *[]){
3043 .ops
= &clk_branch2_ops
,
3048 static struct clk_branch gcc_usb30_master_clk
= {
3051 .enable_reg
= 0x03c8,
3052 .enable_mask
= BIT(0),
3053 .hw
.init
= &(struct clk_init_data
){
3054 .name
= "gcc_usb30_master_clk",
3055 .parent_names
= (const char *[]){
3056 "usb30_master_clk_src",
3059 .flags
= CLK_SET_RATE_PARENT
,
3060 .ops
= &clk_branch2_ops
,
3065 static struct clk_branch gcc_usb30_sec_master_clk
= {
3068 .enable_reg
= 0x1bc8,
3069 .enable_mask
= BIT(0),
3070 .hw
.init
= &(struct clk_init_data
){
3071 .name
= "gcc_usb30_sec_master_clk",
3072 .parent_names
= (const char *[]){
3073 "usb30_sec_master_clk_src",
3076 .flags
= CLK_SET_RATE_PARENT
,
3077 .ops
= &clk_branch2_ops
,
3082 static struct clk_branch gcc_usb30_mock_utmi_clk
= {
3085 .enable_reg
= 0x03d0,
3086 .enable_mask
= BIT(0),
3087 .hw
.init
= &(struct clk_init_data
){
3088 .name
= "gcc_usb30_mock_utmi_clk",
3089 .parent_names
= (const char *[]){
3090 "usb30_mock_utmi_clk_src",
3093 .flags
= CLK_SET_RATE_PARENT
,
3094 .ops
= &clk_branch2_ops
,
3099 static struct clk_branch gcc_usb30_sleep_clk
= {
3102 .enable_reg
= 0x03cc,
3103 .enable_mask
= BIT(0),
3104 .hw
.init
= &(struct clk_init_data
){
3105 .name
= "gcc_usb30_sleep_clk",
3106 .parent_names
= (const char *[]){
3110 .ops
= &clk_branch2_ops
,
3115 static struct clk_branch gcc_usb_hs_ahb_clk
= {
3118 .enable_reg
= 0x0488,
3119 .enable_mask
= BIT(0),
3120 .hw
.init
= &(struct clk_init_data
){
3121 .name
= "gcc_usb_hs_ahb_clk",
3122 .parent_names
= (const char *[]){
3123 "periph_noc_clk_src",
3126 .ops
= &clk_branch2_ops
,
3131 static struct clk_branch gcc_usb_hs_inactivity_timers_clk
= {
3134 .enable_reg
= 0x048c,
3135 .enable_mask
= BIT(0),
3136 .hw
.init
= &(struct clk_init_data
){
3137 .name
= "gcc_usb_hs_inactivity_timers_clk",
3138 .parent_names
= (const char *[]){
3142 .flags
= CLK_SET_RATE_PARENT
,
3143 .ops
= &clk_branch2_ops
,
3148 static struct clk_branch gcc_usb_hs_system_clk
= {
3151 .enable_reg
= 0x0484,
3152 .enable_mask
= BIT(0),
3153 .hw
.init
= &(struct clk_init_data
){
3154 .name
= "gcc_usb_hs_system_clk",
3155 .parent_names
= (const char *[]){
3156 "usb_hs_system_clk_src",
3159 .flags
= CLK_SET_RATE_PARENT
,
3160 .ops
= &clk_branch2_ops
,
3165 static struct clk_branch gcc_usb_hsic_ahb_clk
= {
3168 .enable_reg
= 0x0408,
3169 .enable_mask
= BIT(0),
3170 .hw
.init
= &(struct clk_init_data
){
3171 .name
= "gcc_usb_hsic_ahb_clk",
3172 .parent_names
= (const char *[]){
3173 "periph_noc_clk_src",
3176 .ops
= &clk_branch2_ops
,
3181 static struct clk_branch gcc_usb_hsic_clk
= {
3184 .enable_reg
= 0x0410,
3185 .enable_mask
= BIT(0),
3186 .hw
.init
= &(struct clk_init_data
){
3187 .name
= "gcc_usb_hsic_clk",
3188 .parent_names
= (const char *[]){
3192 .flags
= CLK_SET_RATE_PARENT
,
3193 .ops
= &clk_branch2_ops
,
3198 static struct clk_branch gcc_usb_hsic_io_cal_clk
= {
3201 .enable_reg
= 0x0414,
3202 .enable_mask
= BIT(0),
3203 .hw
.init
= &(struct clk_init_data
){
3204 .name
= "gcc_usb_hsic_io_cal_clk",
3205 .parent_names
= (const char *[]){
3206 "usb_hsic_io_cal_clk_src",
3209 .flags
= CLK_SET_RATE_PARENT
,
3210 .ops
= &clk_branch2_ops
,
3215 static struct clk_branch gcc_usb_hsic_io_cal_sleep_clk
= {
3218 .enable_reg
= 0x0418,
3219 .enable_mask
= BIT(0),
3220 .hw
.init
= &(struct clk_init_data
){
3221 .name
= "gcc_usb_hsic_io_cal_sleep_clk",
3222 .parent_names
= (const char *[]){
3226 .ops
= &clk_branch2_ops
,
3231 static struct clk_branch gcc_usb_hsic_system_clk
= {
3234 .enable_reg
= 0x040c,
3235 .enable_mask
= BIT(0),
3236 .hw
.init
= &(struct clk_init_data
){
3237 .name
= "gcc_usb_hsic_system_clk",
3238 .parent_names
= (const char *[]){
3239 "usb_hsic_system_clk_src",
3242 .flags
= CLK_SET_RATE_PARENT
,
3243 .ops
= &clk_branch2_ops
,
3248 static struct gdsc usb_hs_hsic_gdsc
= {
3251 .name
= "usb_hs_hsic",
3253 .pwrsts
= PWRSTS_OFF_ON
,
3256 static struct gdsc pcie0_gdsc
= {
3261 .pwrsts
= PWRSTS_OFF_ON
,
3264 static struct gdsc pcie1_gdsc
= {
3269 .pwrsts
= PWRSTS_OFF_ON
,
3272 static struct gdsc usb30_gdsc
= {
3277 .pwrsts
= PWRSTS_OFF_ON
,
3280 static struct clk_regmap
*gcc_apq8084_clocks
[] = {
3281 [GPLL0
] = &gpll0
.clkr
,
3282 [GPLL0_VOTE
] = &gpll0_vote
,
3283 [GPLL1
] = &gpll1
.clkr
,
3284 [GPLL1_VOTE
] = &gpll1_vote
,
3285 [GPLL4
] = &gpll4
.clkr
,
3286 [GPLL4_VOTE
] = &gpll4_vote
,
3287 [CONFIG_NOC_CLK_SRC
] = &config_noc_clk_src
.clkr
,
3288 [PERIPH_NOC_CLK_SRC
] = &periph_noc_clk_src
.clkr
,
3289 [SYSTEM_NOC_CLK_SRC
] = &system_noc_clk_src
.clkr
,
3290 [UFS_AXI_CLK_SRC
] = &ufs_axi_clk_src
.clkr
,
3291 [USB30_MASTER_CLK_SRC
] = &usb30_master_clk_src
.clkr
,
3292 [USB30_SEC_MASTER_CLK_SRC
] = &usb30_sec_master_clk_src
.clkr
,
3293 [USB_HSIC_AHB_CLK_SRC
] = &usb_hsic_ahb_clk_src
.clkr
,
3294 [BLSP1_QUP1_I2C_APPS_CLK_SRC
] = &blsp1_qup1_i2c_apps_clk_src
.clkr
,
3295 [BLSP1_QUP1_SPI_APPS_CLK_SRC
] = &blsp1_qup1_spi_apps_clk_src
.clkr
,
3296 [BLSP1_QUP2_I2C_APPS_CLK_SRC
] = &blsp1_qup2_i2c_apps_clk_src
.clkr
,
3297 [BLSP1_QUP2_SPI_APPS_CLK_SRC
] = &blsp1_qup2_spi_apps_clk_src
.clkr
,
3298 [BLSP1_QUP3_I2C_APPS_CLK_SRC
] = &blsp1_qup3_i2c_apps_clk_src
.clkr
,
3299 [BLSP1_QUP3_SPI_APPS_CLK_SRC
] = &blsp1_qup3_spi_apps_clk_src
.clkr
,
3300 [BLSP1_QUP4_I2C_APPS_CLK_SRC
] = &blsp1_qup4_i2c_apps_clk_src
.clkr
,
3301 [BLSP1_QUP4_SPI_APPS_CLK_SRC
] = &blsp1_qup4_spi_apps_clk_src
.clkr
,
3302 [BLSP1_QUP5_I2C_APPS_CLK_SRC
] = &blsp1_qup5_i2c_apps_clk_src
.clkr
,
3303 [BLSP1_QUP5_SPI_APPS_CLK_SRC
] = &blsp1_qup5_spi_apps_clk_src
.clkr
,
3304 [BLSP1_QUP6_I2C_APPS_CLK_SRC
] = &blsp1_qup6_i2c_apps_clk_src
.clkr
,
3305 [BLSP1_QUP6_SPI_APPS_CLK_SRC
] = &blsp1_qup6_spi_apps_clk_src
.clkr
,
3306 [BLSP1_UART1_APPS_CLK_SRC
] = &blsp1_uart1_apps_clk_src
.clkr
,
3307 [BLSP1_UART2_APPS_CLK_SRC
] = &blsp1_uart2_apps_clk_src
.clkr
,
3308 [BLSP1_UART3_APPS_CLK_SRC
] = &blsp1_uart3_apps_clk_src
.clkr
,
3309 [BLSP1_UART4_APPS_CLK_SRC
] = &blsp1_uart4_apps_clk_src
.clkr
,
3310 [BLSP1_UART5_APPS_CLK_SRC
] = &blsp1_uart5_apps_clk_src
.clkr
,
3311 [BLSP1_UART6_APPS_CLK_SRC
] = &blsp1_uart6_apps_clk_src
.clkr
,
3312 [BLSP2_QUP1_I2C_APPS_CLK_SRC
] = &blsp2_qup1_i2c_apps_clk_src
.clkr
,
3313 [BLSP2_QUP1_SPI_APPS_CLK_SRC
] = &blsp2_qup1_spi_apps_clk_src
.clkr
,
3314 [BLSP2_QUP2_I2C_APPS_CLK_SRC
] = &blsp2_qup2_i2c_apps_clk_src
.clkr
,
3315 [BLSP2_QUP2_SPI_APPS_CLK_SRC
] = &blsp2_qup2_spi_apps_clk_src
.clkr
,
3316 [BLSP2_QUP3_I2C_APPS_CLK_SRC
] = &blsp2_qup3_i2c_apps_clk_src
.clkr
,
3317 [BLSP2_QUP3_SPI_APPS_CLK_SRC
] = &blsp2_qup3_spi_apps_clk_src
.clkr
,
3318 [BLSP2_QUP4_I2C_APPS_CLK_SRC
] = &blsp2_qup4_i2c_apps_clk_src
.clkr
,
3319 [BLSP2_QUP4_SPI_APPS_CLK_SRC
] = &blsp2_qup4_spi_apps_clk_src
.clkr
,
3320 [BLSP2_QUP5_I2C_APPS_CLK_SRC
] = &blsp2_qup5_i2c_apps_clk_src
.clkr
,
3321 [BLSP2_QUP5_SPI_APPS_CLK_SRC
] = &blsp2_qup5_spi_apps_clk_src
.clkr
,
3322 [BLSP2_QUP6_I2C_APPS_CLK_SRC
] = &blsp2_qup6_i2c_apps_clk_src
.clkr
,
3323 [BLSP2_QUP6_SPI_APPS_CLK_SRC
] = &blsp2_qup6_spi_apps_clk_src
.clkr
,
3324 [BLSP2_UART1_APPS_CLK_SRC
] = &blsp2_uart1_apps_clk_src
.clkr
,
3325 [BLSP2_UART2_APPS_CLK_SRC
] = &blsp2_uart2_apps_clk_src
.clkr
,
3326 [BLSP2_UART3_APPS_CLK_SRC
] = &blsp2_uart3_apps_clk_src
.clkr
,
3327 [BLSP2_UART4_APPS_CLK_SRC
] = &blsp2_uart4_apps_clk_src
.clkr
,
3328 [BLSP2_UART5_APPS_CLK_SRC
] = &blsp2_uart5_apps_clk_src
.clkr
,
3329 [BLSP2_UART6_APPS_CLK_SRC
] = &blsp2_uart6_apps_clk_src
.clkr
,
3330 [CE1_CLK_SRC
] = &ce1_clk_src
.clkr
,
3331 [CE2_CLK_SRC
] = &ce2_clk_src
.clkr
,
3332 [CE3_CLK_SRC
] = &ce3_clk_src
.clkr
,
3333 [GP1_CLK_SRC
] = &gp1_clk_src
.clkr
,
3334 [GP2_CLK_SRC
] = &gp2_clk_src
.clkr
,
3335 [GP3_CLK_SRC
] = &gp3_clk_src
.clkr
,
3336 [PCIE_0_AUX_CLK_SRC
] = &pcie_0_aux_clk_src
.clkr
,
3337 [PCIE_0_PIPE_CLK_SRC
] = &pcie_0_pipe_clk_src
.clkr
,
3338 [PCIE_1_AUX_CLK_SRC
] = &pcie_1_aux_clk_src
.clkr
,
3339 [PCIE_1_PIPE_CLK_SRC
] = &pcie_1_pipe_clk_src
.clkr
,
3340 [PDM2_CLK_SRC
] = &pdm2_clk_src
.clkr
,
3341 [SATA_ASIC0_CLK_SRC
] = &sata_asic0_clk_src
.clkr
,
3342 [SATA_PMALIVE_CLK_SRC
] = &sata_pmalive_clk_src
.clkr
,
3343 [SATA_RX_CLK_SRC
] = &sata_rx_clk_src
.clkr
,
3344 [SATA_RX_OOB_CLK_SRC
] = &sata_rx_oob_clk_src
.clkr
,
3345 [SDCC1_APPS_CLK_SRC
] = &sdcc1_apps_clk_src
.clkr
,
3346 [SDCC2_APPS_CLK_SRC
] = &sdcc2_apps_clk_src
.clkr
,
3347 [SDCC3_APPS_CLK_SRC
] = &sdcc3_apps_clk_src
.clkr
,
3348 [SDCC4_APPS_CLK_SRC
] = &sdcc4_apps_clk_src
.clkr
,
3349 [TSIF_REF_CLK_SRC
] = &tsif_ref_clk_src
.clkr
,
3350 [USB30_MOCK_UTMI_CLK_SRC
] = &usb30_mock_utmi_clk_src
.clkr
,
3351 [USB30_SEC_MOCK_UTMI_CLK_SRC
] = &usb30_sec_mock_utmi_clk_src
.clkr
,
3352 [USB_HS_SYSTEM_CLK_SRC
] = &usb_hs_system_clk_src
.clkr
,
3353 [USB_HSIC_CLK_SRC
] = &usb_hsic_clk_src
.clkr
,
3354 [USB_HSIC_IO_CAL_CLK_SRC
] = &usb_hsic_io_cal_clk_src
.clkr
,
3355 [USB_HSIC_MOCK_UTMI_CLK_SRC
] = &usb_hsic_mock_utmi_clk_src
.clkr
,
3356 [USB_HSIC_SYSTEM_CLK_SRC
] = &usb_hsic_system_clk_src
.clkr
,
3357 [GCC_BAM_DMA_AHB_CLK
] = &gcc_bam_dma_ahb_clk
.clkr
,
3358 [GCC_BLSP1_AHB_CLK
] = &gcc_blsp1_ahb_clk
.clkr
,
3359 [GCC_BLSP1_QUP1_I2C_APPS_CLK
] = &gcc_blsp1_qup1_i2c_apps_clk
.clkr
,
3360 [GCC_BLSP1_QUP1_SPI_APPS_CLK
] = &gcc_blsp1_qup1_spi_apps_clk
.clkr
,
3361 [GCC_BLSP1_QUP2_I2C_APPS_CLK
] = &gcc_blsp1_qup2_i2c_apps_clk
.clkr
,
3362 [GCC_BLSP1_QUP2_SPI_APPS_CLK
] = &gcc_blsp1_qup2_spi_apps_clk
.clkr
,
3363 [GCC_BLSP1_QUP3_I2C_APPS_CLK
] = &gcc_blsp1_qup3_i2c_apps_clk
.clkr
,
3364 [GCC_BLSP1_QUP3_SPI_APPS_CLK
] = &gcc_blsp1_qup3_spi_apps_clk
.clkr
,
3365 [GCC_BLSP1_QUP4_I2C_APPS_CLK
] = &gcc_blsp1_qup4_i2c_apps_clk
.clkr
,
3366 [GCC_BLSP1_QUP4_SPI_APPS_CLK
] = &gcc_blsp1_qup4_spi_apps_clk
.clkr
,
3367 [GCC_BLSP1_QUP5_I2C_APPS_CLK
] = &gcc_blsp1_qup5_i2c_apps_clk
.clkr
,
3368 [GCC_BLSP1_QUP5_SPI_APPS_CLK
] = &gcc_blsp1_qup5_spi_apps_clk
.clkr
,
3369 [GCC_BLSP1_QUP6_I2C_APPS_CLK
] = &gcc_blsp1_qup6_i2c_apps_clk
.clkr
,
3370 [GCC_BLSP1_QUP6_SPI_APPS_CLK
] = &gcc_blsp1_qup6_spi_apps_clk
.clkr
,
3371 [GCC_BLSP1_UART1_APPS_CLK
] = &gcc_blsp1_uart1_apps_clk
.clkr
,
3372 [GCC_BLSP1_UART2_APPS_CLK
] = &gcc_blsp1_uart2_apps_clk
.clkr
,
3373 [GCC_BLSP1_UART3_APPS_CLK
] = &gcc_blsp1_uart3_apps_clk
.clkr
,
3374 [GCC_BLSP1_UART4_APPS_CLK
] = &gcc_blsp1_uart4_apps_clk
.clkr
,
3375 [GCC_BLSP1_UART5_APPS_CLK
] = &gcc_blsp1_uart5_apps_clk
.clkr
,
3376 [GCC_BLSP1_UART6_APPS_CLK
] = &gcc_blsp1_uart6_apps_clk
.clkr
,
3377 [GCC_BLSP2_AHB_CLK
] = &gcc_blsp2_ahb_clk
.clkr
,
3378 [GCC_BLSP2_QUP1_I2C_APPS_CLK
] = &gcc_blsp2_qup1_i2c_apps_clk
.clkr
,
3379 [GCC_BLSP2_QUP1_SPI_APPS_CLK
] = &gcc_blsp2_qup1_spi_apps_clk
.clkr
,
3380 [GCC_BLSP2_QUP2_I2C_APPS_CLK
] = &gcc_blsp2_qup2_i2c_apps_clk
.clkr
,
3381 [GCC_BLSP2_QUP2_SPI_APPS_CLK
] = &gcc_blsp2_qup2_spi_apps_clk
.clkr
,
3382 [GCC_BLSP2_QUP3_I2C_APPS_CLK
] = &gcc_blsp2_qup3_i2c_apps_clk
.clkr
,
3383 [GCC_BLSP2_QUP3_SPI_APPS_CLK
] = &gcc_blsp2_qup3_spi_apps_clk
.clkr
,
3384 [GCC_BLSP2_QUP4_I2C_APPS_CLK
] = &gcc_blsp2_qup4_i2c_apps_clk
.clkr
,
3385 [GCC_BLSP2_QUP4_SPI_APPS_CLK
] = &gcc_blsp2_qup4_spi_apps_clk
.clkr
,
3386 [GCC_BLSP2_QUP5_I2C_APPS_CLK
] = &gcc_blsp2_qup5_i2c_apps_clk
.clkr
,
3387 [GCC_BLSP2_QUP5_SPI_APPS_CLK
] = &gcc_blsp2_qup5_spi_apps_clk
.clkr
,
3388 [GCC_BLSP2_QUP6_I2C_APPS_CLK
] = &gcc_blsp2_qup6_i2c_apps_clk
.clkr
,
3389 [GCC_BLSP2_QUP6_SPI_APPS_CLK
] = &gcc_blsp2_qup6_spi_apps_clk
.clkr
,
3390 [GCC_BLSP2_UART1_APPS_CLK
] = &gcc_blsp2_uart1_apps_clk
.clkr
,
3391 [GCC_BLSP2_UART2_APPS_CLK
] = &gcc_blsp2_uart2_apps_clk
.clkr
,
3392 [GCC_BLSP2_UART3_APPS_CLK
] = &gcc_blsp2_uart3_apps_clk
.clkr
,
3393 [GCC_BLSP2_UART4_APPS_CLK
] = &gcc_blsp2_uart4_apps_clk
.clkr
,
3394 [GCC_BLSP2_UART5_APPS_CLK
] = &gcc_blsp2_uart5_apps_clk
.clkr
,
3395 [GCC_BLSP2_UART6_APPS_CLK
] = &gcc_blsp2_uart6_apps_clk
.clkr
,
3396 [GCC_BOOT_ROM_AHB_CLK
] = &gcc_boot_rom_ahb_clk
.clkr
,
3397 [GCC_CE1_AHB_CLK
] = &gcc_ce1_ahb_clk
.clkr
,
3398 [GCC_CE1_AXI_CLK
] = &gcc_ce1_axi_clk
.clkr
,
3399 [GCC_CE1_CLK
] = &gcc_ce1_clk
.clkr
,
3400 [GCC_CE2_AHB_CLK
] = &gcc_ce2_ahb_clk
.clkr
,
3401 [GCC_CE2_AXI_CLK
] = &gcc_ce2_axi_clk
.clkr
,
3402 [GCC_CE2_CLK
] = &gcc_ce2_clk
.clkr
,
3403 [GCC_CE3_AHB_CLK
] = &gcc_ce3_ahb_clk
.clkr
,
3404 [GCC_CE3_AXI_CLK
] = &gcc_ce3_axi_clk
.clkr
,
3405 [GCC_CE3_CLK
] = &gcc_ce3_clk
.clkr
,
3406 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
3407 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
3408 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
3409 [GCC_OCMEM_NOC_CFG_AHB_CLK
] = &gcc_ocmem_noc_cfg_ahb_clk
.clkr
,
3410 [GCC_PCIE_0_AUX_CLK
] = &gcc_pcie_0_aux_clk
.clkr
,
3411 [GCC_PCIE_0_CFG_AHB_CLK
] = &gcc_pcie_0_cfg_ahb_clk
.clkr
,
3412 [GCC_PCIE_0_MSTR_AXI_CLK
] = &gcc_pcie_0_mstr_axi_clk
.clkr
,
3413 [GCC_PCIE_0_PIPE_CLK
] = &gcc_pcie_0_pipe_clk
.clkr
,
3414 [GCC_PCIE_0_SLV_AXI_CLK
] = &gcc_pcie_0_slv_axi_clk
.clkr
,
3415 [GCC_PCIE_1_AUX_CLK
] = &gcc_pcie_1_aux_clk
.clkr
,
3416 [GCC_PCIE_1_CFG_AHB_CLK
] = &gcc_pcie_1_cfg_ahb_clk
.clkr
,
3417 [GCC_PCIE_1_MSTR_AXI_CLK
] = &gcc_pcie_1_mstr_axi_clk
.clkr
,
3418 [GCC_PCIE_1_PIPE_CLK
] = &gcc_pcie_1_pipe_clk
.clkr
,
3419 [GCC_PCIE_1_SLV_AXI_CLK
] = &gcc_pcie_1_slv_axi_clk
.clkr
,
3420 [GCC_PDM2_CLK
] = &gcc_pdm2_clk
.clkr
,
3421 [GCC_PDM_AHB_CLK
] = &gcc_pdm_ahb_clk
.clkr
,
3422 [GCC_PERIPH_NOC_USB_HSIC_AHB_CLK
] = &gcc_periph_noc_usb_hsic_ahb_clk
.clkr
,
3423 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
3424 [GCC_SATA_ASIC0_CLK
] = &gcc_sata_asic0_clk
.clkr
,
3425 [GCC_SATA_AXI_CLK
] = &gcc_sata_axi_clk
.clkr
,
3426 [GCC_SATA_CFG_AHB_CLK
] = &gcc_sata_cfg_ahb_clk
.clkr
,
3427 [GCC_SATA_PMALIVE_CLK
] = &gcc_sata_pmalive_clk
.clkr
,
3428 [GCC_SATA_RX_CLK
] = &gcc_sata_rx_clk
.clkr
,
3429 [GCC_SATA_RX_OOB_CLK
] = &gcc_sata_rx_oob_clk
.clkr
,
3430 [GCC_SDCC1_AHB_CLK
] = &gcc_sdcc1_ahb_clk
.clkr
,
3431 [GCC_SDCC1_APPS_CLK
] = &gcc_sdcc1_apps_clk
.clkr
,
3432 [GCC_SDCC1_CDCCAL_FF_CLK
] = &gcc_sdcc1_cdccal_ff_clk
.clkr
,
3433 [GCC_SDCC1_CDCCAL_SLEEP_CLK
] = &gcc_sdcc1_cdccal_sleep_clk
.clkr
,
3434 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
3435 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
3436 [GCC_SDCC3_AHB_CLK
] = &gcc_sdcc3_ahb_clk
.clkr
,
3437 [GCC_SDCC3_APPS_CLK
] = &gcc_sdcc3_apps_clk
.clkr
,
3438 [GCC_SDCC4_AHB_CLK
] = &gcc_sdcc4_ahb_clk
.clkr
,
3439 [GCC_SDCC4_APPS_CLK
] = &gcc_sdcc4_apps_clk
.clkr
,
3440 [GCC_SYS_NOC_UFS_AXI_CLK
] = &gcc_sys_noc_ufs_axi_clk
.clkr
,
3441 [GCC_SYS_NOC_USB3_AXI_CLK
] = &gcc_sys_noc_usb3_axi_clk
.clkr
,
3442 [GCC_SYS_NOC_USB3_SEC_AXI_CLK
] = &gcc_sys_noc_usb3_sec_axi_clk
.clkr
,
3443 [GCC_TSIF_AHB_CLK
] = &gcc_tsif_ahb_clk
.clkr
,
3444 [GCC_TSIF_INACTIVITY_TIMERS_CLK
] = &gcc_tsif_inactivity_timers_clk
.clkr
,
3445 [GCC_TSIF_REF_CLK
] = &gcc_tsif_ref_clk
.clkr
,
3446 [GCC_UFS_AHB_CLK
] = &gcc_ufs_ahb_clk
.clkr
,
3447 [GCC_UFS_AXI_CLK
] = &gcc_ufs_axi_clk
.clkr
,
3448 [GCC_UFS_RX_CFG_CLK
] = &gcc_ufs_rx_cfg_clk
.clkr
,
3449 [GCC_UFS_RX_SYMBOL_0_CLK
] = &gcc_ufs_rx_symbol_0_clk
.clkr
,
3450 [GCC_UFS_RX_SYMBOL_1_CLK
] = &gcc_ufs_rx_symbol_1_clk
.clkr
,
3451 [GCC_UFS_TX_CFG_CLK
] = &gcc_ufs_tx_cfg_clk
.clkr
,
3452 [GCC_UFS_TX_SYMBOL_0_CLK
] = &gcc_ufs_tx_symbol_0_clk
.clkr
,
3453 [GCC_UFS_TX_SYMBOL_1_CLK
] = &gcc_ufs_tx_symbol_1_clk
.clkr
,
3454 [GCC_USB2A_PHY_SLEEP_CLK
] = &gcc_usb2a_phy_sleep_clk
.clkr
,
3455 [GCC_USB2B_PHY_SLEEP_CLK
] = &gcc_usb2b_phy_sleep_clk
.clkr
,
3456 [GCC_USB30_MASTER_CLK
] = &gcc_usb30_master_clk
.clkr
,
3457 [GCC_USB30_MOCK_UTMI_CLK
] = &gcc_usb30_mock_utmi_clk
.clkr
,
3458 [GCC_USB30_SLEEP_CLK
] = &gcc_usb30_sleep_clk
.clkr
,
3459 [GCC_USB30_SEC_MASTER_CLK
] = &gcc_usb30_sec_master_clk
.clkr
,
3460 [GCC_USB30_SEC_MOCK_UTMI_CLK
] = &gcc_usb30_sec_mock_utmi_clk
.clkr
,
3461 [GCC_USB30_SEC_SLEEP_CLK
] = &gcc_usb30_sec_sleep_clk
.clkr
,
3462 [GCC_USB_HS_AHB_CLK
] = &gcc_usb_hs_ahb_clk
.clkr
,
3463 [GCC_USB_HS_INACTIVITY_TIMERS_CLK
] = &gcc_usb_hs_inactivity_timers_clk
.clkr
,
3464 [GCC_USB_HS_SYSTEM_CLK
] = &gcc_usb_hs_system_clk
.clkr
,
3465 [GCC_USB_HSIC_AHB_CLK
] = &gcc_usb_hsic_ahb_clk
.clkr
,
3466 [GCC_USB_HSIC_CLK
] = &gcc_usb_hsic_clk
.clkr
,
3467 [GCC_USB_HSIC_IO_CAL_CLK
] = &gcc_usb_hsic_io_cal_clk
.clkr
,
3468 [GCC_USB_HSIC_IO_CAL_SLEEP_CLK
] = &gcc_usb_hsic_io_cal_sleep_clk
.clkr
,
3469 [GCC_USB_HSIC_MOCK_UTMI_CLK
] = &gcc_usb_hsic_mock_utmi_clk
.clkr
,
3470 [GCC_USB_HSIC_SYSTEM_CLK
] = &gcc_usb_hsic_system_clk
.clkr
,
3473 static struct gdsc
*gcc_apq8084_gdscs
[] = {
3474 [USB_HS_HSIC_GDSC
] = &usb_hs_hsic_gdsc
,
3475 [PCIE0_GDSC
] = &pcie0_gdsc
,
3476 [PCIE1_GDSC
] = &pcie1_gdsc
,
3477 [USB30_GDSC
] = &usb30_gdsc
,
3480 static const struct qcom_reset_map gcc_apq8084_resets
[] = {
3481 [GCC_SYSTEM_NOC_BCR
] = { 0x0100 },
3482 [GCC_CONFIG_NOC_BCR
] = { 0x0140 },
3483 [GCC_PERIPH_NOC_BCR
] = { 0x0180 },
3484 [GCC_IMEM_BCR
] = { 0x0200 },
3485 [GCC_MMSS_BCR
] = { 0x0240 },
3486 [GCC_QDSS_BCR
] = { 0x0300 },
3487 [GCC_USB_30_BCR
] = { 0x03c0 },
3488 [GCC_USB3_PHY_BCR
] = { 0x03fc },
3489 [GCC_USB_HS_HSIC_BCR
] = { 0x0400 },
3490 [GCC_USB_HS_BCR
] = { 0x0480 },
3491 [GCC_USB2A_PHY_BCR
] = { 0x04a8 },
3492 [GCC_USB2B_PHY_BCR
] = { 0x04b0 },
3493 [GCC_SDCC1_BCR
] = { 0x04c0 },
3494 [GCC_SDCC2_BCR
] = { 0x0500 },
3495 [GCC_SDCC3_BCR
] = { 0x0540 },
3496 [GCC_SDCC4_BCR
] = { 0x0580 },
3497 [GCC_BLSP1_BCR
] = { 0x05c0 },
3498 [GCC_BLSP1_QUP1_BCR
] = { 0x0640 },
3499 [GCC_BLSP1_UART1_BCR
] = { 0x0680 },
3500 [GCC_BLSP1_QUP2_BCR
] = { 0x06c0 },
3501 [GCC_BLSP1_UART2_BCR
] = { 0x0700 },
3502 [GCC_BLSP1_QUP3_BCR
] = { 0x0740 },
3503 [GCC_BLSP1_UART3_BCR
] = { 0x0780 },
3504 [GCC_BLSP1_QUP4_BCR
] = { 0x07c0 },
3505 [GCC_BLSP1_UART4_BCR
] = { 0x0800 },
3506 [GCC_BLSP1_QUP5_BCR
] = { 0x0840 },
3507 [GCC_BLSP1_UART5_BCR
] = { 0x0880 },
3508 [GCC_BLSP1_QUP6_BCR
] = { 0x08c0 },
3509 [GCC_BLSP1_UART6_BCR
] = { 0x0900 },
3510 [GCC_BLSP2_BCR
] = { 0x0940 },
3511 [GCC_BLSP2_QUP1_BCR
] = { 0x0980 },
3512 [GCC_BLSP2_UART1_BCR
] = { 0x09c0 },
3513 [GCC_BLSP2_QUP2_BCR
] = { 0x0a00 },
3514 [GCC_BLSP2_UART2_BCR
] = { 0x0a40 },
3515 [GCC_BLSP2_QUP3_BCR
] = { 0x0a80 },
3516 [GCC_BLSP2_UART3_BCR
] = { 0x0ac0 },
3517 [GCC_BLSP2_QUP4_BCR
] = { 0x0b00 },
3518 [GCC_BLSP2_UART4_BCR
] = { 0x0b40 },
3519 [GCC_BLSP2_QUP5_BCR
] = { 0x0b80 },
3520 [GCC_BLSP2_UART5_BCR
] = { 0x0bc0 },
3521 [GCC_BLSP2_QUP6_BCR
] = { 0x0c00 },
3522 [GCC_BLSP2_UART6_BCR
] = { 0x0c40 },
3523 [GCC_PDM_BCR
] = { 0x0cc0 },
3524 [GCC_PRNG_BCR
] = { 0x0d00 },
3525 [GCC_BAM_DMA_BCR
] = { 0x0d40 },
3526 [GCC_TSIF_BCR
] = { 0x0d80 },
3527 [GCC_TCSR_BCR
] = { 0x0dc0 },
3528 [GCC_BOOT_ROM_BCR
] = { 0x0e00 },
3529 [GCC_MSG_RAM_BCR
] = { 0x0e40 },
3530 [GCC_TLMM_BCR
] = { 0x0e80 },
3531 [GCC_MPM_BCR
] = { 0x0ec0 },
3532 [GCC_MPM_AHB_RESET
] = { 0x0ec4, 1 },
3533 [GCC_MPM_NON_AHB_RESET
] = { 0x0ec4, 2 },
3534 [GCC_SEC_CTRL_BCR
] = { 0x0f40 },
3535 [GCC_SPMI_BCR
] = { 0x0fc0 },
3536 [GCC_SPDM_BCR
] = { 0x1000 },
3537 [GCC_CE1_BCR
] = { 0x1040 },
3538 [GCC_CE2_BCR
] = { 0x1080 },
3539 [GCC_BIMC_BCR
] = { 0x1100 },
3540 [GCC_SNOC_BUS_TIMEOUT0_BCR
] = { 0x1240 },
3541 [GCC_SNOC_BUS_TIMEOUT2_BCR
] = { 0x1248 },
3542 [GCC_PNOC_BUS_TIMEOUT0_BCR
] = { 0x1280 },
3543 [GCC_PNOC_BUS_TIMEOUT1_BCR
] = { 0x1288 },
3544 [GCC_PNOC_BUS_TIMEOUT2_BCR
] = { 0x1290 },
3545 [GCC_PNOC_BUS_TIMEOUT3_BCR
] = { 0x1298 },
3546 [GCC_PNOC_BUS_TIMEOUT4_BCR
] = { 0x12a0 },
3547 [GCC_CNOC_BUS_TIMEOUT0_BCR
] = { 0x12c0 },
3548 [GCC_CNOC_BUS_TIMEOUT1_BCR
] = { 0x12c8 },
3549 [GCC_CNOC_BUS_TIMEOUT2_BCR
] = { 0x12d0 },
3550 [GCC_CNOC_BUS_TIMEOUT3_BCR
] = { 0x12d8 },
3551 [GCC_CNOC_BUS_TIMEOUT4_BCR
] = { 0x12e0 },
3552 [GCC_CNOC_BUS_TIMEOUT5_BCR
] = { 0x12e8 },
3553 [GCC_CNOC_BUS_TIMEOUT6_BCR
] = { 0x12f0 },
3554 [GCC_DEHR_BCR
] = { 0x1300 },
3555 [GCC_RBCPR_BCR
] = { 0x1380 },
3556 [GCC_MSS_RESTART
] = { 0x1680 },
3557 [GCC_LPASS_RESTART
] = { 0x16c0 },
3558 [GCC_WCSS_RESTART
] = { 0x1700 },
3559 [GCC_VENUS_RESTART
] = { 0x1740 },
3560 [GCC_COPSS_SMMU_BCR
] = { 0x1a40 },
3561 [GCC_SPSS_BCR
] = { 0x1a80 },
3562 [GCC_PCIE_0_BCR
] = { 0x1ac0 },
3563 [GCC_PCIE_0_PHY_BCR
] = { 0x1b00 },
3564 [GCC_PCIE_1_BCR
] = { 0x1b40 },
3565 [GCC_PCIE_1_PHY_BCR
] = { 0x1b80 },
3566 [GCC_USB_30_SEC_BCR
] = { 0x1bc0 },
3567 [GCC_USB3_SEC_PHY_BCR
] = { 0x1bfc },
3568 [GCC_SATA_BCR
] = { 0x1c40 },
3569 [GCC_CE3_BCR
] = { 0x1d00 },
3570 [GCC_UFS_BCR
] = { 0x1d40 },
3571 [GCC_USB30_PHY_COM_BCR
] = { 0x1e80 },
3574 static const struct regmap_config gcc_apq8084_regmap_config
= {
3578 .max_register
= 0x1fc0,
3582 static const struct qcom_cc_desc gcc_apq8084_desc
= {
3583 .config
= &gcc_apq8084_regmap_config
,
3584 .clks
= gcc_apq8084_clocks
,
3585 .num_clks
= ARRAY_SIZE(gcc_apq8084_clocks
),
3586 .resets
= gcc_apq8084_resets
,
3587 .num_resets
= ARRAY_SIZE(gcc_apq8084_resets
),
3588 .gdscs
= gcc_apq8084_gdscs
,
3589 .num_gdscs
= ARRAY_SIZE(gcc_apq8084_gdscs
),
3592 static const struct of_device_id gcc_apq8084_match_table
[] = {
3593 { .compatible
= "qcom,gcc-apq8084" },
3596 MODULE_DEVICE_TABLE(of
, gcc_apq8084_match_table
);
3598 static int gcc_apq8084_probe(struct platform_device
*pdev
)
3601 struct device
*dev
= &pdev
->dev
;
3603 ret
= qcom_cc_register_board_clk(dev
, "xo_board", "xo", 19200000);
3607 ret
= qcom_cc_register_sleep_clk(dev
);
3611 return qcom_cc_probe(pdev
, &gcc_apq8084_desc
);
3614 static struct platform_driver gcc_apq8084_driver
= {
3615 .probe
= gcc_apq8084_probe
,
3617 .name
= "gcc-apq8084",
3618 .of_match_table
= gcc_apq8084_match_table
,
3622 static int __init
gcc_apq8084_init(void)
3624 return platform_driver_register(&gcc_apq8084_driver
);
3626 core_initcall(gcc_apq8084_init
);
3628 static void __exit
gcc_apq8084_exit(void)
3630 platform_driver_unregister(&gcc_apq8084_driver
);
3632 module_exit(gcc_apq8084_exit
);
3634 MODULE_DESCRIPTION("QCOM GCC APQ8084 Driver");
3635 MODULE_LICENSE("GPL v2");
3636 MODULE_ALIAS("platform:gcc-apq8084");