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/clk-provider.h>
13 #include <linux/regmap.h>
14 #include <linux/reset-controller.h>
16 #include <dt-bindings/clock/qcom,gcc-apq8084.h>
17 #include <dt-bindings/reset/qcom,gcc-apq8084.h>
20 #include "clk-regmap.h"
23 #include "clk-branch.h"
38 static struct clk_pll gpll0
= {
46 .clkr
.hw
.init
= &(struct clk_init_data
){
48 .parent_data
= &(const struct clk_parent_data
){
49 .fw_name
= "xo", .name
= "xo_board",
56 static struct clk_regmap gpll0_vote
= {
58 .enable_mask
= BIT(0),
59 .hw
.init
= &(struct clk_init_data
){
61 .parent_hws
= (const struct clk_hw
*[]){
65 .ops
= &clk_pll_vote_ops
,
69 static struct clk_pll gpll1
= {
77 .clkr
.hw
.init
= &(struct clk_init_data
){
79 .parent_data
= &(const struct clk_parent_data
){
80 .fw_name
= "xo", .name
= "xo_board",
87 static struct clk_regmap gpll1_vote
= {
89 .enable_mask
= BIT(1),
90 .hw
.init
= &(struct clk_init_data
){
92 .parent_hws
= (const struct clk_hw
*[]){
96 .ops
= &clk_pll_vote_ops
,
100 static struct clk_pll gpll4
= {
104 .config_reg
= 0x1dd4,
106 .status_reg
= 0x1ddc,
108 .clkr
.hw
.init
= &(struct clk_init_data
){
110 .parent_data
= &(const struct clk_parent_data
){
111 .fw_name
= "xo", .name
= "xo_board",
118 static struct clk_regmap gpll4_vote
= {
119 .enable_reg
= 0x1480,
120 .enable_mask
= BIT(4),
121 .hw
.init
= &(struct clk_init_data
){
122 .name
= "gpll4_vote",
123 .parent_hws
= (const struct clk_hw
*[]){
127 .ops
= &clk_pll_vote_ops
,
131 static const struct parent_map gcc_xo_gpll0_map
[] = {
136 static const struct clk_parent_data gcc_xo_gpll0
[] = {
137 { .fw_name
= "xo", .name
= "xo_board" },
138 { .hw
= &gpll0_vote
.hw
},
141 static const struct parent_map gcc_xo_gpll0_gpll4_map
[] = {
147 static const struct clk_parent_data gcc_xo_gpll0_gpll4
[] = {
148 { .fw_name
= "xo", .name
= "xo_board" },
149 { .hw
= &gpll0_vote
.hw
},
150 { .hw
= &gpll4_vote
.hw
},
153 static const struct parent_map gcc_xo_sata_asic0_map
[] = {
155 { P_SATA_ASIC0_CLK
, 2 }
158 static const struct clk_parent_data gcc_xo_sata_asic0
[] = {
159 { .fw_name
= "xo", .name
= "xo_board" },
160 { .fw_name
= "sata_asic0_clk", .name
= "sata_asic0_clk" },
163 static const struct parent_map gcc_xo_sata_rx_map
[] = {
168 static const struct clk_parent_data gcc_xo_sata_rx
[] = {
169 { .fw_name
= "xo", .name
= "xo_board" },
170 { .fw_name
= "sata_rx_clk", .name
= "sata_rx_clk" },
173 static const struct parent_map gcc_xo_pcie_map
[] = {
175 { P_PCIE_0_1_PIPE_CLK
, 2 }
178 static const struct clk_parent_data gcc_xo_pcie
[] = {
179 { .fw_name
= "xo", .name
= "xo_board" },
180 { .fw_name
= "pcie_pipe", .name
= "pcie_pipe" },
183 static const struct parent_map gcc_xo_pcie_sleep_map
[] = {
188 static const struct clk_parent_data gcc_xo_pcie_sleep
[] = {
189 { .fw_name
= "xo", .name
= "xo_board" },
190 { .fw_name
= "sleep_clk", .name
= "sleep_clk" },
193 static struct clk_rcg2 config_noc_clk_src
= {
196 .parent_map
= gcc_xo_gpll0_map
,
197 .clkr
.hw
.init
= &(struct clk_init_data
){
198 .name
= "config_noc_clk_src",
199 .parent_data
= gcc_xo_gpll0
,
200 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
201 .ops
= &clk_rcg2_ops
,
205 static struct clk_rcg2 periph_noc_clk_src
= {
208 .parent_map
= gcc_xo_gpll0_map
,
209 .clkr
.hw
.init
= &(struct clk_init_data
){
210 .name
= "periph_noc_clk_src",
211 .parent_data
= gcc_xo_gpll0
,
212 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
213 .ops
= &clk_rcg2_ops
,
217 static struct clk_rcg2 system_noc_clk_src
= {
220 .parent_map
= gcc_xo_gpll0_map
,
221 .clkr
.hw
.init
= &(struct clk_init_data
){
222 .name
= "system_noc_clk_src",
223 .parent_data
= gcc_xo_gpll0
,
224 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
225 .ops
= &clk_rcg2_ops
,
229 static const struct freq_tbl ftbl_gcc_ufs_axi_clk
[] = {
230 F(100000000, P_GPLL0
, 6, 0, 0),
231 F(200000000, P_GPLL0
, 3, 0, 0),
232 F(240000000, P_GPLL0
, 2.5, 0, 0),
236 static struct clk_rcg2 ufs_axi_clk_src
= {
240 .parent_map
= gcc_xo_gpll0_map
,
241 .freq_tbl
= ftbl_gcc_ufs_axi_clk
,
242 .clkr
.hw
.init
= &(struct clk_init_data
){
243 .name
= "ufs_axi_clk_src",
244 .parent_data
= gcc_xo_gpll0
,
245 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
246 .ops
= &clk_rcg2_ops
,
250 static const struct freq_tbl ftbl_gcc_usb30_master_clk
[] = {
251 F(125000000, P_GPLL0
, 1, 5, 24),
255 static struct clk_rcg2 usb30_master_clk_src
= {
259 .parent_map
= gcc_xo_gpll0_map
,
260 .freq_tbl
= ftbl_gcc_usb30_master_clk
,
261 .clkr
.hw
.init
= &(struct clk_init_data
){
262 .name
= "usb30_master_clk_src",
263 .parent_data
= gcc_xo_gpll0
,
264 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
265 .ops
= &clk_rcg2_ops
,
269 static const struct freq_tbl ftbl_gcc_usb30_sec_master_clk
[] = {
270 F(125000000, P_GPLL0
, 1, 5, 24),
274 static struct clk_rcg2 usb30_sec_master_clk_src
= {
278 .parent_map
= gcc_xo_gpll0_map
,
279 .freq_tbl
= ftbl_gcc_usb30_sec_master_clk
,
280 .clkr
.hw
.init
= &(struct clk_init_data
){
281 .name
= "usb30_sec_master_clk_src",
282 .parent_data
= gcc_xo_gpll0
,
283 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
284 .ops
= &clk_rcg2_ops
,
288 static const struct freq_tbl ftbl_gcc_usb30_sec_mock_utmi_clk
[] = {
289 F(125000000, P_GPLL0
, 1, 5, 24),
293 static struct clk_rcg2 usb30_sec_mock_utmi_clk_src
= {
296 .parent_map
= gcc_xo_gpll0_map
,
297 .freq_tbl
= ftbl_gcc_usb30_sec_mock_utmi_clk
,
298 .clkr
.hw
.init
= &(struct clk_init_data
){
299 .name
= "usb30_sec_mock_utmi_clk_src",
300 .parent_data
= gcc_xo_gpll0
,
301 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
302 .ops
= &clk_rcg2_ops
,
306 static struct clk_branch gcc_usb30_sec_mock_utmi_clk
= {
309 .enable_reg
= 0x1bd0,
310 .enable_mask
= BIT(0),
311 .hw
.init
= &(struct clk_init_data
){
312 .name
= "gcc_usb30_sec_mock_utmi_clk",
313 .parent_hws
= (const struct clk_hw
*[]){
314 &usb30_sec_mock_utmi_clk_src
.clkr
.hw
,
317 .flags
= CLK_SET_RATE_PARENT
,
318 .ops
= &clk_branch2_ops
,
323 static struct clk_branch gcc_usb30_sec_sleep_clk
= {
326 .enable_reg
= 0x1bcc,
327 .enable_mask
= BIT(0),
328 .hw
.init
= &(struct clk_init_data
){
329 .name
= "gcc_usb30_sec_sleep_clk",
330 .parent_data
= &(const struct clk_parent_data
){
331 .fw_name
= "sleep_clk", .name
= "sleep_clk",
334 .flags
= CLK_SET_RATE_PARENT
,
335 .ops
= &clk_branch2_ops
,
340 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
[] = {
341 F(19200000, P_XO
, 1, 0, 0),
342 F(50000000, P_GPLL0
, 12, 0, 0),
346 static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src
= {
349 .parent_map
= gcc_xo_gpll0_map
,
350 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
351 .clkr
.hw
.init
= &(struct clk_init_data
){
352 .name
= "blsp1_qup1_i2c_apps_clk_src",
353 .parent_data
= gcc_xo_gpll0
,
354 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
355 .ops
= &clk_rcg2_ops
,
359 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
[] = {
360 F(960000, P_XO
, 10, 1, 2),
361 F(4800000, P_XO
, 4, 0, 0),
362 F(9600000, P_XO
, 2, 0, 0),
363 F(15000000, P_GPLL0
, 10, 1, 4),
364 F(19200000, P_XO
, 1, 0, 0),
365 F(25000000, P_GPLL0
, 12, 1, 2),
366 F(50000000, P_GPLL0
, 12, 0, 0),
370 static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src
= {
374 .parent_map
= gcc_xo_gpll0_map
,
375 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
376 .clkr
.hw
.init
= &(struct clk_init_data
){
377 .name
= "blsp1_qup1_spi_apps_clk_src",
378 .parent_data
= gcc_xo_gpll0
,
379 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
380 .ops
= &clk_rcg2_ops
,
384 static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src
= {
387 .parent_map
= gcc_xo_gpll0_map
,
388 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
389 .clkr
.hw
.init
= &(struct clk_init_data
){
390 .name
= "blsp1_qup2_i2c_apps_clk_src",
391 .parent_data
= gcc_xo_gpll0
,
392 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
393 .ops
= &clk_rcg2_ops
,
397 static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src
= {
401 .parent_map
= gcc_xo_gpll0_map
,
402 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
403 .clkr
.hw
.init
= &(struct clk_init_data
){
404 .name
= "blsp1_qup2_spi_apps_clk_src",
405 .parent_data
= gcc_xo_gpll0
,
406 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
407 .ops
= &clk_rcg2_ops
,
411 static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src
= {
414 .parent_map
= gcc_xo_gpll0_map
,
415 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
416 .clkr
.hw
.init
= &(struct clk_init_data
){
417 .name
= "blsp1_qup3_i2c_apps_clk_src",
418 .parent_data
= gcc_xo_gpll0
,
419 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
420 .ops
= &clk_rcg2_ops
,
424 static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src
= {
428 .parent_map
= gcc_xo_gpll0_map
,
429 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
430 .clkr
.hw
.init
= &(struct clk_init_data
){
431 .name
= "blsp1_qup3_spi_apps_clk_src",
432 .parent_data
= gcc_xo_gpll0
,
433 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
434 .ops
= &clk_rcg2_ops
,
438 static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src
= {
441 .parent_map
= gcc_xo_gpll0_map
,
442 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
443 .clkr
.hw
.init
= &(struct clk_init_data
){
444 .name
= "blsp1_qup4_i2c_apps_clk_src",
445 .parent_data
= gcc_xo_gpll0
,
446 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
447 .ops
= &clk_rcg2_ops
,
451 static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src
= {
455 .parent_map
= gcc_xo_gpll0_map
,
456 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
457 .clkr
.hw
.init
= &(struct clk_init_data
){
458 .name
= "blsp1_qup4_spi_apps_clk_src",
459 .parent_data
= gcc_xo_gpll0
,
460 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
461 .ops
= &clk_rcg2_ops
,
465 static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src
= {
468 .parent_map
= gcc_xo_gpll0_map
,
469 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
470 .clkr
.hw
.init
= &(struct clk_init_data
){
471 .name
= "blsp1_qup5_i2c_apps_clk_src",
472 .parent_data
= gcc_xo_gpll0
,
473 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
474 .ops
= &clk_rcg2_ops
,
478 static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src
= {
482 .parent_map
= gcc_xo_gpll0_map
,
483 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
484 .clkr
.hw
.init
= &(struct clk_init_data
){
485 .name
= "blsp1_qup5_spi_apps_clk_src",
486 .parent_data
= gcc_xo_gpll0
,
487 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
488 .ops
= &clk_rcg2_ops
,
492 static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src
= {
495 .parent_map
= gcc_xo_gpll0_map
,
496 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
497 .clkr
.hw
.init
= &(struct clk_init_data
){
498 .name
= "blsp1_qup6_i2c_apps_clk_src",
499 .parent_data
= gcc_xo_gpll0
,
500 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
501 .ops
= &clk_rcg2_ops
,
505 static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src
= {
509 .parent_map
= gcc_xo_gpll0_map
,
510 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
511 .clkr
.hw
.init
= &(struct clk_init_data
){
512 .name
= "blsp1_qup6_spi_apps_clk_src",
513 .parent_data
= gcc_xo_gpll0
,
514 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
515 .ops
= &clk_rcg2_ops
,
519 static const struct freq_tbl ftbl_gcc_blsp1_2_uart1_6_apps_clk
[] = {
520 F(3686400, P_GPLL0
, 1, 96, 15625),
521 F(7372800, P_GPLL0
, 1, 192, 15625),
522 F(14745600, P_GPLL0
, 1, 384, 15625),
523 F(16000000, P_GPLL0
, 5, 2, 15),
524 F(19200000, P_XO
, 1, 0, 0),
525 F(24000000, P_GPLL0
, 5, 1, 5),
526 F(32000000, P_GPLL0
, 1, 4, 75),
527 F(40000000, P_GPLL0
, 15, 0, 0),
528 F(46400000, P_GPLL0
, 1, 29, 375),
529 F(48000000, P_GPLL0
, 12.5, 0, 0),
530 F(51200000, P_GPLL0
, 1, 32, 375),
531 F(56000000, P_GPLL0
, 1, 7, 75),
532 F(58982400, P_GPLL0
, 1, 1536, 15625),
533 F(60000000, P_GPLL0
, 10, 0, 0),
534 F(63160000, P_GPLL0
, 9.5, 0, 0),
538 static struct clk_rcg2 blsp1_uart1_apps_clk_src
= {
542 .parent_map
= gcc_xo_gpll0_map
,
543 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
544 .clkr
.hw
.init
= &(struct clk_init_data
){
545 .name
= "blsp1_uart1_apps_clk_src",
546 .parent_data
= gcc_xo_gpll0
,
547 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
548 .ops
= &clk_rcg2_ops
,
552 static struct clk_rcg2 blsp1_uart2_apps_clk_src
= {
556 .parent_map
= gcc_xo_gpll0_map
,
557 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
558 .clkr
.hw
.init
= &(struct clk_init_data
){
559 .name
= "blsp1_uart2_apps_clk_src",
560 .parent_data
= gcc_xo_gpll0
,
561 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
562 .ops
= &clk_rcg2_ops
,
566 static struct clk_rcg2 blsp1_uart3_apps_clk_src
= {
570 .parent_map
= gcc_xo_gpll0_map
,
571 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
572 .clkr
.hw
.init
= &(struct clk_init_data
){
573 .name
= "blsp1_uart3_apps_clk_src",
574 .parent_data
= gcc_xo_gpll0
,
575 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
576 .ops
= &clk_rcg2_ops
,
580 static struct clk_rcg2 blsp1_uart4_apps_clk_src
= {
584 .parent_map
= gcc_xo_gpll0_map
,
585 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
586 .clkr
.hw
.init
= &(struct clk_init_data
){
587 .name
= "blsp1_uart4_apps_clk_src",
588 .parent_data
= gcc_xo_gpll0
,
589 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
590 .ops
= &clk_rcg2_ops
,
594 static struct clk_rcg2 blsp1_uart5_apps_clk_src
= {
598 .parent_map
= gcc_xo_gpll0_map
,
599 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
600 .clkr
.hw
.init
= &(struct clk_init_data
){
601 .name
= "blsp1_uart5_apps_clk_src",
602 .parent_data
= gcc_xo_gpll0
,
603 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
604 .ops
= &clk_rcg2_ops
,
608 static struct clk_rcg2 blsp1_uart6_apps_clk_src
= {
612 .parent_map
= gcc_xo_gpll0_map
,
613 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
614 .clkr
.hw
.init
= &(struct clk_init_data
){
615 .name
= "blsp1_uart6_apps_clk_src",
616 .parent_data
= gcc_xo_gpll0
,
617 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
618 .ops
= &clk_rcg2_ops
,
622 static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src
= {
625 .parent_map
= gcc_xo_gpll0_map
,
626 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
627 .clkr
.hw
.init
= &(struct clk_init_data
){
628 .name
= "blsp2_qup1_i2c_apps_clk_src",
629 .parent_data
= gcc_xo_gpll0
,
630 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
631 .ops
= &clk_rcg2_ops
,
635 static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src
= {
639 .parent_map
= gcc_xo_gpll0_map
,
640 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
641 .clkr
.hw
.init
= &(struct clk_init_data
){
642 .name
= "blsp2_qup1_spi_apps_clk_src",
643 .parent_data
= gcc_xo_gpll0
,
644 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
645 .ops
= &clk_rcg2_ops
,
649 static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src
= {
652 .parent_map
= gcc_xo_gpll0_map
,
653 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
654 .clkr
.hw
.init
= &(struct clk_init_data
){
655 .name
= "blsp2_qup2_i2c_apps_clk_src",
656 .parent_data
= gcc_xo_gpll0
,
657 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
658 .ops
= &clk_rcg2_ops
,
662 static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src
= {
666 .parent_map
= gcc_xo_gpll0_map
,
667 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
668 .clkr
.hw
.init
= &(struct clk_init_data
){
669 .name
= "blsp2_qup2_spi_apps_clk_src",
670 .parent_data
= gcc_xo_gpll0
,
671 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
672 .ops
= &clk_rcg2_ops
,
676 static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src
= {
679 .parent_map
= gcc_xo_gpll0_map
,
680 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
681 .clkr
.hw
.init
= &(struct clk_init_data
){
682 .name
= "blsp2_qup3_i2c_apps_clk_src",
683 .parent_data
= gcc_xo_gpll0
,
684 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
685 .ops
= &clk_rcg2_ops
,
689 static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src
= {
693 .parent_map
= gcc_xo_gpll0_map
,
694 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
695 .clkr
.hw
.init
= &(struct clk_init_data
){
696 .name
= "blsp2_qup3_spi_apps_clk_src",
697 .parent_data
= gcc_xo_gpll0
,
698 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
699 .ops
= &clk_rcg2_ops
,
703 static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src
= {
706 .parent_map
= gcc_xo_gpll0_map
,
707 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
708 .clkr
.hw
.init
= &(struct clk_init_data
){
709 .name
= "blsp2_qup4_i2c_apps_clk_src",
710 .parent_data
= gcc_xo_gpll0
,
711 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
712 .ops
= &clk_rcg2_ops
,
716 static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src
= {
720 .parent_map
= gcc_xo_gpll0_map
,
721 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
722 .clkr
.hw
.init
= &(struct clk_init_data
){
723 .name
= "blsp2_qup4_spi_apps_clk_src",
724 .parent_data
= gcc_xo_gpll0
,
725 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
726 .ops
= &clk_rcg2_ops
,
730 static struct clk_rcg2 blsp2_qup5_i2c_apps_clk_src
= {
733 .parent_map
= gcc_xo_gpll0_map
,
734 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
735 .clkr
.hw
.init
= &(struct clk_init_data
){
736 .name
= "blsp2_qup5_i2c_apps_clk_src",
737 .parent_data
= gcc_xo_gpll0
,
738 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
739 .ops
= &clk_rcg2_ops
,
743 static struct clk_rcg2 blsp2_qup5_spi_apps_clk_src
= {
747 .parent_map
= gcc_xo_gpll0_map
,
748 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
749 .clkr
.hw
.init
= &(struct clk_init_data
){
750 .name
= "blsp2_qup5_spi_apps_clk_src",
751 .parent_data
= gcc_xo_gpll0
,
752 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
753 .ops
= &clk_rcg2_ops
,
757 static struct clk_rcg2 blsp2_qup6_i2c_apps_clk_src
= {
760 .parent_map
= gcc_xo_gpll0_map
,
761 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk
,
762 .clkr
.hw
.init
= &(struct clk_init_data
){
763 .name
= "blsp2_qup6_i2c_apps_clk_src",
764 .parent_data
= gcc_xo_gpll0
,
765 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
766 .ops
= &clk_rcg2_ops
,
770 static struct clk_rcg2 blsp2_qup6_spi_apps_clk_src
= {
774 .parent_map
= gcc_xo_gpll0_map
,
775 .freq_tbl
= ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk
,
776 .clkr
.hw
.init
= &(struct clk_init_data
){
777 .name
= "blsp2_qup6_spi_apps_clk_src",
778 .parent_data
= gcc_xo_gpll0
,
779 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
780 .ops
= &clk_rcg2_ops
,
784 static struct clk_rcg2 blsp2_uart1_apps_clk_src
= {
788 .parent_map
= gcc_xo_gpll0_map
,
789 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
790 .clkr
.hw
.init
= &(struct clk_init_data
){
791 .name
= "blsp2_uart1_apps_clk_src",
792 .parent_data
= gcc_xo_gpll0
,
793 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
794 .ops
= &clk_rcg2_ops
,
798 static struct clk_rcg2 blsp2_uart2_apps_clk_src
= {
802 .parent_map
= gcc_xo_gpll0_map
,
803 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
804 .clkr
.hw
.init
= &(struct clk_init_data
){
805 .name
= "blsp2_uart2_apps_clk_src",
806 .parent_data
= gcc_xo_gpll0
,
807 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
808 .ops
= &clk_rcg2_ops
,
812 static struct clk_rcg2 blsp2_uart3_apps_clk_src
= {
816 .parent_map
= gcc_xo_gpll0_map
,
817 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
818 .clkr
.hw
.init
= &(struct clk_init_data
){
819 .name
= "blsp2_uart3_apps_clk_src",
820 .parent_data
= gcc_xo_gpll0
,
821 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
822 .ops
= &clk_rcg2_ops
,
826 static struct clk_rcg2 blsp2_uart4_apps_clk_src
= {
830 .parent_map
= gcc_xo_gpll0_map
,
831 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
832 .clkr
.hw
.init
= &(struct clk_init_data
){
833 .name
= "blsp2_uart4_apps_clk_src",
834 .parent_data
= gcc_xo_gpll0
,
835 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
836 .ops
= &clk_rcg2_ops
,
840 static struct clk_rcg2 blsp2_uart5_apps_clk_src
= {
844 .parent_map
= gcc_xo_gpll0_map
,
845 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
846 .clkr
.hw
.init
= &(struct clk_init_data
){
847 .name
= "blsp2_uart5_apps_clk_src",
848 .parent_data
= gcc_xo_gpll0
,
849 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
850 .ops
= &clk_rcg2_ops
,
854 static struct clk_rcg2 blsp2_uart6_apps_clk_src
= {
858 .parent_map
= gcc_xo_gpll0_map
,
859 .freq_tbl
= ftbl_gcc_blsp1_2_uart1_6_apps_clk
,
860 .clkr
.hw
.init
= &(struct clk_init_data
){
861 .name
= "blsp2_uart6_apps_clk_src",
862 .parent_data
= gcc_xo_gpll0
,
863 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
864 .ops
= &clk_rcg2_ops
,
868 static const struct freq_tbl ftbl_gcc_ce1_clk
[] = {
869 F(50000000, P_GPLL0
, 12, 0, 0),
870 F(85710000, P_GPLL0
, 7, 0, 0),
871 F(100000000, P_GPLL0
, 6, 0, 0),
872 F(171430000, P_GPLL0
, 3.5, 0, 0),
876 static struct clk_rcg2 ce1_clk_src
= {
879 .parent_map
= gcc_xo_gpll0_map
,
880 .freq_tbl
= ftbl_gcc_ce1_clk
,
881 .clkr
.hw
.init
= &(struct clk_init_data
){
882 .name
= "ce1_clk_src",
883 .parent_data
= gcc_xo_gpll0
,
884 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
885 .ops
= &clk_rcg2_ops
,
889 static const struct freq_tbl ftbl_gcc_ce2_clk
[] = {
890 F(50000000, P_GPLL0
, 12, 0, 0),
891 F(85710000, P_GPLL0
, 7, 0, 0),
892 F(100000000, P_GPLL0
, 6, 0, 0),
893 F(171430000, P_GPLL0
, 3.5, 0, 0),
897 static struct clk_rcg2 ce2_clk_src
= {
900 .parent_map
= gcc_xo_gpll0_map
,
901 .freq_tbl
= ftbl_gcc_ce2_clk
,
902 .clkr
.hw
.init
= &(struct clk_init_data
){
903 .name
= "ce2_clk_src",
904 .parent_data
= gcc_xo_gpll0
,
905 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
906 .ops
= &clk_rcg2_ops
,
910 static const struct freq_tbl ftbl_gcc_ce3_clk
[] = {
911 F(50000000, P_GPLL0
, 12, 0, 0),
912 F(85710000, P_GPLL0
, 7, 0, 0),
913 F(100000000, P_GPLL0
, 6, 0, 0),
914 F(171430000, P_GPLL0
, 3.5, 0, 0),
918 static struct clk_rcg2 ce3_clk_src
= {
921 .parent_map
= gcc_xo_gpll0_map
,
922 .freq_tbl
= ftbl_gcc_ce3_clk
,
923 .clkr
.hw
.init
= &(struct clk_init_data
){
924 .name
= "ce3_clk_src",
925 .parent_data
= gcc_xo_gpll0
,
926 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
927 .ops
= &clk_rcg2_ops
,
931 static const struct freq_tbl ftbl_gcc_gp_clk
[] = {
932 F(19200000, P_XO
, 1, 0, 0),
933 F(100000000, P_GPLL0
, 6, 0, 0),
934 F(200000000, P_GPLL0
, 3, 0, 0),
938 static struct clk_rcg2 gp1_clk_src
= {
942 .parent_map
= gcc_xo_gpll0_map
,
943 .freq_tbl
= ftbl_gcc_gp_clk
,
944 .clkr
.hw
.init
= &(struct clk_init_data
){
945 .name
= "gp1_clk_src",
946 .parent_data
= gcc_xo_gpll0
,
947 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
948 .ops
= &clk_rcg2_ops
,
952 static struct clk_rcg2 gp2_clk_src
= {
956 .parent_map
= gcc_xo_gpll0_map
,
957 .freq_tbl
= ftbl_gcc_gp_clk
,
958 .clkr
.hw
.init
= &(struct clk_init_data
){
959 .name
= "gp2_clk_src",
960 .parent_data
= gcc_xo_gpll0
,
961 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
962 .ops
= &clk_rcg2_ops
,
966 static struct clk_rcg2 gp3_clk_src
= {
970 .parent_map
= gcc_xo_gpll0_map
,
971 .freq_tbl
= ftbl_gcc_gp_clk
,
972 .clkr
.hw
.init
= &(struct clk_init_data
){
973 .name
= "gp3_clk_src",
974 .parent_data
= gcc_xo_gpll0
,
975 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
976 .ops
= &clk_rcg2_ops
,
980 static const struct freq_tbl ftbl_gcc_pcie_0_1_aux_clk
[] = {
981 F(1010000, P_XO
, 1, 1, 19),
985 static struct clk_rcg2 pcie_0_aux_clk_src
= {
989 .parent_map
= gcc_xo_pcie_sleep_map
,
990 .freq_tbl
= ftbl_gcc_pcie_0_1_aux_clk
,
991 .clkr
.hw
.init
= &(struct clk_init_data
){
992 .name
= "pcie_0_aux_clk_src",
993 .parent_data
= gcc_xo_pcie_sleep
,
994 .num_parents
= ARRAY_SIZE(gcc_xo_pcie_sleep
),
995 .ops
= &clk_rcg2_ops
,
999 static struct clk_rcg2 pcie_1_aux_clk_src
= {
1003 .parent_map
= gcc_xo_pcie_sleep_map
,
1004 .freq_tbl
= ftbl_gcc_pcie_0_1_aux_clk
,
1005 .clkr
.hw
.init
= &(struct clk_init_data
){
1006 .name
= "pcie_1_aux_clk_src",
1007 .parent_data
= gcc_xo_pcie_sleep
,
1008 .num_parents
= ARRAY_SIZE(gcc_xo_pcie_sleep
),
1009 .ops
= &clk_rcg2_ops
,
1013 static const struct freq_tbl ftbl_gcc_pcie_0_1_pipe_clk
[] = {
1014 F(125000000, P_PCIE_0_1_PIPE_CLK
, 1, 0, 0),
1015 F(250000000, P_PCIE_0_1_PIPE_CLK
, 1, 0, 0),
1019 static struct clk_rcg2 pcie_0_pipe_clk_src
= {
1022 .parent_map
= gcc_xo_pcie_map
,
1023 .freq_tbl
= ftbl_gcc_pcie_0_1_pipe_clk
,
1024 .clkr
.hw
.init
= &(struct clk_init_data
){
1025 .name
= "pcie_0_pipe_clk_src",
1026 .parent_data
= gcc_xo_pcie
,
1027 .num_parents
= ARRAY_SIZE(gcc_xo_pcie
),
1028 .ops
= &clk_rcg2_ops
,
1032 static struct clk_rcg2 pcie_1_pipe_clk_src
= {
1035 .parent_map
= gcc_xo_pcie_map
,
1036 .freq_tbl
= ftbl_gcc_pcie_0_1_pipe_clk
,
1037 .clkr
.hw
.init
= &(struct clk_init_data
){
1038 .name
= "pcie_1_pipe_clk_src",
1039 .parent_data
= gcc_xo_pcie
,
1040 .num_parents
= ARRAY_SIZE(gcc_xo_pcie
),
1041 .ops
= &clk_rcg2_ops
,
1045 static const struct freq_tbl ftbl_gcc_pdm2_clk
[] = {
1046 F(60000000, P_GPLL0
, 10, 0, 0),
1050 static struct clk_rcg2 pdm2_clk_src
= {
1053 .parent_map
= gcc_xo_gpll0_map
,
1054 .freq_tbl
= ftbl_gcc_pdm2_clk
,
1055 .clkr
.hw
.init
= &(struct clk_init_data
){
1056 .name
= "pdm2_clk_src",
1057 .parent_data
= gcc_xo_gpll0
,
1058 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1059 .ops
= &clk_rcg2_ops
,
1063 static const struct freq_tbl ftbl_gcc_sata_asic0_clk
[] = {
1064 F(75000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1065 F(150000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1066 F(300000000, P_SATA_ASIC0_CLK
, 1, 0, 0),
1070 static struct clk_rcg2 sata_asic0_clk_src
= {
1073 .parent_map
= gcc_xo_sata_asic0_map
,
1074 .freq_tbl
= ftbl_gcc_sata_asic0_clk
,
1075 .clkr
.hw
.init
= &(struct clk_init_data
){
1076 .name
= "sata_asic0_clk_src",
1077 .parent_data
= gcc_xo_sata_asic0
,
1078 .num_parents
= ARRAY_SIZE(gcc_xo_sata_asic0
),
1079 .ops
= &clk_rcg2_ops
,
1083 static const struct freq_tbl ftbl_gcc_sata_pmalive_clk
[] = {
1084 F(19200000, P_XO
, 1, 0, 0),
1085 F(50000000, P_GPLL0
, 12, 0, 0),
1086 F(100000000, P_GPLL0
, 6, 0, 0),
1090 static struct clk_rcg2 sata_pmalive_clk_src
= {
1093 .parent_map
= gcc_xo_gpll0_map
,
1094 .freq_tbl
= ftbl_gcc_sata_pmalive_clk
,
1095 .clkr
.hw
.init
= &(struct clk_init_data
){
1096 .name
= "sata_pmalive_clk_src",
1097 .parent_data
= gcc_xo_gpll0
,
1098 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1099 .ops
= &clk_rcg2_ops
,
1103 static const struct freq_tbl ftbl_gcc_sata_rx_clk
[] = {
1104 F(75000000, P_SATA_RX_CLK
, 1, 0, 0),
1105 F(150000000, P_SATA_RX_CLK
, 1, 0, 0),
1106 F(300000000, P_SATA_RX_CLK
, 1, 0, 0),
1110 static struct clk_rcg2 sata_rx_clk_src
= {
1113 .parent_map
= gcc_xo_sata_rx_map
,
1114 .freq_tbl
= ftbl_gcc_sata_rx_clk
,
1115 .clkr
.hw
.init
= &(struct clk_init_data
){
1116 .name
= "sata_rx_clk_src",
1117 .parent_data
= gcc_xo_sata_rx
,
1118 .num_parents
= ARRAY_SIZE(gcc_xo_sata_rx
),
1119 .ops
= &clk_rcg2_ops
,
1123 static const struct freq_tbl ftbl_gcc_sata_rx_oob_clk
[] = {
1124 F(100000000, P_GPLL0
, 6, 0, 0),
1128 static struct clk_rcg2 sata_rx_oob_clk_src
= {
1131 .parent_map
= gcc_xo_gpll0_map
,
1132 .freq_tbl
= ftbl_gcc_sata_rx_oob_clk
,
1133 .clkr
.hw
.init
= &(struct clk_init_data
){
1134 .name
= "sata_rx_oob_clk_src",
1135 .parent_data
= gcc_xo_gpll0
,
1136 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1137 .ops
= &clk_rcg2_ops
,
1141 static const struct freq_tbl ftbl_gcc_sdcc1_4_apps_clk
[] = {
1142 F(144000, P_XO
, 16, 3, 25),
1143 F(400000, P_XO
, 12, 1, 4),
1144 F(20000000, P_GPLL0
, 15, 1, 2),
1145 F(25000000, P_GPLL0
, 12, 1, 2),
1146 F(50000000, P_GPLL0
, 12, 0, 0),
1147 F(100000000, P_GPLL0
, 6, 0, 0),
1148 F(192000000, P_GPLL4
, 4, 0, 0),
1149 F(200000000, P_GPLL0
, 3, 0, 0),
1150 F(384000000, P_GPLL4
, 2, 0, 0),
1154 static struct clk_rcg2 sdcc1_apps_clk_src
= {
1158 .parent_map
= gcc_xo_gpll0_gpll4_map
,
1159 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1160 .clkr
.hw
.init
= &(struct clk_init_data
){
1161 .name
= "sdcc1_apps_clk_src",
1162 .parent_data
= gcc_xo_gpll0_gpll4
,
1163 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0_gpll4
),
1164 .ops
= &clk_rcg2_floor_ops
,
1168 static struct clk_rcg2 sdcc2_apps_clk_src
= {
1172 .parent_map
= gcc_xo_gpll0_map
,
1173 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1174 .clkr
.hw
.init
= &(struct clk_init_data
){
1175 .name
= "sdcc2_apps_clk_src",
1176 .parent_data
= gcc_xo_gpll0
,
1177 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1178 .ops
= &clk_rcg2_floor_ops
,
1182 static struct clk_rcg2 sdcc3_apps_clk_src
= {
1186 .parent_map
= gcc_xo_gpll0_map
,
1187 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1188 .clkr
.hw
.init
= &(struct clk_init_data
){
1189 .name
= "sdcc3_apps_clk_src",
1190 .parent_data
= gcc_xo_gpll0
,
1191 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1192 .ops
= &clk_rcg2_floor_ops
,
1196 static struct clk_rcg2 sdcc4_apps_clk_src
= {
1200 .parent_map
= gcc_xo_gpll0_map
,
1201 .freq_tbl
= ftbl_gcc_sdcc1_4_apps_clk
,
1202 .clkr
.hw
.init
= &(struct clk_init_data
){
1203 .name
= "sdcc4_apps_clk_src",
1204 .parent_data
= gcc_xo_gpll0
,
1205 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1206 .ops
= &clk_rcg2_floor_ops
,
1210 static const struct freq_tbl ftbl_gcc_tsif_ref_clk
[] = {
1211 F(105000, P_XO
, 2, 1, 91),
1215 static struct clk_rcg2 tsif_ref_clk_src
= {
1219 .parent_map
= gcc_xo_gpll0_map
,
1220 .freq_tbl
= ftbl_gcc_tsif_ref_clk
,
1221 .clkr
.hw
.init
= &(struct clk_init_data
){
1222 .name
= "tsif_ref_clk_src",
1223 .parent_data
= gcc_xo_gpll0
,
1224 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1225 .ops
= &clk_rcg2_ops
,
1229 static const struct freq_tbl ftbl_gcc_usb30_mock_utmi_clk
[] = {
1230 F(60000000, P_GPLL0
, 10, 0, 0),
1234 static struct clk_rcg2 usb30_mock_utmi_clk_src
= {
1237 .parent_map
= gcc_xo_gpll0_map
,
1238 .freq_tbl
= ftbl_gcc_usb30_mock_utmi_clk
,
1239 .clkr
.hw
.init
= &(struct clk_init_data
){
1240 .name
= "usb30_mock_utmi_clk_src",
1241 .parent_data
= gcc_xo_gpll0
,
1242 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1243 .ops
= &clk_rcg2_ops
,
1247 static const struct freq_tbl ftbl_gcc_usb_hs_system_clk
[] = {
1248 F(75000000, P_GPLL0
, 8, 0, 0),
1252 static struct clk_rcg2 usb_hs_system_clk_src
= {
1255 .parent_map
= gcc_xo_gpll0_map
,
1256 .freq_tbl
= ftbl_gcc_usb_hs_system_clk
,
1257 .clkr
.hw
.init
= &(struct clk_init_data
){
1258 .name
= "usb_hs_system_clk_src",
1259 .parent_data
= gcc_xo_gpll0
,
1260 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1261 .ops
= &clk_rcg2_ops
,
1265 static const struct freq_tbl ftbl_gcc_usb_hsic_clk
[] = {
1266 F(480000000, P_GPLL1
, 1, 0, 0),
1270 static const struct parent_map usb_hsic_clk_src_map
[] = {
1275 static struct clk_rcg2 usb_hsic_clk_src
= {
1278 .parent_map
= usb_hsic_clk_src_map
,
1279 .freq_tbl
= ftbl_gcc_usb_hsic_clk
,
1280 .clkr
.hw
.init
= &(struct clk_init_data
){
1281 .name
= "usb_hsic_clk_src",
1282 .parent_data
= (const struct clk_parent_data
[]){
1283 { .fw_name
= "xo", .name
= "xo_board" },
1284 { .hw
= &gpll1_vote
.hw
},
1287 .ops
= &clk_rcg2_ops
,
1291 static const struct freq_tbl ftbl_gcc_usb_hsic_ahb_clk_src
[] = {
1292 F(60000000, P_GPLL1
, 8, 0, 0),
1296 static struct clk_rcg2 usb_hsic_ahb_clk_src
= {
1300 .parent_map
= usb_hsic_clk_src_map
,
1301 .freq_tbl
= ftbl_gcc_usb_hsic_ahb_clk_src
,
1302 .clkr
.hw
.init
= &(struct clk_init_data
){
1303 .name
= "usb_hsic_ahb_clk_src",
1304 .parent_data
= (const struct clk_parent_data
[]){
1305 { .fw_name
= "xo", .name
= "xo_board" },
1306 { .hw
= &gpll1_vote
.hw
},
1309 .ops
= &clk_rcg2_ops
,
1313 static const struct freq_tbl ftbl_gcc_usb_hsic_io_cal_clk
[] = {
1314 F(9600000, P_XO
, 2, 0, 0),
1318 static struct clk_rcg2 usb_hsic_io_cal_clk_src
= {
1321 .parent_map
= gcc_xo_gpll0_map
,
1322 .freq_tbl
= ftbl_gcc_usb_hsic_io_cal_clk
,
1323 .clkr
.hw
.init
= &(struct clk_init_data
){
1324 .name
= "usb_hsic_io_cal_clk_src",
1325 .parent_data
= gcc_xo_gpll0
,
1326 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1327 .ops
= &clk_rcg2_ops
,
1331 static const struct freq_tbl ftbl_gcc_usb_hsic_mock_utmi_clk
[] = {
1332 F(60000000, P_GPLL0
, 10, 0, 0),
1336 static struct clk_rcg2 usb_hsic_mock_utmi_clk_src
= {
1339 .parent_map
= gcc_xo_gpll0_map
,
1340 .freq_tbl
= ftbl_gcc_usb_hsic_mock_utmi_clk
,
1341 .clkr
.hw
.init
= &(struct clk_init_data
){
1342 .name
= "usb_hsic_mock_utmi_clk_src",
1343 .parent_data
= gcc_xo_gpll0
,
1344 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1345 .ops
= &clk_rcg2_ops
,
1349 static struct clk_branch gcc_usb_hsic_mock_utmi_clk
= {
1352 .enable_reg
= 0x1f14,
1353 .enable_mask
= BIT(0),
1354 .hw
.init
= &(struct clk_init_data
){
1355 .name
= "gcc_usb_hsic_mock_utmi_clk",
1356 .parent_hws
= (const struct clk_hw
*[]){
1357 &usb_hsic_mock_utmi_clk_src
.clkr
.hw
,
1360 .flags
= CLK_SET_RATE_PARENT
,
1361 .ops
= &clk_branch2_ops
,
1366 static const struct freq_tbl ftbl_gcc_usb_hsic_system_clk
[] = {
1367 F(75000000, P_GPLL0
, 8, 0, 0),
1371 static struct clk_rcg2 usb_hsic_system_clk_src
= {
1374 .parent_map
= gcc_xo_gpll0_map
,
1375 .freq_tbl
= ftbl_gcc_usb_hsic_system_clk
,
1376 .clkr
.hw
.init
= &(struct clk_init_data
){
1377 .name
= "usb_hsic_system_clk_src",
1378 .parent_data
= gcc_xo_gpll0
,
1379 .num_parents
= ARRAY_SIZE(gcc_xo_gpll0
),
1380 .ops
= &clk_rcg2_ops
,
1384 static struct clk_regmap gcc_mmss_gpll0_clk_src
= {
1385 .enable_reg
= 0x1484,
1386 .enable_mask
= BIT(26),
1387 .hw
.init
= &(struct clk_init_data
){
1388 .name
= "mmss_gpll0_vote",
1389 .parent_hws
= (const struct clk_hw
*[]){
1393 .ops
= &clk_branch_simple_ops
,
1397 static struct clk_branch gcc_bam_dma_ahb_clk
= {
1399 .halt_check
= BRANCH_HALT_VOTED
,
1401 .enable_reg
= 0x1484,
1402 .enable_mask
= BIT(12),
1403 .hw
.init
= &(struct clk_init_data
){
1404 .name
= "gcc_bam_dma_ahb_clk",
1405 .parent_hws
= (const struct clk_hw
*[]){
1406 &periph_noc_clk_src
.clkr
.hw
,
1409 .ops
= &clk_branch2_ops
,
1414 static struct clk_branch gcc_blsp1_ahb_clk
= {
1416 .halt_check
= BRANCH_HALT_VOTED
,
1418 .enable_reg
= 0x1484,
1419 .enable_mask
= BIT(17),
1420 .hw
.init
= &(struct clk_init_data
){
1421 .name
= "gcc_blsp1_ahb_clk",
1422 .parent_hws
= (const struct clk_hw
*[]){
1423 &periph_noc_clk_src
.clkr
.hw
,
1426 .ops
= &clk_branch2_ops
,
1431 static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk
= {
1434 .enable_reg
= 0x0648,
1435 .enable_mask
= BIT(0),
1436 .hw
.init
= &(struct clk_init_data
){
1437 .name
= "gcc_blsp1_qup1_i2c_apps_clk",
1438 .parent_hws
= (const struct clk_hw
*[]){
1439 &blsp1_qup1_i2c_apps_clk_src
.clkr
.hw
,
1442 .flags
= CLK_SET_RATE_PARENT
,
1443 .ops
= &clk_branch2_ops
,
1448 static struct clk_branch gcc_blsp1_qup1_spi_apps_clk
= {
1451 .enable_reg
= 0x0644,
1452 .enable_mask
= BIT(0),
1453 .hw
.init
= &(struct clk_init_data
){
1454 .name
= "gcc_blsp1_qup1_spi_apps_clk",
1455 .parent_hws
= (const struct clk_hw
*[]){
1456 &blsp1_qup1_spi_apps_clk_src
.clkr
.hw
,
1459 .flags
= CLK_SET_RATE_PARENT
,
1460 .ops
= &clk_branch2_ops
,
1465 static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk
= {
1468 .enable_reg
= 0x06c8,
1469 .enable_mask
= BIT(0),
1470 .hw
.init
= &(struct clk_init_data
){
1471 .name
= "gcc_blsp1_qup2_i2c_apps_clk",
1472 .parent_hws
= (const struct clk_hw
*[]){
1473 &blsp1_qup2_i2c_apps_clk_src
.clkr
.hw
,
1476 .flags
= CLK_SET_RATE_PARENT
,
1477 .ops
= &clk_branch2_ops
,
1482 static struct clk_branch gcc_blsp1_qup2_spi_apps_clk
= {
1485 .enable_reg
= 0x06c4,
1486 .enable_mask
= BIT(0),
1487 .hw
.init
= &(struct clk_init_data
){
1488 .name
= "gcc_blsp1_qup2_spi_apps_clk",
1489 .parent_hws
= (const struct clk_hw
*[]){
1490 &blsp1_qup2_spi_apps_clk_src
.clkr
.hw
,
1493 .flags
= CLK_SET_RATE_PARENT
,
1494 .ops
= &clk_branch2_ops
,
1499 static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk
= {
1502 .enable_reg
= 0x0748,
1503 .enable_mask
= BIT(0),
1504 .hw
.init
= &(struct clk_init_data
){
1505 .name
= "gcc_blsp1_qup3_i2c_apps_clk",
1506 .parent_hws
= (const struct clk_hw
*[]){
1507 &blsp1_qup3_i2c_apps_clk_src
.clkr
.hw
,
1510 .flags
= CLK_SET_RATE_PARENT
,
1511 .ops
= &clk_branch2_ops
,
1516 static struct clk_branch gcc_blsp1_qup3_spi_apps_clk
= {
1519 .enable_reg
= 0x0744,
1520 .enable_mask
= BIT(0),
1521 .hw
.init
= &(struct clk_init_data
){
1522 .name
= "gcc_blsp1_qup3_spi_apps_clk",
1523 .parent_hws
= (const struct clk_hw
*[]){
1524 &blsp1_qup3_spi_apps_clk_src
.clkr
.hw
,
1527 .flags
= CLK_SET_RATE_PARENT
,
1528 .ops
= &clk_branch2_ops
,
1533 static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk
= {
1536 .enable_reg
= 0x07c8,
1537 .enable_mask
= BIT(0),
1538 .hw
.init
= &(struct clk_init_data
){
1539 .name
= "gcc_blsp1_qup4_i2c_apps_clk",
1540 .parent_hws
= (const struct clk_hw
*[]){
1541 &blsp1_qup4_i2c_apps_clk_src
.clkr
.hw
,
1544 .flags
= CLK_SET_RATE_PARENT
,
1545 .ops
= &clk_branch2_ops
,
1550 static struct clk_branch gcc_blsp1_qup4_spi_apps_clk
= {
1553 .enable_reg
= 0x07c4,
1554 .enable_mask
= BIT(0),
1555 .hw
.init
= &(struct clk_init_data
){
1556 .name
= "gcc_blsp1_qup4_spi_apps_clk",
1557 .parent_hws
= (const struct clk_hw
*[]){
1558 &blsp1_qup4_spi_apps_clk_src
.clkr
.hw
,
1561 .flags
= CLK_SET_RATE_PARENT
,
1562 .ops
= &clk_branch2_ops
,
1567 static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk
= {
1570 .enable_reg
= 0x0848,
1571 .enable_mask
= BIT(0),
1572 .hw
.init
= &(struct clk_init_data
){
1573 .name
= "gcc_blsp1_qup5_i2c_apps_clk",
1574 .parent_hws
= (const struct clk_hw
*[]){
1575 &blsp1_qup5_i2c_apps_clk_src
.clkr
.hw
,
1578 .flags
= CLK_SET_RATE_PARENT
,
1579 .ops
= &clk_branch2_ops
,
1584 static struct clk_branch gcc_blsp1_qup5_spi_apps_clk
= {
1587 .enable_reg
= 0x0844,
1588 .enable_mask
= BIT(0),
1589 .hw
.init
= &(struct clk_init_data
){
1590 .name
= "gcc_blsp1_qup5_spi_apps_clk",
1591 .parent_hws
= (const struct clk_hw
*[]){
1592 &blsp1_qup5_spi_apps_clk_src
.clkr
.hw
,
1595 .flags
= CLK_SET_RATE_PARENT
,
1596 .ops
= &clk_branch2_ops
,
1601 static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk
= {
1604 .enable_reg
= 0x08c8,
1605 .enable_mask
= BIT(0),
1606 .hw
.init
= &(struct clk_init_data
){
1607 .name
= "gcc_blsp1_qup6_i2c_apps_clk",
1608 .parent_hws
= (const struct clk_hw
*[]){
1609 &blsp1_qup6_i2c_apps_clk_src
.clkr
.hw
,
1612 .flags
= CLK_SET_RATE_PARENT
,
1613 .ops
= &clk_branch2_ops
,
1618 static struct clk_branch gcc_blsp1_qup6_spi_apps_clk
= {
1621 .enable_reg
= 0x08c4,
1622 .enable_mask
= BIT(0),
1623 .hw
.init
= &(struct clk_init_data
){
1624 .name
= "gcc_blsp1_qup6_spi_apps_clk",
1625 .parent_hws
= (const struct clk_hw
*[]){
1626 &blsp1_qup6_spi_apps_clk_src
.clkr
.hw
,
1629 .flags
= CLK_SET_RATE_PARENT
,
1630 .ops
= &clk_branch2_ops
,
1635 static struct clk_branch gcc_blsp1_uart1_apps_clk
= {
1638 .enable_reg
= 0x0684,
1639 .enable_mask
= BIT(0),
1640 .hw
.init
= &(struct clk_init_data
){
1641 .name
= "gcc_blsp1_uart1_apps_clk",
1642 .parent_hws
= (const struct clk_hw
*[]){
1643 &blsp1_uart1_apps_clk_src
.clkr
.hw
,
1646 .flags
= CLK_SET_RATE_PARENT
,
1647 .ops
= &clk_branch2_ops
,
1652 static struct clk_branch gcc_blsp1_uart2_apps_clk
= {
1655 .enable_reg
= 0x0704,
1656 .enable_mask
= BIT(0),
1657 .hw
.init
= &(struct clk_init_data
){
1658 .name
= "gcc_blsp1_uart2_apps_clk",
1659 .parent_hws
= (const struct clk_hw
*[]){
1660 &blsp1_uart2_apps_clk_src
.clkr
.hw
,
1663 .flags
= CLK_SET_RATE_PARENT
,
1664 .ops
= &clk_branch2_ops
,
1669 static struct clk_branch gcc_blsp1_uart3_apps_clk
= {
1672 .enable_reg
= 0x0784,
1673 .enable_mask
= BIT(0),
1674 .hw
.init
= &(struct clk_init_data
){
1675 .name
= "gcc_blsp1_uart3_apps_clk",
1676 .parent_hws
= (const struct clk_hw
*[]){
1677 &blsp1_uart3_apps_clk_src
.clkr
.hw
,
1680 .flags
= CLK_SET_RATE_PARENT
,
1681 .ops
= &clk_branch2_ops
,
1686 static struct clk_branch gcc_blsp1_uart4_apps_clk
= {
1689 .enable_reg
= 0x0804,
1690 .enable_mask
= BIT(0),
1691 .hw
.init
= &(struct clk_init_data
){
1692 .name
= "gcc_blsp1_uart4_apps_clk",
1693 .parent_hws
= (const struct clk_hw
*[]){
1694 &blsp1_uart4_apps_clk_src
.clkr
.hw
,
1697 .flags
= CLK_SET_RATE_PARENT
,
1698 .ops
= &clk_branch2_ops
,
1703 static struct clk_branch gcc_blsp1_uart5_apps_clk
= {
1706 .enable_reg
= 0x0884,
1707 .enable_mask
= BIT(0),
1708 .hw
.init
= &(struct clk_init_data
){
1709 .name
= "gcc_blsp1_uart5_apps_clk",
1710 .parent_hws
= (const struct clk_hw
*[]){
1711 &blsp1_uart5_apps_clk_src
.clkr
.hw
,
1714 .flags
= CLK_SET_RATE_PARENT
,
1715 .ops
= &clk_branch2_ops
,
1720 static struct clk_branch gcc_blsp1_uart6_apps_clk
= {
1723 .enable_reg
= 0x0904,
1724 .enable_mask
= BIT(0),
1725 .hw
.init
= &(struct clk_init_data
){
1726 .name
= "gcc_blsp1_uart6_apps_clk",
1727 .parent_hws
= (const struct clk_hw
*[]){
1728 &blsp1_uart6_apps_clk_src
.clkr
.hw
,
1731 .flags
= CLK_SET_RATE_PARENT
,
1732 .ops
= &clk_branch2_ops
,
1737 static struct clk_branch gcc_blsp2_ahb_clk
= {
1739 .halt_check
= BRANCH_HALT_VOTED
,
1741 .enable_reg
= 0x1484,
1742 .enable_mask
= BIT(15),
1743 .hw
.init
= &(struct clk_init_data
){
1744 .name
= "gcc_blsp2_ahb_clk",
1745 .parent_hws
= (const struct clk_hw
*[]){
1746 &periph_noc_clk_src
.clkr
.hw
,
1749 .ops
= &clk_branch2_ops
,
1754 static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk
= {
1757 .enable_reg
= 0x0988,
1758 .enable_mask
= BIT(0),
1759 .hw
.init
= &(struct clk_init_data
){
1760 .name
= "gcc_blsp2_qup1_i2c_apps_clk",
1761 .parent_hws
= (const struct clk_hw
*[]){
1762 &blsp2_qup1_i2c_apps_clk_src
.clkr
.hw
,
1765 .flags
= CLK_SET_RATE_PARENT
,
1766 .ops
= &clk_branch2_ops
,
1771 static struct clk_branch gcc_blsp2_qup1_spi_apps_clk
= {
1774 .enable_reg
= 0x0984,
1775 .enable_mask
= BIT(0),
1776 .hw
.init
= &(struct clk_init_data
){
1777 .name
= "gcc_blsp2_qup1_spi_apps_clk",
1778 .parent_hws
= (const struct clk_hw
*[]){
1779 &blsp2_qup1_spi_apps_clk_src
.clkr
.hw
,
1782 .flags
= CLK_SET_RATE_PARENT
,
1783 .ops
= &clk_branch2_ops
,
1788 static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk
= {
1791 .enable_reg
= 0x0a08,
1792 .enable_mask
= BIT(0),
1793 .hw
.init
= &(struct clk_init_data
){
1794 .name
= "gcc_blsp2_qup2_i2c_apps_clk",
1795 .parent_hws
= (const struct clk_hw
*[]){
1796 &blsp2_qup2_i2c_apps_clk_src
.clkr
.hw
,
1799 .flags
= CLK_SET_RATE_PARENT
,
1800 .ops
= &clk_branch2_ops
,
1805 static struct clk_branch gcc_blsp2_qup2_spi_apps_clk
= {
1808 .enable_reg
= 0x0a04,
1809 .enable_mask
= BIT(0),
1810 .hw
.init
= &(struct clk_init_data
){
1811 .name
= "gcc_blsp2_qup2_spi_apps_clk",
1812 .parent_hws
= (const struct clk_hw
*[]){
1813 &blsp2_qup2_spi_apps_clk_src
.clkr
.hw
,
1816 .flags
= CLK_SET_RATE_PARENT
,
1817 .ops
= &clk_branch2_ops
,
1822 static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk
= {
1825 .enable_reg
= 0x0a88,
1826 .enable_mask
= BIT(0),
1827 .hw
.init
= &(struct clk_init_data
){
1828 .name
= "gcc_blsp2_qup3_i2c_apps_clk",
1829 .parent_hws
= (const struct clk_hw
*[]){
1830 &blsp2_qup3_i2c_apps_clk_src
.clkr
.hw
,
1833 .flags
= CLK_SET_RATE_PARENT
,
1834 .ops
= &clk_branch2_ops
,
1839 static struct clk_branch gcc_blsp2_qup3_spi_apps_clk
= {
1842 .enable_reg
= 0x0a84,
1843 .enable_mask
= BIT(0),
1844 .hw
.init
= &(struct clk_init_data
){
1845 .name
= "gcc_blsp2_qup3_spi_apps_clk",
1846 .parent_hws
= (const struct clk_hw
*[]){
1847 &blsp2_qup3_spi_apps_clk_src
.clkr
.hw
,
1850 .flags
= CLK_SET_RATE_PARENT
,
1851 .ops
= &clk_branch2_ops
,
1856 static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk
= {
1859 .enable_reg
= 0x0b08,
1860 .enable_mask
= BIT(0),
1861 .hw
.init
= &(struct clk_init_data
){
1862 .name
= "gcc_blsp2_qup4_i2c_apps_clk",
1863 .parent_hws
= (const struct clk_hw
*[]){
1864 &blsp2_qup4_i2c_apps_clk_src
.clkr
.hw
,
1867 .flags
= CLK_SET_RATE_PARENT
,
1868 .ops
= &clk_branch2_ops
,
1873 static struct clk_branch gcc_blsp2_qup4_spi_apps_clk
= {
1876 .enable_reg
= 0x0b04,
1877 .enable_mask
= BIT(0),
1878 .hw
.init
= &(struct clk_init_data
){
1879 .name
= "gcc_blsp2_qup4_spi_apps_clk",
1880 .parent_hws
= (const struct clk_hw
*[]){
1881 &blsp2_qup4_spi_apps_clk_src
.clkr
.hw
,
1884 .flags
= CLK_SET_RATE_PARENT
,
1885 .ops
= &clk_branch2_ops
,
1890 static struct clk_branch gcc_blsp2_qup5_i2c_apps_clk
= {
1893 .enable_reg
= 0x0b88,
1894 .enable_mask
= BIT(0),
1895 .hw
.init
= &(struct clk_init_data
){
1896 .name
= "gcc_blsp2_qup5_i2c_apps_clk",
1897 .parent_hws
= (const struct clk_hw
*[]){
1898 &blsp2_qup5_i2c_apps_clk_src
.clkr
.hw
,
1901 .flags
= CLK_SET_RATE_PARENT
,
1902 .ops
= &clk_branch2_ops
,
1907 static struct clk_branch gcc_blsp2_qup5_spi_apps_clk
= {
1910 .enable_reg
= 0x0b84,
1911 .enable_mask
= BIT(0),
1912 .hw
.init
= &(struct clk_init_data
){
1913 .name
= "gcc_blsp2_qup5_spi_apps_clk",
1914 .parent_hws
= (const struct clk_hw
*[]){
1915 &blsp2_qup5_spi_apps_clk_src
.clkr
.hw
,
1918 .flags
= CLK_SET_RATE_PARENT
,
1919 .ops
= &clk_branch2_ops
,
1924 static struct clk_branch gcc_blsp2_qup6_i2c_apps_clk
= {
1927 .enable_reg
= 0x0c08,
1928 .enable_mask
= BIT(0),
1929 .hw
.init
= &(struct clk_init_data
){
1930 .name
= "gcc_blsp2_qup6_i2c_apps_clk",
1931 .parent_hws
= (const struct clk_hw
*[]){
1932 &blsp2_qup6_i2c_apps_clk_src
.clkr
.hw
,
1935 .flags
= CLK_SET_RATE_PARENT
,
1936 .ops
= &clk_branch2_ops
,
1941 static struct clk_branch gcc_blsp2_qup6_spi_apps_clk
= {
1944 .enable_reg
= 0x0c04,
1945 .enable_mask
= BIT(0),
1946 .hw
.init
= &(struct clk_init_data
){
1947 .name
= "gcc_blsp2_qup6_spi_apps_clk",
1948 .parent_hws
= (const struct clk_hw
*[]){
1949 &blsp2_qup6_spi_apps_clk_src
.clkr
.hw
,
1952 .flags
= CLK_SET_RATE_PARENT
,
1953 .ops
= &clk_branch2_ops
,
1958 static struct clk_branch gcc_blsp2_uart1_apps_clk
= {
1961 .enable_reg
= 0x09c4,
1962 .enable_mask
= BIT(0),
1963 .hw
.init
= &(struct clk_init_data
){
1964 .name
= "gcc_blsp2_uart1_apps_clk",
1965 .parent_hws
= (const struct clk_hw
*[]){
1966 &blsp2_uart1_apps_clk_src
.clkr
.hw
,
1969 .flags
= CLK_SET_RATE_PARENT
,
1970 .ops
= &clk_branch2_ops
,
1975 static struct clk_branch gcc_blsp2_uart2_apps_clk
= {
1978 .enable_reg
= 0x0a44,
1979 .enable_mask
= BIT(0),
1980 .hw
.init
= &(struct clk_init_data
){
1981 .name
= "gcc_blsp2_uart2_apps_clk",
1982 .parent_hws
= (const struct clk_hw
*[]){
1983 &blsp2_uart2_apps_clk_src
.clkr
.hw
,
1986 .flags
= CLK_SET_RATE_PARENT
,
1987 .ops
= &clk_branch2_ops
,
1992 static struct clk_branch gcc_blsp2_uart3_apps_clk
= {
1995 .enable_reg
= 0x0ac4,
1996 .enable_mask
= BIT(0),
1997 .hw
.init
= &(struct clk_init_data
){
1998 .name
= "gcc_blsp2_uart3_apps_clk",
1999 .parent_hws
= (const struct clk_hw
*[]){
2000 &blsp2_uart3_apps_clk_src
.clkr
.hw
,
2003 .flags
= CLK_SET_RATE_PARENT
,
2004 .ops
= &clk_branch2_ops
,
2009 static struct clk_branch gcc_blsp2_uart4_apps_clk
= {
2012 .enable_reg
= 0x0b44,
2013 .enable_mask
= BIT(0),
2014 .hw
.init
= &(struct clk_init_data
){
2015 .name
= "gcc_blsp2_uart4_apps_clk",
2016 .parent_hws
= (const struct clk_hw
*[]){
2017 &blsp2_uart4_apps_clk_src
.clkr
.hw
,
2020 .flags
= CLK_SET_RATE_PARENT
,
2021 .ops
= &clk_branch2_ops
,
2026 static struct clk_branch gcc_blsp2_uart5_apps_clk
= {
2029 .enable_reg
= 0x0bc4,
2030 .enable_mask
= BIT(0),
2031 .hw
.init
= &(struct clk_init_data
){
2032 .name
= "gcc_blsp2_uart5_apps_clk",
2033 .parent_hws
= (const struct clk_hw
*[]){
2034 &blsp2_uart5_apps_clk_src
.clkr
.hw
,
2037 .flags
= CLK_SET_RATE_PARENT
,
2038 .ops
= &clk_branch2_ops
,
2043 static struct clk_branch gcc_blsp2_uart6_apps_clk
= {
2046 .enable_reg
= 0x0c44,
2047 .enable_mask
= BIT(0),
2048 .hw
.init
= &(struct clk_init_data
){
2049 .name
= "gcc_blsp2_uart6_apps_clk",
2050 .parent_hws
= (const struct clk_hw
*[]){
2051 &blsp2_uart6_apps_clk_src
.clkr
.hw
,
2054 .flags
= CLK_SET_RATE_PARENT
,
2055 .ops
= &clk_branch2_ops
,
2060 static struct clk_branch gcc_boot_rom_ahb_clk
= {
2062 .halt_check
= BRANCH_HALT_VOTED
,
2064 .enable_reg
= 0x1484,
2065 .enable_mask
= BIT(10),
2066 .hw
.init
= &(struct clk_init_data
){
2067 .name
= "gcc_boot_rom_ahb_clk",
2068 .parent_hws
= (const struct clk_hw
*[]){
2069 &config_noc_clk_src
.clkr
.hw
,
2072 .ops
= &clk_branch2_ops
,
2077 static struct clk_branch gcc_ce1_ahb_clk
= {
2079 .halt_check
= BRANCH_HALT_VOTED
,
2081 .enable_reg
= 0x1484,
2082 .enable_mask
= BIT(3),
2083 .hw
.init
= &(struct clk_init_data
){
2084 .name
= "gcc_ce1_ahb_clk",
2085 .parent_hws
= (const struct clk_hw
*[]){
2086 &config_noc_clk_src
.clkr
.hw
,
2089 .ops
= &clk_branch2_ops
,
2094 static struct clk_branch gcc_ce1_axi_clk
= {
2096 .halt_check
= BRANCH_HALT_VOTED
,
2098 .enable_reg
= 0x1484,
2099 .enable_mask
= BIT(4),
2100 .hw
.init
= &(struct clk_init_data
){
2101 .name
= "gcc_ce1_axi_clk",
2102 .parent_hws
= (const struct clk_hw
*[]){
2103 &system_noc_clk_src
.clkr
.hw
,
2106 .ops
= &clk_branch2_ops
,
2111 static struct clk_branch gcc_ce1_clk
= {
2113 .halt_check
= BRANCH_HALT_VOTED
,
2115 .enable_reg
= 0x1484,
2116 .enable_mask
= BIT(5),
2117 .hw
.init
= &(struct clk_init_data
){
2118 .name
= "gcc_ce1_clk",
2119 .parent_hws
= (const struct clk_hw
*[]){
2120 &ce1_clk_src
.clkr
.hw
,
2123 .flags
= CLK_SET_RATE_PARENT
,
2124 .ops
= &clk_branch2_ops
,
2129 static struct clk_branch gcc_ce2_ahb_clk
= {
2131 .halt_check
= BRANCH_HALT_VOTED
,
2133 .enable_reg
= 0x1484,
2134 .enable_mask
= BIT(0),
2135 .hw
.init
= &(struct clk_init_data
){
2136 .name
= "gcc_ce2_ahb_clk",
2137 .parent_hws
= (const struct clk_hw
*[]){
2138 &config_noc_clk_src
.clkr
.hw
,
2141 .ops
= &clk_branch2_ops
,
2146 static struct clk_branch gcc_ce2_axi_clk
= {
2148 .halt_check
= BRANCH_HALT_VOTED
,
2150 .enable_reg
= 0x1484,
2151 .enable_mask
= BIT(1),
2152 .hw
.init
= &(struct clk_init_data
){
2153 .name
= "gcc_ce2_axi_clk",
2154 .parent_hws
= (const struct clk_hw
*[]){
2155 &system_noc_clk_src
.clkr
.hw
,
2158 .ops
= &clk_branch2_ops
,
2163 static struct clk_branch gcc_ce2_clk
= {
2165 .halt_check
= BRANCH_HALT_VOTED
,
2167 .enable_reg
= 0x1484,
2168 .enable_mask
= BIT(2),
2169 .hw
.init
= &(struct clk_init_data
){
2170 .name
= "gcc_ce2_clk",
2171 .parent_hws
= (const struct clk_hw
*[]){
2172 &ce2_clk_src
.clkr
.hw
,
2175 .flags
= CLK_SET_RATE_PARENT
,
2176 .ops
= &clk_branch2_ops
,
2181 static struct clk_branch gcc_ce3_ahb_clk
= {
2183 .halt_check
= BRANCH_HALT_VOTED
,
2185 .enable_reg
= 0x1d0c,
2186 .enable_mask
= BIT(0),
2187 .hw
.init
= &(struct clk_init_data
){
2188 .name
= "gcc_ce3_ahb_clk",
2189 .parent_hws
= (const struct clk_hw
*[]){
2190 &config_noc_clk_src
.clkr
.hw
,
2193 .ops
= &clk_branch2_ops
,
2198 static struct clk_branch gcc_ce3_axi_clk
= {
2200 .halt_check
= BRANCH_HALT_VOTED
,
2202 .enable_reg
= 0x1d08,
2203 .enable_mask
= BIT(0),
2204 .hw
.init
= &(struct clk_init_data
){
2205 .name
= "gcc_ce3_axi_clk",
2206 .parent_hws
= (const struct clk_hw
*[]){
2207 &system_noc_clk_src
.clkr
.hw
,
2210 .ops
= &clk_branch2_ops
,
2215 static struct clk_branch gcc_ce3_clk
= {
2217 .halt_check
= BRANCH_HALT_VOTED
,
2219 .enable_reg
= 0x1d04,
2220 .enable_mask
= BIT(0),
2221 .hw
.init
= &(struct clk_init_data
){
2222 .name
= "gcc_ce3_clk",
2223 .parent_hws
= (const struct clk_hw
*[]){
2224 &ce3_clk_src
.clkr
.hw
,
2227 .flags
= CLK_SET_RATE_PARENT
,
2228 .ops
= &clk_branch2_ops
,
2233 static struct clk_branch gcc_gp1_clk
= {
2236 .enable_reg
= 0x1900,
2237 .enable_mask
= BIT(0),
2238 .hw
.init
= &(struct clk_init_data
){
2239 .name
= "gcc_gp1_clk",
2240 .parent_hws
= (const struct clk_hw
*[]){
2241 &gp1_clk_src
.clkr
.hw
,
2244 .flags
= CLK_SET_RATE_PARENT
,
2245 .ops
= &clk_branch2_ops
,
2250 static struct clk_branch gcc_gp2_clk
= {
2253 .enable_reg
= 0x1940,
2254 .enable_mask
= BIT(0),
2255 .hw
.init
= &(struct clk_init_data
){
2256 .name
= "gcc_gp2_clk",
2257 .parent_hws
= (const struct clk_hw
*[]){
2258 &gp2_clk_src
.clkr
.hw
,
2261 .flags
= CLK_SET_RATE_PARENT
,
2262 .ops
= &clk_branch2_ops
,
2267 static struct clk_branch gcc_gp3_clk
= {
2270 .enable_reg
= 0x1980,
2271 .enable_mask
= BIT(0),
2272 .hw
.init
= &(struct clk_init_data
){
2273 .name
= "gcc_gp3_clk",
2274 .parent_hws
= (const struct clk_hw
*[]){
2275 &gp3_clk_src
.clkr
.hw
,
2278 .flags
= CLK_SET_RATE_PARENT
,
2279 .ops
= &clk_branch2_ops
,
2284 static struct clk_branch gcc_ocmem_noc_cfg_ahb_clk
= {
2287 .enable_reg
= 0x0248,
2288 .enable_mask
= BIT(0),
2289 .hw
.init
= &(struct clk_init_data
){
2290 .name
= "gcc_ocmem_noc_cfg_ahb_clk",
2291 .parent_hws
= (const struct clk_hw
*[]){
2292 &config_noc_clk_src
.clkr
.hw
,
2295 .ops
= &clk_branch2_ops
,
2300 static struct clk_branch gcc_pcie_0_aux_clk
= {
2303 .enable_reg
= 0x1b10,
2304 .enable_mask
= BIT(0),
2305 .hw
.init
= &(struct clk_init_data
){
2306 .name
= "gcc_pcie_0_aux_clk",
2307 .parent_hws
= (const struct clk_hw
*[]){
2308 &pcie_0_aux_clk_src
.clkr
.hw
,
2311 .flags
= CLK_SET_RATE_PARENT
,
2312 .ops
= &clk_branch2_ops
,
2317 static struct clk_branch gcc_pcie_0_cfg_ahb_clk
= {
2320 .enable_reg
= 0x1b0c,
2321 .enable_mask
= BIT(0),
2322 .hw
.init
= &(struct clk_init_data
){
2323 .name
= "gcc_pcie_0_cfg_ahb_clk",
2324 .parent_hws
= (const struct clk_hw
*[]){
2325 &config_noc_clk_src
.clkr
.hw
,
2328 .flags
= CLK_SET_RATE_PARENT
,
2329 .ops
= &clk_branch2_ops
,
2334 static struct clk_branch gcc_pcie_0_mstr_axi_clk
= {
2337 .enable_reg
= 0x1b08,
2338 .enable_mask
= BIT(0),
2339 .hw
.init
= &(struct clk_init_data
){
2340 .name
= "gcc_pcie_0_mstr_axi_clk",
2341 .parent_hws
= (const struct clk_hw
*[]){
2342 &config_noc_clk_src
.clkr
.hw
,
2345 .flags
= CLK_SET_RATE_PARENT
,
2346 .ops
= &clk_branch2_ops
,
2351 static struct clk_branch gcc_pcie_0_pipe_clk
= {
2354 .enable_reg
= 0x1b14,
2355 .enable_mask
= BIT(0),
2356 .hw
.init
= &(struct clk_init_data
){
2357 .name
= "gcc_pcie_0_pipe_clk",
2358 .parent_data
= &(const struct clk_parent_data
){
2359 .hw
= &pcie_0_pipe_clk_src
.clkr
.hw
,
2362 .flags
= CLK_SET_RATE_PARENT
,
2363 .ops
= &clk_branch2_ops
,
2368 static struct clk_branch gcc_pcie_0_slv_axi_clk
= {
2371 .enable_reg
= 0x1b04,
2372 .enable_mask
= BIT(0),
2373 .hw
.init
= &(struct clk_init_data
){
2374 .name
= "gcc_pcie_0_slv_axi_clk",
2375 .parent_hws
= (const struct clk_hw
*[]){
2376 &config_noc_clk_src
.clkr
.hw
,
2379 .flags
= CLK_SET_RATE_PARENT
,
2380 .ops
= &clk_branch2_ops
,
2385 static struct clk_branch gcc_pcie_1_aux_clk
= {
2388 .enable_reg
= 0x1b90,
2389 .enable_mask
= BIT(0),
2390 .hw
.init
= &(struct clk_init_data
){
2391 .name
= "gcc_pcie_1_aux_clk",
2392 .parent_hws
= (const struct clk_hw
*[]){
2393 &pcie_1_aux_clk_src
.clkr
.hw
,
2396 .flags
= CLK_SET_RATE_PARENT
,
2397 .ops
= &clk_branch2_ops
,
2402 static struct clk_branch gcc_pcie_1_cfg_ahb_clk
= {
2405 .enable_reg
= 0x1b8c,
2406 .enable_mask
= BIT(0),
2407 .hw
.init
= &(struct clk_init_data
){
2408 .name
= "gcc_pcie_1_cfg_ahb_clk",
2409 .parent_hws
= (const struct clk_hw
*[]){
2410 &config_noc_clk_src
.clkr
.hw
,
2413 .flags
= CLK_SET_RATE_PARENT
,
2414 .ops
= &clk_branch2_ops
,
2419 static struct clk_branch gcc_pcie_1_mstr_axi_clk
= {
2422 .enable_reg
= 0x1b88,
2423 .enable_mask
= BIT(0),
2424 .hw
.init
= &(struct clk_init_data
){
2425 .name
= "gcc_pcie_1_mstr_axi_clk",
2426 .parent_hws
= (const struct clk_hw
*[]){
2427 &config_noc_clk_src
.clkr
.hw
,
2430 .flags
= CLK_SET_RATE_PARENT
,
2431 .ops
= &clk_branch2_ops
,
2436 static struct clk_branch gcc_pcie_1_pipe_clk
= {
2439 .enable_reg
= 0x1b94,
2440 .enable_mask
= BIT(0),
2441 .hw
.init
= &(struct clk_init_data
){
2442 .name
= "gcc_pcie_1_pipe_clk",
2443 .parent_data
= &(const struct clk_parent_data
){
2444 .hw
= &pcie_1_pipe_clk_src
.clkr
.hw
,
2447 .flags
= CLK_SET_RATE_PARENT
,
2448 .ops
= &clk_branch2_ops
,
2453 static struct clk_branch gcc_pcie_1_slv_axi_clk
= {
2456 .enable_reg
= 0x1b84,
2457 .enable_mask
= BIT(0),
2458 .hw
.init
= &(struct clk_init_data
){
2459 .name
= "gcc_pcie_1_slv_axi_clk",
2460 .parent_hws
= (const struct clk_hw
*[]){
2461 &config_noc_clk_src
.clkr
.hw
,
2464 .flags
= CLK_SET_RATE_PARENT
,
2465 .ops
= &clk_branch2_ops
,
2470 static struct clk_branch gcc_pdm2_clk
= {
2473 .enable_reg
= 0x0ccc,
2474 .enable_mask
= BIT(0),
2475 .hw
.init
= &(struct clk_init_data
){
2476 .name
= "gcc_pdm2_clk",
2477 .parent_hws
= (const struct clk_hw
*[]){
2478 &pdm2_clk_src
.clkr
.hw
,
2481 .flags
= CLK_SET_RATE_PARENT
,
2482 .ops
= &clk_branch2_ops
,
2487 static struct clk_branch gcc_pdm_ahb_clk
= {
2490 .enable_reg
= 0x0cc4,
2491 .enable_mask
= BIT(0),
2492 .hw
.init
= &(struct clk_init_data
){
2493 .name
= "gcc_pdm_ahb_clk",
2494 .parent_hws
= (const struct clk_hw
*[]){
2495 &periph_noc_clk_src
.clkr
.hw
,
2498 .ops
= &clk_branch2_ops
,
2503 static struct clk_branch gcc_periph_noc_usb_hsic_ahb_clk
= {
2506 .enable_reg
= 0x01a4,
2507 .enable_mask
= BIT(0),
2508 .hw
.init
= &(struct clk_init_data
){
2509 .name
= "gcc_periph_noc_usb_hsic_ahb_clk",
2510 .parent_hws
= (const struct clk_hw
*[]){
2511 &usb_hsic_ahb_clk_src
.clkr
.hw
,
2514 .flags
= CLK_SET_RATE_PARENT
,
2515 .ops
= &clk_branch2_ops
,
2520 static struct clk_branch gcc_prng_ahb_clk
= {
2522 .halt_check
= BRANCH_HALT_VOTED
,
2524 .enable_reg
= 0x1484,
2525 .enable_mask
= BIT(13),
2526 .hw
.init
= &(struct clk_init_data
){
2527 .name
= "gcc_prng_ahb_clk",
2528 .parent_hws
= (const struct clk_hw
*[]){
2529 &periph_noc_clk_src
.clkr
.hw
,
2532 .ops
= &clk_branch2_ops
,
2537 static struct clk_branch gcc_sata_asic0_clk
= {
2540 .enable_reg
= 0x1c54,
2541 .enable_mask
= BIT(0),
2542 .hw
.init
= &(struct clk_init_data
){
2543 .name
= "gcc_sata_asic0_clk",
2544 .parent_hws
= (const struct clk_hw
*[]){
2545 &sata_asic0_clk_src
.clkr
.hw
,
2548 .flags
= CLK_SET_RATE_PARENT
,
2549 .ops
= &clk_branch2_ops
,
2554 static struct clk_branch gcc_sata_axi_clk
= {
2557 .enable_reg
= 0x1c44,
2558 .enable_mask
= BIT(0),
2559 .hw
.init
= &(struct clk_init_data
){
2560 .name
= "gcc_sata_axi_clk",
2561 .parent_hws
= (const struct clk_hw
*[]){
2562 &config_noc_clk_src
.clkr
.hw
,
2565 .flags
= CLK_SET_RATE_PARENT
,
2566 .ops
= &clk_branch2_ops
,
2571 static struct clk_branch gcc_sata_cfg_ahb_clk
= {
2574 .enable_reg
= 0x1c48,
2575 .enable_mask
= BIT(0),
2576 .hw
.init
= &(struct clk_init_data
){
2577 .name
= "gcc_sata_cfg_ahb_clk",
2578 .parent_hws
= (const struct clk_hw
*[]){
2579 &config_noc_clk_src
.clkr
.hw
,
2582 .flags
= CLK_SET_RATE_PARENT
,
2583 .ops
= &clk_branch2_ops
,
2588 static struct clk_branch gcc_sata_pmalive_clk
= {
2591 .enable_reg
= 0x1c50,
2592 .enable_mask
= BIT(0),
2593 .hw
.init
= &(struct clk_init_data
){
2594 .name
= "gcc_sata_pmalive_clk",
2595 .parent_hws
= (const struct clk_hw
*[]){
2596 &sata_pmalive_clk_src
.clkr
.hw
,
2599 .flags
= CLK_SET_RATE_PARENT
,
2600 .ops
= &clk_branch2_ops
,
2605 static struct clk_branch gcc_sata_rx_clk
= {
2608 .enable_reg
= 0x1c58,
2609 .enable_mask
= BIT(0),
2610 .hw
.init
= &(struct clk_init_data
){
2611 .name
= "gcc_sata_rx_clk",
2612 .parent_hws
= (const struct clk_hw
*[]){
2613 &sata_rx_clk_src
.clkr
.hw
,
2616 .flags
= CLK_SET_RATE_PARENT
,
2617 .ops
= &clk_branch2_ops
,
2622 static struct clk_branch gcc_sata_rx_oob_clk
= {
2625 .enable_reg
= 0x1c4c,
2626 .enable_mask
= BIT(0),
2627 .hw
.init
= &(struct clk_init_data
){
2628 .name
= "gcc_sata_rx_oob_clk",
2629 .parent_hws
= (const struct clk_hw
*[]){
2630 &sata_rx_oob_clk_src
.clkr
.hw
,
2633 .flags
= CLK_SET_RATE_PARENT
,
2634 .ops
= &clk_branch2_ops
,
2639 static struct clk_branch gcc_sdcc1_ahb_clk
= {
2642 .enable_reg
= 0x04c8,
2643 .enable_mask
= BIT(0),
2644 .hw
.init
= &(struct clk_init_data
){
2645 .name
= "gcc_sdcc1_ahb_clk",
2646 .parent_hws
= (const struct clk_hw
*[]){
2647 &periph_noc_clk_src
.clkr
.hw
,
2650 .ops
= &clk_branch2_ops
,
2655 static struct clk_branch gcc_sdcc1_apps_clk
= {
2658 .enable_reg
= 0x04c4,
2659 .enable_mask
= BIT(0),
2660 .hw
.init
= &(struct clk_init_data
){
2661 .name
= "gcc_sdcc1_apps_clk",
2662 .parent_hws
= (const struct clk_hw
*[]){
2663 &sdcc1_apps_clk_src
.clkr
.hw
,
2666 .flags
= CLK_SET_RATE_PARENT
,
2667 .ops
= &clk_branch2_ops
,
2672 static struct clk_branch gcc_sdcc1_cdccal_ff_clk
= {
2675 .enable_reg
= 0x04e8,
2676 .enable_mask
= BIT(0),
2677 .hw
.init
= &(struct clk_init_data
){
2678 .name
= "gcc_sdcc1_cdccal_ff_clk",
2679 .parent_data
= (const struct clk_parent_data
[]){
2680 { .fw_name
= "xo", .name
= "xo_board" }
2683 .ops
= &clk_branch2_ops
,
2688 static struct clk_branch gcc_sdcc1_cdccal_sleep_clk
= {
2691 .enable_reg
= 0x04e4,
2692 .enable_mask
= BIT(0),
2693 .hw
.init
= &(struct clk_init_data
){
2694 .name
= "gcc_sdcc1_cdccal_sleep_clk",
2695 .parent_data
= (const struct clk_parent_data
[]){
2696 { .fw_name
= "sleep_clk", .name
= "sleep_clk" }
2699 .ops
= &clk_branch2_ops
,
2704 static struct clk_branch gcc_sdcc2_ahb_clk
= {
2707 .enable_reg
= 0x0508,
2708 .enable_mask
= BIT(0),
2709 .hw
.init
= &(struct clk_init_data
){
2710 .name
= "gcc_sdcc2_ahb_clk",
2711 .parent_hws
= (const struct clk_hw
*[]){
2712 &periph_noc_clk_src
.clkr
.hw
,
2715 .ops
= &clk_branch2_ops
,
2720 static struct clk_branch gcc_sdcc2_apps_clk
= {
2723 .enable_reg
= 0x0504,
2724 .enable_mask
= BIT(0),
2725 .hw
.init
= &(struct clk_init_data
){
2726 .name
= "gcc_sdcc2_apps_clk",
2727 .parent_hws
= (const struct clk_hw
*[]){
2728 &sdcc2_apps_clk_src
.clkr
.hw
,
2731 .flags
= CLK_SET_RATE_PARENT
,
2732 .ops
= &clk_branch2_ops
,
2737 static struct clk_branch gcc_sdcc3_ahb_clk
= {
2740 .enable_reg
= 0x0548,
2741 .enable_mask
= BIT(0),
2742 .hw
.init
= &(struct clk_init_data
){
2743 .name
= "gcc_sdcc3_ahb_clk",
2744 .parent_hws
= (const struct clk_hw
*[]){
2745 &periph_noc_clk_src
.clkr
.hw
,
2748 .ops
= &clk_branch2_ops
,
2753 static struct clk_branch gcc_sdcc3_apps_clk
= {
2756 .enable_reg
= 0x0544,
2757 .enable_mask
= BIT(0),
2758 .hw
.init
= &(struct clk_init_data
){
2759 .name
= "gcc_sdcc3_apps_clk",
2760 .parent_hws
= (const struct clk_hw
*[]){
2761 &sdcc3_apps_clk_src
.clkr
.hw
,
2764 .flags
= CLK_SET_RATE_PARENT
,
2765 .ops
= &clk_branch2_ops
,
2770 static struct clk_branch gcc_sdcc4_ahb_clk
= {
2773 .enable_reg
= 0x0588,
2774 .enable_mask
= BIT(0),
2775 .hw
.init
= &(struct clk_init_data
){
2776 .name
= "gcc_sdcc4_ahb_clk",
2777 .parent_hws
= (const struct clk_hw
*[]){
2778 &periph_noc_clk_src
.clkr
.hw
,
2781 .ops
= &clk_branch2_ops
,
2786 static struct clk_branch gcc_sdcc4_apps_clk
= {
2789 .enable_reg
= 0x0584,
2790 .enable_mask
= BIT(0),
2791 .hw
.init
= &(struct clk_init_data
){
2792 .name
= "gcc_sdcc4_apps_clk",
2793 .parent_hws
= (const struct clk_hw
*[]){
2794 &sdcc4_apps_clk_src
.clkr
.hw
,
2797 .flags
= CLK_SET_RATE_PARENT
,
2798 .ops
= &clk_branch2_ops
,
2803 static struct clk_branch gcc_sys_noc_ufs_axi_clk
= {
2806 .enable_reg
= 0x013c,
2807 .enable_mask
= BIT(0),
2808 .hw
.init
= &(struct clk_init_data
){
2809 .name
= "gcc_sys_noc_ufs_axi_clk",
2810 .parent_hws
= (const struct clk_hw
*[]){
2811 &ufs_axi_clk_src
.clkr
.hw
,
2814 .flags
= CLK_SET_RATE_PARENT
,
2815 .ops
= &clk_branch2_ops
,
2820 static struct clk_branch gcc_sys_noc_usb3_axi_clk
= {
2823 .enable_reg
= 0x0108,
2824 .enable_mask
= BIT(0),
2825 .hw
.init
= &(struct clk_init_data
){
2826 .name
= "gcc_sys_noc_usb3_axi_clk",
2827 .parent_hws
= (const struct clk_hw
*[]){
2828 &usb30_master_clk_src
.clkr
.hw
,
2831 .flags
= CLK_SET_RATE_PARENT
,
2832 .ops
= &clk_branch2_ops
,
2837 static struct clk_branch gcc_sys_noc_usb3_sec_axi_clk
= {
2840 .enable_reg
= 0x0138,
2841 .enable_mask
= BIT(0),
2842 .hw
.init
= &(struct clk_init_data
){
2843 .name
= "gcc_sys_noc_usb3_sec_axi_clk",
2844 .parent_hws
= (const struct clk_hw
*[]){
2845 &usb30_sec_master_clk_src
.clkr
.hw
,
2848 .flags
= CLK_SET_RATE_PARENT
,
2849 .ops
= &clk_branch2_ops
,
2854 static struct clk_branch gcc_tsif_ahb_clk
= {
2857 .enable_reg
= 0x0d84,
2858 .enable_mask
= BIT(0),
2859 .hw
.init
= &(struct clk_init_data
){
2860 .name
= "gcc_tsif_ahb_clk",
2861 .parent_hws
= (const struct clk_hw
*[]){
2862 &periph_noc_clk_src
.clkr
.hw
,
2865 .ops
= &clk_branch2_ops
,
2870 static struct clk_branch gcc_tsif_inactivity_timers_clk
= {
2873 .enable_reg
= 0x0d8c,
2874 .enable_mask
= BIT(0),
2875 .hw
.init
= &(struct clk_init_data
){
2876 .name
= "gcc_tsif_inactivity_timers_clk",
2877 .parent_data
= &(const struct clk_parent_data
){
2878 .fw_name
= "sleep_clk", .name
= "sleep_clk",
2881 .flags
= CLK_SET_RATE_PARENT
,
2882 .ops
= &clk_branch2_ops
,
2887 static struct clk_branch gcc_tsif_ref_clk
= {
2890 .enable_reg
= 0x0d88,
2891 .enable_mask
= BIT(0),
2892 .hw
.init
= &(struct clk_init_data
){
2893 .name
= "gcc_tsif_ref_clk",
2894 .parent_hws
= (const struct clk_hw
*[]){
2895 &tsif_ref_clk_src
.clkr
.hw
,
2898 .flags
= CLK_SET_RATE_PARENT
,
2899 .ops
= &clk_branch2_ops
,
2904 static struct clk_branch gcc_ufs_ahb_clk
= {
2907 .enable_reg
= 0x1d48,
2908 .enable_mask
= BIT(0),
2909 .hw
.init
= &(struct clk_init_data
){
2910 .name
= "gcc_ufs_ahb_clk",
2911 .parent_hws
= (const struct clk_hw
*[]){
2912 &config_noc_clk_src
.clkr
.hw
,
2915 .flags
= CLK_SET_RATE_PARENT
,
2916 .ops
= &clk_branch2_ops
,
2921 static struct clk_branch gcc_ufs_axi_clk
= {
2924 .enable_reg
= 0x1d44,
2925 .enable_mask
= BIT(0),
2926 .hw
.init
= &(struct clk_init_data
){
2927 .name
= "gcc_ufs_axi_clk",
2928 .parent_hws
= (const struct clk_hw
*[]){
2929 &ufs_axi_clk_src
.clkr
.hw
,
2932 .flags
= CLK_SET_RATE_PARENT
,
2933 .ops
= &clk_branch2_ops
,
2938 static struct clk_branch gcc_ufs_rx_cfg_clk
= {
2941 .enable_reg
= 0x1d50,
2942 .enable_mask
= BIT(0),
2943 .hw
.init
= &(struct clk_init_data
){
2944 .name
= "gcc_ufs_rx_cfg_clk",
2945 .parent_hws
= (const struct clk_hw
*[]){
2946 &ufs_axi_clk_src
.clkr
.hw
,
2949 .flags
= CLK_SET_RATE_PARENT
,
2950 .ops
= &clk_branch2_ops
,
2955 static struct clk_branch gcc_ufs_rx_symbol_0_clk
= {
2958 .enable_reg
= 0x1d5c,
2959 .enable_mask
= BIT(0),
2960 .hw
.init
= &(struct clk_init_data
){
2961 .name
= "gcc_ufs_rx_symbol_0_clk",
2962 .parent_data
= &(const struct clk_parent_data
){
2963 .fw_name
= "ufs_rx_symbol_0_clk_src", .name
= "ufs_rx_symbol_0_clk_src",
2966 .flags
= CLK_SET_RATE_PARENT
,
2967 .ops
= &clk_branch2_ops
,
2972 static struct clk_branch gcc_ufs_rx_symbol_1_clk
= {
2975 .enable_reg
= 0x1d60,
2976 .enable_mask
= BIT(0),
2977 .hw
.init
= &(struct clk_init_data
){
2978 .name
= "gcc_ufs_rx_symbol_1_clk",
2979 .parent_data
= &(const struct clk_parent_data
){
2980 .fw_name
= "ufs_rx_symbol_1_clk_src", .name
= "ufs_rx_symbol_1_clk_src",
2983 .flags
= CLK_SET_RATE_PARENT
,
2984 .ops
= &clk_branch2_ops
,
2989 static struct clk_branch gcc_ufs_tx_cfg_clk
= {
2992 .enable_reg
= 0x1d4c,
2993 .enable_mask
= BIT(0),
2994 .hw
.init
= &(struct clk_init_data
){
2995 .name
= "gcc_ufs_tx_cfg_clk",
2996 .parent_hws
= (const struct clk_hw
*[]){
2997 &ufs_axi_clk_src
.clkr
.hw
,
3000 .flags
= CLK_SET_RATE_PARENT
,
3001 .ops
= &clk_branch2_ops
,
3006 static struct clk_branch gcc_ufs_tx_symbol_0_clk
= {
3009 .enable_reg
= 0x1d54,
3010 .enable_mask
= BIT(0),
3011 .hw
.init
= &(struct clk_init_data
){
3012 .name
= "gcc_ufs_tx_symbol_0_clk",
3013 .parent_data
= &(const struct clk_parent_data
){
3014 .fw_name
= "ufs_tx_symbol_0_clk_src", .name
= "ufs_tx_symbol_0_clk_src",
3017 .flags
= CLK_SET_RATE_PARENT
,
3018 .ops
= &clk_branch2_ops
,
3023 static struct clk_branch gcc_ufs_tx_symbol_1_clk
= {
3026 .enable_reg
= 0x1d58,
3027 .enable_mask
= BIT(0),
3028 .hw
.init
= &(struct clk_init_data
){
3029 .name
= "gcc_ufs_tx_symbol_1_clk",
3030 .parent_data
= &(const struct clk_parent_data
){
3031 .fw_name
= "ufs_tx_symbol_1_clk_src", .name
= "ufs_tx_symbol_1_clk_src",
3034 .flags
= CLK_SET_RATE_PARENT
,
3035 .ops
= &clk_branch2_ops
,
3040 static struct clk_branch gcc_usb2a_phy_sleep_clk
= {
3043 .enable_reg
= 0x04ac,
3044 .enable_mask
= BIT(0),
3045 .hw
.init
= &(struct clk_init_data
){
3046 .name
= "gcc_usb2a_phy_sleep_clk",
3047 .parent_data
= &(const struct clk_parent_data
){
3048 .fw_name
= "sleep_clk", .name
= "sleep_clk",
3051 .ops
= &clk_branch2_ops
,
3056 static struct clk_branch gcc_usb2b_phy_sleep_clk
= {
3059 .enable_reg
= 0x04b4,
3060 .enable_mask
= BIT(0),
3061 .hw
.init
= &(struct clk_init_data
){
3062 .name
= "gcc_usb2b_phy_sleep_clk",
3063 .parent_data
= &(const struct clk_parent_data
){
3064 .fw_name
= "sleep_clk", .name
= "sleep_clk",
3067 .ops
= &clk_branch2_ops
,
3072 static struct clk_branch gcc_usb30_master_clk
= {
3075 .enable_reg
= 0x03c8,
3076 .enable_mask
= BIT(0),
3077 .hw
.init
= &(struct clk_init_data
){
3078 .name
= "gcc_usb30_master_clk",
3079 .parent_hws
= (const struct clk_hw
*[]){
3080 &usb30_master_clk_src
.clkr
.hw
,
3083 .flags
= CLK_SET_RATE_PARENT
,
3084 .ops
= &clk_branch2_ops
,
3089 static struct clk_branch gcc_usb30_sec_master_clk
= {
3092 .enable_reg
= 0x1bc8,
3093 .enable_mask
= BIT(0),
3094 .hw
.init
= &(struct clk_init_data
){
3095 .name
= "gcc_usb30_sec_master_clk",
3096 .parent_hws
= (const struct clk_hw
*[]){
3097 &usb30_sec_master_clk_src
.clkr
.hw
,
3100 .flags
= CLK_SET_RATE_PARENT
,
3101 .ops
= &clk_branch2_ops
,
3106 static struct clk_branch gcc_usb30_mock_utmi_clk
= {
3109 .enable_reg
= 0x03d0,
3110 .enable_mask
= BIT(0),
3111 .hw
.init
= &(struct clk_init_data
){
3112 .name
= "gcc_usb30_mock_utmi_clk",
3113 .parent_hws
= (const struct clk_hw
*[]){
3114 &usb30_mock_utmi_clk_src
.clkr
.hw
,
3117 .flags
= CLK_SET_RATE_PARENT
,
3118 .ops
= &clk_branch2_ops
,
3123 static struct clk_branch gcc_usb30_sleep_clk
= {
3126 .enable_reg
= 0x03cc,
3127 .enable_mask
= BIT(0),
3128 .hw
.init
= &(struct clk_init_data
){
3129 .name
= "gcc_usb30_sleep_clk",
3130 .parent_data
= &(const struct clk_parent_data
){
3131 .fw_name
= "sleep_clk", .name
= "sleep_clk",
3134 .ops
= &clk_branch2_ops
,
3139 static struct clk_branch gcc_usb_hs_ahb_clk
= {
3142 .enable_reg
= 0x0488,
3143 .enable_mask
= BIT(0),
3144 .hw
.init
= &(struct clk_init_data
){
3145 .name
= "gcc_usb_hs_ahb_clk",
3146 .parent_hws
= (const struct clk_hw
*[]){
3147 &periph_noc_clk_src
.clkr
.hw
,
3150 .ops
= &clk_branch2_ops
,
3155 static struct clk_branch gcc_usb_hs_inactivity_timers_clk
= {
3158 .enable_reg
= 0x048c,
3159 .enable_mask
= BIT(0),
3160 .hw
.init
= &(struct clk_init_data
){
3161 .name
= "gcc_usb_hs_inactivity_timers_clk",
3162 .parent_data
= &(const struct clk_parent_data
){
3163 .fw_name
= "sleep_clk", .name
= "sleep_clk",
3166 .flags
= CLK_SET_RATE_PARENT
,
3167 .ops
= &clk_branch2_ops
,
3172 static struct clk_branch gcc_usb_hs_system_clk
= {
3175 .enable_reg
= 0x0484,
3176 .enable_mask
= BIT(0),
3177 .hw
.init
= &(struct clk_init_data
){
3178 .name
= "gcc_usb_hs_system_clk",
3179 .parent_hws
= (const struct clk_hw
*[]){
3180 &usb_hs_system_clk_src
.clkr
.hw
,
3183 .flags
= CLK_SET_RATE_PARENT
,
3184 .ops
= &clk_branch2_ops
,
3189 static struct clk_branch gcc_usb_hsic_ahb_clk
= {
3192 .enable_reg
= 0x0408,
3193 .enable_mask
= BIT(0),
3194 .hw
.init
= &(struct clk_init_data
){
3195 .name
= "gcc_usb_hsic_ahb_clk",
3196 .parent_hws
= (const struct clk_hw
*[]) {
3197 &periph_noc_clk_src
.clkr
.hw
,
3200 .ops
= &clk_branch2_ops
,
3205 static struct clk_branch gcc_usb_hsic_clk
= {
3208 .enable_reg
= 0x0410,
3209 .enable_mask
= BIT(0),
3210 .hw
.init
= &(struct clk_init_data
){
3211 .name
= "gcc_usb_hsic_clk",
3212 .parent_hws
= (const struct clk_hw
*[]){
3213 &usb_hsic_clk_src
.clkr
.hw
,
3216 .flags
= CLK_SET_RATE_PARENT
,
3217 .ops
= &clk_branch2_ops
,
3222 static struct clk_branch gcc_usb_hsic_io_cal_clk
= {
3225 .enable_reg
= 0x0414,
3226 .enable_mask
= BIT(0),
3227 .hw
.init
= &(struct clk_init_data
){
3228 .name
= "gcc_usb_hsic_io_cal_clk",
3229 .parent_hws
= (const struct clk_hw
*[]){
3230 &usb_hsic_io_cal_clk_src
.clkr
.hw
,
3233 .flags
= CLK_SET_RATE_PARENT
,
3234 .ops
= &clk_branch2_ops
,
3239 static struct clk_branch gcc_usb_hsic_io_cal_sleep_clk
= {
3242 .enable_reg
= 0x0418,
3243 .enable_mask
= BIT(0),
3244 .hw
.init
= &(struct clk_init_data
){
3245 .name
= "gcc_usb_hsic_io_cal_sleep_clk",
3246 .parent_data
= &(const struct clk_parent_data
){
3247 .fw_name
= "sleep_clk", .name
= "sleep_clk",
3250 .ops
= &clk_branch2_ops
,
3255 static struct clk_branch gcc_usb_hsic_system_clk
= {
3258 .enable_reg
= 0x040c,
3259 .enable_mask
= BIT(0),
3260 .hw
.init
= &(struct clk_init_data
){
3261 .name
= "gcc_usb_hsic_system_clk",
3262 .parent_hws
= (const struct clk_hw
*[]){
3263 &usb_hsic_system_clk_src
.clkr
.hw
,
3266 .flags
= CLK_SET_RATE_PARENT
,
3267 .ops
= &clk_branch2_ops
,
3272 static struct gdsc usb_hs_hsic_gdsc
= {
3275 .name
= "usb_hs_hsic",
3277 .pwrsts
= PWRSTS_OFF_ON
,
3280 static struct gdsc pcie0_gdsc
= {
3285 .pwrsts
= PWRSTS_OFF_ON
,
3288 static struct gdsc pcie1_gdsc
= {
3293 .pwrsts
= PWRSTS_OFF_ON
,
3296 static struct gdsc usb30_gdsc
= {
3301 .pwrsts
= PWRSTS_OFF_ON
,
3304 static struct clk_regmap
*gcc_apq8084_clocks
[] = {
3305 [GPLL0
] = &gpll0
.clkr
,
3306 [GPLL0_VOTE
] = &gpll0_vote
,
3307 [GPLL1
] = &gpll1
.clkr
,
3308 [GPLL1_VOTE
] = &gpll1_vote
,
3309 [GPLL4
] = &gpll4
.clkr
,
3310 [GPLL4_VOTE
] = &gpll4_vote
,
3311 [CONFIG_NOC_CLK_SRC
] = &config_noc_clk_src
.clkr
,
3312 [PERIPH_NOC_CLK_SRC
] = &periph_noc_clk_src
.clkr
,
3313 [SYSTEM_NOC_CLK_SRC
] = &system_noc_clk_src
.clkr
,
3314 [UFS_AXI_CLK_SRC
] = &ufs_axi_clk_src
.clkr
,
3315 [USB30_MASTER_CLK_SRC
] = &usb30_master_clk_src
.clkr
,
3316 [USB30_SEC_MASTER_CLK_SRC
] = &usb30_sec_master_clk_src
.clkr
,
3317 [USB_HSIC_AHB_CLK_SRC
] = &usb_hsic_ahb_clk_src
.clkr
,
3318 [BLSP1_QUP1_I2C_APPS_CLK_SRC
] = &blsp1_qup1_i2c_apps_clk_src
.clkr
,
3319 [BLSP1_QUP1_SPI_APPS_CLK_SRC
] = &blsp1_qup1_spi_apps_clk_src
.clkr
,
3320 [BLSP1_QUP2_I2C_APPS_CLK_SRC
] = &blsp1_qup2_i2c_apps_clk_src
.clkr
,
3321 [BLSP1_QUP2_SPI_APPS_CLK_SRC
] = &blsp1_qup2_spi_apps_clk_src
.clkr
,
3322 [BLSP1_QUP3_I2C_APPS_CLK_SRC
] = &blsp1_qup3_i2c_apps_clk_src
.clkr
,
3323 [BLSP1_QUP3_SPI_APPS_CLK_SRC
] = &blsp1_qup3_spi_apps_clk_src
.clkr
,
3324 [BLSP1_QUP4_I2C_APPS_CLK_SRC
] = &blsp1_qup4_i2c_apps_clk_src
.clkr
,
3325 [BLSP1_QUP4_SPI_APPS_CLK_SRC
] = &blsp1_qup4_spi_apps_clk_src
.clkr
,
3326 [BLSP1_QUP5_I2C_APPS_CLK_SRC
] = &blsp1_qup5_i2c_apps_clk_src
.clkr
,
3327 [BLSP1_QUP5_SPI_APPS_CLK_SRC
] = &blsp1_qup5_spi_apps_clk_src
.clkr
,
3328 [BLSP1_QUP6_I2C_APPS_CLK_SRC
] = &blsp1_qup6_i2c_apps_clk_src
.clkr
,
3329 [BLSP1_QUP6_SPI_APPS_CLK_SRC
] = &blsp1_qup6_spi_apps_clk_src
.clkr
,
3330 [BLSP1_UART1_APPS_CLK_SRC
] = &blsp1_uart1_apps_clk_src
.clkr
,
3331 [BLSP1_UART2_APPS_CLK_SRC
] = &blsp1_uart2_apps_clk_src
.clkr
,
3332 [BLSP1_UART3_APPS_CLK_SRC
] = &blsp1_uart3_apps_clk_src
.clkr
,
3333 [BLSP1_UART4_APPS_CLK_SRC
] = &blsp1_uart4_apps_clk_src
.clkr
,
3334 [BLSP1_UART5_APPS_CLK_SRC
] = &blsp1_uart5_apps_clk_src
.clkr
,
3335 [BLSP1_UART6_APPS_CLK_SRC
] = &blsp1_uart6_apps_clk_src
.clkr
,
3336 [BLSP2_QUP1_I2C_APPS_CLK_SRC
] = &blsp2_qup1_i2c_apps_clk_src
.clkr
,
3337 [BLSP2_QUP1_SPI_APPS_CLK_SRC
] = &blsp2_qup1_spi_apps_clk_src
.clkr
,
3338 [BLSP2_QUP2_I2C_APPS_CLK_SRC
] = &blsp2_qup2_i2c_apps_clk_src
.clkr
,
3339 [BLSP2_QUP2_SPI_APPS_CLK_SRC
] = &blsp2_qup2_spi_apps_clk_src
.clkr
,
3340 [BLSP2_QUP3_I2C_APPS_CLK_SRC
] = &blsp2_qup3_i2c_apps_clk_src
.clkr
,
3341 [BLSP2_QUP3_SPI_APPS_CLK_SRC
] = &blsp2_qup3_spi_apps_clk_src
.clkr
,
3342 [BLSP2_QUP4_I2C_APPS_CLK_SRC
] = &blsp2_qup4_i2c_apps_clk_src
.clkr
,
3343 [BLSP2_QUP4_SPI_APPS_CLK_SRC
] = &blsp2_qup4_spi_apps_clk_src
.clkr
,
3344 [BLSP2_QUP5_I2C_APPS_CLK_SRC
] = &blsp2_qup5_i2c_apps_clk_src
.clkr
,
3345 [BLSP2_QUP5_SPI_APPS_CLK_SRC
] = &blsp2_qup5_spi_apps_clk_src
.clkr
,
3346 [BLSP2_QUP6_I2C_APPS_CLK_SRC
] = &blsp2_qup6_i2c_apps_clk_src
.clkr
,
3347 [BLSP2_QUP6_SPI_APPS_CLK_SRC
] = &blsp2_qup6_spi_apps_clk_src
.clkr
,
3348 [BLSP2_UART1_APPS_CLK_SRC
] = &blsp2_uart1_apps_clk_src
.clkr
,
3349 [BLSP2_UART2_APPS_CLK_SRC
] = &blsp2_uart2_apps_clk_src
.clkr
,
3350 [BLSP2_UART3_APPS_CLK_SRC
] = &blsp2_uart3_apps_clk_src
.clkr
,
3351 [BLSP2_UART4_APPS_CLK_SRC
] = &blsp2_uart4_apps_clk_src
.clkr
,
3352 [BLSP2_UART5_APPS_CLK_SRC
] = &blsp2_uart5_apps_clk_src
.clkr
,
3353 [BLSP2_UART6_APPS_CLK_SRC
] = &blsp2_uart6_apps_clk_src
.clkr
,
3354 [CE1_CLK_SRC
] = &ce1_clk_src
.clkr
,
3355 [CE2_CLK_SRC
] = &ce2_clk_src
.clkr
,
3356 [CE3_CLK_SRC
] = &ce3_clk_src
.clkr
,
3357 [GP1_CLK_SRC
] = &gp1_clk_src
.clkr
,
3358 [GP2_CLK_SRC
] = &gp2_clk_src
.clkr
,
3359 [GP3_CLK_SRC
] = &gp3_clk_src
.clkr
,
3360 [PCIE_0_AUX_CLK_SRC
] = &pcie_0_aux_clk_src
.clkr
,
3361 [PCIE_0_PIPE_CLK_SRC
] = &pcie_0_pipe_clk_src
.clkr
,
3362 [PCIE_1_AUX_CLK_SRC
] = &pcie_1_aux_clk_src
.clkr
,
3363 [PCIE_1_PIPE_CLK_SRC
] = &pcie_1_pipe_clk_src
.clkr
,
3364 [PDM2_CLK_SRC
] = &pdm2_clk_src
.clkr
,
3365 [SATA_ASIC0_CLK_SRC
] = &sata_asic0_clk_src
.clkr
,
3366 [SATA_PMALIVE_CLK_SRC
] = &sata_pmalive_clk_src
.clkr
,
3367 [SATA_RX_CLK_SRC
] = &sata_rx_clk_src
.clkr
,
3368 [SATA_RX_OOB_CLK_SRC
] = &sata_rx_oob_clk_src
.clkr
,
3369 [SDCC1_APPS_CLK_SRC
] = &sdcc1_apps_clk_src
.clkr
,
3370 [SDCC2_APPS_CLK_SRC
] = &sdcc2_apps_clk_src
.clkr
,
3371 [SDCC3_APPS_CLK_SRC
] = &sdcc3_apps_clk_src
.clkr
,
3372 [SDCC4_APPS_CLK_SRC
] = &sdcc4_apps_clk_src
.clkr
,
3373 [TSIF_REF_CLK_SRC
] = &tsif_ref_clk_src
.clkr
,
3374 [USB30_MOCK_UTMI_CLK_SRC
] = &usb30_mock_utmi_clk_src
.clkr
,
3375 [USB30_SEC_MOCK_UTMI_CLK_SRC
] = &usb30_sec_mock_utmi_clk_src
.clkr
,
3376 [USB_HS_SYSTEM_CLK_SRC
] = &usb_hs_system_clk_src
.clkr
,
3377 [USB_HSIC_CLK_SRC
] = &usb_hsic_clk_src
.clkr
,
3378 [USB_HSIC_IO_CAL_CLK_SRC
] = &usb_hsic_io_cal_clk_src
.clkr
,
3379 [USB_HSIC_MOCK_UTMI_CLK_SRC
] = &usb_hsic_mock_utmi_clk_src
.clkr
,
3380 [USB_HSIC_SYSTEM_CLK_SRC
] = &usb_hsic_system_clk_src
.clkr
,
3381 [GCC_BAM_DMA_AHB_CLK
] = &gcc_bam_dma_ahb_clk
.clkr
,
3382 [GCC_BLSP1_AHB_CLK
] = &gcc_blsp1_ahb_clk
.clkr
,
3383 [GCC_BLSP1_QUP1_I2C_APPS_CLK
] = &gcc_blsp1_qup1_i2c_apps_clk
.clkr
,
3384 [GCC_BLSP1_QUP1_SPI_APPS_CLK
] = &gcc_blsp1_qup1_spi_apps_clk
.clkr
,
3385 [GCC_BLSP1_QUP2_I2C_APPS_CLK
] = &gcc_blsp1_qup2_i2c_apps_clk
.clkr
,
3386 [GCC_BLSP1_QUP2_SPI_APPS_CLK
] = &gcc_blsp1_qup2_spi_apps_clk
.clkr
,
3387 [GCC_BLSP1_QUP3_I2C_APPS_CLK
] = &gcc_blsp1_qup3_i2c_apps_clk
.clkr
,
3388 [GCC_BLSP1_QUP3_SPI_APPS_CLK
] = &gcc_blsp1_qup3_spi_apps_clk
.clkr
,
3389 [GCC_BLSP1_QUP4_I2C_APPS_CLK
] = &gcc_blsp1_qup4_i2c_apps_clk
.clkr
,
3390 [GCC_BLSP1_QUP4_SPI_APPS_CLK
] = &gcc_blsp1_qup4_spi_apps_clk
.clkr
,
3391 [GCC_BLSP1_QUP5_I2C_APPS_CLK
] = &gcc_blsp1_qup5_i2c_apps_clk
.clkr
,
3392 [GCC_BLSP1_QUP5_SPI_APPS_CLK
] = &gcc_blsp1_qup5_spi_apps_clk
.clkr
,
3393 [GCC_BLSP1_QUP6_I2C_APPS_CLK
] = &gcc_blsp1_qup6_i2c_apps_clk
.clkr
,
3394 [GCC_BLSP1_QUP6_SPI_APPS_CLK
] = &gcc_blsp1_qup6_spi_apps_clk
.clkr
,
3395 [GCC_BLSP1_UART1_APPS_CLK
] = &gcc_blsp1_uart1_apps_clk
.clkr
,
3396 [GCC_BLSP1_UART2_APPS_CLK
] = &gcc_blsp1_uart2_apps_clk
.clkr
,
3397 [GCC_BLSP1_UART3_APPS_CLK
] = &gcc_blsp1_uart3_apps_clk
.clkr
,
3398 [GCC_BLSP1_UART4_APPS_CLK
] = &gcc_blsp1_uart4_apps_clk
.clkr
,
3399 [GCC_BLSP1_UART5_APPS_CLK
] = &gcc_blsp1_uart5_apps_clk
.clkr
,
3400 [GCC_BLSP1_UART6_APPS_CLK
] = &gcc_blsp1_uart6_apps_clk
.clkr
,
3401 [GCC_BLSP2_AHB_CLK
] = &gcc_blsp2_ahb_clk
.clkr
,
3402 [GCC_BLSP2_QUP1_I2C_APPS_CLK
] = &gcc_blsp2_qup1_i2c_apps_clk
.clkr
,
3403 [GCC_BLSP2_QUP1_SPI_APPS_CLK
] = &gcc_blsp2_qup1_spi_apps_clk
.clkr
,
3404 [GCC_BLSP2_QUP2_I2C_APPS_CLK
] = &gcc_blsp2_qup2_i2c_apps_clk
.clkr
,
3405 [GCC_BLSP2_QUP2_SPI_APPS_CLK
] = &gcc_blsp2_qup2_spi_apps_clk
.clkr
,
3406 [GCC_BLSP2_QUP3_I2C_APPS_CLK
] = &gcc_blsp2_qup3_i2c_apps_clk
.clkr
,
3407 [GCC_BLSP2_QUP3_SPI_APPS_CLK
] = &gcc_blsp2_qup3_spi_apps_clk
.clkr
,
3408 [GCC_BLSP2_QUP4_I2C_APPS_CLK
] = &gcc_blsp2_qup4_i2c_apps_clk
.clkr
,
3409 [GCC_BLSP2_QUP4_SPI_APPS_CLK
] = &gcc_blsp2_qup4_spi_apps_clk
.clkr
,
3410 [GCC_BLSP2_QUP5_I2C_APPS_CLK
] = &gcc_blsp2_qup5_i2c_apps_clk
.clkr
,
3411 [GCC_BLSP2_QUP5_SPI_APPS_CLK
] = &gcc_blsp2_qup5_spi_apps_clk
.clkr
,
3412 [GCC_BLSP2_QUP6_I2C_APPS_CLK
] = &gcc_blsp2_qup6_i2c_apps_clk
.clkr
,
3413 [GCC_BLSP2_QUP6_SPI_APPS_CLK
] = &gcc_blsp2_qup6_spi_apps_clk
.clkr
,
3414 [GCC_BLSP2_UART1_APPS_CLK
] = &gcc_blsp2_uart1_apps_clk
.clkr
,
3415 [GCC_BLSP2_UART2_APPS_CLK
] = &gcc_blsp2_uart2_apps_clk
.clkr
,
3416 [GCC_BLSP2_UART3_APPS_CLK
] = &gcc_blsp2_uart3_apps_clk
.clkr
,
3417 [GCC_BLSP2_UART4_APPS_CLK
] = &gcc_blsp2_uart4_apps_clk
.clkr
,
3418 [GCC_BLSP2_UART5_APPS_CLK
] = &gcc_blsp2_uart5_apps_clk
.clkr
,
3419 [GCC_BLSP2_UART6_APPS_CLK
] = &gcc_blsp2_uart6_apps_clk
.clkr
,
3420 [GCC_BOOT_ROM_AHB_CLK
] = &gcc_boot_rom_ahb_clk
.clkr
,
3421 [GCC_CE1_AHB_CLK
] = &gcc_ce1_ahb_clk
.clkr
,
3422 [GCC_CE1_AXI_CLK
] = &gcc_ce1_axi_clk
.clkr
,
3423 [GCC_CE1_CLK
] = &gcc_ce1_clk
.clkr
,
3424 [GCC_CE2_AHB_CLK
] = &gcc_ce2_ahb_clk
.clkr
,
3425 [GCC_CE2_AXI_CLK
] = &gcc_ce2_axi_clk
.clkr
,
3426 [GCC_CE2_CLK
] = &gcc_ce2_clk
.clkr
,
3427 [GCC_CE3_AHB_CLK
] = &gcc_ce3_ahb_clk
.clkr
,
3428 [GCC_CE3_AXI_CLK
] = &gcc_ce3_axi_clk
.clkr
,
3429 [GCC_CE3_CLK
] = &gcc_ce3_clk
.clkr
,
3430 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
3431 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
3432 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
3433 [GCC_OCMEM_NOC_CFG_AHB_CLK
] = &gcc_ocmem_noc_cfg_ahb_clk
.clkr
,
3434 [GCC_PCIE_0_AUX_CLK
] = &gcc_pcie_0_aux_clk
.clkr
,
3435 [GCC_PCIE_0_CFG_AHB_CLK
] = &gcc_pcie_0_cfg_ahb_clk
.clkr
,
3436 [GCC_PCIE_0_MSTR_AXI_CLK
] = &gcc_pcie_0_mstr_axi_clk
.clkr
,
3437 [GCC_PCIE_0_PIPE_CLK
] = &gcc_pcie_0_pipe_clk
.clkr
,
3438 [GCC_PCIE_0_SLV_AXI_CLK
] = &gcc_pcie_0_slv_axi_clk
.clkr
,
3439 [GCC_PCIE_1_AUX_CLK
] = &gcc_pcie_1_aux_clk
.clkr
,
3440 [GCC_PCIE_1_CFG_AHB_CLK
] = &gcc_pcie_1_cfg_ahb_clk
.clkr
,
3441 [GCC_PCIE_1_MSTR_AXI_CLK
] = &gcc_pcie_1_mstr_axi_clk
.clkr
,
3442 [GCC_PCIE_1_PIPE_CLK
] = &gcc_pcie_1_pipe_clk
.clkr
,
3443 [GCC_PCIE_1_SLV_AXI_CLK
] = &gcc_pcie_1_slv_axi_clk
.clkr
,
3444 [GCC_PDM2_CLK
] = &gcc_pdm2_clk
.clkr
,
3445 [GCC_PDM_AHB_CLK
] = &gcc_pdm_ahb_clk
.clkr
,
3446 [GCC_PERIPH_NOC_USB_HSIC_AHB_CLK
] = &gcc_periph_noc_usb_hsic_ahb_clk
.clkr
,
3447 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
3448 [GCC_SATA_ASIC0_CLK
] = &gcc_sata_asic0_clk
.clkr
,
3449 [GCC_SATA_AXI_CLK
] = &gcc_sata_axi_clk
.clkr
,
3450 [GCC_SATA_CFG_AHB_CLK
] = &gcc_sata_cfg_ahb_clk
.clkr
,
3451 [GCC_SATA_PMALIVE_CLK
] = &gcc_sata_pmalive_clk
.clkr
,
3452 [GCC_SATA_RX_CLK
] = &gcc_sata_rx_clk
.clkr
,
3453 [GCC_SATA_RX_OOB_CLK
] = &gcc_sata_rx_oob_clk
.clkr
,
3454 [GCC_SDCC1_AHB_CLK
] = &gcc_sdcc1_ahb_clk
.clkr
,
3455 [GCC_SDCC1_APPS_CLK
] = &gcc_sdcc1_apps_clk
.clkr
,
3456 [GCC_SDCC1_CDCCAL_FF_CLK
] = &gcc_sdcc1_cdccal_ff_clk
.clkr
,
3457 [GCC_SDCC1_CDCCAL_SLEEP_CLK
] = &gcc_sdcc1_cdccal_sleep_clk
.clkr
,
3458 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
3459 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
3460 [GCC_SDCC3_AHB_CLK
] = &gcc_sdcc3_ahb_clk
.clkr
,
3461 [GCC_SDCC3_APPS_CLK
] = &gcc_sdcc3_apps_clk
.clkr
,
3462 [GCC_SDCC4_AHB_CLK
] = &gcc_sdcc4_ahb_clk
.clkr
,
3463 [GCC_SDCC4_APPS_CLK
] = &gcc_sdcc4_apps_clk
.clkr
,
3464 [GCC_SYS_NOC_UFS_AXI_CLK
] = &gcc_sys_noc_ufs_axi_clk
.clkr
,
3465 [GCC_SYS_NOC_USB3_AXI_CLK
] = &gcc_sys_noc_usb3_axi_clk
.clkr
,
3466 [GCC_SYS_NOC_USB3_SEC_AXI_CLK
] = &gcc_sys_noc_usb3_sec_axi_clk
.clkr
,
3467 [GCC_TSIF_AHB_CLK
] = &gcc_tsif_ahb_clk
.clkr
,
3468 [GCC_TSIF_INACTIVITY_TIMERS_CLK
] = &gcc_tsif_inactivity_timers_clk
.clkr
,
3469 [GCC_TSIF_REF_CLK
] = &gcc_tsif_ref_clk
.clkr
,
3470 [GCC_UFS_AHB_CLK
] = &gcc_ufs_ahb_clk
.clkr
,
3471 [GCC_UFS_AXI_CLK
] = &gcc_ufs_axi_clk
.clkr
,
3472 [GCC_UFS_RX_CFG_CLK
] = &gcc_ufs_rx_cfg_clk
.clkr
,
3473 [GCC_UFS_RX_SYMBOL_0_CLK
] = &gcc_ufs_rx_symbol_0_clk
.clkr
,
3474 [GCC_UFS_RX_SYMBOL_1_CLK
] = &gcc_ufs_rx_symbol_1_clk
.clkr
,
3475 [GCC_UFS_TX_CFG_CLK
] = &gcc_ufs_tx_cfg_clk
.clkr
,
3476 [GCC_UFS_TX_SYMBOL_0_CLK
] = &gcc_ufs_tx_symbol_0_clk
.clkr
,
3477 [GCC_UFS_TX_SYMBOL_1_CLK
] = &gcc_ufs_tx_symbol_1_clk
.clkr
,
3478 [GCC_USB2A_PHY_SLEEP_CLK
] = &gcc_usb2a_phy_sleep_clk
.clkr
,
3479 [GCC_USB2B_PHY_SLEEP_CLK
] = &gcc_usb2b_phy_sleep_clk
.clkr
,
3480 [GCC_USB30_MASTER_CLK
] = &gcc_usb30_master_clk
.clkr
,
3481 [GCC_USB30_MOCK_UTMI_CLK
] = &gcc_usb30_mock_utmi_clk
.clkr
,
3482 [GCC_USB30_SLEEP_CLK
] = &gcc_usb30_sleep_clk
.clkr
,
3483 [GCC_USB30_SEC_MASTER_CLK
] = &gcc_usb30_sec_master_clk
.clkr
,
3484 [GCC_USB30_SEC_MOCK_UTMI_CLK
] = &gcc_usb30_sec_mock_utmi_clk
.clkr
,
3485 [GCC_USB30_SEC_SLEEP_CLK
] = &gcc_usb30_sec_sleep_clk
.clkr
,
3486 [GCC_USB_HS_AHB_CLK
] = &gcc_usb_hs_ahb_clk
.clkr
,
3487 [GCC_USB_HS_INACTIVITY_TIMERS_CLK
] = &gcc_usb_hs_inactivity_timers_clk
.clkr
,
3488 [GCC_USB_HS_SYSTEM_CLK
] = &gcc_usb_hs_system_clk
.clkr
,
3489 [GCC_USB_HSIC_AHB_CLK
] = &gcc_usb_hsic_ahb_clk
.clkr
,
3490 [GCC_USB_HSIC_CLK
] = &gcc_usb_hsic_clk
.clkr
,
3491 [GCC_USB_HSIC_IO_CAL_CLK
] = &gcc_usb_hsic_io_cal_clk
.clkr
,
3492 [GCC_USB_HSIC_IO_CAL_SLEEP_CLK
] = &gcc_usb_hsic_io_cal_sleep_clk
.clkr
,
3493 [GCC_USB_HSIC_MOCK_UTMI_CLK
] = &gcc_usb_hsic_mock_utmi_clk
.clkr
,
3494 [GCC_USB_HSIC_SYSTEM_CLK
] = &gcc_usb_hsic_system_clk
.clkr
,
3495 [GCC_MMSS_GPLL0_CLK_SRC
] = &gcc_mmss_gpll0_clk_src
,
3498 static struct gdsc
*gcc_apq8084_gdscs
[] = {
3499 [USB_HS_HSIC_GDSC
] = &usb_hs_hsic_gdsc
,
3500 [PCIE0_GDSC
] = &pcie0_gdsc
,
3501 [PCIE1_GDSC
] = &pcie1_gdsc
,
3502 [USB30_GDSC
] = &usb30_gdsc
,
3505 static const struct qcom_reset_map gcc_apq8084_resets
[] = {
3506 [GCC_SYSTEM_NOC_BCR
] = { 0x0100 },
3507 [GCC_CONFIG_NOC_BCR
] = { 0x0140 },
3508 [GCC_PERIPH_NOC_BCR
] = { 0x0180 },
3509 [GCC_IMEM_BCR
] = { 0x0200 },
3510 [GCC_MMSS_BCR
] = { 0x0240 },
3511 [GCC_QDSS_BCR
] = { 0x0300 },
3512 [GCC_USB_30_BCR
] = { 0x03c0 },
3513 [GCC_USB3_PHY_BCR
] = { 0x03fc },
3514 [GCC_USB_HS_HSIC_BCR
] = { 0x0400 },
3515 [GCC_USB_HS_BCR
] = { 0x0480 },
3516 [GCC_USB2A_PHY_BCR
] = { 0x04a8 },
3517 [GCC_USB2B_PHY_BCR
] = { 0x04b0 },
3518 [GCC_SDCC1_BCR
] = { 0x04c0 },
3519 [GCC_SDCC2_BCR
] = { 0x0500 },
3520 [GCC_SDCC3_BCR
] = { 0x0540 },
3521 [GCC_SDCC4_BCR
] = { 0x0580 },
3522 [GCC_BLSP1_BCR
] = { 0x05c0 },
3523 [GCC_BLSP1_QUP1_BCR
] = { 0x0640 },
3524 [GCC_BLSP1_UART1_BCR
] = { 0x0680 },
3525 [GCC_BLSP1_QUP2_BCR
] = { 0x06c0 },
3526 [GCC_BLSP1_UART2_BCR
] = { 0x0700 },
3527 [GCC_BLSP1_QUP3_BCR
] = { 0x0740 },
3528 [GCC_BLSP1_UART3_BCR
] = { 0x0780 },
3529 [GCC_BLSP1_QUP4_BCR
] = { 0x07c0 },
3530 [GCC_BLSP1_UART4_BCR
] = { 0x0800 },
3531 [GCC_BLSP1_QUP5_BCR
] = { 0x0840 },
3532 [GCC_BLSP1_UART5_BCR
] = { 0x0880 },
3533 [GCC_BLSP1_QUP6_BCR
] = { 0x08c0 },
3534 [GCC_BLSP1_UART6_BCR
] = { 0x0900 },
3535 [GCC_BLSP2_BCR
] = { 0x0940 },
3536 [GCC_BLSP2_QUP1_BCR
] = { 0x0980 },
3537 [GCC_BLSP2_UART1_BCR
] = { 0x09c0 },
3538 [GCC_BLSP2_QUP2_BCR
] = { 0x0a00 },
3539 [GCC_BLSP2_UART2_BCR
] = { 0x0a40 },
3540 [GCC_BLSP2_QUP3_BCR
] = { 0x0a80 },
3541 [GCC_BLSP2_UART3_BCR
] = { 0x0ac0 },
3542 [GCC_BLSP2_QUP4_BCR
] = { 0x0b00 },
3543 [GCC_BLSP2_UART4_BCR
] = { 0x0b40 },
3544 [GCC_BLSP2_QUP5_BCR
] = { 0x0b80 },
3545 [GCC_BLSP2_UART5_BCR
] = { 0x0bc0 },
3546 [GCC_BLSP2_QUP6_BCR
] = { 0x0c00 },
3547 [GCC_BLSP2_UART6_BCR
] = { 0x0c40 },
3548 [GCC_PDM_BCR
] = { 0x0cc0 },
3549 [GCC_PRNG_BCR
] = { 0x0d00 },
3550 [GCC_BAM_DMA_BCR
] = { 0x0d40 },
3551 [GCC_TSIF_BCR
] = { 0x0d80 },
3552 [GCC_TCSR_BCR
] = { 0x0dc0 },
3553 [GCC_BOOT_ROM_BCR
] = { 0x0e00 },
3554 [GCC_MSG_RAM_BCR
] = { 0x0e40 },
3555 [GCC_TLMM_BCR
] = { 0x0e80 },
3556 [GCC_MPM_BCR
] = { 0x0ec0 },
3557 [GCC_MPM_AHB_RESET
] = { 0x0ec4, 1 },
3558 [GCC_MPM_NON_AHB_RESET
] = { 0x0ec4, 2 },
3559 [GCC_SEC_CTRL_BCR
] = { 0x0f40 },
3560 [GCC_SPMI_BCR
] = { 0x0fc0 },
3561 [GCC_SPDM_BCR
] = { 0x1000 },
3562 [GCC_CE1_BCR
] = { 0x1040 },
3563 [GCC_CE2_BCR
] = { 0x1080 },
3564 [GCC_BIMC_BCR
] = { 0x1100 },
3565 [GCC_SNOC_BUS_TIMEOUT0_BCR
] = { 0x1240 },
3566 [GCC_SNOC_BUS_TIMEOUT2_BCR
] = { 0x1248 },
3567 [GCC_PNOC_BUS_TIMEOUT0_BCR
] = { 0x1280 },
3568 [GCC_PNOC_BUS_TIMEOUT1_BCR
] = { 0x1288 },
3569 [GCC_PNOC_BUS_TIMEOUT2_BCR
] = { 0x1290 },
3570 [GCC_PNOC_BUS_TIMEOUT3_BCR
] = { 0x1298 },
3571 [GCC_PNOC_BUS_TIMEOUT4_BCR
] = { 0x12a0 },
3572 [GCC_CNOC_BUS_TIMEOUT0_BCR
] = { 0x12c0 },
3573 [GCC_CNOC_BUS_TIMEOUT1_BCR
] = { 0x12c8 },
3574 [GCC_CNOC_BUS_TIMEOUT2_BCR
] = { 0x12d0 },
3575 [GCC_CNOC_BUS_TIMEOUT3_BCR
] = { 0x12d8 },
3576 [GCC_CNOC_BUS_TIMEOUT4_BCR
] = { 0x12e0 },
3577 [GCC_CNOC_BUS_TIMEOUT5_BCR
] = { 0x12e8 },
3578 [GCC_CNOC_BUS_TIMEOUT6_BCR
] = { 0x12f0 },
3579 [GCC_DEHR_BCR
] = { 0x1300 },
3580 [GCC_RBCPR_BCR
] = { 0x1380 },
3581 [GCC_MSS_RESTART
] = { 0x1680 },
3582 [GCC_LPASS_RESTART
] = { 0x16c0 },
3583 [GCC_WCSS_RESTART
] = { 0x1700 },
3584 [GCC_VENUS_RESTART
] = { 0x1740 },
3585 [GCC_COPSS_SMMU_BCR
] = { 0x1a40 },
3586 [GCC_SPSS_BCR
] = { 0x1a80 },
3587 [GCC_PCIE_0_BCR
] = { 0x1ac0 },
3588 [GCC_PCIE_0_PHY_BCR
] = { 0x1b00 },
3589 [GCC_PCIE_1_BCR
] = { 0x1b40 },
3590 [GCC_PCIE_1_PHY_BCR
] = { 0x1b80 },
3591 [GCC_USB_30_SEC_BCR
] = { 0x1bc0 },
3592 [GCC_USB3_SEC_PHY_BCR
] = { 0x1bfc },
3593 [GCC_SATA_BCR
] = { 0x1c40 },
3594 [GCC_CE3_BCR
] = { 0x1d00 },
3595 [GCC_UFS_BCR
] = { 0x1d40 },
3596 [GCC_USB30_PHY_COM_BCR
] = { 0x1e80 },
3599 static const struct regmap_config gcc_apq8084_regmap_config
= {
3603 .max_register
= 0x1fc0,
3607 static const struct qcom_cc_desc gcc_apq8084_desc
= {
3608 .config
= &gcc_apq8084_regmap_config
,
3609 .clks
= gcc_apq8084_clocks
,
3610 .num_clks
= ARRAY_SIZE(gcc_apq8084_clocks
),
3611 .resets
= gcc_apq8084_resets
,
3612 .num_resets
= ARRAY_SIZE(gcc_apq8084_resets
),
3613 .gdscs
= gcc_apq8084_gdscs
,
3614 .num_gdscs
= ARRAY_SIZE(gcc_apq8084_gdscs
),
3617 static const struct of_device_id gcc_apq8084_match_table
[] = {
3618 { .compatible
= "qcom,gcc-apq8084" },
3621 MODULE_DEVICE_TABLE(of
, gcc_apq8084_match_table
);
3623 static int gcc_apq8084_probe(struct platform_device
*pdev
)
3626 struct device
*dev
= &pdev
->dev
;
3628 ret
= qcom_cc_register_board_clk(dev
, "xo_board", "xo", 19200000);
3632 ret
= qcom_cc_register_sleep_clk(dev
);
3636 return qcom_cc_probe(pdev
, &gcc_apq8084_desc
);
3639 static struct platform_driver gcc_apq8084_driver
= {
3640 .probe
= gcc_apq8084_probe
,
3642 .name
= "gcc-apq8084",
3643 .of_match_table
= gcc_apq8084_match_table
,
3647 static int __init
gcc_apq8084_init(void)
3649 return platform_driver_register(&gcc_apq8084_driver
);
3651 core_initcall(gcc_apq8084_init
);
3653 static void __exit
gcc_apq8084_exit(void)
3655 platform_driver_unregister(&gcc_apq8084_driver
);
3657 module_exit(gcc_apq8084_exit
);
3659 MODULE_DESCRIPTION("QCOM GCC APQ8084 Driver");
3660 MODULE_LICENSE("GPL v2");
3661 MODULE_ALIAS("platform:gcc-apq8084");