1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020-2021, Linaro Ltd.
7 #include <linux/bitops.h>
8 #include <linux/clk-provider.h>
10 #include <linux/kernel.h>
11 #include <linux/module.h>
13 #include <linux/platform_device.h>
14 #include <linux/regmap.h>
15 #include <linux/reset-controller.h>
17 #include <dt-bindings/clock/qcom,gcc-sc8180x.h>
20 #include "clk-alpha-pll.h"
21 #include "clk-branch.h"
24 #include "clk-regmap.h"
42 static const struct pll_vco trion_vco
[] = {
43 { 249600000, 2000000000, 0 },
46 static struct clk_alpha_pll gpll0
= {
48 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
49 .vco_table
= trion_vco
,
50 .num_vco
= ARRAY_SIZE(trion_vco
),
52 .enable_reg
= 0x52000,
53 .enable_mask
= BIT(0),
54 .hw
.init
= &(struct clk_init_data
){
56 .parent_data
= &(const struct clk_parent_data
){
60 .ops
= &clk_alpha_pll_fixed_trion_ops
,
65 static const struct clk_div_table post_div_table_trion_even
[] = {
73 static struct clk_alpha_pll_postdiv gpll0_out_even
= {
76 .post_div_table
= post_div_table_trion_even
,
77 .num_post_div
= ARRAY_SIZE(post_div_table_trion_even
),
78 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
80 .clkr
.hw
.init
= &(struct clk_init_data
){
81 .name
= "gpll0_out_even",
82 .parent_hws
= (const struct clk_hw
*[]){ &gpll0
.clkr
.hw
},
84 .ops
= &clk_alpha_pll_postdiv_trion_ops
,
88 static struct clk_alpha_pll gpll1
= {
90 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
91 .vco_table
= trion_vco
,
92 .num_vco
= ARRAY_SIZE(trion_vco
),
94 .enable_reg
= 0x52000,
95 .enable_mask
= BIT(1),
96 .hw
.init
= &(struct clk_init_data
){
98 .parent_data
= &(const struct clk_parent_data
){
102 .ops
= &clk_alpha_pll_fixed_trion_ops
,
107 static struct clk_alpha_pll gpll4
= {
109 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
110 .vco_table
= trion_vco
,
111 .num_vco
= ARRAY_SIZE(trion_vco
),
113 .enable_reg
= 0x52000,
114 .enable_mask
= BIT(4),
115 .hw
.init
= &(struct clk_init_data
){
117 .parent_data
= &(const struct clk_parent_data
){
118 .fw_name
= "bi_tcxo",
121 .ops
= &clk_alpha_pll_fixed_trion_ops
,
126 static struct clk_alpha_pll gpll7
= {
128 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
129 .vco_table
= trion_vco
,
130 .num_vco
= ARRAY_SIZE(trion_vco
),
132 .enable_reg
= 0x52000,
133 .enable_mask
= BIT(7),
134 .hw
.init
= &(struct clk_init_data
){
136 .parent_data
= &(const struct clk_parent_data
){
137 .fw_name
= "bi_tcxo",
140 .ops
= &clk_alpha_pll_fixed_trion_ops
,
145 static struct clk_alpha_pll gpll9
= {
147 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_TRION
],
149 .enable_reg
= 0x52000,
150 .enable_mask
= BIT(9),
151 .hw
.init
= &(const struct clk_init_data
) {
153 .parent_data
= &(const struct clk_parent_data
) {
154 .fw_name
= "bi_tcxo",
157 .ops
= &clk_alpha_pll_fixed_trion_ops
,
162 static const struct parent_map gcc_parent_map_0
[] = {
164 { P_GPLL0_OUT_MAIN
, 1 },
165 { P_GPLL0_OUT_EVEN
, 6 },
168 static const struct clk_parent_data gcc_parents_0
[] = {
169 { .fw_name
= "bi_tcxo" },
170 { .hw
= &gpll0
.clkr
.hw
},
171 { .hw
= &gpll0_out_even
.clkr
.hw
},
174 static const struct parent_map gcc_parent_map_1
[] = {
176 { P_GPLL0_OUT_MAIN
, 1 },
178 { P_GPLL0_OUT_EVEN
, 6 },
181 static const struct clk_parent_data gcc_parents_1
[] = {
182 { .fw_name
= "bi_tcxo", },
183 { .hw
= &gpll0
.clkr
.hw
},
184 { .fw_name
= "sleep_clk", },
185 { .hw
= &gpll0_out_even
.clkr
.hw
},
188 static const struct parent_map gcc_parent_map_2
[] = {
193 static const struct clk_parent_data gcc_parents_2
[] = {
194 { .fw_name
= "bi_tcxo", },
195 { .fw_name
= "sleep_clk", },
198 static const struct parent_map gcc_parent_map_3
[] = {
200 { P_GPLL0_OUT_MAIN
, 1 },
201 { P_GPLL2_OUT_MAIN
, 2 },
202 { P_GPLL5_OUT_MAIN
, 3 },
203 { P_GPLL1_OUT_MAIN
, 4 },
204 { P_GPLL4_OUT_MAIN
, 5 },
205 { P_GPLL0_OUT_EVEN
, 6 },
208 static const struct clk_parent_data gcc_parents_3
[] = {
209 { .fw_name
= "bi_tcxo", },
210 { .hw
= &gpll0
.clkr
.hw
},
213 { .hw
= &gpll1
.clkr
.hw
},
214 { .hw
= &gpll4
.clkr
.hw
},
215 { .hw
= &gpll0_out_even
.clkr
.hw
},
218 static const struct parent_map gcc_parent_map_4
[] = {
222 static const struct clk_parent_data gcc_parents_4
[] = {
223 { .fw_name
= "bi_tcxo", },
226 static const struct parent_map gcc_parent_map_5
[] = {
228 { P_GPLL0_OUT_MAIN
, 1 },
231 static const struct clk_parent_data gcc_parents_5
[] = {
232 { .fw_name
= "bi_tcxo", },
233 { .hw
= &gpll0
.clkr
.hw
},
236 static const struct parent_map gcc_parent_map_6
[] = {
238 { P_GPLL0_OUT_MAIN
, 1 },
239 { P_GPLL7_OUT_MAIN
, 3 },
240 { P_GPLL0_OUT_EVEN
, 6 },
243 static const struct clk_parent_data gcc_parents_6
[] = {
244 { .fw_name
= "bi_tcxo", },
245 { .hw
= &gpll0
.clkr
.hw
},
246 { .hw
= &gpll7
.clkr
.hw
},
247 { .hw
= &gpll0_out_even
.clkr
.hw
},
250 static const struct parent_map gcc_parent_map_7
[] = {
252 { P_GPLL0_OUT_MAIN
, 1 },
253 { P_GPLL9_OUT_MAIN
, 2 },
254 { P_GPLL4_OUT_MAIN
, 5 },
255 { P_GPLL0_OUT_EVEN
, 6 },
258 static const struct clk_parent_data gcc_parents_7
[] = {
259 { .fw_name
= "bi_tcxo", },
260 { .hw
= &gpll0
.clkr
.hw
},
261 { .hw
= &gpll9
.clkr
.hw
},
262 { .hw
= &gpll4
.clkr
.hw
},
263 { .hw
= &gpll0_out_even
.clkr
.hw
},
266 static const struct parent_map gcc_parent_map_8
[] = {
268 { P_GPLL0_OUT_MAIN
, 1 },
269 { P_AUD_REF_CLK
, 2 },
270 { P_GPLL0_OUT_EVEN
, 6 },
273 static const struct clk_parent_data gcc_parents_8
[] = {
274 { .fw_name
= "bi_tcxo", },
275 { .hw
= &gpll0
.clkr
.hw
},
276 { .name
= "aud_ref_clk" },
277 { .hw
= &gpll0_out_even
.clkr
.hw
},
280 static const struct freq_tbl ftbl_gcc_emac_ptp_clk_src
[] = {
281 F(19200000, P_BI_TCXO
, 1, 0, 0),
282 F(50000000, P_GPLL0_OUT_EVEN
, 6, 0, 0),
283 F(125000000, P_GPLL7_OUT_MAIN
, 4, 0, 0),
284 F(250000000, P_GPLL7_OUT_MAIN
, 2, 0, 0),
288 static struct clk_rcg2 gcc_emac_ptp_clk_src
= {
292 .parent_map
= gcc_parent_map_6
,
293 .freq_tbl
= ftbl_gcc_emac_ptp_clk_src
,
294 .clkr
.hw
.init
= &(struct clk_init_data
){
295 .name
= "gcc_emac_ptp_clk_src",
296 .parent_data
= gcc_parents_6
,
297 .num_parents
= ARRAY_SIZE(gcc_parents_6
),
298 .flags
= CLK_SET_RATE_PARENT
,
299 .ops
= &clk_rcg2_ops
,
303 static const struct freq_tbl ftbl_gcc_emac_rgmii_clk_src
[] = {
304 F(2500000, P_BI_TCXO
, 1, 25, 192),
305 F(5000000, P_BI_TCXO
, 1, 25, 96),
306 F(19200000, P_BI_TCXO
, 1, 0, 0),
307 F(25000000, P_GPLL0_OUT_EVEN
, 12, 0, 0),
308 F(50000000, P_GPLL0_OUT_EVEN
, 6, 0, 0),
309 F(125000000, P_GPLL7_OUT_MAIN
, 4, 0, 0),
310 F(250000000, P_GPLL7_OUT_MAIN
, 2, 0, 0),
314 static struct clk_rcg2 gcc_emac_rgmii_clk_src
= {
318 .parent_map
= gcc_parent_map_6
,
319 .freq_tbl
= ftbl_gcc_emac_rgmii_clk_src
,
320 .clkr
.hw
.init
= &(struct clk_init_data
){
321 .name
= "gcc_emac_rgmii_clk_src",
322 .parent_data
= gcc_parents_6
,
323 .num_parents
= ARRAY_SIZE(gcc_parents_6
),
324 .flags
= CLK_SET_RATE_PARENT
,
325 .ops
= &clk_rcg2_ops
,
329 static const struct freq_tbl ftbl_gcc_gp1_clk_src
[] = {
330 F(19200000, P_BI_TCXO
, 1, 0, 0),
331 F(25000000, P_GPLL0_OUT_EVEN
, 12, 0, 0),
332 F(50000000, P_GPLL0_OUT_EVEN
, 6, 0, 0),
333 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
334 F(200000000, P_GPLL0_OUT_MAIN
, 3, 0, 0),
338 static struct clk_rcg2 gcc_gp1_clk_src
= {
342 .parent_map
= gcc_parent_map_1
,
343 .freq_tbl
= ftbl_gcc_gp1_clk_src
,
344 .clkr
.hw
.init
= &(struct clk_init_data
){
345 .name
= "gcc_gp1_clk_src",
346 .parent_data
= gcc_parents_1
,
347 .num_parents
= ARRAY_SIZE(gcc_parents_1
),
348 .flags
= CLK_SET_RATE_PARENT
,
349 .ops
= &clk_rcg2_ops
,
353 static struct clk_rcg2 gcc_gp2_clk_src
= {
357 .parent_map
= gcc_parent_map_1
,
358 .freq_tbl
= ftbl_gcc_gp1_clk_src
,
359 .clkr
.hw
.init
= &(struct clk_init_data
){
360 .name
= "gcc_gp2_clk_src",
361 .parent_data
= gcc_parents_1
,
362 .num_parents
= ARRAY_SIZE(gcc_parents_1
),
363 .flags
= CLK_SET_RATE_PARENT
,
364 .ops
= &clk_rcg2_ops
,
368 static struct clk_rcg2 gcc_gp3_clk_src
= {
372 .parent_map
= gcc_parent_map_1
,
373 .freq_tbl
= ftbl_gcc_gp1_clk_src
,
374 .clkr
.hw
.init
= &(struct clk_init_data
){
375 .name
= "gcc_gp3_clk_src",
376 .parent_data
= gcc_parents_1
,
377 .num_parents
= ARRAY_SIZE(gcc_parents_1
),
378 .flags
= CLK_SET_RATE_PARENT
,
379 .ops
= &clk_rcg2_ops
,
383 static struct clk_rcg2 gcc_gp4_clk_src
= {
387 .parent_map
= gcc_parent_map_1
,
388 .freq_tbl
= ftbl_gcc_gp1_clk_src
,
389 .clkr
.hw
.init
= &(struct clk_init_data
){
390 .name
= "gcc_gp4_clk_src",
391 .parent_data
= gcc_parents_1
,
392 .num_parents
= ARRAY_SIZE(gcc_parents_1
),
393 .flags
= CLK_SET_RATE_PARENT
,
394 .ops
= &clk_rcg2_ops
,
398 static struct clk_rcg2 gcc_gp5_clk_src
= {
402 .parent_map
= gcc_parent_map_1
,
403 .freq_tbl
= ftbl_gcc_gp1_clk_src
,
404 .clkr
.hw
.init
= &(struct clk_init_data
){
405 .name
= "gcc_gp5_clk_src",
406 .parent_data
= gcc_parents_1
,
407 .num_parents
= ARRAY_SIZE(gcc_parents_1
),
408 .flags
= CLK_SET_RATE_PARENT
,
409 .ops
= &clk_rcg2_ops
,
413 static const struct freq_tbl ftbl_gcc_npu_axi_clk_src
[] = {
414 F(19200000, P_BI_TCXO
, 1, 0, 0),
415 F(60000000, P_GPLL0_OUT_EVEN
, 5, 0, 0),
416 F(150000000, P_GPLL0_OUT_EVEN
, 2, 0, 0),
417 F(200000000, P_GPLL0_OUT_MAIN
, 3, 0, 0),
418 F(300000000, P_GPLL0_OUT_MAIN
, 2, 0, 0),
419 F(403000000, P_GPLL4_OUT_MAIN
, 2, 0, 0),
420 F(533000000, P_GPLL1_OUT_MAIN
, 2, 0, 0),
424 static struct clk_rcg2 gcc_npu_axi_clk_src
= {
428 .parent_map
= gcc_parent_map_3
,
429 .freq_tbl
= ftbl_gcc_npu_axi_clk_src
,
430 .clkr
.hw
.init
= &(struct clk_init_data
){
431 .name
= "gcc_npu_axi_clk_src",
432 .parent_data
= gcc_parents_3
,
433 .num_parents
= ARRAY_SIZE(gcc_parents_3
),
434 .flags
= CLK_SET_RATE_PARENT
,
435 .ops
= &clk_rcg2_ops
,
439 static const struct freq_tbl ftbl_gcc_pcie_0_aux_clk_src
[] = {
440 F(9600000, P_BI_TCXO
, 2, 0, 0),
441 F(19200000, P_BI_TCXO
, 1, 0, 0),
445 static struct clk_rcg2 gcc_pcie_0_aux_clk_src
= {
449 .parent_map
= gcc_parent_map_2
,
450 .freq_tbl
= ftbl_gcc_pcie_0_aux_clk_src
,
451 .clkr
.hw
.init
= &(struct clk_init_data
){
452 .name
= "gcc_pcie_0_aux_clk_src",
453 .parent_data
= gcc_parents_2
,
454 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
455 .flags
= CLK_SET_RATE_PARENT
,
456 .ops
= &clk_rcg2_ops
,
460 static struct clk_rcg2 gcc_pcie_1_aux_clk_src
= {
464 .parent_map
= gcc_parent_map_2
,
465 .freq_tbl
= ftbl_gcc_pcie_0_aux_clk_src
,
466 .clkr
.hw
.init
= &(struct clk_init_data
){
467 .name
= "gcc_pcie_1_aux_clk_src",
468 .parent_data
= gcc_parents_2
,
469 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
470 .flags
= CLK_SET_RATE_PARENT
,
471 .ops
= &clk_rcg2_ops
,
475 static struct clk_rcg2 gcc_pcie_2_aux_clk_src
= {
479 .parent_map
= gcc_parent_map_2
,
480 .freq_tbl
= ftbl_gcc_pcie_0_aux_clk_src
,
481 .clkr
.hw
.init
= &(struct clk_init_data
){
482 .name
= "gcc_pcie_2_aux_clk_src",
483 .parent_data
= gcc_parents_2
,
484 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
485 .flags
= CLK_SET_RATE_PARENT
,
486 .ops
= &clk_rcg2_ops
,
490 static struct clk_rcg2 gcc_pcie_3_aux_clk_src
= {
494 .parent_map
= gcc_parent_map_2
,
495 .freq_tbl
= ftbl_gcc_pcie_0_aux_clk_src
,
496 .clkr
.hw
.init
= &(struct clk_init_data
){
497 .name
= "gcc_pcie_3_aux_clk_src",
498 .parent_data
= gcc_parents_2
,
499 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
500 .flags
= CLK_SET_RATE_PARENT
,
501 .ops
= &clk_rcg2_ops
,
505 static const struct freq_tbl ftbl_gcc_pcie_phy_refgen_clk_src
[] = {
506 F(19200000, P_BI_TCXO
, 1, 0, 0),
507 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
511 static struct clk_rcg2 gcc_pcie_phy_refgen_clk_src
= {
515 .parent_map
= gcc_parent_map_0
,
516 .freq_tbl
= ftbl_gcc_pcie_phy_refgen_clk_src
,
517 .clkr
.hw
.init
= &(struct clk_init_data
){
518 .name
= "gcc_pcie_phy_refgen_clk_src",
519 .parent_data
= gcc_parents_0
,
520 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
521 .flags
= CLK_SET_RATE_PARENT
,
522 .ops
= &clk_rcg2_ops
,
526 static const struct freq_tbl ftbl_gcc_pdm2_clk_src
[] = {
527 F(9600000, P_BI_TCXO
, 2, 0, 0),
528 F(19200000, P_BI_TCXO
, 1, 0, 0),
529 F(60000000, P_GPLL0_OUT_MAIN
, 10, 0, 0),
533 static struct clk_rcg2 gcc_pdm2_clk_src
= {
537 .parent_map
= gcc_parent_map_0
,
538 .freq_tbl
= ftbl_gcc_pdm2_clk_src
,
539 .clkr
.hw
.init
= &(struct clk_init_data
){
540 .name
= "gcc_pdm2_clk_src",
541 .parent_data
= gcc_parents_0
,
542 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
543 .flags
= CLK_SET_RATE_PARENT
,
544 .ops
= &clk_rcg2_ops
,
548 static const struct freq_tbl ftbl_gcc_qspi_1_core_clk_src
[] = {
549 F(19200000, P_BI_TCXO
, 1, 0, 0),
550 F(75000000, P_GPLL0_OUT_EVEN
, 4, 0, 0),
551 F(150000000, P_GPLL0_OUT_MAIN
, 4, 0, 0),
552 F(300000000, P_GPLL0_OUT_MAIN
, 2, 0, 0),
556 static struct clk_rcg2 gcc_qspi_1_core_clk_src
= {
560 .parent_map
= gcc_parent_map_0
,
561 .freq_tbl
= ftbl_gcc_qspi_1_core_clk_src
,
562 .clkr
.hw
.init
= &(struct clk_init_data
){
563 .name
= "gcc_qspi_1_core_clk_src",
564 .parent_data
= gcc_parents_0
,
565 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
566 .flags
= CLK_SET_RATE_PARENT
,
567 .ops
= &clk_rcg2_ops
,
571 static struct clk_rcg2 gcc_qspi_core_clk_src
= {
575 .parent_map
= gcc_parent_map_0
,
576 .freq_tbl
= ftbl_gcc_qspi_1_core_clk_src
,
577 .clkr
.hw
.init
= &(struct clk_init_data
){
578 .name
= "gcc_qspi_core_clk_src",
579 .parent_data
= gcc_parents_0
,
580 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
581 .flags
= CLK_SET_RATE_PARENT
,
582 .ops
= &clk_rcg2_ops
,
586 static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src
[] = {
587 F(7372800, P_GPLL0_OUT_EVEN
, 1, 384, 15625),
588 F(14745600, P_GPLL0_OUT_EVEN
, 1, 768, 15625),
589 F(19200000, P_BI_TCXO
, 1, 0, 0),
590 F(29491200, P_GPLL0_OUT_EVEN
, 1, 1536, 15625),
591 F(32000000, P_GPLL0_OUT_EVEN
, 1, 8, 75),
592 F(48000000, P_GPLL0_OUT_EVEN
, 1, 4, 25),
593 F(50000000, P_GPLL0_OUT_EVEN
, 6, 0, 0),
594 F(64000000, P_GPLL0_OUT_EVEN
, 1, 16, 75),
595 F(75000000, P_GPLL0_OUT_EVEN
, 4, 0, 0),
596 F(80000000, P_GPLL0_OUT_EVEN
, 1, 4, 15),
597 F(96000000, P_GPLL0_OUT_EVEN
, 1, 8, 25),
598 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
599 F(102400000, P_GPLL0_OUT_EVEN
, 1, 128, 375),
600 F(112000000, P_GPLL0_OUT_EVEN
, 1, 28, 75),
601 F(117964800, P_GPLL0_OUT_EVEN
, 1, 6144, 15625),
602 F(120000000, P_GPLL0_OUT_EVEN
, 2.5, 0, 0),
603 F(128000000, P_GPLL0_OUT_MAIN
, 1, 16, 75),
607 static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init
= {
608 .name
= "gcc_qupv3_wrap0_s0_clk_src",
609 .parent_data
= gcc_parents_0
,
610 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
611 .flags
= CLK_SET_RATE_PARENT
,
612 .ops
= &clk_rcg2_ops
,
615 static struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src
= {
619 .parent_map
= gcc_parent_map_0
,
620 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
621 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s0_clk_src_init
,
624 static struct clk_init_data gcc_qupv3_wrap0_s1_clk_src_init
= {
625 .name
= "gcc_qupv3_wrap0_s1_clk_src",
626 .parent_data
= gcc_parents_0
,
627 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
628 .flags
= CLK_SET_RATE_PARENT
,
629 .ops
= &clk_rcg2_ops
,
632 static struct clk_rcg2 gcc_qupv3_wrap0_s1_clk_src
= {
636 .parent_map
= gcc_parent_map_0
,
637 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
638 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s1_clk_src_init
,
641 static struct clk_init_data gcc_qupv3_wrap0_s2_clk_src_init
= {
642 .name
= "gcc_qupv3_wrap0_s2_clk_src",
643 .parent_data
= gcc_parents_0
,
644 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
645 .flags
= CLK_SET_RATE_PARENT
,
646 .ops
= &clk_rcg2_ops
,
649 static struct clk_rcg2 gcc_qupv3_wrap0_s2_clk_src
= {
653 .parent_map
= gcc_parent_map_0
,
654 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
655 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s2_clk_src_init
,
658 static struct clk_init_data gcc_qupv3_wrap0_s3_clk_src_init
= {
659 .name
= "gcc_qupv3_wrap0_s3_clk_src",
660 .parent_data
= gcc_parents_0
,
661 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
662 .flags
= CLK_SET_RATE_PARENT
,
663 .ops
= &clk_rcg2_ops
,
666 static struct clk_rcg2 gcc_qupv3_wrap0_s3_clk_src
= {
670 .parent_map
= gcc_parent_map_0
,
671 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
672 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s3_clk_src_init
,
675 static struct clk_init_data gcc_qupv3_wrap0_s4_clk_src_init
= {
676 .name
= "gcc_qupv3_wrap0_s4_clk_src",
677 .parent_data
= gcc_parents_0
,
678 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
679 .flags
= CLK_SET_RATE_PARENT
,
680 .ops
= &clk_rcg2_ops
,
683 static struct clk_rcg2 gcc_qupv3_wrap0_s4_clk_src
= {
687 .parent_map
= gcc_parent_map_0
,
688 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
689 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s4_clk_src_init
,
692 static struct clk_init_data gcc_qupv3_wrap0_s5_clk_src_init
= {
693 .name
= "gcc_qupv3_wrap0_s5_clk_src",
694 .parent_data
= gcc_parents_0
,
695 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
696 .flags
= CLK_SET_RATE_PARENT
,
697 .ops
= &clk_rcg2_ops
,
700 static struct clk_rcg2 gcc_qupv3_wrap0_s5_clk_src
= {
704 .parent_map
= gcc_parent_map_0
,
705 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
706 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s5_clk_src_init
,
709 static struct clk_init_data gcc_qupv3_wrap0_s6_clk_src_init
= {
710 .name
= "gcc_qupv3_wrap0_s6_clk_src",
711 .parent_data
= gcc_parents_0
,
712 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
713 .flags
= CLK_SET_RATE_PARENT
,
714 .ops
= &clk_rcg2_ops
,
717 static struct clk_rcg2 gcc_qupv3_wrap0_s6_clk_src
= {
721 .parent_map
= gcc_parent_map_0
,
722 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
723 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s6_clk_src_init
,
726 static struct clk_init_data gcc_qupv3_wrap0_s7_clk_src_init
= {
727 .name
= "gcc_qupv3_wrap0_s7_clk_src",
728 .parent_data
= gcc_parents_0
,
729 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
730 .flags
= CLK_SET_RATE_PARENT
,
731 .ops
= &clk_rcg2_ops
,
734 static struct clk_rcg2 gcc_qupv3_wrap0_s7_clk_src
= {
738 .parent_map
= gcc_parent_map_0
,
739 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
740 .clkr
.hw
.init
= &gcc_qupv3_wrap0_s7_clk_src_init
,
743 static struct clk_init_data gcc_qupv3_wrap1_s0_clk_src_init
= {
744 .name
= "gcc_qupv3_wrap1_s0_clk_src",
745 .parent_data
= gcc_parents_0
,
746 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
747 .flags
= CLK_SET_RATE_PARENT
,
748 .ops
= &clk_rcg2_ops
,
751 static struct clk_rcg2 gcc_qupv3_wrap1_s0_clk_src
= {
755 .parent_map
= gcc_parent_map_0
,
756 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
757 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s0_clk_src_init
,
760 static struct clk_init_data gcc_qupv3_wrap1_s1_clk_src_init
= {
761 .name
= "gcc_qupv3_wrap1_s1_clk_src",
762 .parent_data
= gcc_parents_0
,
763 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
764 .flags
= CLK_SET_RATE_PARENT
,
765 .ops
= &clk_rcg2_ops
,
768 static struct clk_rcg2 gcc_qupv3_wrap1_s1_clk_src
= {
772 .parent_map
= gcc_parent_map_0
,
773 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
774 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s1_clk_src_init
,
777 static struct clk_init_data gcc_qupv3_wrap1_s2_clk_src_init
= {
778 .name
= "gcc_qupv3_wrap1_s2_clk_src",
779 .parent_data
= gcc_parents_0
,
780 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
781 .flags
= CLK_SET_RATE_PARENT
,
782 .ops
= &clk_rcg2_ops
,
785 static struct clk_rcg2 gcc_qupv3_wrap1_s2_clk_src
= {
789 .parent_map
= gcc_parent_map_0
,
790 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
791 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s2_clk_src_init
,
794 static struct clk_init_data gcc_qupv3_wrap1_s3_clk_src_init
= {
795 .name
= "gcc_qupv3_wrap1_s3_clk_src",
796 .parent_data
= gcc_parents_0
,
797 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
798 .flags
= CLK_SET_RATE_PARENT
,
799 .ops
= &clk_rcg2_ops
,
802 static struct clk_rcg2 gcc_qupv3_wrap1_s3_clk_src
= {
806 .parent_map
= gcc_parent_map_0
,
807 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
808 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s3_clk_src_init
,
811 static struct clk_init_data gcc_qupv3_wrap1_s4_clk_src_init
= {
812 .name
= "gcc_qupv3_wrap1_s4_clk_src",
813 .parent_data
= gcc_parents_0
,
814 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
815 .flags
= CLK_SET_RATE_PARENT
,
816 .ops
= &clk_rcg2_ops
,
819 static struct clk_rcg2 gcc_qupv3_wrap1_s4_clk_src
= {
823 .parent_map
= gcc_parent_map_0
,
824 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
825 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s4_clk_src_init
,
828 static struct clk_init_data gcc_qupv3_wrap1_s5_clk_src_init
= {
829 .name
= "gcc_qupv3_wrap1_s5_clk_src",
830 .parent_data
= gcc_parents_0
,
831 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
832 .flags
= CLK_SET_RATE_PARENT
,
833 .ops
= &clk_rcg2_ops
,
836 static struct clk_rcg2 gcc_qupv3_wrap1_s5_clk_src
= {
840 .parent_map
= gcc_parent_map_0
,
841 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
842 .clkr
.hw
.init
= &gcc_qupv3_wrap1_s5_clk_src_init
,
845 static struct clk_init_data gcc_qupv3_wrap2_s0_clk_src_init
= {
846 .name
= "gcc_qupv3_wrap2_s0_clk_src",
847 .parent_data
= gcc_parents_0
,
848 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
849 .flags
= CLK_SET_RATE_PARENT
,
850 .ops
= &clk_rcg2_ops
,
853 static struct clk_rcg2 gcc_qupv3_wrap2_s0_clk_src
= {
857 .parent_map
= gcc_parent_map_0
,
858 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
859 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s0_clk_src_init
,
862 static struct clk_init_data gcc_qupv3_wrap2_s1_clk_src_init
= {
863 .name
= "gcc_qupv3_wrap2_s1_clk_src",
864 .parent_data
= gcc_parents_0
,
865 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
866 .flags
= CLK_SET_RATE_PARENT
,
867 .ops
= &clk_rcg2_ops
,
870 static struct clk_rcg2 gcc_qupv3_wrap2_s1_clk_src
= {
874 .parent_map
= gcc_parent_map_0
,
875 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
876 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s1_clk_src_init
,
879 static struct clk_init_data gcc_qupv3_wrap2_s2_clk_src_init
= {
880 .name
= "gcc_qupv3_wrap2_s2_clk_src",
881 .parent_data
= gcc_parents_0
,
882 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
883 .flags
= CLK_SET_RATE_PARENT
,
884 .ops
= &clk_rcg2_ops
,
888 static struct clk_rcg2 gcc_qupv3_wrap2_s2_clk_src
= {
892 .parent_map
= gcc_parent_map_0
,
893 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
894 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s2_clk_src_init
,
897 static struct clk_init_data gcc_qupv3_wrap2_s3_clk_src_init
= {
898 .name
= "gcc_qupv3_wrap2_s3_clk_src",
899 .parent_data
= gcc_parents_0
,
900 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
901 .flags
= CLK_SET_RATE_PARENT
,
902 .ops
= &clk_rcg2_ops
,
905 static struct clk_rcg2 gcc_qupv3_wrap2_s3_clk_src
= {
909 .parent_map
= gcc_parent_map_0
,
910 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
911 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s3_clk_src_init
,
914 static struct clk_init_data gcc_qupv3_wrap2_s4_clk_src_init
= {
915 .name
= "gcc_qupv3_wrap2_s4_clk_src",
916 .parent_data
= gcc_parents_0
,
917 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
918 .flags
= CLK_SET_RATE_PARENT
,
919 .ops
= &clk_rcg2_ops
,
922 static struct clk_rcg2 gcc_qupv3_wrap2_s4_clk_src
= {
926 .parent_map
= gcc_parent_map_0
,
927 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
928 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s4_clk_src_init
,
931 static struct clk_init_data gcc_qupv3_wrap2_s5_clk_src_init
= {
932 .name
= "gcc_qupv3_wrap2_s5_clk_src",
933 .parent_data
= gcc_parents_0
,
934 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
935 .flags
= CLK_SET_RATE_PARENT
,
936 .ops
= &clk_rcg2_ops
,
939 static struct clk_rcg2 gcc_qupv3_wrap2_s5_clk_src
= {
943 .parent_map
= gcc_parent_map_0
,
944 .freq_tbl
= ftbl_gcc_qupv3_wrap0_s0_clk_src
,
945 .clkr
.hw
.init
= &gcc_qupv3_wrap2_s5_clk_src_init
,
948 static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src
[] = {
949 F(400000, P_BI_TCXO
, 12, 1, 4),
950 F(9600000, P_BI_TCXO
, 2, 0, 0),
951 F(19200000, P_BI_TCXO
, 1, 0, 0),
952 F(25000000, P_GPLL0_OUT_MAIN
, 12, 1, 2),
953 F(50000000, P_GPLL0_OUT_MAIN
, 12, 0, 0),
954 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
955 F(202000000, P_GPLL9_OUT_MAIN
, 4, 0, 0),
959 static struct clk_rcg2 gcc_sdcc2_apps_clk_src
= {
963 .parent_map
= gcc_parent_map_7
,
964 .freq_tbl
= ftbl_gcc_sdcc2_apps_clk_src
,
965 .clkr
.hw
.init
= &(struct clk_init_data
){
966 .name
= "gcc_sdcc2_apps_clk_src",
967 .parent_data
= gcc_parents_7
,
968 .num_parents
= ARRAY_SIZE(gcc_parents_7
),
969 .flags
= CLK_SET_RATE_PARENT
,
970 .ops
= &clk_rcg2_floor_ops
,
974 static const struct freq_tbl ftbl_gcc_sdcc4_apps_clk_src
[] = {
975 F(400000, P_BI_TCXO
, 12, 1, 4),
976 F(9600000, P_BI_TCXO
, 2, 0, 0),
977 F(19200000, P_BI_TCXO
, 1, 0, 0),
978 F(50000000, P_GPLL0_OUT_MAIN
, 12, 0, 0),
979 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
983 static struct clk_rcg2 gcc_sdcc4_apps_clk_src
= {
987 .parent_map
= gcc_parent_map_5
,
988 .freq_tbl
= ftbl_gcc_sdcc4_apps_clk_src
,
989 .clkr
.hw
.init
= &(struct clk_init_data
){
990 .name
= "gcc_sdcc4_apps_clk_src",
991 .parent_data
= gcc_parents_5
,
992 .num_parents
= ARRAY_SIZE(gcc_parents_5
),
993 .flags
= CLK_SET_RATE_PARENT
,
994 .ops
= &clk_rcg2_floor_ops
,
998 static const struct freq_tbl ftbl_gcc_tsif_ref_clk_src
[] = {
999 F(105495, P_BI_TCXO
, 2, 1, 91),
1003 static struct clk_rcg2 gcc_tsif_ref_clk_src
= {
1004 .cmd_rcgr
= 0x36010,
1007 .parent_map
= gcc_parent_map_8
,
1008 .freq_tbl
= ftbl_gcc_tsif_ref_clk_src
,
1009 .clkr
.hw
.init
= &(struct clk_init_data
){
1010 .name
= "gcc_tsif_ref_clk_src",
1011 .parent_data
= gcc_parents_8
,
1012 .num_parents
= ARRAY_SIZE(gcc_parents_8
),
1013 .flags
= CLK_SET_RATE_PARENT
,
1014 .ops
= &clk_rcg2_ops
,
1018 static const struct freq_tbl ftbl_gcc_ufs_card_2_axi_clk_src
[] = {
1019 F(37500000, P_GPLL0_OUT_EVEN
, 8, 0, 0),
1020 F(75000000, P_GPLL0_OUT_EVEN
, 4, 0, 0),
1021 F(150000000, P_GPLL0_OUT_MAIN
, 4, 0, 0),
1022 F(300000000, P_GPLL0_OUT_MAIN
, 2, 0, 0),
1026 static struct clk_rcg2 gcc_ufs_card_2_axi_clk_src
= {
1027 .cmd_rcgr
= 0xa2020,
1030 .parent_map
= gcc_parent_map_0
,
1031 .freq_tbl
= ftbl_gcc_ufs_card_2_axi_clk_src
,
1032 .clkr
.hw
.init
= &(struct clk_init_data
){
1033 .name
= "gcc_ufs_card_2_axi_clk_src",
1034 .parent_data
= gcc_parents_0
,
1035 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1036 .flags
= CLK_SET_RATE_PARENT
,
1037 .ops
= &clk_rcg2_ops
,
1041 static struct clk_rcg2 gcc_ufs_card_2_ice_core_clk_src
= {
1042 .cmd_rcgr
= 0xa2060,
1045 .parent_map
= gcc_parent_map_0
,
1046 .freq_tbl
= ftbl_gcc_ufs_card_2_axi_clk_src
,
1047 .clkr
.hw
.init
= &(struct clk_init_data
){
1048 .name
= "gcc_ufs_card_2_ice_core_clk_src",
1049 .parent_data
= gcc_parents_0
,
1050 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1051 .flags
= CLK_SET_RATE_PARENT
,
1052 .ops
= &clk_rcg2_ops
,
1056 static const struct freq_tbl ftbl_gcc_ufs_card_2_phy_aux_clk_src
[] = {
1057 F(19200000, P_BI_TCXO
, 1, 0, 0),
1061 static struct clk_rcg2 gcc_ufs_card_2_phy_aux_clk_src
= {
1062 .cmd_rcgr
= 0xa2094,
1065 .parent_map
= gcc_parent_map_4
,
1066 .freq_tbl
= ftbl_gcc_ufs_card_2_phy_aux_clk_src
,
1067 .clkr
.hw
.init
= &(struct clk_init_data
){
1068 .name
= "gcc_ufs_card_2_phy_aux_clk_src",
1069 .parent_data
= gcc_parents_4
,
1070 .num_parents
= ARRAY_SIZE(gcc_parents_4
),
1071 .flags
= CLK_SET_RATE_PARENT
,
1072 .ops
= &clk_rcg2_ops
,
1076 static struct clk_rcg2 gcc_ufs_card_2_unipro_core_clk_src
= {
1077 .cmd_rcgr
= 0xa2078,
1080 .parent_map
= gcc_parent_map_0
,
1081 .freq_tbl
= ftbl_gcc_ufs_card_2_axi_clk_src
,
1082 .clkr
.hw
.init
= &(struct clk_init_data
){
1083 .name
= "gcc_ufs_card_2_unipro_core_clk_src",
1084 .parent_data
= gcc_parents_0
,
1085 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1086 .flags
= CLK_SET_RATE_PARENT
,
1087 .ops
= &clk_rcg2_ops
,
1091 static const struct freq_tbl ftbl_gcc_ufs_card_axi_clk_src
[] = {
1092 F(25000000, P_GPLL0_OUT_EVEN
, 12, 0, 0),
1093 F(50000000, P_GPLL0_OUT_EVEN
, 6, 0, 0),
1094 F(100000000, P_GPLL0_OUT_MAIN
, 6, 0, 0),
1095 F(200000000, P_GPLL0_OUT_MAIN
, 3, 0, 0),
1096 F(240000000, P_GPLL0_OUT_MAIN
, 2.5, 0, 0),
1100 static struct clk_rcg2 gcc_ufs_card_axi_clk_src
= {
1101 .cmd_rcgr
= 0x75020,
1104 .parent_map
= gcc_parent_map_0
,
1105 .freq_tbl
= ftbl_gcc_ufs_card_axi_clk_src
,
1106 .clkr
.hw
.init
= &(struct clk_init_data
){
1107 .name
= "gcc_ufs_card_axi_clk_src",
1108 .parent_data
= gcc_parents_0
,
1109 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1110 .flags
= CLK_SET_RATE_PARENT
,
1111 .ops
= &clk_rcg2_ops
,
1115 static const struct freq_tbl ftbl_gcc_ufs_card_ice_core_clk_src
[] = {
1116 F(75000000, P_GPLL0_OUT_EVEN
, 4, 0, 0),
1117 F(150000000, P_GPLL0_OUT_MAIN
, 4, 0, 0),
1118 F(300000000, P_GPLL0_OUT_MAIN
, 2, 0, 0),
1122 static struct clk_rcg2 gcc_ufs_card_ice_core_clk_src
= {
1123 .cmd_rcgr
= 0x75060,
1126 .parent_map
= gcc_parent_map_0
,
1127 .freq_tbl
= ftbl_gcc_ufs_card_ice_core_clk_src
,
1128 .clkr
.hw
.init
= &(struct clk_init_data
){
1129 .name
= "gcc_ufs_card_ice_core_clk_src",
1130 .parent_data
= gcc_parents_0
,
1131 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1132 .flags
= CLK_SET_RATE_PARENT
,
1133 .ops
= &clk_rcg2_ops
,
1137 static struct clk_rcg2 gcc_ufs_card_phy_aux_clk_src
= {
1138 .cmd_rcgr
= 0x75094,
1141 .parent_map
= gcc_parent_map_4
,
1142 .freq_tbl
= ftbl_gcc_ufs_card_2_phy_aux_clk_src
,
1143 .clkr
.hw
.init
= &(struct clk_init_data
){
1144 .name
= "gcc_ufs_card_phy_aux_clk_src",
1145 .parent_data
= gcc_parents_4
,
1146 .num_parents
= ARRAY_SIZE(gcc_parents_4
),
1147 .flags
= CLK_SET_RATE_PARENT
,
1148 .ops
= &clk_rcg2_ops
,
1152 static const struct freq_tbl ftbl_gcc_ufs_card_unipro_core_clk_src
[] = {
1153 F(37500000, P_GPLL0_OUT_EVEN
, 8, 0, 0),
1154 F(75000000, P_GPLL0_OUT_MAIN
, 8, 0, 0),
1155 F(150000000, P_GPLL0_OUT_MAIN
, 4, 0, 0),
1159 static struct clk_rcg2 gcc_ufs_card_unipro_core_clk_src
= {
1160 .cmd_rcgr
= 0x75078,
1163 .parent_map
= gcc_parent_map_0
,
1164 .freq_tbl
= ftbl_gcc_ufs_card_unipro_core_clk_src
,
1165 .clkr
.hw
.init
= &(struct clk_init_data
){
1166 .name
= "gcc_ufs_card_unipro_core_clk_src",
1167 .parent_data
= gcc_parents_0
,
1168 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1169 .flags
= CLK_SET_RATE_PARENT
,
1170 .ops
= &clk_rcg2_ops
,
1174 static const struct freq_tbl ftbl_gcc_ufs_phy_axi_clk_src
[] = {
1175 F(25000000, P_GPLL0_OUT_EVEN
, 12, 0, 0),
1176 F(37500000, P_GPLL0_OUT_EVEN
, 8, 0, 0),
1177 F(75000000, P_GPLL0_OUT_EVEN
, 4, 0, 0),
1178 F(150000000, P_GPLL0_OUT_MAIN
, 4, 0, 0),
1179 F(300000000, P_GPLL0_OUT_MAIN
, 2, 0, 0),
1183 static struct clk_rcg2 gcc_ufs_phy_axi_clk_src
= {
1184 .cmd_rcgr
= 0x77020,
1187 .parent_map
= gcc_parent_map_0
,
1188 .freq_tbl
= ftbl_gcc_ufs_phy_axi_clk_src
,
1189 .clkr
.hw
.init
= &(struct clk_init_data
){
1190 .name
= "gcc_ufs_phy_axi_clk_src",
1191 .parent_data
= gcc_parents_0
,
1192 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1193 .flags
= CLK_SET_RATE_PARENT
,
1194 .ops
= &clk_rcg2_ops
,
1198 static struct clk_rcg2 gcc_ufs_phy_ice_core_clk_src
= {
1199 .cmd_rcgr
= 0x77060,
1202 .parent_map
= gcc_parent_map_0
,
1203 .freq_tbl
= ftbl_gcc_ufs_card_2_axi_clk_src
,
1204 .clkr
.hw
.init
= &(struct clk_init_data
){
1205 .name
= "gcc_ufs_phy_ice_core_clk_src",
1206 .parent_data
= gcc_parents_0
,
1207 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1208 .flags
= CLK_SET_RATE_PARENT
,
1209 .ops
= &clk_rcg2_ops
,
1213 static struct clk_rcg2 gcc_ufs_phy_phy_aux_clk_src
= {
1214 .cmd_rcgr
= 0x77094,
1217 .parent_map
= gcc_parent_map_4
,
1218 .freq_tbl
= ftbl_gcc_pcie_0_aux_clk_src
,
1219 .clkr
.hw
.init
= &(struct clk_init_data
){
1220 .name
= "gcc_ufs_phy_phy_aux_clk_src",
1221 .parent_data
= gcc_parents_4
,
1222 .num_parents
= ARRAY_SIZE(gcc_parents_4
),
1223 .flags
= CLK_SET_RATE_PARENT
,
1224 .ops
= &clk_rcg2_ops
,
1228 static struct clk_rcg2 gcc_ufs_phy_unipro_core_clk_src
= {
1229 .cmd_rcgr
= 0x77078,
1232 .parent_map
= gcc_parent_map_0
,
1233 .freq_tbl
= ftbl_gcc_ufs_card_2_axi_clk_src
,
1234 .clkr
.hw
.init
= &(struct clk_init_data
){
1235 .name
= "gcc_ufs_phy_unipro_core_clk_src",
1236 .parent_data
= gcc_parents_0
,
1237 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1238 .flags
= CLK_SET_RATE_PARENT
,
1239 .ops
= &clk_rcg2_ops
,
1243 static const struct freq_tbl ftbl_gcc_usb30_mp_master_clk_src
[] = {
1244 F(33333333, P_GPLL0_OUT_EVEN
, 9, 0, 0),
1245 F(66666667, P_GPLL0_OUT_EVEN
, 4.5, 0, 0),
1246 F(133333333, P_GPLL0_OUT_MAIN
, 4.5, 0, 0),
1247 F(200000000, P_GPLL0_OUT_MAIN
, 3, 0, 0),
1248 F(240000000, P_GPLL0_OUT_MAIN
, 2.5, 0, 0),
1252 static struct clk_rcg2 gcc_usb30_mp_master_clk_src
= {
1253 .cmd_rcgr
= 0xa601c,
1256 .parent_map
= gcc_parent_map_0
,
1257 .freq_tbl
= ftbl_gcc_usb30_mp_master_clk_src
,
1258 .clkr
.hw
.init
= &(struct clk_init_data
){
1259 .name
= "gcc_usb30_mp_master_clk_src",
1260 .parent_data
= gcc_parents_0
,
1261 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1262 .flags
= CLK_SET_RATE_PARENT
,
1263 .ops
= &clk_rcg2_ops
,
1267 static const struct freq_tbl ftbl_gcc_usb30_mp_mock_utmi_clk_src
[] = {
1268 F(19200000, P_BI_TCXO
, 1, 0, 0),
1269 F(20000000, P_GPLL0_OUT_EVEN
, 15, 0, 0),
1270 F(40000000, P_GPLL0_OUT_EVEN
, 7.5, 0, 0),
1271 F(60000000, P_GPLL0_OUT_MAIN
, 10, 0, 0),
1275 static struct clk_rcg2 gcc_usb30_mp_mock_utmi_clk_src
= {
1276 .cmd_rcgr
= 0xa6034,
1279 .parent_map
= gcc_parent_map_0
,
1280 .freq_tbl
= ftbl_gcc_usb30_mp_mock_utmi_clk_src
,
1281 .clkr
.hw
.init
= &(struct clk_init_data
){
1282 .name
= "gcc_usb30_mp_mock_utmi_clk_src",
1283 .parent_data
= gcc_parents_0
,
1284 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1285 .flags
= CLK_SET_RATE_PARENT
,
1286 .ops
= &clk_rcg2_ops
,
1290 static struct clk_rcg2 gcc_usb30_prim_master_clk_src
= {
1294 .parent_map
= gcc_parent_map_0
,
1295 .freq_tbl
= ftbl_gcc_usb30_mp_master_clk_src
,
1296 .clkr
.hw
.init
= &(struct clk_init_data
){
1297 .name
= "gcc_usb30_prim_master_clk_src",
1298 .parent_data
= gcc_parents_0
,
1299 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1300 .flags
= CLK_SET_RATE_PARENT
,
1301 .ops
= &clk_rcg2_ops
,
1305 static struct clk_rcg2 gcc_usb30_prim_mock_utmi_clk_src
= {
1309 .parent_map
= gcc_parent_map_0
,
1310 .freq_tbl
= ftbl_gcc_usb30_mp_mock_utmi_clk_src
,
1311 .clkr
.hw
.init
= &(struct clk_init_data
){
1312 .name
= "gcc_usb30_prim_mock_utmi_clk_src",
1313 .parent_data
= gcc_parents_0
,
1314 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1315 .flags
= CLK_SET_RATE_PARENT
,
1316 .ops
= &clk_rcg2_ops
,
1320 static struct clk_rcg2 gcc_usb30_sec_master_clk_src
= {
1321 .cmd_rcgr
= 0x1001c,
1324 .parent_map
= gcc_parent_map_0
,
1325 .freq_tbl
= ftbl_gcc_usb30_mp_master_clk_src
,
1326 .clkr
.hw
.init
= &(struct clk_init_data
){
1327 .name
= "gcc_usb30_sec_master_clk_src",
1328 .parent_data
= gcc_parents_0
,
1329 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1330 .flags
= CLK_SET_RATE_PARENT
,
1331 .ops
= &clk_rcg2_ops
,
1335 static struct clk_rcg2 gcc_usb30_sec_mock_utmi_clk_src
= {
1336 .cmd_rcgr
= 0x10034,
1339 .parent_map
= gcc_parent_map_0
,
1340 .freq_tbl
= ftbl_gcc_usb30_mp_mock_utmi_clk_src
,
1341 .clkr
.hw
.init
= &(struct clk_init_data
){
1342 .name
= "gcc_usb30_sec_mock_utmi_clk_src",
1343 .parent_data
= gcc_parents_0
,
1344 .num_parents
= ARRAY_SIZE(gcc_parents_0
),
1345 .flags
= CLK_SET_RATE_PARENT
,
1346 .ops
= &clk_rcg2_ops
,
1350 static struct clk_rcg2 gcc_usb3_mp_phy_aux_clk_src
= {
1351 .cmd_rcgr
= 0xa6068,
1354 .parent_map
= gcc_parent_map_2
,
1355 .freq_tbl
= ftbl_gcc_ufs_card_2_phy_aux_clk_src
,
1356 .clkr
.hw
.init
= &(struct clk_init_data
){
1357 .name
= "gcc_usb3_mp_phy_aux_clk_src",
1358 .parent_data
= gcc_parents_2
,
1359 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
1360 .flags
= CLK_SET_RATE_PARENT
,
1361 .ops
= &clk_rcg2_ops
,
1365 static struct clk_rcg2 gcc_usb3_prim_phy_aux_clk_src
= {
1369 .parent_map
= gcc_parent_map_2
,
1370 .freq_tbl
= ftbl_gcc_ufs_card_2_phy_aux_clk_src
,
1371 .clkr
.hw
.init
= &(struct clk_init_data
){
1372 .name
= "gcc_usb3_prim_phy_aux_clk_src",
1373 .parent_data
= gcc_parents_2
,
1374 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
1375 .flags
= CLK_SET_RATE_PARENT
,
1376 .ops
= &clk_rcg2_ops
,
1380 static struct clk_rcg2 gcc_usb3_sec_phy_aux_clk_src
= {
1381 .cmd_rcgr
= 0x10060,
1384 .parent_map
= gcc_parent_map_2
,
1385 .freq_tbl
= ftbl_gcc_ufs_card_2_phy_aux_clk_src
,
1386 .clkr
.hw
.init
= &(struct clk_init_data
){
1387 .name
= "gcc_usb3_sec_phy_aux_clk_src",
1388 .parent_data
= gcc_parents_2
,
1389 .num_parents
= ARRAY_SIZE(gcc_parents_2
),
1390 .flags
= CLK_SET_RATE_PARENT
,
1391 .ops
= &clk_rcg2_ops
,
1395 static struct clk_branch gcc_aggre_noc_pcie_tbu_clk
= {
1396 .halt_reg
= 0x90018,
1397 .halt_check
= BRANCH_HALT
,
1399 .enable_reg
= 0x90018,
1400 .enable_mask
= BIT(0),
1401 .hw
.init
= &(struct clk_init_data
){
1402 .name
= "gcc_aggre_noc_pcie_tbu_clk",
1403 .ops
= &clk_branch2_ops
,
1408 static struct clk_branch gcc_aggre_ufs_card_axi_clk
= {
1409 .halt_reg
= 0x750c0,
1410 .halt_check
= BRANCH_HALT
,
1411 .hwcg_reg
= 0x750c0,
1414 .enable_reg
= 0x750c0,
1415 .enable_mask
= BIT(0),
1416 .hw
.init
= &(struct clk_init_data
){
1417 .name
= "gcc_aggre_ufs_card_axi_clk",
1418 .parent_hws
= (const struct clk_hw
*[]){
1419 &gcc_ufs_card_axi_clk_src
.clkr
.hw
1422 .flags
= CLK_SET_RATE_PARENT
,
1423 .ops
= &clk_branch2_ops
,
1428 static struct clk_branch gcc_aggre_ufs_card_axi_hw_ctl_clk
= {
1429 .halt_reg
= 0x750c0,
1430 .halt_check
= BRANCH_HALT
,
1431 .hwcg_reg
= 0x750c0,
1434 .enable_reg
= 0x750c0,
1435 .enable_mask
= BIT(1),
1436 .hw
.init
= &(struct clk_init_data
){
1437 .name
= "gcc_aggre_ufs_card_axi_hw_ctl_clk",
1438 .parent_hws
= (const struct clk_hw
*[]){
1439 &gcc_aggre_ufs_card_axi_clk
.clkr
.hw
1442 .flags
= CLK_SET_RATE_PARENT
,
1443 .ops
= &clk_branch_simple_ops
,
1448 static struct clk_branch gcc_aggre_ufs_phy_axi_clk
= {
1449 .halt_reg
= 0x770c0,
1450 .halt_check
= BRANCH_HALT
,
1451 .hwcg_reg
= 0x770c0,
1454 .enable_reg
= 0x770c0,
1455 .enable_mask
= BIT(0),
1456 .hw
.init
= &(struct clk_init_data
){
1457 .name
= "gcc_aggre_ufs_phy_axi_clk",
1458 .parent_hws
= (const struct clk_hw
*[]){
1459 &gcc_ufs_phy_axi_clk_src
.clkr
.hw
1462 .flags
= CLK_SET_RATE_PARENT
,
1463 .ops
= &clk_branch2_ops
,
1468 static struct clk_branch gcc_aggre_ufs_phy_axi_hw_ctl_clk
= {
1469 .halt_reg
= 0x770c0,
1470 .halt_check
= BRANCH_HALT
,
1471 .hwcg_reg
= 0x770c0,
1474 .enable_reg
= 0x770c0,
1475 .enable_mask
= BIT(1),
1476 .hw
.init
= &(struct clk_init_data
){
1477 .name
= "gcc_aggre_ufs_phy_axi_hw_ctl_clk",
1478 .parent_hws
= (const struct clk_hw
*[]){
1479 &gcc_aggre_ufs_phy_axi_clk
.clkr
.hw
1482 .flags
= CLK_SET_RATE_PARENT
,
1483 .ops
= &clk_branch_simple_ops
,
1488 static struct clk_branch gcc_aggre_usb3_mp_axi_clk
= {
1489 .halt_reg
= 0xa6084,
1490 .halt_check
= BRANCH_HALT
,
1492 .enable_reg
= 0xa6084,
1493 .enable_mask
= BIT(0),
1494 .hw
.init
= &(struct clk_init_data
){
1495 .name
= "gcc_aggre_usb3_mp_axi_clk",
1496 .parent_hws
= (const struct clk_hw
*[]){
1497 &gcc_usb30_mp_master_clk_src
.clkr
.hw
1500 .flags
= CLK_SET_RATE_PARENT
,
1501 .ops
= &clk_branch2_ops
,
1506 static struct clk_branch gcc_aggre_usb3_prim_axi_clk
= {
1508 .halt_check
= BRANCH_HALT
,
1510 .enable_reg
= 0xf07c,
1511 .enable_mask
= BIT(0),
1512 .hw
.init
= &(struct clk_init_data
){
1513 .name
= "gcc_aggre_usb3_prim_axi_clk",
1514 .parent_hws
= (const struct clk_hw
*[]){
1515 &gcc_usb30_prim_master_clk_src
.clkr
.hw
1518 .flags
= CLK_SET_RATE_PARENT
,
1519 .ops
= &clk_branch2_ops
,
1524 static struct clk_branch gcc_aggre_usb3_sec_axi_clk
= {
1525 .halt_reg
= 0x1007c,
1526 .halt_check
= BRANCH_HALT
,
1528 .enable_reg
= 0x1007c,
1529 .enable_mask
= BIT(0),
1530 .hw
.init
= &(struct clk_init_data
){
1531 .name
= "gcc_aggre_usb3_sec_axi_clk",
1532 .parent_hws
= (const struct clk_hw
*[]){
1533 &gcc_usb30_sec_master_clk_src
.clkr
.hw
1536 .flags
= CLK_SET_RATE_PARENT
,
1537 .ops
= &clk_branch2_ops
,
1542 static struct clk_branch gcc_boot_rom_ahb_clk
= {
1543 .halt_reg
= 0x38004,
1544 .halt_check
= BRANCH_HALT_VOTED
,
1545 .hwcg_reg
= 0x38004,
1548 .enable_reg
= 0x52004,
1549 .enable_mask
= BIT(10),
1550 .hw
.init
= &(struct clk_init_data
){
1551 .name
= "gcc_boot_rom_ahb_clk",
1552 .ops
= &clk_branch2_ops
,
1557 static struct clk_branch gcc_camera_hf_axi_clk
= {
1559 .halt_check
= BRANCH_HALT
,
1561 .enable_reg
= 0xb030,
1562 .enable_mask
= BIT(0),
1563 .hw
.init
= &(struct clk_init_data
){
1564 .name
= "gcc_camera_hf_axi_clk",
1565 .ops
= &clk_branch2_ops
,
1570 static struct clk_branch gcc_camera_sf_axi_clk
= {
1572 .halt_check
= BRANCH_HALT
,
1574 .enable_reg
= 0xb034,
1575 .enable_mask
= BIT(0),
1576 .hw
.init
= &(struct clk_init_data
){
1577 .name
= "gcc_camera_sf_axi_clk",
1578 .ops
= &clk_branch2_ops
,
1583 static struct clk_branch gcc_cfg_noc_usb3_mp_axi_clk
= {
1584 .halt_reg
= 0xa609c,
1585 .halt_check
= BRANCH_HALT
,
1587 .enable_reg
= 0xa609c,
1588 .enable_mask
= BIT(0),
1589 .hw
.init
= &(struct clk_init_data
){
1590 .name
= "gcc_cfg_noc_usb3_mp_axi_clk",
1591 .parent_hws
= (const struct clk_hw
*[]){
1592 &gcc_usb30_mp_master_clk_src
.clkr
.hw
1595 .flags
= CLK_SET_RATE_PARENT
,
1596 .ops
= &clk_branch2_ops
,
1601 static struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk
= {
1603 .halt_check
= BRANCH_HALT
,
1605 .enable_reg
= 0xf078,
1606 .enable_mask
= BIT(0),
1607 .hw
.init
= &(struct clk_init_data
){
1608 .name
= "gcc_cfg_noc_usb3_prim_axi_clk",
1609 .parent_hws
= (const struct clk_hw
*[]){
1610 &gcc_usb30_prim_master_clk_src
.clkr
.hw
1613 .flags
= CLK_SET_RATE_PARENT
,
1614 .ops
= &clk_branch2_ops
,
1619 static struct clk_branch gcc_cfg_noc_usb3_sec_axi_clk
= {
1620 .halt_reg
= 0x10078,
1621 .halt_check
= BRANCH_HALT
,
1623 .enable_reg
= 0x10078,
1624 .enable_mask
= BIT(0),
1625 .hw
.init
= &(struct clk_init_data
){
1626 .name
= "gcc_cfg_noc_usb3_sec_axi_clk",
1627 .parent_hws
= (const struct clk_hw
*[]){
1628 &gcc_usb30_sec_master_clk_src
.clkr
.hw
1631 .flags
= CLK_SET_RATE_PARENT
,
1632 .ops
= &clk_branch2_ops
,
1637 static struct clk_branch gcc_cpuss_rbcpr_clk
= {
1638 .halt_reg
= 0x48008,
1639 .halt_check
= BRANCH_HALT
,
1641 .enable_reg
= 0x48008,
1642 .enable_mask
= BIT(0),
1643 .hw
.init
= &(struct clk_init_data
){
1644 .name
= "gcc_cpuss_rbcpr_clk",
1645 .ops
= &clk_branch2_ops
,
1650 static struct clk_branch gcc_ddrss_gpu_axi_clk
= {
1651 .halt_reg
= 0x71154,
1652 .halt_check
= BRANCH_VOTED
,
1654 .enable_reg
= 0x71154,
1655 .enable_mask
= BIT(0),
1656 .hw
.init
= &(struct clk_init_data
){
1657 .name
= "gcc_ddrss_gpu_axi_clk",
1658 .ops
= &clk_branch2_ops
,
1663 static struct clk_branch gcc_disp_hf_axi_clk
= {
1665 .halt_check
= BRANCH_HALT
,
1667 .enable_reg
= 0xb038,
1668 .enable_mask
= BIT(0),
1669 .hw
.init
= &(struct clk_init_data
){
1670 .name
= "gcc_disp_hf_axi_clk",
1671 .ops
= &clk_branch2_ops
,
1676 static struct clk_branch gcc_disp_sf_axi_clk
= {
1678 .halt_check
= BRANCH_HALT
,
1680 .enable_reg
= 0xb03c,
1681 .enable_mask
= BIT(0),
1682 .hw
.init
= &(struct clk_init_data
){
1683 .name
= "gcc_disp_sf_axi_clk",
1684 .ops
= &clk_branch2_ops
,
1689 static struct clk_branch gcc_emac_axi_clk
= {
1691 .halt_check
= BRANCH_HALT
,
1693 .enable_reg
= 0x6010,
1694 .enable_mask
= BIT(0),
1695 .hw
.init
= &(struct clk_init_data
){
1696 .name
= "gcc_emac_axi_clk",
1697 .ops
= &clk_branch2_ops
,
1702 static struct clk_branch gcc_emac_ptp_clk
= {
1704 .halt_check
= BRANCH_HALT
,
1706 .enable_reg
= 0x6034,
1707 .enable_mask
= BIT(0),
1708 .hw
.init
= &(struct clk_init_data
){
1709 .name
= "gcc_emac_ptp_clk",
1710 .parent_hws
= (const struct clk_hw
*[]){
1711 &gcc_emac_ptp_clk_src
.clkr
.hw
1714 .flags
= CLK_SET_RATE_PARENT
,
1715 .ops
= &clk_branch2_ops
,
1720 static struct clk_branch gcc_emac_rgmii_clk
= {
1722 .halt_check
= BRANCH_HALT
,
1724 .enable_reg
= 0x6018,
1725 .enable_mask
= BIT(0),
1726 .hw
.init
= &(struct clk_init_data
){
1727 .name
= "gcc_emac_rgmii_clk",
1728 .parent_hws
= (const struct clk_hw
*[]){
1729 &gcc_emac_rgmii_clk_src
.clkr
.hw
1732 .flags
= CLK_SET_RATE_PARENT
,
1733 .ops
= &clk_branch2_ops
,
1738 static struct clk_branch gcc_emac_slv_ahb_clk
= {
1740 .halt_check
= BRANCH_HALT
,
1744 .enable_reg
= 0x6014,
1745 .enable_mask
= BIT(0),
1746 .hw
.init
= &(struct clk_init_data
){
1747 .name
= "gcc_emac_slv_ahb_clk",
1748 .ops
= &clk_branch2_ops
,
1753 static struct clk_branch gcc_gp1_clk
= {
1754 .halt_reg
= 0x64000,
1755 .halt_check
= BRANCH_HALT
,
1757 .enable_reg
= 0x64000,
1758 .enable_mask
= BIT(0),
1759 .hw
.init
= &(struct clk_init_data
){
1760 .name
= "gcc_gp1_clk",
1761 .parent_hws
= (const struct clk_hw
*[]){
1762 &gcc_gp1_clk_src
.clkr
.hw
1765 .flags
= CLK_SET_RATE_PARENT
,
1766 .ops
= &clk_branch2_ops
,
1771 static struct clk_branch gcc_gp2_clk
= {
1772 .halt_reg
= 0x65000,
1773 .halt_check
= BRANCH_HALT
,
1775 .enable_reg
= 0x65000,
1776 .enable_mask
= BIT(0),
1777 .hw
.init
= &(struct clk_init_data
){
1778 .name
= "gcc_gp2_clk",
1779 .parent_hws
= (const struct clk_hw
*[]){
1780 &gcc_gp2_clk_src
.clkr
.hw
1783 .flags
= CLK_SET_RATE_PARENT
,
1784 .ops
= &clk_branch2_ops
,
1789 static struct clk_branch gcc_gp3_clk
= {
1790 .halt_reg
= 0x66000,
1791 .halt_check
= BRANCH_HALT
,
1793 .enable_reg
= 0x66000,
1794 .enable_mask
= BIT(0),
1795 .hw
.init
= &(struct clk_init_data
){
1796 .name
= "gcc_gp3_clk",
1797 .parent_hws
= (const struct clk_hw
*[]){
1798 &gcc_gp3_clk_src
.clkr
.hw
1801 .flags
= CLK_SET_RATE_PARENT
,
1802 .ops
= &clk_branch2_ops
,
1807 static struct clk_branch gcc_gp4_clk
= {
1808 .halt_reg
= 0xbe000,
1809 .halt_check
= BRANCH_HALT
,
1811 .enable_reg
= 0xbe000,
1812 .enable_mask
= BIT(0),
1813 .hw
.init
= &(struct clk_init_data
){
1814 .name
= "gcc_gp4_clk",
1815 .parent_hws
= (const struct clk_hw
*[]){
1816 &gcc_gp4_clk_src
.clkr
.hw
1819 .flags
= CLK_SET_RATE_PARENT
,
1820 .ops
= &clk_branch2_ops
,
1825 static struct clk_branch gcc_gp5_clk
= {
1826 .halt_reg
= 0xbf000,
1827 .halt_check
= BRANCH_HALT
,
1829 .enable_reg
= 0xbf000,
1830 .enable_mask
= BIT(0),
1831 .hw
.init
= &(struct clk_init_data
){
1832 .name
= "gcc_gp5_clk",
1833 .parent_hws
= (const struct clk_hw
*[]){
1834 &gcc_gp5_clk_src
.clkr
.hw
1837 .flags
= CLK_SET_RATE_PARENT
,
1838 .ops
= &clk_branch2_ops
,
1843 static struct clk_branch gcc_gpu_gpll0_clk_src
= {
1844 .halt_check
= BRANCH_HALT_DELAY
,
1846 .enable_reg
= 0x52004,
1847 .enable_mask
= BIT(15),
1848 .hw
.init
= &(struct clk_init_data
){
1849 .name
= "gcc_gpu_gpll0_clk_src",
1850 .parent_hws
= (const struct clk_hw
*[]){ &gpll0
.clkr
.hw
},
1852 .flags
= CLK_SET_RATE_PARENT
,
1853 .ops
= &clk_branch2_ops
,
1858 static struct clk_branch gcc_gpu_gpll0_div_clk_src
= {
1859 .halt_check
= BRANCH_HALT_DELAY
,
1861 .enable_reg
= 0x52004,
1862 .enable_mask
= BIT(16),
1863 .hw
.init
= &(struct clk_init_data
){
1864 .name
= "gcc_gpu_gpll0_div_clk_src",
1865 .parent_hws
= (const struct clk_hw
*[]){
1866 &gpll0_out_even
.clkr
.hw
1869 .flags
= CLK_SET_RATE_PARENT
,
1870 .ops
= &clk_branch2_ops
,
1875 static struct clk_branch gcc_gpu_memnoc_gfx_clk
= {
1876 .halt_reg
= 0x7100c,
1877 .halt_check
= BRANCH_VOTED
,
1879 .enable_reg
= 0x7100c,
1880 .enable_mask
= BIT(0),
1881 .hw
.init
= &(struct clk_init_data
){
1882 .name
= "gcc_gpu_memnoc_gfx_clk",
1883 .ops
= &clk_branch2_ops
,
1888 static struct clk_branch gcc_gpu_snoc_dvm_gfx_clk
= {
1889 .halt_reg
= 0x71018,
1890 .halt_check
= BRANCH_HALT
,
1892 .enable_reg
= 0x71018,
1893 .enable_mask
= BIT(0),
1894 .hw
.init
= &(struct clk_init_data
){
1895 .name
= "gcc_gpu_snoc_dvm_gfx_clk",
1896 .ops
= &clk_branch2_ops
,
1901 static struct clk_branch gcc_npu_at_clk
= {
1902 .halt_reg
= 0x4d010,
1903 .halt_check
= BRANCH_VOTED
,
1905 .enable_reg
= 0x4d010,
1906 .enable_mask
= BIT(0),
1907 .hw
.init
= &(struct clk_init_data
){
1908 .name
= "gcc_npu_at_clk",
1909 .ops
= &clk_branch2_ops
,
1914 static struct clk_branch gcc_npu_axi_clk
= {
1915 .halt_reg
= 0x4d008,
1916 .halt_check
= BRANCH_VOTED
,
1918 .enable_reg
= 0x4d008,
1919 .enable_mask
= BIT(0),
1920 .hw
.init
= &(struct clk_init_data
){
1921 .name
= "gcc_npu_axi_clk",
1922 .parent_hws
= (const struct clk_hw
*[]){
1923 &gcc_npu_axi_clk_src
.clkr
.hw
1926 .flags
= CLK_SET_RATE_PARENT
,
1927 .ops
= &clk_branch2_ops
,
1932 static struct clk_branch gcc_npu_gpll0_clk_src
= {
1933 .halt_check
= BRANCH_HALT_DELAY
,
1935 .enable_reg
= 0x52004,
1936 .enable_mask
= BIT(18),
1937 .hw
.init
= &(struct clk_init_data
){
1938 .name
= "gcc_npu_gpll0_clk_src",
1939 .parent_hws
= (const struct clk_hw
*[]){ &gpll0
.clkr
.hw
},
1941 .flags
= CLK_SET_RATE_PARENT
,
1942 .ops
= &clk_branch2_ops
,
1947 static struct clk_branch gcc_npu_gpll0_div_clk_src
= {
1948 .halt_check
= BRANCH_HALT_DELAY
,
1950 .enable_reg
= 0x52004,
1951 .enable_mask
= BIT(19),
1952 .hw
.init
= &(struct clk_init_data
){
1953 .name
= "gcc_npu_gpll0_div_clk_src",
1954 .parent_hws
= (const struct clk_hw
*[]){
1955 &gpll0_out_even
.clkr
.hw
1958 .flags
= CLK_SET_RATE_PARENT
,
1959 .ops
= &clk_branch2_ops
,
1964 static struct clk_branch gcc_npu_trig_clk
= {
1965 .halt_reg
= 0x4d00c,
1966 .halt_check
= BRANCH_VOTED
,
1968 .enable_reg
= 0x4d00c,
1969 .enable_mask
= BIT(0),
1970 .hw
.init
= &(struct clk_init_data
){
1971 .name
= "gcc_npu_trig_clk",
1972 .ops
= &clk_branch2_ops
,
1977 static struct clk_branch gcc_pcie0_phy_refgen_clk
= {
1978 .halt_reg
= 0x6f02c,
1979 .halt_check
= BRANCH_HALT
,
1981 .enable_reg
= 0x6f02c,
1982 .enable_mask
= BIT(0),
1983 .hw
.init
= &(struct clk_init_data
){
1984 .name
= "gcc_pcie0_phy_refgen_clk",
1985 .parent_hws
= (const struct clk_hw
*[]){
1986 &gcc_pcie_phy_refgen_clk_src
.clkr
.hw
1989 .flags
= CLK_SET_RATE_PARENT
,
1990 .ops
= &clk_branch2_ops
,
1995 static struct clk_branch gcc_pcie1_phy_refgen_clk
= {
1996 .halt_reg
= 0x6f030,
1997 .halt_check
= BRANCH_HALT
,
1999 .enable_reg
= 0x6f030,
2000 .enable_mask
= BIT(0),
2001 .hw
.init
= &(struct clk_init_data
){
2002 .name
= "gcc_pcie1_phy_refgen_clk",
2003 .parent_hws
= (const struct clk_hw
*[]){
2004 &gcc_pcie_phy_refgen_clk_src
.clkr
.hw
2007 .flags
= CLK_SET_RATE_PARENT
,
2008 .ops
= &clk_branch2_ops
,
2013 static struct clk_branch gcc_pcie2_phy_refgen_clk
= {
2014 .halt_reg
= 0x6f034,
2015 .halt_check
= BRANCH_HALT
,
2017 .enable_reg
= 0x6f034,
2018 .enable_mask
= BIT(0),
2019 .hw
.init
= &(struct clk_init_data
){
2020 .name
= "gcc_pcie2_phy_refgen_clk",
2021 .parent_hws
= (const struct clk_hw
*[]){
2022 &gcc_pcie_phy_refgen_clk_src
.clkr
.hw
2025 .flags
= CLK_SET_RATE_PARENT
,
2026 .ops
= &clk_branch2_ops
,
2031 static struct clk_branch gcc_pcie3_phy_refgen_clk
= {
2032 .halt_reg
= 0x6f038,
2033 .halt_check
= BRANCH_HALT
,
2035 .enable_reg
= 0x6f038,
2036 .enable_mask
= BIT(0),
2037 .hw
.init
= &(struct clk_init_data
){
2038 .name
= "gcc_pcie3_phy_refgen_clk",
2039 .parent_hws
= (const struct clk_hw
*[]){
2040 &gcc_pcie_phy_refgen_clk_src
.clkr
.hw
2043 .flags
= CLK_SET_RATE_PARENT
,
2044 .ops
= &clk_branch2_ops
,
2049 static struct clk_branch gcc_pcie_0_aux_clk
= {
2050 .halt_reg
= 0x6b020,
2051 .halt_check
= BRANCH_HALT_VOTED
,
2053 .enable_reg
= 0x5200c,
2054 .enable_mask
= BIT(3),
2055 .hw
.init
= &(struct clk_init_data
){
2056 .name
= "gcc_pcie_0_aux_clk",
2057 .parent_hws
= (const struct clk_hw
*[]){
2058 &gcc_pcie_0_aux_clk_src
.clkr
.hw
2061 .flags
= CLK_SET_RATE_PARENT
,
2062 .ops
= &clk_branch2_ops
,
2067 static struct clk_branch gcc_pcie_0_cfg_ahb_clk
= {
2068 .halt_reg
= 0x6b01c,
2069 .halt_check
= BRANCH_HALT_VOTED
,
2070 .hwcg_reg
= 0x6b01c,
2073 .enable_reg
= 0x5200c,
2074 .enable_mask
= BIT(2),
2075 .hw
.init
= &(struct clk_init_data
){
2076 .name
= "gcc_pcie_0_cfg_ahb_clk",
2077 .ops
= &clk_branch2_ops
,
2082 static struct clk_branch gcc_pcie_0_clkref_clk
= {
2083 .halt_reg
= 0x8c00c,
2084 .halt_check
= BRANCH_HALT
,
2086 .enable_reg
= 0x8c00c,
2087 .enable_mask
= BIT(0),
2088 .hw
.init
= &(struct clk_init_data
){
2089 .name
= "gcc_pcie_0_clkref_clk",
2090 .ops
= &clk_branch2_ops
,
2095 static struct clk_branch gcc_pcie_0_mstr_axi_clk
= {
2096 .halt_reg
= 0x6b018,
2097 .halt_check
= BRANCH_HALT_VOTED
,
2099 .enable_reg
= 0x5200c,
2100 .enable_mask
= BIT(1),
2101 .hw
.init
= &(struct clk_init_data
){
2102 .name
= "gcc_pcie_0_mstr_axi_clk",
2103 .ops
= &clk_branch2_ops
,
2108 static struct clk_branch gcc_pcie_0_pipe_clk
= {
2109 .halt_reg
= 0x6b024,
2110 .halt_check
= BRANCH_HALT_SKIP
,
2112 .enable_reg
= 0x5200c,
2113 .enable_mask
= BIT(4),
2114 .hw
.init
= &(struct clk_init_data
){
2115 .name
= "gcc_pcie_0_pipe_clk",
2116 .ops
= &clk_branch2_ops
,
2121 static struct clk_branch gcc_pcie_0_slv_axi_clk
= {
2122 .halt_reg
= 0x6b014,
2123 .halt_check
= BRANCH_HALT_VOTED
,
2124 .hwcg_reg
= 0x6b014,
2127 .enable_reg
= 0x5200c,
2128 .enable_mask
= BIT(0),
2129 .hw
.init
= &(struct clk_init_data
){
2130 .name
= "gcc_pcie_0_slv_axi_clk",
2131 .ops
= &clk_branch2_ops
,
2136 static struct clk_branch gcc_pcie_0_slv_q2a_axi_clk
= {
2137 .halt_reg
= 0x6b010,
2138 .halt_check
= BRANCH_HALT_VOTED
,
2140 .enable_reg
= 0x5200c,
2141 .enable_mask
= BIT(5),
2142 .hw
.init
= &(struct clk_init_data
){
2143 .name
= "gcc_pcie_0_slv_q2a_axi_clk",
2144 .ops
= &clk_branch2_ops
,
2149 static struct clk_branch gcc_pcie_1_aux_clk
= {
2150 .halt_reg
= 0x8d020,
2151 .halt_check
= BRANCH_HALT_VOTED
,
2153 .enable_reg
= 0x52004,
2154 .enable_mask
= BIT(29),
2155 .hw
.init
= &(struct clk_init_data
){
2156 .name
= "gcc_pcie_1_aux_clk",
2157 .parent_hws
= (const struct clk_hw
*[]){
2158 &gcc_pcie_1_aux_clk_src
.clkr
.hw
2161 .flags
= CLK_SET_RATE_PARENT
,
2162 .ops
= &clk_branch2_ops
,
2167 static struct clk_branch gcc_pcie_1_cfg_ahb_clk
= {
2168 .halt_reg
= 0x8d01c,
2169 .halt_check
= BRANCH_HALT_VOTED
,
2170 .hwcg_reg
= 0x8d01c,
2173 .enable_reg
= 0x52004,
2174 .enable_mask
= BIT(28),
2175 .hw
.init
= &(struct clk_init_data
){
2176 .name
= "gcc_pcie_1_cfg_ahb_clk",
2177 .ops
= &clk_branch2_ops
,
2182 static struct clk_branch gcc_pcie_1_clkref_clk
= {
2183 .halt_reg
= 0x8c02c,
2184 .halt_check
= BRANCH_HALT
,
2186 .enable_reg
= 0x8c02c,
2187 .enable_mask
= BIT(0),
2188 .hw
.init
= &(struct clk_init_data
){
2189 .name
= "gcc_pcie_1_clkref_clk",
2190 .ops
= &clk_branch2_ops
,
2195 static struct clk_branch gcc_pcie_1_mstr_axi_clk
= {
2196 .halt_reg
= 0x8d018,
2197 .halt_check
= BRANCH_HALT_VOTED
,
2199 .enable_reg
= 0x52004,
2200 .enable_mask
= BIT(27),
2201 .hw
.init
= &(struct clk_init_data
){
2202 .name
= "gcc_pcie_1_mstr_axi_clk",
2203 .ops
= &clk_branch2_ops
,
2208 static struct clk_branch gcc_pcie_1_pipe_clk
= {
2209 .halt_reg
= 0x8d024,
2210 .halt_check
= BRANCH_HALT_SKIP
,
2212 .enable_reg
= 0x52004,
2213 .enable_mask
= BIT(30),
2214 .hw
.init
= &(struct clk_init_data
){
2215 .name
= "gcc_pcie_1_pipe_clk",
2216 .ops
= &clk_branch2_ops
,
2221 static struct clk_branch gcc_pcie_1_slv_axi_clk
= {
2222 .halt_reg
= 0x8d014,
2223 .halt_check
= BRANCH_HALT_VOTED
,
2224 .hwcg_reg
= 0x8d014,
2227 .enable_reg
= 0x52004,
2228 .enable_mask
= BIT(26),
2229 .hw
.init
= &(struct clk_init_data
){
2230 .name
= "gcc_pcie_1_slv_axi_clk",
2231 .ops
= &clk_branch2_ops
,
2236 static struct clk_branch gcc_pcie_1_slv_q2a_axi_clk
= {
2237 .halt_reg
= 0x8d010,
2238 .halt_check
= BRANCH_HALT_VOTED
,
2240 .enable_reg
= 0x52004,
2241 .enable_mask
= BIT(25),
2242 .hw
.init
= &(struct clk_init_data
){
2243 .name
= "gcc_pcie_1_slv_q2a_axi_clk",
2244 .ops
= &clk_branch2_ops
,
2249 static struct clk_branch gcc_pcie_2_aux_clk
= {
2250 .halt_reg
= 0x9d020,
2251 .halt_check
= BRANCH_HALT_VOTED
,
2253 .enable_reg
= 0x52014,
2254 .enable_mask
= BIT(14),
2255 .hw
.init
= &(struct clk_init_data
){
2256 .name
= "gcc_pcie_2_aux_clk",
2257 .parent_hws
= (const struct clk_hw
*[]){
2258 &gcc_pcie_2_aux_clk_src
.clkr
.hw
2261 .flags
= CLK_SET_RATE_PARENT
,
2262 .ops
= &clk_branch2_ops
,
2267 static struct clk_branch gcc_pcie_2_cfg_ahb_clk
= {
2268 .halt_reg
= 0x9d01c,
2269 .halt_check
= BRANCH_HALT_VOTED
,
2270 .hwcg_reg
= 0x9d01c,
2273 .enable_reg
= 0x52014,
2274 .enable_mask
= BIT(13),
2275 .hw
.init
= &(struct clk_init_data
){
2276 .name
= "gcc_pcie_2_cfg_ahb_clk",
2277 .ops
= &clk_branch2_ops
,
2282 static struct clk_branch gcc_pcie_2_clkref_clk
= {
2283 .halt_reg
= 0x8c014,
2284 .halt_check
= BRANCH_HALT
,
2286 .enable_reg
= 0x8c014,
2287 .enable_mask
= BIT(0),
2288 .hw
.init
= &(struct clk_init_data
){
2289 .name
= "gcc_pcie_2_clkref_clk",
2290 .ops
= &clk_branch2_ops
,
2295 static struct clk_branch gcc_pcie_2_mstr_axi_clk
= {
2296 .halt_reg
= 0x9d018,
2297 .halt_check
= BRANCH_HALT_VOTED
,
2299 .enable_reg
= 0x52014,
2300 .enable_mask
= BIT(12),
2301 .hw
.init
= &(struct clk_init_data
){
2302 .name
= "gcc_pcie_2_mstr_axi_clk",
2303 .ops
= &clk_branch2_ops
,
2308 static struct clk_branch gcc_pcie_2_pipe_clk
= {
2309 .halt_reg
= 0x9d024,
2310 .halt_check
= BRANCH_HALT_SKIP
,
2312 .enable_reg
= 0x52014,
2313 .enable_mask
= BIT(15),
2314 .hw
.init
= &(struct clk_init_data
){
2315 .name
= "gcc_pcie_2_pipe_clk",
2316 .ops
= &clk_branch2_ops
,
2321 static struct clk_branch gcc_pcie_2_slv_axi_clk
= {
2322 .halt_reg
= 0x9d014,
2323 .halt_check
= BRANCH_HALT_VOTED
,
2324 .hwcg_reg
= 0x9d014,
2327 .enable_reg
= 0x52014,
2328 .enable_mask
= BIT(11),
2329 .hw
.init
= &(struct clk_init_data
){
2330 .name
= "gcc_pcie_2_slv_axi_clk",
2331 .ops
= &clk_branch2_ops
,
2336 static struct clk_branch gcc_pcie_2_slv_q2a_axi_clk
= {
2337 .halt_reg
= 0x9d010,
2338 .halt_check
= BRANCH_HALT_VOTED
,
2340 .enable_reg
= 0x52014,
2341 .enable_mask
= BIT(10),
2342 .hw
.init
= &(struct clk_init_data
){
2343 .name
= "gcc_pcie_2_slv_q2a_axi_clk",
2344 .ops
= &clk_branch2_ops
,
2349 static struct clk_branch gcc_pcie_3_aux_clk
= {
2350 .halt_reg
= 0xa3020,
2351 .halt_check
= BRANCH_HALT_VOTED
,
2353 .enable_reg
= 0x52014,
2354 .enable_mask
= BIT(20),
2355 .hw
.init
= &(struct clk_init_data
){
2356 .name
= "gcc_pcie_3_aux_clk",
2357 .parent_hws
= (const struct clk_hw
*[]){
2358 &gcc_pcie_3_aux_clk_src
.clkr
.hw
2361 .flags
= CLK_SET_RATE_PARENT
,
2362 .ops
= &clk_branch2_ops
,
2367 static struct clk_branch gcc_pcie_3_cfg_ahb_clk
= {
2368 .halt_reg
= 0xa301c,
2369 .halt_check
= BRANCH_HALT_VOTED
,
2370 .hwcg_reg
= 0xa301c,
2373 .enable_reg
= 0x52014,
2374 .enable_mask
= BIT(19),
2375 .hw
.init
= &(struct clk_init_data
){
2376 .name
= "gcc_pcie_3_cfg_ahb_clk",
2377 .ops
= &clk_branch2_ops
,
2382 static struct clk_branch gcc_pcie_3_clkref_clk
= {
2383 .halt_reg
= 0x8c018,
2384 .halt_check
= BRANCH_HALT
,
2386 .enable_reg
= 0x8c018,
2387 .enable_mask
= BIT(0),
2388 .hw
.init
= &(struct clk_init_data
){
2389 .name
= "gcc_pcie_3_clkref_clk",
2390 .ops
= &clk_branch2_ops
,
2395 static struct clk_branch gcc_pcie_3_mstr_axi_clk
= {
2396 .halt_reg
= 0xa3018,
2397 .halt_check
= BRANCH_HALT_VOTED
,
2399 .enable_reg
= 0x52014,
2400 .enable_mask
= BIT(18),
2401 .hw
.init
= &(struct clk_init_data
){
2402 .name
= "gcc_pcie_3_mstr_axi_clk",
2403 .ops
= &clk_branch2_ops
,
2408 static struct clk_branch gcc_pcie_3_pipe_clk
= {
2409 .halt_reg
= 0xa3024,
2410 .halt_check
= BRANCH_HALT_SKIP
,
2412 .enable_reg
= 0x52014,
2413 .enable_mask
= BIT(21),
2414 .hw
.init
= &(struct clk_init_data
){
2415 .name
= "gcc_pcie_3_pipe_clk",
2416 .ops
= &clk_branch2_ops
,
2421 static struct clk_branch gcc_pcie_3_slv_axi_clk
= {
2422 .halt_reg
= 0xa3014,
2423 .halt_check
= BRANCH_HALT_VOTED
,
2424 .hwcg_reg
= 0xa3014,
2427 .enable_reg
= 0x52014,
2428 .enable_mask
= BIT(17),
2429 .hw
.init
= &(struct clk_init_data
){
2430 .name
= "gcc_pcie_3_slv_axi_clk",
2431 .ops
= &clk_branch2_ops
,
2436 static struct clk_branch gcc_pcie_3_slv_q2a_axi_clk
= {
2437 .halt_reg
= 0xa3010,
2438 .halt_check
= BRANCH_HALT_VOTED
,
2440 .enable_reg
= 0x52014,
2441 .enable_mask
= BIT(16),
2442 .hw
.init
= &(struct clk_init_data
){
2443 .name
= "gcc_pcie_3_slv_q2a_axi_clk",
2444 .ops
= &clk_branch2_ops
,
2449 static struct clk_branch gcc_pcie_phy_aux_clk
= {
2450 .halt_reg
= 0x6f004,
2451 .halt_check
= BRANCH_HALT
,
2453 .enable_reg
= 0x6f004,
2454 .enable_mask
= BIT(0),
2455 .hw
.init
= &(struct clk_init_data
){
2456 .name
= "gcc_pcie_phy_aux_clk",
2457 .parent_hws
= (const struct clk_hw
*[]){
2458 &gcc_pcie_0_aux_clk_src
.clkr
.hw
2461 .flags
= CLK_SET_RATE_PARENT
,
2462 .ops
= &clk_branch2_ops
,
2467 static struct clk_branch gcc_pdm2_clk
= {
2468 .halt_reg
= 0x3300c,
2469 .halt_check
= BRANCH_HALT
,
2471 .enable_reg
= 0x3300c,
2472 .enable_mask
= BIT(0),
2473 .hw
.init
= &(struct clk_init_data
){
2474 .name
= "gcc_pdm2_clk",
2475 .parent_hws
= (const struct clk_hw
*[]){
2476 &gcc_pdm2_clk_src
.clkr
.hw
2479 .flags
= CLK_SET_RATE_PARENT
,
2480 .ops
= &clk_branch2_ops
,
2485 static struct clk_branch gcc_pdm_ahb_clk
= {
2486 .halt_reg
= 0x33004,
2487 .halt_check
= BRANCH_HALT
,
2488 .hwcg_reg
= 0x33004,
2491 .enable_reg
= 0x33004,
2492 .enable_mask
= BIT(0),
2493 .hw
.init
= &(struct clk_init_data
){
2494 .name
= "gcc_pdm_ahb_clk",
2495 .ops
= &clk_branch2_ops
,
2500 static struct clk_branch gcc_pdm_xo4_clk
= {
2501 .halt_reg
= 0x33008,
2502 .halt_check
= BRANCH_HALT
,
2504 .enable_reg
= 0x33008,
2505 .enable_mask
= BIT(0),
2506 .hw
.init
= &(struct clk_init_data
){
2507 .name
= "gcc_pdm_xo4_clk",
2508 .ops
= &clk_branch2_ops
,
2513 static struct clk_branch gcc_prng_ahb_clk
= {
2514 .halt_reg
= 0x34004,
2515 .halt_check
= BRANCH_HALT_VOTED
,
2517 .enable_reg
= 0x52004,
2518 .enable_mask
= BIT(13),
2519 .hw
.init
= &(struct clk_init_data
){
2520 .name
= "gcc_prng_ahb_clk",
2521 .ops
= &clk_branch2_ops
,
2526 static struct clk_branch gcc_qmip_camera_nrt_ahb_clk
= {
2528 .halt_check
= BRANCH_HALT
,
2532 .enable_reg
= 0xb018,
2533 .enable_mask
= BIT(0),
2534 .hw
.init
= &(struct clk_init_data
){
2535 .name
= "gcc_qmip_camera_nrt_ahb_clk",
2536 .ops
= &clk_branch2_ops
,
2541 static struct clk_branch gcc_qmip_camera_rt_ahb_clk
= {
2543 .halt_check
= BRANCH_HALT
,
2547 .enable_reg
= 0xb01c,
2548 .enable_mask
= BIT(0),
2549 .hw
.init
= &(struct clk_init_data
){
2550 .name
= "gcc_qmip_camera_rt_ahb_clk",
2551 .ops
= &clk_branch2_ops
,
2556 static struct clk_branch gcc_qmip_disp_ahb_clk
= {
2558 .halt_check
= BRANCH_HALT
,
2562 .enable_reg
= 0xb020,
2563 .enable_mask
= BIT(0),
2564 .hw
.init
= &(struct clk_init_data
){
2565 .name
= "gcc_qmip_disp_ahb_clk",
2566 .ops
= &clk_branch2_ops
,
2571 static struct clk_branch gcc_qmip_video_cvp_ahb_clk
= {
2573 .halt_check
= BRANCH_HALT
,
2577 .enable_reg
= 0xb010,
2578 .enable_mask
= BIT(0),
2579 .hw
.init
= &(struct clk_init_data
){
2580 .name
= "gcc_qmip_video_cvp_ahb_clk",
2581 .ops
= &clk_branch2_ops
,
2586 static struct clk_branch gcc_qmip_video_vcodec_ahb_clk
= {
2588 .halt_check
= BRANCH_HALT
,
2592 .enable_reg
= 0xb014,
2593 .enable_mask
= BIT(0),
2594 .hw
.init
= &(struct clk_init_data
){
2595 .name
= "gcc_qmip_video_vcodec_ahb_clk",
2596 .ops
= &clk_branch2_ops
,
2601 static struct clk_branch gcc_qspi_1_cnoc_periph_ahb_clk
= {
2602 .halt_reg
= 0x4a004,
2603 .halt_check
= BRANCH_HALT
,
2605 .enable_reg
= 0x4a004,
2606 .enable_mask
= BIT(0),
2607 .hw
.init
= &(struct clk_init_data
){
2608 .name
= "gcc_qspi_1_cnoc_periph_ahb_clk",
2609 .ops
= &clk_branch2_ops
,
2614 static struct clk_branch gcc_qspi_1_core_clk
= {
2615 .halt_reg
= 0x4a008,
2616 .halt_check
= BRANCH_HALT
,
2618 .enable_reg
= 0x4a008,
2619 .enable_mask
= BIT(0),
2620 .hw
.init
= &(struct clk_init_data
){
2621 .name
= "gcc_qspi_1_core_clk",
2622 .parent_hws
= (const struct clk_hw
*[]){
2623 &gcc_qspi_1_core_clk_src
.clkr
.hw
2626 .flags
= CLK_SET_RATE_PARENT
,
2627 .ops
= &clk_branch2_ops
,
2632 static struct clk_branch gcc_qspi_cnoc_periph_ahb_clk
= {
2633 .halt_reg
= 0x4b000,
2634 .halt_check
= BRANCH_HALT
,
2636 .enable_reg
= 0x4b000,
2637 .enable_mask
= BIT(0),
2638 .hw
.init
= &(struct clk_init_data
){
2639 .name
= "gcc_qspi_cnoc_periph_ahb_clk",
2640 .ops
= &clk_branch2_ops
,
2645 static struct clk_branch gcc_qspi_core_clk
= {
2646 .halt_reg
= 0x4b004,
2647 .halt_check
= BRANCH_HALT
,
2649 .enable_reg
= 0x4b004,
2650 .enable_mask
= BIT(0),
2651 .hw
.init
= &(struct clk_init_data
){
2652 .name
= "gcc_qspi_core_clk",
2653 .parent_hws
= (const struct clk_hw
*[]){
2654 &gcc_qspi_core_clk_src
.clkr
.hw
2657 .flags
= CLK_SET_RATE_PARENT
,
2658 .ops
= &clk_branch2_ops
,
2663 static struct clk_branch gcc_qupv3_wrap0_s0_clk
= {
2664 .halt_reg
= 0x17144,
2665 .halt_check
= BRANCH_HALT_VOTED
,
2667 .enable_reg
= 0x5200c,
2668 .enable_mask
= BIT(10),
2669 .hw
.init
= &(struct clk_init_data
){
2670 .name
= "gcc_qupv3_wrap0_s0_clk",
2671 .parent_hws
= (const struct clk_hw
*[]){
2672 &gcc_qupv3_wrap0_s0_clk_src
.clkr
.hw
2675 .flags
= CLK_SET_RATE_PARENT
,
2676 .ops
= &clk_branch2_ops
,
2681 static struct clk_branch gcc_qupv3_wrap0_s1_clk
= {
2682 .halt_reg
= 0x17274,
2683 .halt_check
= BRANCH_HALT_VOTED
,
2685 .enable_reg
= 0x5200c,
2686 .enable_mask
= BIT(11),
2687 .hw
.init
= &(struct clk_init_data
){
2688 .name
= "gcc_qupv3_wrap0_s1_clk",
2689 .parent_hws
= (const struct clk_hw
*[]){
2690 &gcc_qupv3_wrap0_s1_clk_src
.clkr
.hw
2693 .flags
= CLK_SET_RATE_PARENT
,
2694 .ops
= &clk_branch2_ops
,
2699 static struct clk_branch gcc_qupv3_wrap0_s2_clk
= {
2700 .halt_reg
= 0x173a4,
2701 .halt_check
= BRANCH_HALT_VOTED
,
2703 .enable_reg
= 0x5200c,
2704 .enable_mask
= BIT(12),
2705 .hw
.init
= &(struct clk_init_data
){
2706 .name
= "gcc_qupv3_wrap0_s2_clk",
2707 .parent_hws
= (const struct clk_hw
*[]){
2708 &gcc_qupv3_wrap0_s2_clk_src
.clkr
.hw
2711 .flags
= CLK_SET_RATE_PARENT
,
2712 .ops
= &clk_branch2_ops
,
2717 static struct clk_branch gcc_qupv3_wrap0_s3_clk
= {
2718 .halt_reg
= 0x174d4,
2719 .halt_check
= BRANCH_HALT_VOTED
,
2721 .enable_reg
= 0x5200c,
2722 .enable_mask
= BIT(13),
2723 .hw
.init
= &(struct clk_init_data
){
2724 .name
= "gcc_qupv3_wrap0_s3_clk",
2725 .parent_hws
= (const struct clk_hw
*[]){
2726 &gcc_qupv3_wrap0_s3_clk_src
.clkr
.hw
2729 .flags
= CLK_SET_RATE_PARENT
,
2730 .ops
= &clk_branch2_ops
,
2735 static struct clk_branch gcc_qupv3_wrap0_s4_clk
= {
2736 .halt_reg
= 0x17604,
2737 .halt_check
= BRANCH_HALT_VOTED
,
2739 .enable_reg
= 0x5200c,
2740 .enable_mask
= BIT(14),
2741 .hw
.init
= &(struct clk_init_data
){
2742 .name
= "gcc_qupv3_wrap0_s4_clk",
2743 .parent_hws
= (const struct clk_hw
*[]){
2744 &gcc_qupv3_wrap0_s4_clk_src
.clkr
.hw
2747 .flags
= CLK_SET_RATE_PARENT
,
2748 .ops
= &clk_branch2_ops
,
2753 static struct clk_branch gcc_qupv3_wrap0_s5_clk
= {
2754 .halt_reg
= 0x17734,
2755 .halt_check
= BRANCH_HALT_VOTED
,
2757 .enable_reg
= 0x5200c,
2758 .enable_mask
= BIT(15),
2759 .hw
.init
= &(struct clk_init_data
){
2760 .name
= "gcc_qupv3_wrap0_s5_clk",
2761 .parent_hws
= (const struct clk_hw
*[]){
2762 &gcc_qupv3_wrap0_s5_clk_src
.clkr
.hw
2765 .flags
= CLK_SET_RATE_PARENT
,
2766 .ops
= &clk_branch2_ops
,
2771 static struct clk_branch gcc_qupv3_wrap0_s6_clk
= {
2772 .halt_reg
= 0x17864,
2773 .halt_check
= BRANCH_HALT_VOTED
,
2775 .enable_reg
= 0x5200c,
2776 .enable_mask
= BIT(16),
2777 .hw
.init
= &(struct clk_init_data
){
2778 .name
= "gcc_qupv3_wrap0_s6_clk",
2779 .parent_hws
= (const struct clk_hw
*[]){
2780 &gcc_qupv3_wrap0_s6_clk_src
.clkr
.hw
2783 .flags
= CLK_SET_RATE_PARENT
,
2784 .ops
= &clk_branch2_ops
,
2789 static struct clk_branch gcc_qupv3_wrap0_s7_clk
= {
2790 .halt_reg
= 0x17994,
2791 .halt_check
= BRANCH_HALT_VOTED
,
2793 .enable_reg
= 0x5200c,
2794 .enable_mask
= BIT(17),
2795 .hw
.init
= &(struct clk_init_data
){
2796 .name
= "gcc_qupv3_wrap0_s7_clk",
2797 .parent_hws
= (const struct clk_hw
*[]){
2798 &gcc_qupv3_wrap0_s7_clk_src
.clkr
.hw
2801 .flags
= CLK_SET_RATE_PARENT
,
2802 .ops
= &clk_branch2_ops
,
2807 static struct clk_branch gcc_qupv3_wrap1_s0_clk
= {
2808 .halt_reg
= 0x18144,
2809 .halt_check
= BRANCH_HALT_VOTED
,
2811 .enable_reg
= 0x5200c,
2812 .enable_mask
= BIT(22),
2813 .hw
.init
= &(struct clk_init_data
){
2814 .name
= "gcc_qupv3_wrap1_s0_clk",
2815 .parent_hws
= (const struct clk_hw
*[]){
2816 &gcc_qupv3_wrap1_s0_clk_src
.clkr
.hw
2819 .flags
= CLK_SET_RATE_PARENT
,
2820 .ops
= &clk_branch2_ops
,
2825 static struct clk_branch gcc_qupv3_wrap1_s1_clk
= {
2826 .halt_reg
= 0x18274,
2827 .halt_check
= BRANCH_HALT_VOTED
,
2829 .enable_reg
= 0x5200c,
2830 .enable_mask
= BIT(23),
2831 .hw
.init
= &(struct clk_init_data
){
2832 .name
= "gcc_qupv3_wrap1_s1_clk",
2833 .parent_hws
= (const struct clk_hw
*[]){
2834 &gcc_qupv3_wrap1_s1_clk_src
.clkr
.hw
2837 .flags
= CLK_SET_RATE_PARENT
,
2838 .ops
= &clk_branch2_ops
,
2843 static struct clk_branch gcc_qupv3_wrap1_s2_clk
= {
2844 .halt_reg
= 0x183a4,
2845 .halt_check
= BRANCH_HALT_VOTED
,
2847 .enable_reg
= 0x5200c,
2848 .enable_mask
= BIT(24),
2849 .hw
.init
= &(struct clk_init_data
){
2850 .name
= "gcc_qupv3_wrap1_s2_clk",
2851 .parent_hws
= (const struct clk_hw
*[]){
2852 &gcc_qupv3_wrap1_s2_clk_src
.clkr
.hw
2855 .flags
= CLK_SET_RATE_PARENT
,
2856 .ops
= &clk_branch2_ops
,
2861 static struct clk_branch gcc_qupv3_wrap1_s3_clk
= {
2862 .halt_reg
= 0x184d4,
2863 .halt_check
= BRANCH_HALT_VOTED
,
2865 .enable_reg
= 0x5200c,
2866 .enable_mask
= BIT(25),
2867 .hw
.init
= &(struct clk_init_data
){
2868 .name
= "gcc_qupv3_wrap1_s3_clk",
2869 .parent_hws
= (const struct clk_hw
*[]){
2870 &gcc_qupv3_wrap1_s3_clk_src
.clkr
.hw
2873 .flags
= CLK_SET_RATE_PARENT
,
2874 .ops
= &clk_branch2_ops
,
2879 static struct clk_branch gcc_qupv3_wrap1_s4_clk
= {
2880 .halt_reg
= 0x18604,
2881 .halt_check
= BRANCH_HALT_VOTED
,
2883 .enable_reg
= 0x5200c,
2884 .enable_mask
= BIT(26),
2885 .hw
.init
= &(struct clk_init_data
){
2886 .name
= "gcc_qupv3_wrap1_s4_clk",
2887 .parent_hws
= (const struct clk_hw
*[]){
2888 &gcc_qupv3_wrap1_s4_clk_src
.clkr
.hw
2891 .flags
= CLK_SET_RATE_PARENT
,
2892 .ops
= &clk_branch2_ops
,
2897 static struct clk_branch gcc_qupv3_wrap1_s5_clk
= {
2898 .halt_reg
= 0x18734,
2899 .halt_check
= BRANCH_HALT_VOTED
,
2901 .enable_reg
= 0x5200c,
2902 .enable_mask
= BIT(27),
2903 .hw
.init
= &(struct clk_init_data
){
2904 .name
= "gcc_qupv3_wrap1_s5_clk",
2905 .parent_hws
= (const struct clk_hw
*[]){
2906 &gcc_qupv3_wrap1_s5_clk_src
.clkr
.hw
2909 .flags
= CLK_SET_RATE_PARENT
,
2910 .ops
= &clk_branch2_ops
,
2915 static struct clk_branch gcc_qupv3_wrap2_s0_clk
= {
2916 .halt_reg
= 0x1e144,
2917 .halt_check
= BRANCH_HALT_VOTED
,
2919 .enable_reg
= 0x52014,
2920 .enable_mask
= BIT(4),
2921 .hw
.init
= &(struct clk_init_data
){
2922 .name
= "gcc_qupv3_wrap2_s0_clk",
2923 .parent_hws
= (const struct clk_hw
*[]){
2924 &gcc_qupv3_wrap2_s0_clk_src
.clkr
.hw
2927 .flags
= CLK_SET_RATE_PARENT
,
2928 .ops
= &clk_branch2_ops
,
2933 static struct clk_branch gcc_qupv3_wrap2_s1_clk
= {
2934 .halt_reg
= 0x1e274,
2935 .halt_check
= BRANCH_HALT_VOTED
,
2937 .enable_reg
= 0x52014,
2938 .enable_mask
= BIT(5),
2939 .hw
.init
= &(struct clk_init_data
){
2940 .name
= "gcc_qupv3_wrap2_s1_clk",
2941 .parent_hws
= (const struct clk_hw
*[]){
2942 &gcc_qupv3_wrap2_s1_clk_src
.clkr
.hw
2945 .flags
= CLK_SET_RATE_PARENT
,
2946 .ops
= &clk_branch2_ops
,
2951 static struct clk_branch gcc_qupv3_wrap2_s2_clk
= {
2952 .halt_reg
= 0x1e3a4,
2953 .halt_check
= BRANCH_HALT_VOTED
,
2955 .enable_reg
= 0x52014,
2956 .enable_mask
= BIT(6),
2957 .hw
.init
= &(struct clk_init_data
){
2958 .name
= "gcc_qupv3_wrap2_s2_clk",
2959 .parent_hws
= (const struct clk_hw
*[]){
2960 &gcc_qupv3_wrap2_s2_clk_src
.clkr
.hw
2963 .flags
= CLK_SET_RATE_PARENT
,
2964 .ops
= &clk_branch2_ops
,
2969 static struct clk_branch gcc_qupv3_wrap2_s3_clk
= {
2970 .halt_reg
= 0x1e4d4,
2971 .halt_check
= BRANCH_HALT_VOTED
,
2973 .enable_reg
= 0x52014,
2974 .enable_mask
= BIT(7),
2975 .hw
.init
= &(struct clk_init_data
){
2976 .name
= "gcc_qupv3_wrap2_s3_clk",
2977 .parent_hws
= (const struct clk_hw
*[]){
2978 &gcc_qupv3_wrap2_s3_clk_src
.clkr
.hw
2981 .flags
= CLK_SET_RATE_PARENT
,
2982 .ops
= &clk_branch2_ops
,
2987 static struct clk_branch gcc_qupv3_wrap2_s4_clk
= {
2988 .halt_reg
= 0x1e604,
2989 .halt_check
= BRANCH_HALT_VOTED
,
2991 .enable_reg
= 0x52014,
2992 .enable_mask
= BIT(8),
2993 .hw
.init
= &(struct clk_init_data
){
2994 .name
= "gcc_qupv3_wrap2_s4_clk",
2995 .parent_hws
= (const struct clk_hw
*[]){
2996 &gcc_qupv3_wrap2_s4_clk_src
.clkr
.hw
2999 .flags
= CLK_SET_RATE_PARENT
,
3000 .ops
= &clk_branch2_ops
,
3005 static struct clk_branch gcc_qupv3_wrap2_s5_clk
= {
3006 .halt_reg
= 0x1e734,
3007 .halt_check
= BRANCH_HALT_VOTED
,
3009 .enable_reg
= 0x52014,
3010 .enable_mask
= BIT(9),
3011 .hw
.init
= &(struct clk_init_data
){
3012 .name
= "gcc_qupv3_wrap2_s5_clk",
3013 .parent_hws
= (const struct clk_hw
*[]){
3014 &gcc_qupv3_wrap2_s5_clk_src
.clkr
.hw
3017 .flags
= CLK_SET_RATE_PARENT
,
3018 .ops
= &clk_branch2_ops
,
3023 static struct clk_branch gcc_qupv3_wrap_0_m_ahb_clk
= {
3024 .halt_reg
= 0x17004,
3025 .halt_check
= BRANCH_HALT_VOTED
,
3027 .enable_reg
= 0x5200c,
3028 .enable_mask
= BIT(6),
3029 .hw
.init
= &(struct clk_init_data
){
3030 .name
= "gcc_qupv3_wrap_0_m_ahb_clk",
3031 .ops
= &clk_branch2_ops
,
3036 static struct clk_branch gcc_qupv3_wrap_0_s_ahb_clk
= {
3037 .halt_reg
= 0x17008,
3038 .halt_check
= BRANCH_HALT_VOTED
,
3039 .hwcg_reg
= 0x17008,
3042 .enable_reg
= 0x5200c,
3043 .enable_mask
= BIT(7),
3044 .hw
.init
= &(struct clk_init_data
){
3045 .name
= "gcc_qupv3_wrap_0_s_ahb_clk",
3046 .ops
= &clk_branch2_ops
,
3051 static struct clk_branch gcc_qupv3_wrap_1_m_ahb_clk
= {
3052 .halt_reg
= 0x18004,
3053 .halt_check
= BRANCH_HALT_VOTED
,
3055 .enable_reg
= 0x5200c,
3056 .enable_mask
= BIT(20),
3057 .hw
.init
= &(struct clk_init_data
){
3058 .name
= "gcc_qupv3_wrap_1_m_ahb_clk",
3059 .ops
= &clk_branch2_ops
,
3064 static struct clk_branch gcc_qupv3_wrap_1_s_ahb_clk
= {
3065 .halt_reg
= 0x18008,
3066 .halt_check
= BRANCH_HALT_VOTED
,
3067 .hwcg_reg
= 0x18008,
3070 .enable_reg
= 0x5200c,
3071 .enable_mask
= BIT(21),
3072 .hw
.init
= &(struct clk_init_data
){
3073 .name
= "gcc_qupv3_wrap_1_s_ahb_clk",
3074 .ops
= &clk_branch2_ops
,
3079 static struct clk_branch gcc_qupv3_wrap_2_m_ahb_clk
= {
3080 .halt_reg
= 0x1e004,
3081 .halt_check
= BRANCH_HALT_VOTED
,
3083 .enable_reg
= 0x52014,
3084 .enable_mask
= BIT(2),
3085 .hw
.init
= &(struct clk_init_data
){
3086 .name
= "gcc_qupv3_wrap_2_m_ahb_clk",
3087 .ops
= &clk_branch2_ops
,
3092 static struct clk_branch gcc_qupv3_wrap_2_s_ahb_clk
= {
3093 .halt_reg
= 0x1e008,
3094 .halt_check
= BRANCH_HALT_VOTED
,
3095 .hwcg_reg
= 0x1e008,
3098 .enable_reg
= 0x52014,
3099 .enable_mask
= BIT(1),
3100 .hw
.init
= &(struct clk_init_data
){
3101 .name
= "gcc_qupv3_wrap_2_s_ahb_clk",
3102 .ops
= &clk_branch2_ops
,
3107 static struct clk_branch gcc_sdcc2_ahb_clk
= {
3108 .halt_reg
= 0x14008,
3109 .halt_check
= BRANCH_HALT
,
3111 .enable_reg
= 0x14008,
3112 .enable_mask
= BIT(0),
3113 .hw
.init
= &(struct clk_init_data
){
3114 .name
= "gcc_sdcc2_ahb_clk",
3115 .ops
= &clk_branch2_ops
,
3120 static struct clk_branch gcc_sdcc2_apps_clk
= {
3121 .halt_reg
= 0x14004,
3122 .halt_check
= BRANCH_HALT
,
3124 .enable_reg
= 0x14004,
3125 .enable_mask
= BIT(0),
3126 .hw
.init
= &(struct clk_init_data
){
3127 .name
= "gcc_sdcc2_apps_clk",
3128 .parent_hws
= (const struct clk_hw
*[]){
3129 &gcc_sdcc2_apps_clk_src
.clkr
.hw
3132 .flags
= CLK_SET_RATE_PARENT
,
3133 .ops
= &clk_branch2_ops
,
3138 static struct clk_branch gcc_sdcc4_ahb_clk
= {
3139 .halt_reg
= 0x16008,
3140 .halt_check
= BRANCH_HALT
,
3142 .enable_reg
= 0x16008,
3143 .enable_mask
= BIT(0),
3144 .hw
.init
= &(struct clk_init_data
){
3145 .name
= "gcc_sdcc4_ahb_clk",
3146 .ops
= &clk_branch2_ops
,
3151 static struct clk_branch gcc_sdcc4_apps_clk
= {
3152 .halt_reg
= 0x16004,
3153 .halt_check
= BRANCH_HALT
,
3155 .enable_reg
= 0x16004,
3156 .enable_mask
= BIT(0),
3157 .hw
.init
= &(struct clk_init_data
){
3158 .name
= "gcc_sdcc4_apps_clk",
3159 .parent_hws
= (const struct clk_hw
*[]){
3160 &gcc_sdcc4_apps_clk_src
.clkr
.hw
3163 .flags
= CLK_SET_RATE_PARENT
,
3164 .ops
= &clk_branch2_ops
,
3169 static struct clk_branch gcc_tsif_ahb_clk
= {
3170 .halt_reg
= 0x36004,
3171 .halt_check
= BRANCH_HALT
,
3173 .enable_reg
= 0x36004,
3174 .enable_mask
= BIT(0),
3175 .hw
.init
= &(struct clk_init_data
){
3176 .name
= "gcc_tsif_ahb_clk",
3177 .ops
= &clk_branch2_ops
,
3182 static struct clk_branch gcc_tsif_inactivity_timers_clk
= {
3183 .halt_reg
= 0x3600c,
3184 .halt_check
= BRANCH_HALT
,
3186 .enable_reg
= 0x3600c,
3187 .enable_mask
= BIT(0),
3188 .hw
.init
= &(struct clk_init_data
){
3189 .name
= "gcc_tsif_inactivity_timers_clk",
3190 .ops
= &clk_branch2_ops
,
3195 static struct clk_branch gcc_tsif_ref_clk
= {
3196 .halt_reg
= 0x36008,
3197 .halt_check
= BRANCH_HALT
,
3199 .enable_reg
= 0x36008,
3200 .enable_mask
= BIT(0),
3201 .hw
.init
= &(struct clk_init_data
){
3202 .name
= "gcc_tsif_ref_clk",
3203 .parent_hws
= (const struct clk_hw
*[]){
3204 &gcc_tsif_ref_clk_src
.clkr
.hw
3207 .flags
= CLK_SET_RATE_PARENT
,
3208 .ops
= &clk_branch2_ops
,
3213 static struct clk_branch gcc_ufs_card_2_ahb_clk
= {
3214 .halt_reg
= 0xa2014,
3215 .halt_check
= BRANCH_HALT
,
3216 .hwcg_reg
= 0xa2014,
3219 .enable_reg
= 0xa2014,
3220 .enable_mask
= BIT(0),
3221 .hw
.init
= &(struct clk_init_data
){
3222 .name
= "gcc_ufs_card_2_ahb_clk",
3223 .ops
= &clk_branch2_ops
,
3228 static struct clk_branch gcc_ufs_card_2_axi_clk
= {
3229 .halt_reg
= 0xa2010,
3230 .halt_check
= BRANCH_HALT
,
3231 .hwcg_reg
= 0xa2010,
3234 .enable_reg
= 0xa2010,
3235 .enable_mask
= BIT(0),
3236 .hw
.init
= &(struct clk_init_data
){
3237 .name
= "gcc_ufs_card_2_axi_clk",
3238 .parent_hws
= (const struct clk_hw
*[]){
3239 &gcc_ufs_card_2_axi_clk_src
.clkr
.hw
3242 .flags
= CLK_SET_RATE_PARENT
,
3243 .ops
= &clk_branch2_ops
,
3248 static struct clk_branch gcc_ufs_card_2_ice_core_clk
= {
3249 .halt_reg
= 0xa205c,
3250 .halt_check
= BRANCH_HALT
,
3251 .hwcg_reg
= 0xa205c,
3254 .enable_reg
= 0xa205c,
3255 .enable_mask
= BIT(0),
3256 .hw
.init
= &(struct clk_init_data
){
3257 .name
= "gcc_ufs_card_2_ice_core_clk",
3258 .parent_hws
= (const struct clk_hw
*[]){
3259 &gcc_ufs_card_2_ice_core_clk_src
.clkr
.hw
3262 .flags
= CLK_SET_RATE_PARENT
,
3263 .ops
= &clk_branch2_ops
,
3268 static struct clk_branch gcc_ufs_card_2_phy_aux_clk
= {
3269 .halt_reg
= 0xa2090,
3270 .halt_check
= BRANCH_HALT
,
3271 .hwcg_reg
= 0xa2090,
3274 .enable_reg
= 0xa2090,
3275 .enable_mask
= BIT(0),
3276 .hw
.init
= &(struct clk_init_data
){
3277 .name
= "gcc_ufs_card_2_phy_aux_clk",
3278 .parent_hws
= (const struct clk_hw
*[]){
3279 &gcc_ufs_card_2_phy_aux_clk_src
.clkr
.hw
3282 .flags
= CLK_SET_RATE_PARENT
,
3283 .ops
= &clk_branch2_ops
,
3288 static struct clk_branch gcc_ufs_card_2_rx_symbol_0_clk
= {
3289 .halt_reg
= 0xa201c,
3290 .halt_check
= BRANCH_HALT
,
3292 .enable_reg
= 0xa201c,
3293 .enable_mask
= BIT(0),
3294 .hw
.init
= &(struct clk_init_data
){
3295 .name
= "gcc_ufs_card_2_rx_symbol_0_clk",
3296 .ops
= &clk_branch2_ops
,
3301 static struct clk_branch gcc_ufs_card_2_rx_symbol_1_clk
= {
3302 .halt_reg
= 0xa20ac,
3303 .halt_check
= BRANCH_HALT
,
3305 .enable_reg
= 0xa20ac,
3306 .enable_mask
= BIT(0),
3307 .hw
.init
= &(struct clk_init_data
){
3308 .name
= "gcc_ufs_card_2_rx_symbol_1_clk",
3309 .ops
= &clk_branch2_ops
,
3314 static struct clk_branch gcc_ufs_card_2_tx_symbol_0_clk
= {
3315 .halt_reg
= 0xa2018,
3316 .halt_check
= BRANCH_HALT
,
3318 .enable_reg
= 0xa2018,
3319 .enable_mask
= BIT(0),
3320 .hw
.init
= &(struct clk_init_data
){
3321 .name
= "gcc_ufs_card_2_tx_symbol_0_clk",
3322 .ops
= &clk_branch2_ops
,
3327 static struct clk_branch gcc_ufs_card_2_unipro_core_clk
= {
3328 .halt_reg
= 0xa2058,
3329 .halt_check
= BRANCH_HALT
,
3330 .hwcg_reg
= 0xa2058,
3333 .enable_reg
= 0xa2058,
3334 .enable_mask
= BIT(0),
3335 .hw
.init
= &(struct clk_init_data
){
3336 .name
= "gcc_ufs_card_2_unipro_core_clk",
3337 .parent_hws
= (const struct clk_hw
*[]){
3338 &gcc_ufs_card_2_unipro_core_clk_src
.clkr
.hw
3341 .flags
= CLK_SET_RATE_PARENT
,
3342 .ops
= &clk_branch2_ops
,
3347 static struct clk_branch gcc_ufs_card_clkref_en
= {
3348 .halt_reg
= 0x8c004,
3349 .halt_check
= BRANCH_HALT
,
3351 .enable_reg
= 0x8c004,
3352 .enable_mask
= BIT(0),
3353 .hw
.init
= &(const struct clk_init_data
) {
3354 .name
= "gcc_ufs_card_clkref_en",
3355 .ops
= &clk_branch2_ops
,
3360 static struct clk_branch gcc_ufs_card_ahb_clk
= {
3361 .halt_reg
= 0x75014,
3362 .halt_check
= BRANCH_HALT
,
3363 .hwcg_reg
= 0x75014,
3366 .enable_reg
= 0x75014,
3367 .enable_mask
= BIT(0),
3368 .hw
.init
= &(struct clk_init_data
){
3369 .name
= "gcc_ufs_card_ahb_clk",
3370 .ops
= &clk_branch2_ops
,
3375 static struct clk_branch gcc_ufs_card_axi_clk
= {
3376 .halt_reg
= 0x75010,
3377 .halt_check
= BRANCH_HALT
,
3378 .hwcg_reg
= 0x75010,
3381 .enable_reg
= 0x75010,
3382 .enable_mask
= BIT(0),
3383 .hw
.init
= &(struct clk_init_data
){
3384 .name
= "gcc_ufs_card_axi_clk",
3385 .parent_hws
= (const struct clk_hw
*[]){
3386 &gcc_ufs_card_axi_clk_src
.clkr
.hw
3389 .flags
= CLK_SET_RATE_PARENT
,
3390 .ops
= &clk_branch2_ops
,
3395 static struct clk_branch gcc_ufs_card_axi_hw_ctl_clk
= {
3396 .halt_reg
= 0x75010,
3397 .halt_check
= BRANCH_HALT
,
3398 .hwcg_reg
= 0x75010,
3401 .enable_reg
= 0x75010,
3402 .enable_mask
= BIT(1),
3403 .hw
.init
= &(struct clk_init_data
){
3404 .name
= "gcc_ufs_card_axi_hw_ctl_clk",
3405 .parent_hws
= (const struct clk_hw
*[]){
3406 &gcc_ufs_card_axi_clk
.clkr
.hw
3409 .flags
= CLK_SET_RATE_PARENT
,
3410 .ops
= &clk_branch_simple_ops
,
3415 static struct clk_branch gcc_ufs_card_ice_core_clk
= {
3416 .halt_reg
= 0x7505c,
3417 .halt_check
= BRANCH_HALT
,
3418 .hwcg_reg
= 0x7505c,
3421 .enable_reg
= 0x7505c,
3422 .enable_mask
= BIT(0),
3423 .hw
.init
= &(struct clk_init_data
){
3424 .name
= "gcc_ufs_card_ice_core_clk",
3425 .parent_hws
= (const struct clk_hw
*[]){
3426 &gcc_ufs_card_ice_core_clk_src
.clkr
.hw
3429 .flags
= CLK_SET_RATE_PARENT
,
3430 .ops
= &clk_branch2_ops
,
3435 static struct clk_branch gcc_ufs_card_ice_core_hw_ctl_clk
= {
3436 .halt_reg
= 0x7505c,
3437 .halt_check
= BRANCH_HALT
,
3438 .hwcg_reg
= 0x7505c,
3441 .enable_reg
= 0x7505c,
3442 .enable_mask
= BIT(1),
3443 .hw
.init
= &(struct clk_init_data
){
3444 .name
= "gcc_ufs_card_ice_core_hw_ctl_clk",
3445 .parent_hws
= (const struct clk_hw
*[]){
3446 &gcc_ufs_card_ice_core_clk
.clkr
.hw
3449 .flags
= CLK_SET_RATE_PARENT
,
3450 .ops
= &clk_branch_simple_ops
,
3455 static struct clk_branch gcc_ufs_card_phy_aux_clk
= {
3456 .halt_reg
= 0x75090,
3457 .halt_check
= BRANCH_HALT
,
3458 .hwcg_reg
= 0x75090,
3461 .enable_reg
= 0x75090,
3462 .enable_mask
= BIT(0),
3463 .hw
.init
= &(struct clk_init_data
){
3464 .name
= "gcc_ufs_card_phy_aux_clk",
3465 .parent_hws
= (const struct clk_hw
*[]){
3466 &gcc_ufs_card_phy_aux_clk_src
.clkr
.hw
3469 .flags
= CLK_SET_RATE_PARENT
,
3470 .ops
= &clk_branch2_ops
,
3475 static struct clk_branch gcc_ufs_card_phy_aux_hw_ctl_clk
= {
3476 .halt_reg
= 0x75090,
3477 .halt_check
= BRANCH_HALT
,
3478 .hwcg_reg
= 0x75090,
3481 .enable_reg
= 0x75090,
3482 .enable_mask
= BIT(1),
3483 .hw
.init
= &(struct clk_init_data
){
3484 .name
= "gcc_ufs_card_phy_aux_hw_ctl_clk",
3485 .parent_hws
= (const struct clk_hw
*[]){
3486 &gcc_ufs_card_phy_aux_clk
.clkr
.hw
3489 .flags
= CLK_SET_RATE_PARENT
,
3490 .ops
= &clk_branch_simple_ops
,
3495 static struct clk_branch gcc_ufs_card_rx_symbol_0_clk
= {
3496 .halt_reg
= 0x7501c,
3497 .halt_check
= BRANCH_HALT_DELAY
,
3499 .enable_reg
= 0x7501c,
3500 .enable_mask
= BIT(0),
3501 .hw
.init
= &(struct clk_init_data
){
3502 .name
= "gcc_ufs_card_rx_symbol_0_clk",
3503 .ops
= &clk_branch2_ops
,
3508 static struct clk_branch gcc_ufs_card_rx_symbol_1_clk
= {
3509 .halt_reg
= 0x750ac,
3510 .halt_check
= BRANCH_HALT_DELAY
,
3512 .enable_reg
= 0x750ac,
3513 .enable_mask
= BIT(0),
3514 .hw
.init
= &(struct clk_init_data
){
3515 .name
= "gcc_ufs_card_rx_symbol_1_clk",
3516 .ops
= &clk_branch2_ops
,
3521 static struct clk_branch gcc_ufs_card_tx_symbol_0_clk
= {
3522 .halt_reg
= 0x75018,
3523 .halt_check
= BRANCH_HALT_DELAY
,
3525 .enable_reg
= 0x75018,
3526 .enable_mask
= BIT(0),
3527 .hw
.init
= &(struct clk_init_data
){
3528 .name
= "gcc_ufs_card_tx_symbol_0_clk",
3529 .ops
= &clk_branch2_ops
,
3534 static struct clk_branch gcc_ufs_card_unipro_core_clk
= {
3535 .halt_reg
= 0x75058,
3536 .halt_check
= BRANCH_HALT
,
3537 .hwcg_reg
= 0x75058,
3540 .enable_reg
= 0x75058,
3541 .enable_mask
= BIT(0),
3542 .hw
.init
= &(struct clk_init_data
){
3543 .name
= "gcc_ufs_card_unipro_core_clk",
3544 .parent_hws
= (const struct clk_hw
*[]){
3545 &gcc_ufs_card_unipro_core_clk_src
.clkr
.hw
3548 .flags
= CLK_SET_RATE_PARENT
,
3549 .ops
= &clk_branch2_ops
,
3554 static struct clk_branch gcc_ufs_card_unipro_core_hw_ctl_clk
= {
3555 .halt_reg
= 0x75058,
3556 .halt_check
= BRANCH_HALT
,
3557 .hwcg_reg
= 0x75058,
3560 .enable_reg
= 0x75058,
3561 .enable_mask
= BIT(1),
3562 .hw
.init
= &(struct clk_init_data
){
3563 .name
= "gcc_ufs_card_unipro_core_hw_ctl_clk",
3564 .parent_hws
= (const struct clk_hw
*[]){
3565 &gcc_ufs_card_unipro_core_clk
.clkr
.hw
3568 .flags
= CLK_SET_RATE_PARENT
,
3569 .ops
= &clk_branch_simple_ops
,
3574 static struct clk_branch gcc_ufs_mem_clkref_en
= {
3575 .halt_reg
= 0x8c000,
3576 .halt_check
= BRANCH_HALT
,
3578 .enable_reg
= 0x8c000,
3579 .enable_mask
= BIT(0),
3580 .hw
.init
= &(const struct clk_init_data
) {
3581 .name
= "gcc_ufs_mem_clkref_en",
3582 .ops
= &clk_branch2_ops
,
3587 static struct clk_branch gcc_ufs_phy_ahb_clk
= {
3588 .halt_reg
= 0x77014,
3589 .halt_check
= BRANCH_HALT
,
3590 .hwcg_reg
= 0x77014,
3593 .enable_reg
= 0x77014,
3594 .enable_mask
= BIT(0),
3595 .hw
.init
= &(struct clk_init_data
){
3596 .name
= "gcc_ufs_phy_ahb_clk",
3597 .ops
= &clk_branch2_ops
,
3602 static struct clk_branch gcc_ufs_phy_axi_clk
= {
3603 .halt_reg
= 0x77010,
3604 .halt_check
= BRANCH_HALT
,
3605 .hwcg_reg
= 0x77010,
3608 .enable_reg
= 0x77010,
3609 .enable_mask
= BIT(0),
3610 .hw
.init
= &(struct clk_init_data
){
3611 .name
= "gcc_ufs_phy_axi_clk",
3612 .parent_hws
= (const struct clk_hw
*[]){
3613 &gcc_ufs_phy_axi_clk_src
.clkr
.hw
3616 .flags
= CLK_SET_RATE_PARENT
,
3617 .ops
= &clk_branch2_ops
,
3622 static struct clk_branch gcc_ufs_phy_axi_hw_ctl_clk
= {
3623 .halt_reg
= 0x77010,
3624 .halt_check
= BRANCH_HALT
,
3625 .hwcg_reg
= 0x77010,
3628 .enable_reg
= 0x77010,
3629 .enable_mask
= BIT(1),
3630 .hw
.init
= &(struct clk_init_data
){
3631 .name
= "gcc_ufs_phy_axi_hw_ctl_clk",
3632 .parent_hws
= (const struct clk_hw
*[]){
3633 &gcc_ufs_phy_axi_clk
.clkr
.hw
3636 .flags
= CLK_SET_RATE_PARENT
,
3637 .ops
= &clk_branch_simple_ops
,
3642 static struct clk_branch gcc_ufs_phy_ice_core_clk
= {
3643 .halt_reg
= 0x7705c,
3644 .halt_check
= BRANCH_HALT
,
3645 .hwcg_reg
= 0x7705c,
3648 .enable_reg
= 0x7705c,
3649 .enable_mask
= BIT(0),
3650 .hw
.init
= &(struct clk_init_data
){
3651 .name
= "gcc_ufs_phy_ice_core_clk",
3652 .parent_hws
= (const struct clk_hw
*[]){
3653 &gcc_ufs_phy_ice_core_clk_src
.clkr
.hw
3656 .flags
= CLK_SET_RATE_PARENT
,
3657 .ops
= &clk_branch2_ops
,
3662 static struct clk_branch gcc_ufs_phy_ice_core_hw_ctl_clk
= {
3663 .halt_reg
= 0x7705c,
3664 .halt_check
= BRANCH_HALT
,
3665 .hwcg_reg
= 0x7705c,
3668 .enable_reg
= 0x7705c,
3669 .enable_mask
= BIT(1),
3670 .hw
.init
= &(struct clk_init_data
){
3671 .name
= "gcc_ufs_phy_ice_core_hw_ctl_clk",
3672 .parent_hws
= (const struct clk_hw
*[]){
3673 &gcc_ufs_phy_ice_core_clk
.clkr
.hw
3676 .flags
= CLK_SET_RATE_PARENT
,
3677 .ops
= &clk_branch_simple_ops
,
3682 static struct clk_branch gcc_ufs_phy_phy_aux_clk
= {
3683 .halt_reg
= 0x77090,
3684 .halt_check
= BRANCH_HALT
,
3685 .hwcg_reg
= 0x77090,
3688 .enable_reg
= 0x77090,
3689 .enable_mask
= BIT(0),
3690 .hw
.init
= &(struct clk_init_data
){
3691 .name
= "gcc_ufs_phy_phy_aux_clk",
3692 .parent_hws
= (const struct clk_hw
*[]){
3693 &gcc_ufs_phy_phy_aux_clk_src
.clkr
.hw
3696 .flags
= CLK_SET_RATE_PARENT
,
3697 .ops
= &clk_branch2_ops
,
3702 static struct clk_branch gcc_ufs_phy_phy_aux_hw_ctl_clk
= {
3703 .halt_reg
= 0x77090,
3704 .halt_check
= BRANCH_HALT
,
3705 .hwcg_reg
= 0x77090,
3708 .enable_reg
= 0x77090,
3709 .enable_mask
= BIT(1),
3710 .hw
.init
= &(struct clk_init_data
){
3711 .name
= "gcc_ufs_phy_phy_aux_hw_ctl_clk",
3712 .parent_hws
= (const struct clk_hw
*[]){
3713 &gcc_ufs_phy_phy_aux_clk
.clkr
.hw
3716 .flags
= CLK_SET_RATE_PARENT
,
3717 .ops
= &clk_branch_simple_ops
,
3722 static struct clk_branch gcc_ufs_phy_rx_symbol_0_clk
= {
3723 .halt_reg
= 0x7701c,
3724 .halt_check
= BRANCH_HALT_SKIP
,
3726 .enable_reg
= 0x7701c,
3727 .enable_mask
= BIT(0),
3728 .hw
.init
= &(struct clk_init_data
){
3729 .name
= "gcc_ufs_phy_rx_symbol_0_clk",
3730 .ops
= &clk_branch2_ops
,
3735 static struct clk_branch gcc_ufs_phy_rx_symbol_1_clk
= {
3736 .halt_reg
= 0x770ac,
3737 .halt_check
= BRANCH_HALT_SKIP
,
3739 .enable_reg
= 0x770ac,
3740 .enable_mask
= BIT(0),
3741 .hw
.init
= &(struct clk_init_data
){
3742 .name
= "gcc_ufs_phy_rx_symbol_1_clk",
3743 .ops
= &clk_branch2_ops
,
3748 static struct clk_branch gcc_ufs_phy_tx_symbol_0_clk
= {
3749 .halt_reg
= 0x77018,
3750 .halt_check
= BRANCH_HALT_SKIP
,
3752 .enable_reg
= 0x77018,
3753 .enable_mask
= BIT(0),
3754 .hw
.init
= &(struct clk_init_data
){
3755 .name
= "gcc_ufs_phy_tx_symbol_0_clk",
3756 .ops
= &clk_branch2_ops
,
3761 static struct clk_branch gcc_ufs_phy_unipro_core_clk
= {
3762 .halt_reg
= 0x77058,
3763 .halt_check
= BRANCH_HALT
,
3764 .hwcg_reg
= 0x77058,
3767 .enable_reg
= 0x77058,
3768 .enable_mask
= BIT(0),
3769 .hw
.init
= &(struct clk_init_data
){
3770 .name
= "gcc_ufs_phy_unipro_core_clk",
3771 .parent_hws
= (const struct clk_hw
*[]){
3772 &gcc_ufs_phy_unipro_core_clk_src
.clkr
.hw
3775 .flags
= CLK_SET_RATE_PARENT
,
3776 .ops
= &clk_branch2_ops
,
3781 static struct clk_branch gcc_ufs_phy_unipro_core_hw_ctl_clk
= {
3782 .halt_reg
= 0x77058,
3783 .halt_check
= BRANCH_HALT
,
3784 .hwcg_reg
= 0x77058,
3787 .enable_reg
= 0x77058,
3788 .enable_mask
= BIT(1),
3789 .hw
.init
= &(struct clk_init_data
){
3790 .name
= "gcc_ufs_phy_unipro_core_hw_ctl_clk",
3791 .parent_hws
= (const struct clk_hw
*[]){
3792 &gcc_ufs_phy_unipro_core_clk
.clkr
.hw
3795 .flags
= CLK_SET_RATE_PARENT
,
3796 .ops
= &clk_branch_simple_ops
,
3801 static struct clk_branch gcc_usb30_mp_master_clk
= {
3802 .halt_reg
= 0xa6010,
3803 .halt_check
= BRANCH_HALT
,
3805 .enable_reg
= 0xa6010,
3806 .enable_mask
= BIT(0),
3807 .hw
.init
= &(struct clk_init_data
){
3808 .name
= "gcc_usb30_mp_master_clk",
3809 .parent_hws
= (const struct clk_hw
*[]){
3810 &gcc_usb30_mp_master_clk_src
.clkr
.hw
},
3812 .flags
= CLK_SET_RATE_PARENT
,
3813 .ops
= &clk_branch2_ops
,
3818 static struct clk_branch gcc_usb30_mp_mock_utmi_clk
= {
3819 .halt_reg
= 0xa6018,
3820 .halt_check
= BRANCH_HALT
,
3822 .enable_reg
= 0xa6018,
3823 .enable_mask
= BIT(0),
3824 .hw
.init
= &(struct clk_init_data
){
3825 .name
= "gcc_usb30_mp_mock_utmi_clk",
3826 .parent_hws
= (const struct clk_hw
*[]){
3827 &gcc_usb30_mp_mock_utmi_clk_src
.clkr
.hw
3830 .flags
= CLK_SET_RATE_PARENT
,
3831 .ops
= &clk_branch2_ops
,
3836 static struct clk_branch gcc_usb30_mp_sleep_clk
= {
3837 .halt_reg
= 0xa6014,
3838 .halt_check
= BRANCH_HALT
,
3840 .enable_reg
= 0xa6014,
3841 .enable_mask
= BIT(0),
3842 .hw
.init
= &(struct clk_init_data
){
3843 .name
= "gcc_usb30_mp_sleep_clk",
3844 .ops
= &clk_branch2_ops
,
3849 static struct clk_branch gcc_usb30_prim_master_clk
= {
3851 .halt_check
= BRANCH_HALT
,
3853 .enable_reg
= 0xf010,
3854 .enable_mask
= BIT(0),
3855 .hw
.init
= &(struct clk_init_data
){
3856 .name
= "gcc_usb30_prim_master_clk",
3857 .parent_hws
= (const struct clk_hw
*[]){
3858 &gcc_usb30_prim_master_clk_src
.clkr
.hw
},
3860 .flags
= CLK_SET_RATE_PARENT
,
3861 .ops
= &clk_branch2_ops
,
3866 static struct clk_branch gcc_usb30_prim_mock_utmi_clk
= {
3868 .halt_check
= BRANCH_HALT
,
3870 .enable_reg
= 0xf018,
3871 .enable_mask
= BIT(0),
3872 .hw
.init
= &(struct clk_init_data
){
3873 .name
= "gcc_usb30_prim_mock_utmi_clk",
3874 .parent_hws
= (const struct clk_hw
*[]){
3875 &gcc_usb30_prim_mock_utmi_clk_src
.clkr
.hw
3878 .flags
= CLK_SET_RATE_PARENT
,
3879 .ops
= &clk_branch2_ops
,
3884 static struct clk_branch gcc_usb30_prim_sleep_clk
= {
3886 .halt_check
= BRANCH_HALT
,
3888 .enable_reg
= 0xf014,
3889 .enable_mask
= BIT(0),
3890 .hw
.init
= &(struct clk_init_data
){
3891 .name
= "gcc_usb30_prim_sleep_clk",
3892 .ops
= &clk_branch2_ops
,
3897 static struct clk_branch gcc_usb30_sec_master_clk
= {
3898 .halt_reg
= 0x10010,
3899 .halt_check
= BRANCH_HALT
,
3901 .enable_reg
= 0x10010,
3902 .enable_mask
= BIT(0),
3903 .hw
.init
= &(struct clk_init_data
){
3904 .name
= "gcc_usb30_sec_master_clk",
3905 .parent_hws
= (const struct clk_hw
*[]){
3906 &gcc_usb30_sec_master_clk_src
.clkr
.hw
},
3908 .flags
= CLK_SET_RATE_PARENT
,
3909 .ops
= &clk_branch2_ops
,
3914 static struct clk_branch gcc_usb30_sec_mock_utmi_clk
= {
3915 .halt_reg
= 0x10018,
3916 .halt_check
= BRANCH_HALT
,
3918 .enable_reg
= 0x10018,
3919 .enable_mask
= BIT(0),
3920 .hw
.init
= &(struct clk_init_data
){
3921 .name
= "gcc_usb30_sec_mock_utmi_clk",
3922 .parent_hws
= (const struct clk_hw
*[]){
3923 &gcc_usb30_sec_mock_utmi_clk_src
.clkr
.hw
3926 .flags
= CLK_SET_RATE_PARENT
,
3927 .ops
= &clk_branch2_ops
,
3932 static struct clk_branch gcc_usb30_sec_sleep_clk
= {
3933 .halt_reg
= 0x10014,
3934 .halt_check
= BRANCH_HALT
,
3936 .enable_reg
= 0x10014,
3937 .enable_mask
= BIT(0),
3938 .hw
.init
= &(struct clk_init_data
){
3939 .name
= "gcc_usb30_sec_sleep_clk",
3940 .ops
= &clk_branch2_ops
,
3945 static struct clk_branch gcc_usb3_mp_phy_aux_clk
= {
3946 .halt_reg
= 0xa6050,
3947 .halt_check
= BRANCH_HALT
,
3949 .enable_reg
= 0xa6050,
3950 .enable_mask
= BIT(0),
3951 .hw
.init
= &(struct clk_init_data
){
3952 .name
= "gcc_usb3_mp_phy_aux_clk",
3953 .parent_hws
= (const struct clk_hw
*[]){
3954 &gcc_usb3_mp_phy_aux_clk_src
.clkr
.hw
3957 .flags
= CLK_SET_RATE_PARENT
,
3958 .ops
= &clk_branch2_ops
,
3963 static struct clk_branch gcc_usb3_mp_phy_com_aux_clk
= {
3964 .halt_reg
= 0xa6054,
3965 .halt_check
= BRANCH_HALT
,
3967 .enable_reg
= 0xa6054,
3968 .enable_mask
= BIT(0),
3969 .hw
.init
= &(struct clk_init_data
){
3970 .name
= "gcc_usb3_mp_phy_com_aux_clk",
3971 .parent_hws
= (const struct clk_hw
*[]){
3972 &gcc_usb3_mp_phy_aux_clk_src
.clkr
.hw
3975 .flags
= CLK_SET_RATE_PARENT
,
3976 .ops
= &clk_branch2_ops
,
3981 static struct clk_branch gcc_usb3_mp_phy_pipe_0_clk
= {
3982 .halt_reg
= 0xa6058,
3983 .halt_check
= BRANCH_HALT_SKIP
,
3985 .enable_reg
= 0xa6058,
3986 .enable_mask
= BIT(0),
3987 .hw
.init
= &(struct clk_init_data
){
3988 .name
= "gcc_usb3_mp_phy_pipe_0_clk",
3989 .ops
= &clk_branch2_ops
,
3994 static struct clk_branch gcc_usb3_mp_phy_pipe_1_clk
= {
3995 .halt_reg
= 0xa605c,
3996 .halt_check
= BRANCH_HALT_SKIP
,
3998 .enable_reg
= 0xa605c,
3999 .enable_mask
= BIT(0),
4000 .hw
.init
= &(struct clk_init_data
){
4001 .name
= "gcc_usb3_mp_phy_pipe_1_clk",
4002 .ops
= &clk_branch2_ops
,
4007 static struct clk_branch gcc_usb3_prim_clkref_clk
= {
4008 .halt_reg
= 0x8c008,
4009 .halt_check
= BRANCH_HALT
,
4011 .enable_reg
= 0x8c008,
4012 .enable_mask
= BIT(0),
4013 .hw
.init
= &(struct clk_init_data
){
4014 .name
= "gcc_usb3_prim_clkref_clk",
4015 .ops
= &clk_branch2_ops
,
4020 static struct clk_branch gcc_usb3_prim_phy_aux_clk
= {
4022 .halt_check
= BRANCH_HALT
,
4024 .enable_reg
= 0xf050,
4025 .enable_mask
= BIT(0),
4026 .hw
.init
= &(struct clk_init_data
){
4027 .name
= "gcc_usb3_prim_phy_aux_clk",
4028 .parent_hws
= (const struct clk_hw
*[]){
4029 &gcc_usb3_prim_phy_aux_clk_src
.clkr
.hw
4032 .flags
= CLK_SET_RATE_PARENT
,
4033 .ops
= &clk_branch2_ops
,
4038 static struct clk_branch gcc_usb3_prim_phy_com_aux_clk
= {
4040 .halt_check
= BRANCH_HALT
,
4042 .enable_reg
= 0xf054,
4043 .enable_mask
= BIT(0),
4044 .hw
.init
= &(struct clk_init_data
){
4045 .name
= "gcc_usb3_prim_phy_com_aux_clk",
4046 .parent_hws
= (const struct clk_hw
*[]){
4047 &gcc_usb3_prim_phy_aux_clk_src
.clkr
.hw
4050 .flags
= CLK_SET_RATE_PARENT
,
4051 .ops
= &clk_branch2_ops
,
4056 static struct clk_branch gcc_usb3_prim_phy_pipe_clk
= {
4058 .halt_check
= BRANCH_HALT_SKIP
,
4060 .enable_reg
= 0xf058,
4061 .enable_mask
= BIT(0),
4062 .hw
.init
= &(struct clk_init_data
){
4063 .name
= "gcc_usb3_prim_phy_pipe_clk",
4064 .ops
= &clk_branch2_ops
,
4069 static struct clk_branch gcc_usb3_sec_clkref_clk
= {
4070 .halt_reg
= 0x8c028,
4071 .halt_check
= BRANCH_HALT
,
4073 .enable_reg
= 0x8c028,
4074 .enable_mask
= BIT(0),
4075 .hw
.init
= &(struct clk_init_data
){
4076 .name
= "gcc_usb3_sec_clkref_clk",
4077 .ops
= &clk_branch2_ops
,
4082 static struct clk_branch gcc_usb3_sec_phy_aux_clk
= {
4083 .halt_reg
= 0x10050,
4084 .halt_check
= BRANCH_HALT
,
4086 .enable_reg
= 0x10050,
4087 .enable_mask
= BIT(0),
4088 .hw
.init
= &(struct clk_init_data
){
4089 .name
= "gcc_usb3_sec_phy_aux_clk",
4090 .parent_hws
= (const struct clk_hw
*[]){
4091 &gcc_usb3_sec_phy_aux_clk_src
.clkr
.hw
4094 .flags
= CLK_SET_RATE_PARENT
,
4095 .ops
= &clk_branch2_ops
,
4100 static struct clk_branch gcc_usb3_sec_phy_com_aux_clk
= {
4101 .halt_reg
= 0x10054,
4102 .halt_check
= BRANCH_HALT
,
4104 .enable_reg
= 0x10054,
4105 .enable_mask
= BIT(0),
4106 .hw
.init
= &(struct clk_init_data
){
4107 .name
= "gcc_usb3_sec_phy_com_aux_clk",
4108 .parent_hws
= (const struct clk_hw
*[]){
4109 &gcc_usb3_sec_phy_aux_clk_src
.clkr
.hw
4112 .flags
= CLK_SET_RATE_PARENT
,
4113 .ops
= &clk_branch2_ops
,
4118 static struct clk_branch gcc_usb3_sec_phy_pipe_clk
= {
4119 .halt_reg
= 0x10058,
4120 .halt_check
= BRANCH_HALT_SKIP
,
4122 .enable_reg
= 0x10058,
4123 .enable_mask
= BIT(0),
4124 .hw
.init
= &(struct clk_init_data
){
4125 .name
= "gcc_usb3_sec_phy_pipe_clk",
4126 .ops
= &clk_branch2_ops
,
4131 static struct clk_branch gcc_video_axi0_clk
= {
4133 .halt_check
= BRANCH_HALT
,
4135 .enable_reg
= 0xb024,
4136 .enable_mask
= BIT(0),
4137 .hw
.init
= &(struct clk_init_data
){
4138 .name
= "gcc_video_axi0_clk",
4139 .ops
= &clk_branch2_ops
,
4144 static struct clk_branch gcc_video_axi1_clk
= {
4146 .halt_check
= BRANCH_HALT
,
4148 .enable_reg
= 0xb028,
4149 .enable_mask
= BIT(0),
4150 .hw
.init
= &(struct clk_init_data
){
4151 .name
= "gcc_video_axi1_clk",
4152 .ops
= &clk_branch2_ops
,
4157 static struct clk_branch gcc_video_axic_clk
= {
4159 .halt_check
= BRANCH_HALT
,
4161 .enable_reg
= 0xb02c,
4162 .enable_mask
= BIT(0),
4163 .hw
.init
= &(struct clk_init_data
){
4164 .name
= "gcc_video_axic_clk",
4165 .ops
= &clk_branch2_ops
,
4170 static struct gdsc usb30_sec_gdsc
= {
4173 .name
= "usb30_sec_gdsc",
4175 .pwrsts
= PWRSTS_OFF_ON
,
4176 .flags
= POLL_CFG_GDSCR
,
4179 static struct gdsc emac_gdsc
= {
4182 .name
= "emac_gdsc",
4184 .pwrsts
= PWRSTS_OFF_ON
,
4185 .flags
= POLL_CFG_GDSCR
,
4188 static struct gdsc usb30_prim_gdsc
= {
4191 .name
= "usb30_prim_gdsc",
4193 .pwrsts
= PWRSTS_OFF_ON
,
4194 .flags
= POLL_CFG_GDSCR
,
4197 static struct gdsc pcie_0_gdsc
= {
4200 .name
= "pcie_0_gdsc",
4202 .pwrsts
= PWRSTS_OFF_ON
,
4203 .flags
= POLL_CFG_GDSCR
,
4206 static struct gdsc ufs_card_gdsc
= {
4209 .name
= "ufs_card_gdsc",
4211 .pwrsts
= PWRSTS_OFF_ON
,
4212 .flags
= POLL_CFG_GDSCR
,
4215 static struct gdsc ufs_phy_gdsc
= {
4218 .name
= "ufs_phy_gdsc",
4220 .pwrsts
= PWRSTS_OFF_ON
,
4221 .flags
= POLL_CFG_GDSCR
,
4224 static struct gdsc pcie_1_gdsc
= {
4227 .name
= "pcie_1_gdsc",
4229 .pwrsts
= PWRSTS_OFF_ON
,
4230 .flags
= POLL_CFG_GDSCR
,
4233 static struct gdsc pcie_2_gdsc
= {
4236 .name
= "pcie_2_gdsc",
4238 .pwrsts
= PWRSTS_OFF_ON
,
4239 .flags
= POLL_CFG_GDSCR
,
4242 static struct gdsc ufs_card_2_gdsc
= {
4245 .name
= "ufs_card_2_gdsc",
4247 .pwrsts
= PWRSTS_OFF_ON
,
4248 .flags
= POLL_CFG_GDSCR
,
4251 static struct gdsc pcie_3_gdsc
= {
4254 .name
= "pcie_3_gdsc",
4256 .pwrsts
= PWRSTS_OFF_ON
,
4257 .flags
= POLL_CFG_GDSCR
,
4260 static struct gdsc usb30_mp_gdsc
= {
4263 .name
= "usb30_mp_gdsc",
4265 .pwrsts
= PWRSTS_OFF_ON
,
4266 .flags
= POLL_CFG_GDSCR
,
4269 static struct clk_regmap
*gcc_sc8180x_clocks
[] = {
4270 [GCC_AGGRE_NOC_PCIE_TBU_CLK
] = &gcc_aggre_noc_pcie_tbu_clk
.clkr
,
4271 [GCC_AGGRE_UFS_CARD_AXI_CLK
] = &gcc_aggre_ufs_card_axi_clk
.clkr
,
4272 [GCC_AGGRE_UFS_CARD_AXI_HW_CTL_CLK
] = &gcc_aggre_ufs_card_axi_hw_ctl_clk
.clkr
,
4273 [GCC_AGGRE_UFS_PHY_AXI_CLK
] = &gcc_aggre_ufs_phy_axi_clk
.clkr
,
4274 [GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK
] = &gcc_aggre_ufs_phy_axi_hw_ctl_clk
.clkr
,
4275 [GCC_AGGRE_USB3_MP_AXI_CLK
] = &gcc_aggre_usb3_mp_axi_clk
.clkr
,
4276 [GCC_AGGRE_USB3_PRIM_AXI_CLK
] = &gcc_aggre_usb3_prim_axi_clk
.clkr
,
4277 [GCC_AGGRE_USB3_SEC_AXI_CLK
] = &gcc_aggre_usb3_sec_axi_clk
.clkr
,
4278 [GCC_BOOT_ROM_AHB_CLK
] = &gcc_boot_rom_ahb_clk
.clkr
,
4279 [GCC_CAMERA_HF_AXI_CLK
] = &gcc_camera_hf_axi_clk
.clkr
,
4280 [GCC_CAMERA_SF_AXI_CLK
] = &gcc_camera_sf_axi_clk
.clkr
,
4281 [GCC_CFG_NOC_USB3_MP_AXI_CLK
] = &gcc_cfg_noc_usb3_mp_axi_clk
.clkr
,
4282 [GCC_CFG_NOC_USB3_PRIM_AXI_CLK
] = &gcc_cfg_noc_usb3_prim_axi_clk
.clkr
,
4283 [GCC_CFG_NOC_USB3_SEC_AXI_CLK
] = &gcc_cfg_noc_usb3_sec_axi_clk
.clkr
,
4284 [GCC_CPUSS_RBCPR_CLK
] = &gcc_cpuss_rbcpr_clk
.clkr
,
4285 [GCC_DDRSS_GPU_AXI_CLK
] = &gcc_ddrss_gpu_axi_clk
.clkr
,
4286 [GCC_DISP_HF_AXI_CLK
] = &gcc_disp_hf_axi_clk
.clkr
,
4287 [GCC_DISP_SF_AXI_CLK
] = &gcc_disp_sf_axi_clk
.clkr
,
4288 [GCC_EMAC_AXI_CLK
] = &gcc_emac_axi_clk
.clkr
,
4289 [GCC_EMAC_PTP_CLK
] = &gcc_emac_ptp_clk
.clkr
,
4290 [GCC_EMAC_PTP_CLK_SRC
] = &gcc_emac_ptp_clk_src
.clkr
,
4291 [GCC_EMAC_RGMII_CLK
] = &gcc_emac_rgmii_clk
.clkr
,
4292 [GCC_EMAC_RGMII_CLK_SRC
] = &gcc_emac_rgmii_clk_src
.clkr
,
4293 [GCC_EMAC_SLV_AHB_CLK
] = &gcc_emac_slv_ahb_clk
.clkr
,
4294 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
4295 [GCC_GP1_CLK_SRC
] = &gcc_gp1_clk_src
.clkr
,
4296 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
4297 [GCC_GP2_CLK_SRC
] = &gcc_gp2_clk_src
.clkr
,
4298 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
4299 [GCC_GP3_CLK_SRC
] = &gcc_gp3_clk_src
.clkr
,
4300 [GCC_GP4_CLK
] = &gcc_gp4_clk
.clkr
,
4301 [GCC_GP4_CLK_SRC
] = &gcc_gp4_clk_src
.clkr
,
4302 [GCC_GP5_CLK
] = &gcc_gp5_clk
.clkr
,
4303 [GCC_GP5_CLK_SRC
] = &gcc_gp5_clk_src
.clkr
,
4304 [GCC_GPU_GPLL0_CLK_SRC
] = &gcc_gpu_gpll0_clk_src
.clkr
,
4305 [GCC_GPU_GPLL0_DIV_CLK_SRC
] = &gcc_gpu_gpll0_div_clk_src
.clkr
,
4306 [GCC_GPU_MEMNOC_GFX_CLK
] = &gcc_gpu_memnoc_gfx_clk
.clkr
,
4307 [GCC_GPU_SNOC_DVM_GFX_CLK
] = &gcc_gpu_snoc_dvm_gfx_clk
.clkr
,
4308 [GCC_NPU_AT_CLK
] = &gcc_npu_at_clk
.clkr
,
4309 [GCC_NPU_AXI_CLK
] = &gcc_npu_axi_clk
.clkr
,
4310 [GCC_NPU_AXI_CLK_SRC
] = &gcc_npu_axi_clk_src
.clkr
,
4311 [GCC_NPU_GPLL0_CLK_SRC
] = &gcc_npu_gpll0_clk_src
.clkr
,
4312 [GCC_NPU_GPLL0_DIV_CLK_SRC
] = &gcc_npu_gpll0_div_clk_src
.clkr
,
4313 [GCC_NPU_TRIG_CLK
] = &gcc_npu_trig_clk
.clkr
,
4314 [GCC_PCIE0_PHY_REFGEN_CLK
] = &gcc_pcie0_phy_refgen_clk
.clkr
,
4315 [GCC_PCIE1_PHY_REFGEN_CLK
] = &gcc_pcie1_phy_refgen_clk
.clkr
,
4316 [GCC_PCIE2_PHY_REFGEN_CLK
] = &gcc_pcie2_phy_refgen_clk
.clkr
,
4317 [GCC_PCIE3_PHY_REFGEN_CLK
] = &gcc_pcie3_phy_refgen_clk
.clkr
,
4318 [GCC_PCIE_0_AUX_CLK
] = &gcc_pcie_0_aux_clk
.clkr
,
4319 [GCC_PCIE_0_AUX_CLK_SRC
] = &gcc_pcie_0_aux_clk_src
.clkr
,
4320 [GCC_PCIE_0_CFG_AHB_CLK
] = &gcc_pcie_0_cfg_ahb_clk
.clkr
,
4321 [GCC_PCIE_0_CLKREF_CLK
] = &gcc_pcie_0_clkref_clk
.clkr
,
4322 [GCC_PCIE_0_MSTR_AXI_CLK
] = &gcc_pcie_0_mstr_axi_clk
.clkr
,
4323 [GCC_PCIE_0_PIPE_CLK
] = &gcc_pcie_0_pipe_clk
.clkr
,
4324 [GCC_PCIE_0_SLV_AXI_CLK
] = &gcc_pcie_0_slv_axi_clk
.clkr
,
4325 [GCC_PCIE_0_SLV_Q2A_AXI_CLK
] = &gcc_pcie_0_slv_q2a_axi_clk
.clkr
,
4326 [GCC_PCIE_1_AUX_CLK
] = &gcc_pcie_1_aux_clk
.clkr
,
4327 [GCC_PCIE_1_AUX_CLK_SRC
] = &gcc_pcie_1_aux_clk_src
.clkr
,
4328 [GCC_PCIE_1_CFG_AHB_CLK
] = &gcc_pcie_1_cfg_ahb_clk
.clkr
,
4329 [GCC_PCIE_1_CLKREF_CLK
] = &gcc_pcie_1_clkref_clk
.clkr
,
4330 [GCC_PCIE_1_MSTR_AXI_CLK
] = &gcc_pcie_1_mstr_axi_clk
.clkr
,
4331 [GCC_PCIE_1_PIPE_CLK
] = &gcc_pcie_1_pipe_clk
.clkr
,
4332 [GCC_PCIE_1_SLV_AXI_CLK
] = &gcc_pcie_1_slv_axi_clk
.clkr
,
4333 [GCC_PCIE_1_SLV_Q2A_AXI_CLK
] = &gcc_pcie_1_slv_q2a_axi_clk
.clkr
,
4334 [GCC_PCIE_2_AUX_CLK
] = &gcc_pcie_2_aux_clk
.clkr
,
4335 [GCC_PCIE_2_AUX_CLK_SRC
] = &gcc_pcie_2_aux_clk_src
.clkr
,
4336 [GCC_PCIE_2_CFG_AHB_CLK
] = &gcc_pcie_2_cfg_ahb_clk
.clkr
,
4337 [GCC_PCIE_2_CLKREF_CLK
] = &gcc_pcie_2_clkref_clk
.clkr
,
4338 [GCC_PCIE_2_MSTR_AXI_CLK
] = &gcc_pcie_2_mstr_axi_clk
.clkr
,
4339 [GCC_PCIE_2_PIPE_CLK
] = &gcc_pcie_2_pipe_clk
.clkr
,
4340 [GCC_PCIE_2_SLV_AXI_CLK
] = &gcc_pcie_2_slv_axi_clk
.clkr
,
4341 [GCC_PCIE_2_SLV_Q2A_AXI_CLK
] = &gcc_pcie_2_slv_q2a_axi_clk
.clkr
,
4342 [GCC_PCIE_3_AUX_CLK
] = &gcc_pcie_3_aux_clk
.clkr
,
4343 [GCC_PCIE_3_AUX_CLK_SRC
] = &gcc_pcie_3_aux_clk_src
.clkr
,
4344 [GCC_PCIE_3_CFG_AHB_CLK
] = &gcc_pcie_3_cfg_ahb_clk
.clkr
,
4345 [GCC_PCIE_3_CLKREF_CLK
] = &gcc_pcie_3_clkref_clk
.clkr
,
4346 [GCC_PCIE_3_MSTR_AXI_CLK
] = &gcc_pcie_3_mstr_axi_clk
.clkr
,
4347 [GCC_PCIE_3_PIPE_CLK
] = &gcc_pcie_3_pipe_clk
.clkr
,
4348 [GCC_PCIE_3_SLV_AXI_CLK
] = &gcc_pcie_3_slv_axi_clk
.clkr
,
4349 [GCC_PCIE_3_SLV_Q2A_AXI_CLK
] = &gcc_pcie_3_slv_q2a_axi_clk
.clkr
,
4350 [GCC_PCIE_PHY_AUX_CLK
] = &gcc_pcie_phy_aux_clk
.clkr
,
4351 [GCC_PCIE_PHY_REFGEN_CLK_SRC
] = &gcc_pcie_phy_refgen_clk_src
.clkr
,
4352 [GCC_PDM2_CLK
] = &gcc_pdm2_clk
.clkr
,
4353 [GCC_PDM2_CLK_SRC
] = &gcc_pdm2_clk_src
.clkr
,
4354 [GCC_PDM_AHB_CLK
] = &gcc_pdm_ahb_clk
.clkr
,
4355 [GCC_PDM_XO4_CLK
] = &gcc_pdm_xo4_clk
.clkr
,
4356 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
4357 [GCC_QMIP_CAMERA_NRT_AHB_CLK
] = &gcc_qmip_camera_nrt_ahb_clk
.clkr
,
4358 [GCC_QMIP_CAMERA_RT_AHB_CLK
] = &gcc_qmip_camera_rt_ahb_clk
.clkr
,
4359 [GCC_QMIP_DISP_AHB_CLK
] = &gcc_qmip_disp_ahb_clk
.clkr
,
4360 [GCC_QMIP_VIDEO_CVP_AHB_CLK
] = &gcc_qmip_video_cvp_ahb_clk
.clkr
,
4361 [GCC_QMIP_VIDEO_VCODEC_AHB_CLK
] = &gcc_qmip_video_vcodec_ahb_clk
.clkr
,
4362 [GCC_QSPI_1_CNOC_PERIPH_AHB_CLK
] = &gcc_qspi_1_cnoc_periph_ahb_clk
.clkr
,
4363 [GCC_QSPI_1_CORE_CLK
] = &gcc_qspi_1_core_clk
.clkr
,
4364 [GCC_QSPI_1_CORE_CLK_SRC
] = &gcc_qspi_1_core_clk_src
.clkr
,
4365 [GCC_QSPI_CNOC_PERIPH_AHB_CLK
] = &gcc_qspi_cnoc_periph_ahb_clk
.clkr
,
4366 [GCC_QSPI_CORE_CLK
] = &gcc_qspi_core_clk
.clkr
,
4367 [GCC_QSPI_CORE_CLK_SRC
] = &gcc_qspi_core_clk_src
.clkr
,
4368 [GCC_QUPV3_WRAP0_S0_CLK
] = &gcc_qupv3_wrap0_s0_clk
.clkr
,
4369 [GCC_QUPV3_WRAP0_S0_CLK_SRC
] = &gcc_qupv3_wrap0_s0_clk_src
.clkr
,
4370 [GCC_QUPV3_WRAP0_S1_CLK
] = &gcc_qupv3_wrap0_s1_clk
.clkr
,
4371 [GCC_QUPV3_WRAP0_S1_CLK_SRC
] = &gcc_qupv3_wrap0_s1_clk_src
.clkr
,
4372 [GCC_QUPV3_WRAP0_S2_CLK
] = &gcc_qupv3_wrap0_s2_clk
.clkr
,
4373 [GCC_QUPV3_WRAP0_S2_CLK_SRC
] = &gcc_qupv3_wrap0_s2_clk_src
.clkr
,
4374 [GCC_QUPV3_WRAP0_S3_CLK
] = &gcc_qupv3_wrap0_s3_clk
.clkr
,
4375 [GCC_QUPV3_WRAP0_S3_CLK_SRC
] = &gcc_qupv3_wrap0_s3_clk_src
.clkr
,
4376 [GCC_QUPV3_WRAP0_S4_CLK
] = &gcc_qupv3_wrap0_s4_clk
.clkr
,
4377 [GCC_QUPV3_WRAP0_S4_CLK_SRC
] = &gcc_qupv3_wrap0_s4_clk_src
.clkr
,
4378 [GCC_QUPV3_WRAP0_S5_CLK
] = &gcc_qupv3_wrap0_s5_clk
.clkr
,
4379 [GCC_QUPV3_WRAP0_S5_CLK_SRC
] = &gcc_qupv3_wrap0_s5_clk_src
.clkr
,
4380 [GCC_QUPV3_WRAP0_S6_CLK
] = &gcc_qupv3_wrap0_s6_clk
.clkr
,
4381 [GCC_QUPV3_WRAP0_S6_CLK_SRC
] = &gcc_qupv3_wrap0_s6_clk_src
.clkr
,
4382 [GCC_QUPV3_WRAP0_S7_CLK
] = &gcc_qupv3_wrap0_s7_clk
.clkr
,
4383 [GCC_QUPV3_WRAP0_S7_CLK_SRC
] = &gcc_qupv3_wrap0_s7_clk_src
.clkr
,
4384 [GCC_QUPV3_WRAP1_S0_CLK
] = &gcc_qupv3_wrap1_s0_clk
.clkr
,
4385 [GCC_QUPV3_WRAP1_S0_CLK_SRC
] = &gcc_qupv3_wrap1_s0_clk_src
.clkr
,
4386 [GCC_QUPV3_WRAP1_S1_CLK
] = &gcc_qupv3_wrap1_s1_clk
.clkr
,
4387 [GCC_QUPV3_WRAP1_S1_CLK_SRC
] = &gcc_qupv3_wrap1_s1_clk_src
.clkr
,
4388 [GCC_QUPV3_WRAP1_S2_CLK
] = &gcc_qupv3_wrap1_s2_clk
.clkr
,
4389 [GCC_QUPV3_WRAP1_S2_CLK_SRC
] = &gcc_qupv3_wrap1_s2_clk_src
.clkr
,
4390 [GCC_QUPV3_WRAP1_S3_CLK
] = &gcc_qupv3_wrap1_s3_clk
.clkr
,
4391 [GCC_QUPV3_WRAP1_S3_CLK_SRC
] = &gcc_qupv3_wrap1_s3_clk_src
.clkr
,
4392 [GCC_QUPV3_WRAP1_S4_CLK
] = &gcc_qupv3_wrap1_s4_clk
.clkr
,
4393 [GCC_QUPV3_WRAP1_S4_CLK_SRC
] = &gcc_qupv3_wrap1_s4_clk_src
.clkr
,
4394 [GCC_QUPV3_WRAP1_S5_CLK
] = &gcc_qupv3_wrap1_s5_clk
.clkr
,
4395 [GCC_QUPV3_WRAP1_S5_CLK_SRC
] = &gcc_qupv3_wrap1_s5_clk_src
.clkr
,
4396 [GCC_QUPV3_WRAP2_S0_CLK
] = &gcc_qupv3_wrap2_s0_clk
.clkr
,
4397 [GCC_QUPV3_WRAP2_S0_CLK_SRC
] = &gcc_qupv3_wrap2_s0_clk_src
.clkr
,
4398 [GCC_QUPV3_WRAP2_S1_CLK
] = &gcc_qupv3_wrap2_s1_clk
.clkr
,
4399 [GCC_QUPV3_WRAP2_S1_CLK_SRC
] = &gcc_qupv3_wrap2_s1_clk_src
.clkr
,
4400 [GCC_QUPV3_WRAP2_S2_CLK
] = &gcc_qupv3_wrap2_s2_clk
.clkr
,
4401 [GCC_QUPV3_WRAP2_S2_CLK_SRC
] = &gcc_qupv3_wrap2_s2_clk_src
.clkr
,
4402 [GCC_QUPV3_WRAP2_S3_CLK
] = &gcc_qupv3_wrap2_s3_clk
.clkr
,
4403 [GCC_QUPV3_WRAP2_S3_CLK_SRC
] = &gcc_qupv3_wrap2_s3_clk_src
.clkr
,
4404 [GCC_QUPV3_WRAP2_S4_CLK
] = &gcc_qupv3_wrap2_s4_clk
.clkr
,
4405 [GCC_QUPV3_WRAP2_S4_CLK_SRC
] = &gcc_qupv3_wrap2_s4_clk_src
.clkr
,
4406 [GCC_QUPV3_WRAP2_S5_CLK
] = &gcc_qupv3_wrap2_s5_clk
.clkr
,
4407 [GCC_QUPV3_WRAP2_S5_CLK_SRC
] = &gcc_qupv3_wrap2_s5_clk_src
.clkr
,
4408 [GCC_QUPV3_WRAP_0_M_AHB_CLK
] = &gcc_qupv3_wrap_0_m_ahb_clk
.clkr
,
4409 [GCC_QUPV3_WRAP_0_S_AHB_CLK
] = &gcc_qupv3_wrap_0_s_ahb_clk
.clkr
,
4410 [GCC_QUPV3_WRAP_1_M_AHB_CLK
] = &gcc_qupv3_wrap_1_m_ahb_clk
.clkr
,
4411 [GCC_QUPV3_WRAP_1_S_AHB_CLK
] = &gcc_qupv3_wrap_1_s_ahb_clk
.clkr
,
4412 [GCC_QUPV3_WRAP_2_M_AHB_CLK
] = &gcc_qupv3_wrap_2_m_ahb_clk
.clkr
,
4413 [GCC_QUPV3_WRAP_2_S_AHB_CLK
] = &gcc_qupv3_wrap_2_s_ahb_clk
.clkr
,
4414 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
4415 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
4416 [GCC_SDCC2_APPS_CLK_SRC
] = &gcc_sdcc2_apps_clk_src
.clkr
,
4417 [GCC_SDCC4_AHB_CLK
] = &gcc_sdcc4_ahb_clk
.clkr
,
4418 [GCC_SDCC4_APPS_CLK
] = &gcc_sdcc4_apps_clk
.clkr
,
4419 [GCC_SDCC4_APPS_CLK_SRC
] = &gcc_sdcc4_apps_clk_src
.clkr
,
4420 [GCC_TSIF_AHB_CLK
] = &gcc_tsif_ahb_clk
.clkr
,
4421 [GCC_TSIF_INACTIVITY_TIMERS_CLK
] = &gcc_tsif_inactivity_timers_clk
.clkr
,
4422 [GCC_TSIF_REF_CLK
] = &gcc_tsif_ref_clk
.clkr
,
4423 [GCC_TSIF_REF_CLK_SRC
] = &gcc_tsif_ref_clk_src
.clkr
,
4424 [GCC_UFS_CARD_2_AHB_CLK
] = &gcc_ufs_card_2_ahb_clk
.clkr
,
4425 [GCC_UFS_CARD_2_AXI_CLK
] = &gcc_ufs_card_2_axi_clk
.clkr
,
4426 [GCC_UFS_CARD_2_AXI_CLK_SRC
] = &gcc_ufs_card_2_axi_clk_src
.clkr
,
4427 [GCC_UFS_CARD_2_ICE_CORE_CLK
] = &gcc_ufs_card_2_ice_core_clk
.clkr
,
4428 [GCC_UFS_CARD_2_ICE_CORE_CLK_SRC
] = &gcc_ufs_card_2_ice_core_clk_src
.clkr
,
4429 [GCC_UFS_CARD_2_PHY_AUX_CLK
] = &gcc_ufs_card_2_phy_aux_clk
.clkr
,
4430 [GCC_UFS_CARD_2_PHY_AUX_CLK_SRC
] = &gcc_ufs_card_2_phy_aux_clk_src
.clkr
,
4431 [GCC_UFS_CARD_2_RX_SYMBOL_0_CLK
] = &gcc_ufs_card_2_rx_symbol_0_clk
.clkr
,
4432 [GCC_UFS_CARD_2_RX_SYMBOL_1_CLK
] = &gcc_ufs_card_2_rx_symbol_1_clk
.clkr
,
4433 [GCC_UFS_CARD_2_TX_SYMBOL_0_CLK
] = &gcc_ufs_card_2_tx_symbol_0_clk
.clkr
,
4434 [GCC_UFS_CARD_2_UNIPRO_CORE_CLK
] = &gcc_ufs_card_2_unipro_core_clk
.clkr
,
4435 [GCC_UFS_CARD_2_UNIPRO_CORE_CLK_SRC
] = &gcc_ufs_card_2_unipro_core_clk_src
.clkr
,
4436 [GCC_UFS_CARD_CLKREF_EN
] = &gcc_ufs_card_clkref_en
.clkr
,
4437 [GCC_UFS_CARD_AHB_CLK
] = &gcc_ufs_card_ahb_clk
.clkr
,
4438 [GCC_UFS_CARD_AXI_CLK
] = &gcc_ufs_card_axi_clk
.clkr
,
4439 [GCC_UFS_CARD_AXI_CLK_SRC
] = &gcc_ufs_card_axi_clk_src
.clkr
,
4440 [GCC_UFS_CARD_AXI_HW_CTL_CLK
] = &gcc_ufs_card_axi_hw_ctl_clk
.clkr
,
4441 [GCC_UFS_CARD_ICE_CORE_CLK
] = &gcc_ufs_card_ice_core_clk
.clkr
,
4442 [GCC_UFS_CARD_ICE_CORE_CLK_SRC
] = &gcc_ufs_card_ice_core_clk_src
.clkr
,
4443 [GCC_UFS_CARD_ICE_CORE_HW_CTL_CLK
] = &gcc_ufs_card_ice_core_hw_ctl_clk
.clkr
,
4444 [GCC_UFS_CARD_PHY_AUX_CLK
] = &gcc_ufs_card_phy_aux_clk
.clkr
,
4445 [GCC_UFS_CARD_PHY_AUX_CLK_SRC
] = &gcc_ufs_card_phy_aux_clk_src
.clkr
,
4446 [GCC_UFS_CARD_PHY_AUX_HW_CTL_CLK
] = &gcc_ufs_card_phy_aux_hw_ctl_clk
.clkr
,
4447 [GCC_UFS_CARD_RX_SYMBOL_0_CLK
] = &gcc_ufs_card_rx_symbol_0_clk
.clkr
,
4448 [GCC_UFS_CARD_RX_SYMBOL_1_CLK
] = &gcc_ufs_card_rx_symbol_1_clk
.clkr
,
4449 [GCC_UFS_CARD_TX_SYMBOL_0_CLK
] = &gcc_ufs_card_tx_symbol_0_clk
.clkr
,
4450 [GCC_UFS_CARD_UNIPRO_CORE_CLK
] = &gcc_ufs_card_unipro_core_clk
.clkr
,
4451 [GCC_UFS_CARD_UNIPRO_CORE_CLK_SRC
] = &gcc_ufs_card_unipro_core_clk_src
.clkr
,
4452 [GCC_UFS_CARD_UNIPRO_CORE_HW_CTL_CLK
] = &gcc_ufs_card_unipro_core_hw_ctl_clk
.clkr
,
4453 [GCC_UFS_MEM_CLKREF_EN
] = &gcc_ufs_mem_clkref_en
.clkr
,
4454 [GCC_UFS_PHY_AHB_CLK
] = &gcc_ufs_phy_ahb_clk
.clkr
,
4455 [GCC_UFS_PHY_AXI_CLK
] = &gcc_ufs_phy_axi_clk
.clkr
,
4456 [GCC_UFS_PHY_AXI_CLK_SRC
] = &gcc_ufs_phy_axi_clk_src
.clkr
,
4457 [GCC_UFS_PHY_AXI_HW_CTL_CLK
] = &gcc_ufs_phy_axi_hw_ctl_clk
.clkr
,
4458 [GCC_UFS_PHY_ICE_CORE_CLK
] = &gcc_ufs_phy_ice_core_clk
.clkr
,
4459 [GCC_UFS_PHY_ICE_CORE_CLK_SRC
] = &gcc_ufs_phy_ice_core_clk_src
.clkr
,
4460 [GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK
] = &gcc_ufs_phy_ice_core_hw_ctl_clk
.clkr
,
4461 [GCC_UFS_PHY_PHY_AUX_CLK
] = &gcc_ufs_phy_phy_aux_clk
.clkr
,
4462 [GCC_UFS_PHY_PHY_AUX_CLK_SRC
] = &gcc_ufs_phy_phy_aux_clk_src
.clkr
,
4463 [GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK
] = &gcc_ufs_phy_phy_aux_hw_ctl_clk
.clkr
,
4464 [GCC_UFS_PHY_RX_SYMBOL_0_CLK
] = &gcc_ufs_phy_rx_symbol_0_clk
.clkr
,
4465 [GCC_UFS_PHY_RX_SYMBOL_1_CLK
] = &gcc_ufs_phy_rx_symbol_1_clk
.clkr
,
4466 [GCC_UFS_PHY_TX_SYMBOL_0_CLK
] = &gcc_ufs_phy_tx_symbol_0_clk
.clkr
,
4467 [GCC_UFS_PHY_UNIPRO_CORE_CLK
] = &gcc_ufs_phy_unipro_core_clk
.clkr
,
4468 [GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC
] = &gcc_ufs_phy_unipro_core_clk_src
.clkr
,
4469 [GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK
] = &gcc_ufs_phy_unipro_core_hw_ctl_clk
.clkr
,
4470 [GCC_USB30_MP_MASTER_CLK
] = &gcc_usb30_mp_master_clk
.clkr
,
4471 [GCC_USB30_MP_MASTER_CLK_SRC
] = &gcc_usb30_mp_master_clk_src
.clkr
,
4472 [GCC_USB30_MP_MOCK_UTMI_CLK
] = &gcc_usb30_mp_mock_utmi_clk
.clkr
,
4473 [GCC_USB30_MP_MOCK_UTMI_CLK_SRC
] = &gcc_usb30_mp_mock_utmi_clk_src
.clkr
,
4474 [GCC_USB30_MP_SLEEP_CLK
] = &gcc_usb30_mp_sleep_clk
.clkr
,
4475 [GCC_USB30_PRIM_MASTER_CLK
] = &gcc_usb30_prim_master_clk
.clkr
,
4476 [GCC_USB30_PRIM_MASTER_CLK_SRC
] = &gcc_usb30_prim_master_clk_src
.clkr
,
4477 [GCC_USB30_PRIM_MOCK_UTMI_CLK
] = &gcc_usb30_prim_mock_utmi_clk
.clkr
,
4478 [GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC
] = &gcc_usb30_prim_mock_utmi_clk_src
.clkr
,
4479 [GCC_USB30_PRIM_SLEEP_CLK
] = &gcc_usb30_prim_sleep_clk
.clkr
,
4480 [GCC_USB30_SEC_MASTER_CLK
] = &gcc_usb30_sec_master_clk
.clkr
,
4481 [GCC_USB30_SEC_MASTER_CLK_SRC
] = &gcc_usb30_sec_master_clk_src
.clkr
,
4482 [GCC_USB30_SEC_MOCK_UTMI_CLK
] = &gcc_usb30_sec_mock_utmi_clk
.clkr
,
4483 [GCC_USB30_SEC_MOCK_UTMI_CLK_SRC
] = &gcc_usb30_sec_mock_utmi_clk_src
.clkr
,
4484 [GCC_USB30_SEC_SLEEP_CLK
] = &gcc_usb30_sec_sleep_clk
.clkr
,
4485 [GCC_USB3_MP_PHY_AUX_CLK
] = &gcc_usb3_mp_phy_aux_clk
.clkr
,
4486 [GCC_USB3_MP_PHY_AUX_CLK_SRC
] = &gcc_usb3_mp_phy_aux_clk_src
.clkr
,
4487 [GCC_USB3_MP_PHY_COM_AUX_CLK
] = &gcc_usb3_mp_phy_com_aux_clk
.clkr
,
4488 [GCC_USB3_MP_PHY_PIPE_0_CLK
] = &gcc_usb3_mp_phy_pipe_0_clk
.clkr
,
4489 [GCC_USB3_MP_PHY_PIPE_1_CLK
] = &gcc_usb3_mp_phy_pipe_1_clk
.clkr
,
4490 [GCC_USB3_PRIM_CLKREF_CLK
] = &gcc_usb3_prim_clkref_clk
.clkr
,
4491 [GCC_USB3_PRIM_PHY_AUX_CLK
] = &gcc_usb3_prim_phy_aux_clk
.clkr
,
4492 [GCC_USB3_PRIM_PHY_AUX_CLK_SRC
] = &gcc_usb3_prim_phy_aux_clk_src
.clkr
,
4493 [GCC_USB3_PRIM_PHY_COM_AUX_CLK
] = &gcc_usb3_prim_phy_com_aux_clk
.clkr
,
4494 [GCC_USB3_PRIM_PHY_PIPE_CLK
] = &gcc_usb3_prim_phy_pipe_clk
.clkr
,
4495 [GCC_USB3_SEC_CLKREF_CLK
] = &gcc_usb3_sec_clkref_clk
.clkr
,
4496 [GCC_USB3_SEC_PHY_AUX_CLK
] = &gcc_usb3_sec_phy_aux_clk
.clkr
,
4497 [GCC_USB3_SEC_PHY_AUX_CLK_SRC
] = &gcc_usb3_sec_phy_aux_clk_src
.clkr
,
4498 [GCC_USB3_SEC_PHY_COM_AUX_CLK
] = &gcc_usb3_sec_phy_com_aux_clk
.clkr
,
4499 [GCC_USB3_SEC_PHY_PIPE_CLK
] = &gcc_usb3_sec_phy_pipe_clk
.clkr
,
4500 [GCC_VIDEO_AXI0_CLK
] = &gcc_video_axi0_clk
.clkr
,
4501 [GCC_VIDEO_AXI1_CLK
] = &gcc_video_axi1_clk
.clkr
,
4502 [GCC_VIDEO_AXIC_CLK
] = &gcc_video_axic_clk
.clkr
,
4503 [GPLL0
] = &gpll0
.clkr
,
4504 [GPLL0_OUT_EVEN
] = &gpll0_out_even
.clkr
,
4505 [GPLL1
] = &gpll1
.clkr
,
4506 [GPLL4
] = &gpll4
.clkr
,
4507 [GPLL7
] = &gpll7
.clkr
,
4508 [GPLL9
] = &gpll9
.clkr
,
4511 static const struct qcom_reset_map gcc_sc8180x_resets
[] = {
4512 [GCC_EMAC_BCR
] = { 0x6000 },
4513 [GCC_GPU_BCR
] = { 0x71000 },
4514 [GCC_MMSS_BCR
] = { 0xb000 },
4515 [GCC_NPU_BCR
] = { 0x4d000 },
4516 [GCC_PCIE_0_BCR
] = { 0x6b000 },
4517 [GCC_PCIE_0_PHY_BCR
] = { 0x6c01c },
4518 [GCC_PCIE_1_BCR
] = { 0x8d000 },
4519 [GCC_PCIE_1_PHY_BCR
] = { 0x8e01c },
4520 [GCC_PCIE_2_BCR
] = { 0x9d000 },
4521 [GCC_PCIE_2_PHY_BCR
] = { 0xa701c },
4522 [GCC_PCIE_3_BCR
] = { 0xa3000 },
4523 [GCC_PCIE_3_PHY_BCR
] = { 0xa801c },
4524 [GCC_PCIE_PHY_BCR
] = { 0x6f000 },
4525 [GCC_PDM_BCR
] = { 0x33000 },
4526 [GCC_PRNG_BCR
] = { 0x34000 },
4527 [GCC_QSPI_1_BCR
] = { 0x4a000 },
4528 [GCC_QSPI_BCR
] = { 0x24008 },
4529 [GCC_QUPV3_WRAPPER_0_BCR
] = { 0x17000 },
4530 [GCC_QUPV3_WRAPPER_1_BCR
] = { 0x18000 },
4531 [GCC_QUPV3_WRAPPER_2_BCR
] = { 0x1e000 },
4532 [GCC_QUSB2PHY_5_BCR
] = { 0x12010 },
4533 [GCC_QUSB2PHY_MP0_BCR
] = { 0x12008 },
4534 [GCC_QUSB2PHY_MP1_BCR
] = { 0x1200c },
4535 [GCC_QUSB2PHY_PRIM_BCR
] = { 0x12000 },
4536 [GCC_QUSB2PHY_SEC_BCR
] = { 0x12004 },
4537 [GCC_USB3_PHY_PRIM_SP0_BCR
] = { 0x50000 },
4538 [GCC_USB3_PHY_PRIM_SP1_BCR
] = { 0x50004 },
4539 [GCC_USB3_DP_PHY_PRIM_SP0_BCR
] = { 0x50010 },
4540 [GCC_USB3_DP_PHY_PRIM_SP1_BCR
] = { 0x50014 },
4541 [GCC_USB3_PHY_SEC_BCR
] = { 0x50018 },
4542 [GCC_USB3PHY_PHY_SEC_BCR
] = { 0x5001c },
4543 [GCC_USB3_DP_PHY_SEC_BCR
] = { 0x50020 },
4544 [GCC_USB3_UNIPHY_MP0_BCR
] = { 0x50024 },
4545 [GCC_USB3_UNIPHY_MP1_BCR
] = { 0x50028 },
4546 [GCC_USB3UNIPHY_PHY_MP0_BCR
] = { 0x5002c },
4547 [GCC_USB3UNIPHY_PHY_MP1_BCR
] = { 0x50030 },
4548 [GCC_SDCC2_BCR
] = { 0x14000 },
4549 [GCC_SDCC4_BCR
] = { 0x16000 },
4550 [GCC_TSIF_BCR
] = { 0x36000 },
4551 [GCC_UFS_CARD_2_BCR
] = { 0xa2000 },
4552 [GCC_UFS_CARD_BCR
] = { 0x75000 },
4553 [GCC_UFS_PHY_BCR
] = { 0x77000 },
4554 [GCC_USB30_MP_BCR
] = { 0xa6000 },
4555 [GCC_USB30_PRIM_BCR
] = { 0xf000 },
4556 [GCC_USB30_SEC_BCR
] = { 0x10000 },
4557 [GCC_USB_PHY_CFG_AHB2PHY_BCR
] = { 0x6a000 },
4558 [GCC_VIDEO_AXIC_CLK_BCR
] = { .reg
= 0xb02c, .bit
= 2, .udelay
= 150 },
4559 [GCC_VIDEO_AXI0_CLK_BCR
] = { .reg
= 0xb024, .bit
= 2, .udelay
= 150 },
4560 [GCC_VIDEO_AXI1_CLK_BCR
] = { .reg
= 0xb028, .bit
= 2, .udelay
= 150 },
4563 static const struct clk_rcg_dfs_data gcc_dfs_clocks
[] = {
4564 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s0_clk_src
),
4565 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s1_clk_src
),
4566 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s2_clk_src
),
4567 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s3_clk_src
),
4568 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s4_clk_src
),
4569 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s5_clk_src
),
4570 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s6_clk_src
),
4571 DEFINE_RCG_DFS(gcc_qupv3_wrap0_s7_clk_src
),
4572 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s0_clk_src
),
4573 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s1_clk_src
),
4574 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s2_clk_src
),
4575 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s3_clk_src
),
4576 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s4_clk_src
),
4577 DEFINE_RCG_DFS(gcc_qupv3_wrap1_s5_clk_src
),
4578 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s0_clk_src
),
4579 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s1_clk_src
),
4580 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s2_clk_src
),
4581 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s3_clk_src
),
4582 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s4_clk_src
),
4583 DEFINE_RCG_DFS(gcc_qupv3_wrap2_s5_clk_src
),
4586 static struct gdsc
*gcc_sc8180x_gdscs
[] = {
4587 [EMAC_GDSC
] = &emac_gdsc
,
4588 [PCIE_0_GDSC
] = &pcie_0_gdsc
,
4589 [PCIE_1_GDSC
] = &pcie_1_gdsc
,
4590 [PCIE_2_GDSC
] = &pcie_2_gdsc
,
4591 [PCIE_3_GDSC
] = &pcie_3_gdsc
,
4592 [UFS_CARD_GDSC
] = &ufs_card_gdsc
,
4593 [UFS_CARD_2_GDSC
] = &ufs_card_2_gdsc
,
4594 [UFS_PHY_GDSC
] = &ufs_phy_gdsc
,
4595 [USB30_MP_GDSC
] = &usb30_mp_gdsc
,
4596 [USB30_PRIM_GDSC
] = &usb30_prim_gdsc
,
4597 [USB30_SEC_GDSC
] = &usb30_sec_gdsc
,
4600 static const struct regmap_config gcc_sc8180x_regmap_config
= {
4604 .max_register
= 0xc0004,
4608 static const struct qcom_cc_desc gcc_sc8180x_desc
= {
4609 .config
= &gcc_sc8180x_regmap_config
,
4610 .clks
= gcc_sc8180x_clocks
,
4611 .num_clks
= ARRAY_SIZE(gcc_sc8180x_clocks
),
4612 .resets
= gcc_sc8180x_resets
,
4613 .num_resets
= ARRAY_SIZE(gcc_sc8180x_resets
),
4614 .gdscs
= gcc_sc8180x_gdscs
,
4615 .num_gdscs
= ARRAY_SIZE(gcc_sc8180x_gdscs
),
4618 static const struct of_device_id gcc_sc8180x_match_table
[] = {
4619 { .compatible
= "qcom,gcc-sc8180x" },
4622 MODULE_DEVICE_TABLE(of
, gcc_sc8180x_match_table
);
4624 static int gcc_sc8180x_probe(struct platform_device
*pdev
)
4626 struct regmap
*regmap
;
4629 regmap
= qcom_cc_map(pdev
, &gcc_sc8180x_desc
);
4631 return PTR_ERR(regmap
);
4633 /* Keep some clocks always-on */
4634 qcom_branch_set_clk_en(regmap
, 0xb004); /* GCC_VIDEO_AHB_CLK */
4635 qcom_branch_set_clk_en(regmap
, 0xb008); /* GCC_CAMERA_AHB_CLK */
4636 qcom_branch_set_clk_en(regmap
, 0xb00c); /* GCC_DISP_AHB_CLK */
4637 qcom_branch_set_clk_en(regmap
, 0xb040); /* GCC_VIDEO_XO_CLK */
4638 qcom_branch_set_clk_en(regmap
, 0xb044); /* GCC_CAMERA_XO_CLK */
4639 qcom_branch_set_clk_en(regmap
, 0xb048); /* GCC_DISP_XO_CLK */
4640 qcom_branch_set_clk_en(regmap
, 0x48004); /* GCC_CPUSS_GNOC_CLK */
4641 qcom_branch_set_clk_en(regmap
, 0x48190); /* GCC_CPUSS_DVM_BUS_CLK */
4642 qcom_branch_set_clk_en(regmap
, 0x4d004); /* GCC_NPU_CFG_AHB_CLK */
4643 qcom_branch_set_clk_en(regmap
, 0x71004); /* GCC_GPU_CFG_AHB_CLK */
4645 /* Disable the GPLL0 active input to NPU and GPU via MISC registers */
4646 regmap_update_bits(regmap
, 0x4d110, 0x3, 0x3);
4647 regmap_update_bits(regmap
, 0x71028, 0x3, 0x3);
4649 ret
= qcom_cc_register_rcg_dfs(regmap
, gcc_dfs_clocks
,
4650 ARRAY_SIZE(gcc_dfs_clocks
));
4654 return qcom_cc_really_probe(&pdev
->dev
, &gcc_sc8180x_desc
, regmap
);
4657 static struct platform_driver gcc_sc8180x_driver
= {
4658 .probe
= gcc_sc8180x_probe
,
4660 .name
= "gcc-sc8180x",
4661 .of_match_table
= gcc_sc8180x_match_table
,
4665 static int __init
gcc_sc8180x_init(void)
4667 return platform_driver_register(&gcc_sc8180x_driver
);
4669 core_initcall(gcc_sc8180x_init
);
4671 static void __exit
gcc_sc8180x_exit(void)
4673 platform_driver_unregister(&gcc_sc8180x_driver
);
4675 module_exit(gcc_sc8180x_exit
);
4677 MODULE_DESCRIPTION("QTI GCC SC8180x driver");
4678 MODULE_LICENSE("GPL v2");