2 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/kernel.h>
15 #include <linux/bitops.h>
16 #include <linux/err.h>
17 #include <linux/platform_device.h>
18 #include <linux/module.h>
20 #include <linux/of_device.h>
21 #include <linux/clk-provider.h>
22 #include <linux/regmap.h>
23 #include <linux/reset-controller.h>
25 #include <dt-bindings/clock/qcom,gcc-msm8996.h>
28 #include "clk-regmap.h"
29 #include "clk-alpha-pll.h"
31 #include "clk-branch.h"
35 #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
51 static const struct parent_map gcc_sleep_clk_map
[] = {
55 static const char * const gcc_sleep_clk
[] = {
59 static const struct parent_map gcc_xo_gpll0_map
[] = {
64 static const char * const gcc_xo_gpll0
[] = {
69 static const struct parent_map gcc_xo_sleep_clk_map
[] = {
74 static const char * const gcc_xo_sleep_clk
[] = {
79 static const struct parent_map gcc_xo_gpll0_gpll0_early_div_map
[] = {
82 { P_GPLL0_EARLY_DIV
, 6 }
85 static const char * const gcc_xo_gpll0_gpll0_early_div
[] = {
91 static const struct parent_map gcc_xo_gpll0_gpll4_map
[] = {
97 static const char * const gcc_xo_gpll0_gpll4
[] = {
103 static const struct parent_map gcc_xo_gpll0_aud_ref_clk_map
[] = {
109 static const char * const gcc_xo_gpll0_aud_ref_clk
[] = {
115 static const struct parent_map gcc_xo_gpll0_sleep_clk_gpll0_early_div_map
[] = {
119 { P_GPLL0_EARLY_DIV
, 6 }
122 static const char * const gcc_xo_gpll0_sleep_clk_gpll0_early_div
[] = {
129 static const struct parent_map gcc_xo_gpll0_gpll4_gpll0_early_div_map
[] = {
133 { P_GPLL0_EARLY_DIV
, 6 }
136 static const char * const gcc_xo_gpll0_gpll4_gpll0_early_div
[] = {
143 static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map
[] = {
148 { P_GPLL0_EARLY_DIV
, 6 }
151 static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div
[] = {
159 static const struct parent_map gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map
[] = {
162 { P_GPLL1_EARLY_DIV
, 3 },
165 { P_GPLL0_EARLY_DIV
, 6 }
168 static const char * const gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div
[] = {
177 static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early_div_map
[] = {
183 { P_GPLL2_EARLY
, 5 },
184 { P_GPLL0_EARLY_DIV
, 6 }
187 static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early_div
[] = {
197 static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map
[] = {
204 { P_GPLL0_EARLY_DIV
, 6 }
207 static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div
[] = {
217 static struct clk_fixed_factor xo
= {
220 .hw
.init
= &(struct clk_init_data
){
222 .parent_names
= (const char *[]){ "xo_board" },
224 .ops
= &clk_fixed_factor_ops
,
228 static struct clk_alpha_pll gpll0_early
= {
231 .enable_reg
= 0x52000,
232 .enable_mask
= BIT(0),
233 .hw
.init
= &(struct clk_init_data
){
234 .name
= "gpll0_early",
235 .parent_names
= (const char *[]){ "xo" },
237 .ops
= &clk_alpha_pll_ops
,
242 static struct clk_fixed_factor gpll0_early_div
= {
245 .hw
.init
= &(struct clk_init_data
){
246 .name
= "gpll0_early_div",
247 .parent_names
= (const char *[]){ "gpll0_early" },
249 .ops
= &clk_fixed_factor_ops
,
253 static struct clk_alpha_pll_postdiv gpll0
= {
255 .clkr
.hw
.init
= &(struct clk_init_data
){
257 .parent_names
= (const char *[]){ "gpll0_early" },
259 .ops
= &clk_alpha_pll_postdiv_ops
,
263 static struct clk_alpha_pll gpll4_early
= {
266 .enable_reg
= 0x52000,
267 .enable_mask
= BIT(4),
268 .hw
.init
= &(struct clk_init_data
){
269 .name
= "gpll4_early",
270 .parent_names
= (const char *[]){ "xo" },
272 .ops
= &clk_alpha_pll_ops
,
277 static struct clk_alpha_pll_postdiv gpll4
= {
279 .clkr
.hw
.init
= &(struct clk_init_data
){
281 .parent_names
= (const char *[]){ "gpll4_early" },
283 .ops
= &clk_alpha_pll_postdiv_ops
,
287 static const struct freq_tbl ftbl_system_noc_clk_src
[] = {
288 F(19200000, P_XO
, 1, 0, 0),
289 F(50000000, P_GPLL0_EARLY_DIV
, 6, 0, 0),
290 F(100000000, P_GPLL0
, 6, 0, 0),
291 F(150000000, P_GPLL0
, 4, 0, 0),
292 F(200000000, P_GPLL0
, 3, 0, 0),
293 F(240000000, P_GPLL0
, 2.5, 0, 0),
297 static struct clk_rcg2 system_noc_clk_src
= {
300 .parent_map
= gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early_div_map
,
301 .freq_tbl
= ftbl_system_noc_clk_src
,
302 .clkr
.hw
.init
= &(struct clk_init_data
){
303 .name
= "system_noc_clk_src",
304 .parent_names
= gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early_div
,
306 .ops
= &clk_rcg2_ops
,
310 static const struct freq_tbl ftbl_config_noc_clk_src
[] = {
311 F(19200000, P_XO
, 1, 0, 0),
312 F(37500000, P_GPLL0
, 16, 0, 0),
313 F(75000000, P_GPLL0
, 8, 0, 0),
317 static struct clk_rcg2 config_noc_clk_src
= {
320 .parent_map
= gcc_xo_gpll0_map
,
321 .freq_tbl
= ftbl_config_noc_clk_src
,
322 .clkr
.hw
.init
= &(struct clk_init_data
){
323 .name
= "config_noc_clk_src",
324 .parent_names
= gcc_xo_gpll0
,
326 .ops
= &clk_rcg2_ops
,
330 static const struct freq_tbl ftbl_periph_noc_clk_src
[] = {
331 F(19200000, P_XO
, 1, 0, 0),
332 F(37500000, P_GPLL0
, 16, 0, 0),
333 F(50000000, P_GPLL0
, 12, 0, 0),
334 F(75000000, P_GPLL0
, 8, 0, 0),
335 F(100000000, P_GPLL0
, 6, 0, 0),
339 static struct clk_rcg2 periph_noc_clk_src
= {
342 .parent_map
= gcc_xo_gpll0_map
,
343 .freq_tbl
= ftbl_periph_noc_clk_src
,
344 .clkr
.hw
.init
= &(struct clk_init_data
){
345 .name
= "periph_noc_clk_src",
346 .parent_names
= gcc_xo_gpll0
,
348 .ops
= &clk_rcg2_ops
,
352 static const struct freq_tbl ftbl_usb30_master_clk_src
[] = {
353 F(19200000, P_XO
, 1, 0, 0),
354 F(120000000, P_GPLL0
, 5, 0, 0),
355 F(150000000, P_GPLL0
, 4, 0, 0),
359 static struct clk_rcg2 usb30_master_clk_src
= {
363 .parent_map
= gcc_xo_gpll0_gpll0_early_div_map
,
364 .freq_tbl
= ftbl_usb30_master_clk_src
,
365 .clkr
.hw
.init
= &(struct clk_init_data
){
366 .name
= "usb30_master_clk_src",
367 .parent_names
= gcc_xo_gpll0_gpll0_early_div
,
369 .ops
= &clk_rcg2_ops
,
373 static const struct freq_tbl ftbl_usb30_mock_utmi_clk_src
[] = {
374 F(19200000, P_XO
, 1, 0, 0),
378 static struct clk_rcg2 usb30_mock_utmi_clk_src
= {
381 .parent_map
= gcc_xo_gpll0_gpll0_early_div_map
,
382 .freq_tbl
= ftbl_usb30_mock_utmi_clk_src
,
383 .clkr
.hw
.init
= &(struct clk_init_data
){
384 .name
= "usb30_mock_utmi_clk_src",
385 .parent_names
= gcc_xo_gpll0_gpll0_early_div
,
387 .ops
= &clk_rcg2_ops
,
391 static const struct freq_tbl ftbl_usb3_phy_aux_clk_src
[] = {
392 F(1200000, P_XO
, 16, 0, 0),
396 static struct clk_rcg2 usb3_phy_aux_clk_src
= {
399 .parent_map
= gcc_xo_sleep_clk_map
,
400 .freq_tbl
= ftbl_usb3_phy_aux_clk_src
,
401 .clkr
.hw
.init
= &(struct clk_init_data
){
402 .name
= "usb3_phy_aux_clk_src",
403 .parent_names
= gcc_xo_sleep_clk
,
405 .ops
= &clk_rcg2_ops
,
409 static const struct freq_tbl ftbl_usb20_master_clk_src
[] = {
410 F(120000000, P_GPLL0
, 5, 0, 0),
414 static struct clk_rcg2 usb20_master_clk_src
= {
418 .parent_map
= gcc_xo_gpll0_gpll0_early_div_map
,
419 .freq_tbl
= ftbl_usb20_master_clk_src
,
420 .clkr
.hw
.init
= &(struct clk_init_data
){
421 .name
= "usb20_master_clk_src",
422 .parent_names
= gcc_xo_gpll0_gpll0_early_div
,
424 .ops
= &clk_rcg2_ops
,
428 static struct clk_rcg2 usb20_mock_utmi_clk_src
= {
431 .parent_map
= gcc_xo_gpll0_gpll0_early_div_map
,
432 .freq_tbl
= ftbl_usb30_mock_utmi_clk_src
,
433 .clkr
.hw
.init
= &(struct clk_init_data
){
434 .name
= "usb20_mock_utmi_clk_src",
435 .parent_names
= gcc_xo_gpll0_gpll0_early_div
,
437 .ops
= &clk_rcg2_ops
,
441 static const struct freq_tbl ftbl_sdcc1_apps_clk_src
[] = {
442 F(144000, P_XO
, 16, 3, 25),
443 F(400000, P_XO
, 12, 1, 4),
444 F(20000000, P_GPLL0
, 15, 1, 2),
445 F(25000000, P_GPLL0
, 12, 1, 2),
446 F(50000000, P_GPLL0
, 12, 0, 0),
447 F(96000000, P_GPLL4
, 4, 0, 0),
448 F(192000000, P_GPLL4
, 2, 0, 0),
449 F(384000000, P_GPLL4
, 1, 0, 0),
453 static struct clk_rcg2 sdcc1_apps_clk_src
= {
457 .parent_map
= gcc_xo_gpll0_gpll4_gpll0_early_div_map
,
458 .freq_tbl
= ftbl_sdcc1_apps_clk_src
,
459 .clkr
.hw
.init
= &(struct clk_init_data
){
460 .name
= "sdcc1_apps_clk_src",
461 .parent_names
= gcc_xo_gpll0_gpll4_gpll0_early_div
,
463 .ops
= &clk_rcg2_ops
,
467 static struct clk_rcg2 sdcc1_ice_core_clk_src
= {
470 .parent_map
= gcc_xo_gpll0_gpll4_gpll0_early_div_map
,
471 .clkr
.hw
.init
= &(struct clk_init_data
){
472 .name
= "sdcc1_ice_core_clk_src",
473 .parent_names
= gcc_xo_gpll0_gpll4_gpll0_early_div
,
475 .ops
= &clk_rcg2_ops
,
479 static const struct freq_tbl ftbl_sdcc2_apps_clk_src
[] = {
480 F(144000, P_XO
, 16, 3, 25),
481 F(400000, P_XO
, 12, 1, 4),
482 F(20000000, P_GPLL0
, 15, 1, 2),
483 F(25000000, P_GPLL0
, 12, 1, 2),
484 F(50000000, P_GPLL0
, 12, 0, 0),
485 F(100000000, P_GPLL0
, 6, 0, 0),
486 F(200000000, P_GPLL0
, 3, 0, 0),
490 static struct clk_rcg2 sdcc2_apps_clk_src
= {
494 .parent_map
= gcc_xo_gpll0_gpll4_map
,
495 .freq_tbl
= ftbl_sdcc2_apps_clk_src
,
496 .clkr
.hw
.init
= &(struct clk_init_data
){
497 .name
= "sdcc2_apps_clk_src",
498 .parent_names
= gcc_xo_gpll0_gpll4
,
500 .ops
= &clk_rcg2_ops
,
504 static struct clk_rcg2 sdcc3_apps_clk_src
= {
508 .parent_map
= gcc_xo_gpll0_gpll4_map
,
509 .freq_tbl
= ftbl_sdcc2_apps_clk_src
,
510 .clkr
.hw
.init
= &(struct clk_init_data
){
511 .name
= "sdcc3_apps_clk_src",
512 .parent_names
= gcc_xo_gpll0_gpll4
,
514 .ops
= &clk_rcg2_ops
,
518 static const struct freq_tbl ftbl_sdcc4_apps_clk_src
[] = {
519 F(144000, P_XO
, 16, 3, 25),
520 F(400000, P_XO
, 12, 1, 4),
521 F(20000000, P_GPLL0
, 15, 1, 2),
522 F(25000000, P_GPLL0
, 12, 1, 2),
523 F(50000000, P_GPLL0
, 12, 0, 0),
524 F(100000000, P_GPLL0
, 6, 0, 0),
528 static struct clk_rcg2 sdcc4_apps_clk_src
= {
532 .parent_map
= gcc_xo_gpll0_map
,
533 .freq_tbl
= ftbl_sdcc4_apps_clk_src
,
534 .clkr
.hw
.init
= &(struct clk_init_data
){
535 .name
= "sdcc4_apps_clk_src",
536 .parent_names
= gcc_xo_gpll0
,
538 .ops
= &clk_rcg2_ops
,
542 static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src
[] = {
543 F(960000, P_XO
, 10, 1, 2),
544 F(4800000, P_XO
, 4, 0, 0),
545 F(9600000, P_XO
, 2, 0, 0),
546 F(15000000, P_GPLL0
, 10, 1, 4),
547 F(19200000, P_XO
, 1, 0, 0),
548 F(25000000, P_GPLL0
, 12, 1, 2),
549 F(50000000, P_GPLL0
, 12, 0, 0),
553 static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src
= {
557 .parent_map
= gcc_xo_gpll0_map
,
558 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
559 .clkr
.hw
.init
= &(struct clk_init_data
){
560 .name
= "blsp1_qup1_spi_apps_clk_src",
561 .parent_names
= gcc_xo_gpll0
,
563 .ops
= &clk_rcg2_ops
,
567 static const struct freq_tbl ftbl_blsp1_qup1_i2c_apps_clk_src
[] = {
568 F(19200000, P_XO
, 1, 0, 0),
569 F(50000000, P_GPLL0
, 12, 0, 0),
573 static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src
= {
576 .parent_map
= gcc_xo_gpll0_map
,
577 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
578 .clkr
.hw
.init
= &(struct clk_init_data
){
579 .name
= "blsp1_qup1_i2c_apps_clk_src",
580 .parent_names
= gcc_xo_gpll0
,
582 .ops
= &clk_rcg2_ops
,
586 static const struct freq_tbl ftbl_blsp1_uart1_apps_clk_src
[] = {
587 F(3686400, P_GPLL0
, 1, 96, 15625),
588 F(7372800, P_GPLL0
, 1, 192, 15625),
589 F(14745600, P_GPLL0
, 1, 384, 15625),
590 F(16000000, P_GPLL0
, 5, 2, 15),
591 F(19200000, P_XO
, 1, 0, 0),
592 F(24000000, P_GPLL0
, 5, 1, 5),
593 F(32000000, P_GPLL0
, 1, 4, 75),
594 F(40000000, P_GPLL0
, 15, 0, 0),
595 F(46400000, P_GPLL0
, 1, 29, 375),
596 F(48000000, P_GPLL0
, 12.5, 0, 0),
597 F(51200000, P_GPLL0
, 1, 32, 375),
598 F(56000000, P_GPLL0
, 1, 7, 75),
599 F(58982400, P_GPLL0
, 1, 1536, 15625),
600 F(60000000, P_GPLL0
, 10, 0, 0),
601 F(63157895, P_GPLL0
, 9.5, 0, 0),
605 static struct clk_rcg2 blsp1_uart1_apps_clk_src
= {
609 .parent_map
= gcc_xo_gpll0_map
,
610 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
611 .clkr
.hw
.init
= &(struct clk_init_data
){
612 .name
= "blsp1_uart1_apps_clk_src",
613 .parent_names
= gcc_xo_gpll0
,
615 .ops
= &clk_rcg2_ops
,
619 static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src
= {
623 .parent_map
= gcc_xo_gpll0_map
,
624 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
625 .clkr
.hw
.init
= &(struct clk_init_data
){
626 .name
= "blsp1_qup2_spi_apps_clk_src",
627 .parent_names
= gcc_xo_gpll0
,
629 .ops
= &clk_rcg2_ops
,
633 static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src
= {
636 .parent_map
= gcc_xo_gpll0_map
,
637 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
638 .clkr
.hw
.init
= &(struct clk_init_data
){
639 .name
= "blsp1_qup2_i2c_apps_clk_src",
640 .parent_names
= gcc_xo_gpll0
,
642 .ops
= &clk_rcg2_ops
,
646 static struct clk_rcg2 blsp1_uart2_apps_clk_src
= {
650 .parent_map
= gcc_xo_gpll0_map
,
651 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
652 .clkr
.hw
.init
= &(struct clk_init_data
){
653 .name
= "blsp1_uart2_apps_clk_src",
654 .parent_names
= gcc_xo_gpll0
,
656 .ops
= &clk_rcg2_ops
,
660 static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src
= {
664 .parent_map
= gcc_xo_gpll0_map
,
665 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
666 .clkr
.hw
.init
= &(struct clk_init_data
){
667 .name
= "blsp1_qup3_spi_apps_clk_src",
668 .parent_names
= gcc_xo_gpll0
,
670 .ops
= &clk_rcg2_ops
,
674 static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src
= {
677 .parent_map
= gcc_xo_gpll0_map
,
678 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
679 .clkr
.hw
.init
= &(struct clk_init_data
){
680 .name
= "blsp1_qup3_i2c_apps_clk_src",
681 .parent_names
= gcc_xo_gpll0
,
683 .ops
= &clk_rcg2_ops
,
687 static struct clk_rcg2 blsp1_uart3_apps_clk_src
= {
691 .parent_map
= gcc_xo_gpll0_map
,
692 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
693 .clkr
.hw
.init
= &(struct clk_init_data
){
694 .name
= "blsp1_uart3_apps_clk_src",
695 .parent_names
= gcc_xo_gpll0
,
697 .ops
= &clk_rcg2_ops
,
701 static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src
= {
705 .parent_map
= gcc_xo_gpll0_map
,
706 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
707 .clkr
.hw
.init
= &(struct clk_init_data
){
708 .name
= "blsp1_qup4_spi_apps_clk_src",
709 .parent_names
= gcc_xo_gpll0
,
711 .ops
= &clk_rcg2_ops
,
715 static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src
= {
718 .parent_map
= gcc_xo_gpll0_map
,
719 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
720 .clkr
.hw
.init
= &(struct clk_init_data
){
721 .name
= "blsp1_qup4_i2c_apps_clk_src",
722 .parent_names
= gcc_xo_gpll0
,
724 .ops
= &clk_rcg2_ops
,
728 static struct clk_rcg2 blsp1_uart4_apps_clk_src
= {
732 .parent_map
= gcc_xo_gpll0_map
,
733 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
734 .clkr
.hw
.init
= &(struct clk_init_data
){
735 .name
= "blsp1_uart4_apps_clk_src",
736 .parent_names
= gcc_xo_gpll0
,
738 .ops
= &clk_rcg2_ops
,
742 static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src
= {
746 .parent_map
= gcc_xo_gpll0_map
,
747 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
748 .clkr
.hw
.init
= &(struct clk_init_data
){
749 .name
= "blsp1_qup5_spi_apps_clk_src",
750 .parent_names
= gcc_xo_gpll0
,
752 .ops
= &clk_rcg2_ops
,
756 static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src
= {
759 .parent_map
= gcc_xo_gpll0_map
,
760 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
761 .clkr
.hw
.init
= &(struct clk_init_data
){
762 .name
= "blsp1_qup5_i2c_apps_clk_src",
763 .parent_names
= gcc_xo_gpll0
,
765 .ops
= &clk_rcg2_ops
,
769 static struct clk_rcg2 blsp1_uart5_apps_clk_src
= {
773 .parent_map
= gcc_xo_gpll0_map
,
774 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
775 .clkr
.hw
.init
= &(struct clk_init_data
){
776 .name
= "blsp1_uart5_apps_clk_src",
777 .parent_names
= gcc_xo_gpll0
,
779 .ops
= &clk_rcg2_ops
,
783 static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src
= {
787 .parent_map
= gcc_xo_gpll0_map
,
788 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
789 .clkr
.hw
.init
= &(struct clk_init_data
){
790 .name
= "blsp1_qup6_spi_apps_clk_src",
791 .parent_names
= gcc_xo_gpll0
,
793 .ops
= &clk_rcg2_ops
,
797 static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src
= {
800 .parent_map
= gcc_xo_gpll0_map
,
801 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
802 .clkr
.hw
.init
= &(struct clk_init_data
){
803 .name
= "blsp1_qup6_i2c_apps_clk_src",
804 .parent_names
= gcc_xo_gpll0
,
806 .ops
= &clk_rcg2_ops
,
810 static struct clk_rcg2 blsp1_uart6_apps_clk_src
= {
814 .parent_map
= gcc_xo_gpll0_map
,
815 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
816 .clkr
.hw
.init
= &(struct clk_init_data
){
817 .name
= "blsp1_uart6_apps_clk_src",
818 .parent_names
= gcc_xo_gpll0
,
820 .ops
= &clk_rcg2_ops
,
824 static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src
= {
828 .parent_map
= gcc_xo_gpll0_map
,
829 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
830 .clkr
.hw
.init
= &(struct clk_init_data
){
831 .name
= "blsp2_qup1_spi_apps_clk_src",
832 .parent_names
= gcc_xo_gpll0
,
834 .ops
= &clk_rcg2_ops
,
838 static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src
= {
841 .parent_map
= gcc_xo_gpll0_map
,
842 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
843 .clkr
.hw
.init
= &(struct clk_init_data
){
844 .name
= "blsp2_qup1_i2c_apps_clk_src",
845 .parent_names
= gcc_xo_gpll0
,
847 .ops
= &clk_rcg2_ops
,
851 static struct clk_rcg2 blsp2_uart1_apps_clk_src
= {
855 .parent_map
= gcc_xo_gpll0_map
,
856 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
857 .clkr
.hw
.init
= &(struct clk_init_data
){
858 .name
= "blsp2_uart1_apps_clk_src",
859 .parent_names
= gcc_xo_gpll0
,
861 .ops
= &clk_rcg2_ops
,
865 static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src
= {
869 .parent_map
= gcc_xo_gpll0_map
,
870 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
871 .clkr
.hw
.init
= &(struct clk_init_data
){
872 .name
= "blsp2_qup2_spi_apps_clk_src",
873 .parent_names
= gcc_xo_gpll0
,
875 .ops
= &clk_rcg2_ops
,
879 static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src
= {
882 .parent_map
= gcc_xo_gpll0_map
,
883 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
884 .clkr
.hw
.init
= &(struct clk_init_data
){
885 .name
= "blsp2_qup2_i2c_apps_clk_src",
886 .parent_names
= gcc_xo_gpll0
,
888 .ops
= &clk_rcg2_ops
,
892 static struct clk_rcg2 blsp2_uart2_apps_clk_src
= {
896 .parent_map
= gcc_xo_gpll0_map
,
897 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
898 .clkr
.hw
.init
= &(struct clk_init_data
){
899 .name
= "blsp2_uart2_apps_clk_src",
900 .parent_names
= gcc_xo_gpll0
,
902 .ops
= &clk_rcg2_ops
,
906 static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src
= {
910 .parent_map
= gcc_xo_gpll0_map
,
911 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
912 .clkr
.hw
.init
= &(struct clk_init_data
){
913 .name
= "blsp2_qup3_spi_apps_clk_src",
914 .parent_names
= gcc_xo_gpll0
,
916 .ops
= &clk_rcg2_ops
,
920 static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src
= {
923 .parent_map
= gcc_xo_gpll0_map
,
924 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
925 .clkr
.hw
.init
= &(struct clk_init_data
){
926 .name
= "blsp2_qup3_i2c_apps_clk_src",
927 .parent_names
= gcc_xo_gpll0
,
929 .ops
= &clk_rcg2_ops
,
933 static struct clk_rcg2 blsp2_uart3_apps_clk_src
= {
937 .parent_map
= gcc_xo_gpll0_map
,
938 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
939 .clkr
.hw
.init
= &(struct clk_init_data
){
940 .name
= "blsp2_uart3_apps_clk_src",
941 .parent_names
= gcc_xo_gpll0
,
943 .ops
= &clk_rcg2_ops
,
947 static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src
= {
951 .parent_map
= gcc_xo_gpll0_map
,
952 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
953 .clkr
.hw
.init
= &(struct clk_init_data
){
954 .name
= "blsp2_qup4_spi_apps_clk_src",
955 .parent_names
= gcc_xo_gpll0
,
957 .ops
= &clk_rcg2_ops
,
961 static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src
= {
964 .parent_map
= gcc_xo_gpll0_map
,
965 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
966 .clkr
.hw
.init
= &(struct clk_init_data
){
967 .name
= "blsp2_qup4_i2c_apps_clk_src",
968 .parent_names
= gcc_xo_gpll0
,
970 .ops
= &clk_rcg2_ops
,
974 static struct clk_rcg2 blsp2_uart4_apps_clk_src
= {
978 .parent_map
= gcc_xo_gpll0_map
,
979 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
980 .clkr
.hw
.init
= &(struct clk_init_data
){
981 .name
= "blsp2_uart4_apps_clk_src",
982 .parent_names
= gcc_xo_gpll0
,
984 .ops
= &clk_rcg2_ops
,
988 static struct clk_rcg2 blsp2_qup5_spi_apps_clk_src
= {
992 .parent_map
= gcc_xo_gpll0_map
,
993 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
994 .clkr
.hw
.init
= &(struct clk_init_data
){
995 .name
= "blsp2_qup5_spi_apps_clk_src",
996 .parent_names
= gcc_xo_gpll0
,
998 .ops
= &clk_rcg2_ops
,
1002 static struct clk_rcg2 blsp2_qup5_i2c_apps_clk_src
= {
1003 .cmd_rcgr
= 0x2e020,
1005 .parent_map
= gcc_xo_gpll0_map
,
1006 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
1007 .clkr
.hw
.init
= &(struct clk_init_data
){
1008 .name
= "blsp2_qup5_i2c_apps_clk_src",
1009 .parent_names
= gcc_xo_gpll0
,
1011 .ops
= &clk_rcg2_ops
,
1015 static struct clk_rcg2 blsp2_uart5_apps_clk_src
= {
1016 .cmd_rcgr
= 0x2f00c,
1019 .parent_map
= gcc_xo_gpll0_map
,
1020 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
1021 .clkr
.hw
.init
= &(struct clk_init_data
){
1022 .name
= "blsp2_uart5_apps_clk_src",
1023 .parent_names
= gcc_xo_gpll0
,
1025 .ops
= &clk_rcg2_ops
,
1029 static struct clk_rcg2 blsp2_qup6_spi_apps_clk_src
= {
1030 .cmd_rcgr
= 0x3000c,
1033 .parent_map
= gcc_xo_gpll0_map
,
1034 .freq_tbl
= ftbl_blsp1_qup1_spi_apps_clk_src
,
1035 .clkr
.hw
.init
= &(struct clk_init_data
){
1036 .name
= "blsp2_qup6_spi_apps_clk_src",
1037 .parent_names
= gcc_xo_gpll0
,
1039 .ops
= &clk_rcg2_ops
,
1043 static struct clk_rcg2 blsp2_qup6_i2c_apps_clk_src
= {
1044 .cmd_rcgr
= 0x30020,
1046 .parent_map
= gcc_xo_gpll0_map
,
1047 .freq_tbl
= ftbl_blsp1_qup1_i2c_apps_clk_src
,
1048 .clkr
.hw
.init
= &(struct clk_init_data
){
1049 .name
= "blsp2_qup6_i2c_apps_clk_src",
1050 .parent_names
= gcc_xo_gpll0
,
1052 .ops
= &clk_rcg2_ops
,
1056 static struct clk_rcg2 blsp2_uart6_apps_clk_src
= {
1057 .cmd_rcgr
= 0x3100c,
1060 .parent_map
= gcc_xo_gpll0_map
,
1061 .freq_tbl
= ftbl_blsp1_uart1_apps_clk_src
,
1062 .clkr
.hw
.init
= &(struct clk_init_data
){
1063 .name
= "blsp2_uart6_apps_clk_src",
1064 .parent_names
= gcc_xo_gpll0
,
1066 .ops
= &clk_rcg2_ops
,
1070 static const struct freq_tbl ftbl_pdm2_clk_src
[] = {
1071 F(60000000, P_GPLL0
, 10, 0, 0),
1075 static struct clk_rcg2 pdm2_clk_src
= {
1076 .cmd_rcgr
= 0x33010,
1078 .parent_map
= gcc_xo_gpll0_map
,
1079 .freq_tbl
= ftbl_pdm2_clk_src
,
1080 .clkr
.hw
.init
= &(struct clk_init_data
){
1081 .name
= "pdm2_clk_src",
1082 .parent_names
= gcc_xo_gpll0
,
1084 .ops
= &clk_rcg2_ops
,
1088 static const struct freq_tbl ftbl_tsif_ref_clk_src
[] = {
1089 F(105495, P_XO
, 1, 1, 182),
1093 static struct clk_rcg2 tsif_ref_clk_src
= {
1094 .cmd_rcgr
= 0x36010,
1097 .parent_map
= gcc_xo_gpll0_aud_ref_clk_map
,
1098 .freq_tbl
= ftbl_tsif_ref_clk_src
,
1099 .clkr
.hw
.init
= &(struct clk_init_data
){
1100 .name
= "tsif_ref_clk_src",
1101 .parent_names
= gcc_xo_gpll0_aud_ref_clk
,
1103 .ops
= &clk_rcg2_ops
,
1107 static struct clk_rcg2 gcc_sleep_clk_src
= {
1108 .cmd_rcgr
= 0x43014,
1110 .parent_map
= gcc_sleep_clk_map
,
1111 .clkr
.hw
.init
= &(struct clk_init_data
){
1112 .name
= "gcc_sleep_clk_src",
1113 .parent_names
= gcc_sleep_clk
,
1115 .ops
= &clk_rcg2_ops
,
1119 static struct clk_rcg2 hmss_rbcpr_clk_src
= {
1120 .cmd_rcgr
= 0x48040,
1122 .parent_map
= gcc_xo_gpll0_map
,
1123 .freq_tbl
= ftbl_usb30_mock_utmi_clk_src
,
1124 .clkr
.hw
.init
= &(struct clk_init_data
){
1125 .name
= "hmss_rbcpr_clk_src",
1126 .parent_names
= gcc_xo_gpll0
,
1128 .ops
= &clk_rcg2_ops
,
1132 static struct clk_rcg2 hmss_gpll0_clk_src
= {
1133 .cmd_rcgr
= 0x48058,
1135 .parent_map
= gcc_xo_gpll0_map
,
1136 .clkr
.hw
.init
= &(struct clk_init_data
){
1137 .name
= "hmss_gpll0_clk_src",
1138 .parent_names
= gcc_xo_gpll0
,
1140 .ops
= &clk_rcg2_ops
,
1144 static const struct freq_tbl ftbl_gp1_clk_src
[] = {
1145 F(19200000, P_XO
, 1, 0, 0),
1146 F(100000000, P_GPLL0
, 6, 0, 0),
1147 F(200000000, P_GPLL0
, 3, 0, 0),
1151 static struct clk_rcg2 gp1_clk_src
= {
1152 .cmd_rcgr
= 0x64004,
1155 .parent_map
= gcc_xo_gpll0_sleep_clk_gpll0_early_div_map
,
1156 .freq_tbl
= ftbl_gp1_clk_src
,
1157 .clkr
.hw
.init
= &(struct clk_init_data
){
1158 .name
= "gp1_clk_src",
1159 .parent_names
= gcc_xo_gpll0_sleep_clk_gpll0_early_div
,
1161 .ops
= &clk_rcg2_ops
,
1165 static struct clk_rcg2 gp2_clk_src
= {
1166 .cmd_rcgr
= 0x65004,
1169 .parent_map
= gcc_xo_gpll0_sleep_clk_gpll0_early_div_map
,
1170 .freq_tbl
= ftbl_gp1_clk_src
,
1171 .clkr
.hw
.init
= &(struct clk_init_data
){
1172 .name
= "gp2_clk_src",
1173 .parent_names
= gcc_xo_gpll0_sleep_clk_gpll0_early_div
,
1175 .ops
= &clk_rcg2_ops
,
1179 static struct clk_rcg2 gp3_clk_src
= {
1180 .cmd_rcgr
= 0x66004,
1183 .parent_map
= gcc_xo_gpll0_sleep_clk_gpll0_early_div_map
,
1184 .freq_tbl
= ftbl_gp1_clk_src
,
1185 .clkr
.hw
.init
= &(struct clk_init_data
){
1186 .name
= "gp3_clk_src",
1187 .parent_names
= gcc_xo_gpll0_sleep_clk_gpll0_early_div
,
1189 .ops
= &clk_rcg2_ops
,
1193 static const struct freq_tbl ftbl_pcie_aux_clk_src
[] = {
1194 F(1010526, P_XO
, 1, 1, 19),
1198 static struct clk_rcg2 pcie_aux_clk_src
= {
1199 .cmd_rcgr
= 0x6c000,
1202 .parent_map
= gcc_xo_sleep_clk_map
,
1203 .freq_tbl
= ftbl_pcie_aux_clk_src
,
1204 .clkr
.hw
.init
= &(struct clk_init_data
){
1205 .name
= "pcie_aux_clk_src",
1206 .parent_names
= gcc_xo_sleep_clk
,
1208 .ops
= &clk_rcg2_ops
,
1212 static const struct freq_tbl ftbl_ufs_axi_clk_src
[] = {
1213 F(100000000, P_GPLL0
, 6, 0, 0),
1214 F(200000000, P_GPLL0
, 3, 0, 0),
1215 F(240000000, P_GPLL0
, 2.5, 0, 0),
1219 static struct clk_rcg2 ufs_axi_clk_src
= {
1220 .cmd_rcgr
= 0x75024,
1223 .parent_map
= gcc_xo_gpll0_map
,
1224 .freq_tbl
= ftbl_ufs_axi_clk_src
,
1225 .clkr
.hw
.init
= &(struct clk_init_data
){
1226 .name
= "ufs_axi_clk_src",
1227 .parent_names
= gcc_xo_gpll0
,
1229 .ops
= &clk_rcg2_ops
,
1233 static struct clk_rcg2 ufs_ice_core_clk_src
= {
1234 .cmd_rcgr
= 0x76014,
1236 .parent_map
= gcc_xo_gpll0_map
,
1237 .clkr
.hw
.init
= &(struct clk_init_data
){
1238 .name
= "ufs_ice_core_clk_src",
1239 .parent_names
= gcc_xo_gpll0
,
1241 .ops
= &clk_rcg2_ops
,
1245 static struct clk_rcg2 qspi_ser_clk_src
= {
1246 .cmd_rcgr
= 0x8b00c,
1248 .parent_map
= gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map
,
1249 .clkr
.hw
.init
= &(struct clk_init_data
){
1250 .name
= "qspi_ser_clk_src",
1251 .parent_names
= gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div
,
1253 .ops
= &clk_rcg2_ops
,
1257 static struct clk_branch gcc_sys_noc_usb3_axi_clk
= {
1258 .halt_reg
= 0x0f03c,
1260 .enable_reg
= 0x0f03c,
1261 .enable_mask
= BIT(0),
1262 .hw
.init
= &(struct clk_init_data
){
1263 .name
= "gcc_sys_noc_usb3_axi_clk",
1264 .parent_names
= (const char *[]){ "usb30_master_clk_src" },
1266 .flags
= CLK_SET_RATE_PARENT
,
1267 .ops
= &clk_branch2_ops
,
1272 static struct clk_branch gcc_sys_noc_ufs_axi_clk
= {
1273 .halt_reg
= 0x75038,
1275 .enable_reg
= 0x75038,
1276 .enable_mask
= BIT(0),
1277 .hw
.init
= &(struct clk_init_data
){
1278 .name
= "gcc_sys_noc_ufs_axi_clk",
1279 .parent_names
= (const char *[]){ "ufs_axi_clk_src" },
1281 .flags
= CLK_SET_RATE_PARENT
,
1282 .ops
= &clk_branch2_ops
,
1287 static struct clk_branch gcc_periph_noc_usb20_ahb_clk
= {
1290 .enable_reg
= 0x6010,
1291 .enable_mask
= BIT(0),
1292 .hw
.init
= &(struct clk_init_data
){
1293 .name
= "gcc_periph_noc_usb20_ahb_clk",
1294 .parent_names
= (const char *[]){ "usb20_master_clk_src" },
1296 .flags
= CLK_SET_RATE_PARENT
,
1297 .ops
= &clk_branch2_ops
,
1302 static struct clk_branch gcc_mmss_noc_cfg_ahb_clk
= {
1305 .enable_reg
= 0x9008,
1306 .enable_mask
= BIT(0),
1307 .hw
.init
= &(struct clk_init_data
){
1308 .name
= "gcc_mmss_noc_cfg_ahb_clk",
1309 .parent_names
= (const char *[]){ "config_noc_clk_src" },
1311 .flags
= CLK_SET_RATE_PARENT
| CLK_IGNORE_UNUSED
,
1312 .ops
= &clk_branch2_ops
,
1317 static struct clk_branch gcc_mmss_bimc_gfx_clk
= {
1320 .enable_reg
= 0x9010,
1321 .enable_mask
= BIT(0),
1322 .hw
.init
= &(struct clk_init_data
){
1323 .name
= "gcc_mmss_bimc_gfx_clk",
1324 .flags
= CLK_SET_RATE_PARENT
,
1325 .ops
= &clk_branch2_ops
,
1330 static struct clk_branch gcc_usb30_master_clk
= {
1331 .halt_reg
= 0x0f008,
1333 .enable_reg
= 0x0f008,
1334 .enable_mask
= BIT(0),
1335 .hw
.init
= &(struct clk_init_data
){
1336 .name
= "gcc_usb30_master_clk",
1337 .parent_names
= (const char *[]){ "usb30_master_clk_src" },
1339 .flags
= CLK_SET_RATE_PARENT
,
1340 .ops
= &clk_branch2_ops
,
1345 static struct clk_branch gcc_usb30_sleep_clk
= {
1346 .halt_reg
= 0x0f00c,
1348 .enable_reg
= 0x0f00c,
1349 .enable_mask
= BIT(0),
1350 .hw
.init
= &(struct clk_init_data
){
1351 .name
= "gcc_usb30_sleep_clk",
1352 .parent_names
= (const char *[]){ "gcc_sleep_clk_src" },
1354 .flags
= CLK_SET_RATE_PARENT
,
1355 .ops
= &clk_branch2_ops
,
1360 static struct clk_branch gcc_usb30_mock_utmi_clk
= {
1361 .halt_reg
= 0x0f010,
1363 .enable_reg
= 0x0f010,
1364 .enable_mask
= BIT(0),
1365 .hw
.init
= &(struct clk_init_data
){
1366 .name
= "gcc_usb30_mock_utmi_clk",
1367 .parent_names
= (const char *[]){ "usb30_mock_utmi_clk_src" },
1369 .flags
= CLK_SET_RATE_PARENT
,
1370 .ops
= &clk_branch2_ops
,
1375 static struct clk_branch gcc_usb3_phy_aux_clk
= {
1376 .halt_reg
= 0x50000,
1378 .enable_reg
= 0x50000,
1379 .enable_mask
= BIT(0),
1380 .hw
.init
= &(struct clk_init_data
){
1381 .name
= "gcc_usb3_phy_aux_clk",
1382 .parent_names
= (const char *[]){ "usb3_phy_aux_clk_src" },
1384 .flags
= CLK_SET_RATE_PARENT
,
1385 .ops
= &clk_branch2_ops
,
1390 static struct clk_branch gcc_usb3_phy_pipe_clk
= {
1391 .halt_reg
= 0x50004,
1393 .enable_reg
= 0x50004,
1394 .enable_mask
= BIT(0),
1395 .hw
.init
= &(struct clk_init_data
){
1396 .name
= "gcc_usb3_phy_pipe_clk",
1397 .parent_names
= (const char *[]){ "usb3_phy_pipe_clk_src" },
1399 .flags
= CLK_SET_RATE_PARENT
,
1400 .ops
= &clk_branch2_ops
,
1405 static struct clk_branch gcc_usb20_master_clk
= {
1406 .halt_reg
= 0x12004,
1408 .enable_reg
= 0x12004,
1409 .enable_mask
= BIT(0),
1410 .hw
.init
= &(struct clk_init_data
){
1411 .name
= "gcc_usb20_master_clk",
1412 .parent_names
= (const char *[]){ "usb20_master_clk_src" },
1414 .flags
= CLK_SET_RATE_PARENT
,
1415 .ops
= &clk_branch2_ops
,
1420 static struct clk_branch gcc_usb20_sleep_clk
= {
1421 .halt_reg
= 0x12008,
1423 .enable_reg
= 0x12008,
1424 .enable_mask
= BIT(0),
1425 .hw
.init
= &(struct clk_init_data
){
1426 .name
= "gcc_usb20_sleep_clk",
1427 .parent_names
= (const char *[]){ "gcc_sleep_clk_src" },
1429 .flags
= CLK_SET_RATE_PARENT
,
1430 .ops
= &clk_branch2_ops
,
1435 static struct clk_branch gcc_usb20_mock_utmi_clk
= {
1436 .halt_reg
= 0x1200c,
1438 .enable_reg
= 0x1200c,
1439 .enable_mask
= BIT(0),
1440 .hw
.init
= &(struct clk_init_data
){
1441 .name
= "gcc_usb20_mock_utmi_clk",
1442 .parent_names
= (const char *[]){ "usb20_mock_utmi_clk_src" },
1444 .flags
= CLK_SET_RATE_PARENT
,
1445 .ops
= &clk_branch2_ops
,
1450 static struct clk_branch gcc_usb_phy_cfg_ahb2phy_clk
= {
1451 .halt_reg
= 0x6a004,
1453 .enable_reg
= 0x6a004,
1454 .enable_mask
= BIT(0),
1455 .hw
.init
= &(struct clk_init_data
){
1456 .name
= "gcc_usb_phy_cfg_ahb2phy_clk",
1457 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1459 .flags
= CLK_SET_RATE_PARENT
,
1460 .ops
= &clk_branch2_ops
,
1465 static struct clk_branch gcc_sdcc1_apps_clk
= {
1466 .halt_reg
= 0x13004,
1468 .enable_reg
= 0x13004,
1469 .enable_mask
= BIT(0),
1470 .hw
.init
= &(struct clk_init_data
){
1471 .name
= "gcc_sdcc1_apps_clk",
1472 .parent_names
= (const char *[]){ "sdcc1_apps_clk_src" },
1474 .flags
= CLK_SET_RATE_PARENT
,
1475 .ops
= &clk_branch2_ops
,
1480 static struct clk_branch gcc_sdcc1_ahb_clk
= {
1481 .halt_reg
= 0x13008,
1483 .enable_reg
= 0x13008,
1484 .enable_mask
= BIT(0),
1485 .hw
.init
= &(struct clk_init_data
){
1486 .name
= "gcc_sdcc1_ahb_clk",
1487 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1489 .flags
= CLK_SET_RATE_PARENT
,
1490 .ops
= &clk_branch2_ops
,
1495 static struct clk_branch gcc_sdcc1_ice_core_clk
= {
1496 .halt_reg
= 0x13038,
1498 .enable_reg
= 0x13038,
1499 .enable_mask
= BIT(0),
1500 .hw
.init
= &(struct clk_init_data
){
1501 .name
= "gcc_sdcc1_ice_core_clk",
1502 .parent_names
= (const char *[]){ "sdcc1_ice_core_clk_src" },
1504 .flags
= CLK_SET_RATE_PARENT
,
1505 .ops
= &clk_branch2_ops
,
1510 static struct clk_branch gcc_sdcc2_apps_clk
= {
1511 .halt_reg
= 0x14004,
1513 .enable_reg
= 0x14004,
1514 .enable_mask
= BIT(0),
1515 .hw
.init
= &(struct clk_init_data
){
1516 .name
= "gcc_sdcc2_apps_clk",
1517 .parent_names
= (const char *[]){ "sdcc2_apps_clk_src" },
1519 .flags
= CLK_SET_RATE_PARENT
,
1520 .ops
= &clk_branch2_ops
,
1525 static struct clk_branch gcc_sdcc2_ahb_clk
= {
1526 .halt_reg
= 0x14008,
1528 .enable_reg
= 0x14008,
1529 .enable_mask
= BIT(0),
1530 .hw
.init
= &(struct clk_init_data
){
1531 .name
= "gcc_sdcc2_ahb_clk",
1532 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1534 .flags
= CLK_SET_RATE_PARENT
,
1535 .ops
= &clk_branch2_ops
,
1540 static struct clk_branch gcc_sdcc3_apps_clk
= {
1541 .halt_reg
= 0x15004,
1543 .enable_reg
= 0x15004,
1544 .enable_mask
= BIT(0),
1545 .hw
.init
= &(struct clk_init_data
){
1546 .name
= "gcc_sdcc3_apps_clk",
1547 .parent_names
= (const char *[]){ "sdcc3_apps_clk_src" },
1549 .flags
= CLK_SET_RATE_PARENT
,
1550 .ops
= &clk_branch2_ops
,
1555 static struct clk_branch gcc_sdcc3_ahb_clk
= {
1556 .halt_reg
= 0x15008,
1558 .enable_reg
= 0x15008,
1559 .enable_mask
= BIT(0),
1560 .hw
.init
= &(struct clk_init_data
){
1561 .name
= "gcc_sdcc3_ahb_clk",
1562 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1564 .flags
= CLK_SET_RATE_PARENT
,
1565 .ops
= &clk_branch2_ops
,
1570 static struct clk_branch gcc_sdcc4_apps_clk
= {
1571 .halt_reg
= 0x16004,
1573 .enable_reg
= 0x16004,
1574 .enable_mask
= BIT(0),
1575 .hw
.init
= &(struct clk_init_data
){
1576 .name
= "gcc_sdcc4_apps_clk",
1577 .parent_names
= (const char *[]){ "sdcc4_apps_clk_src" },
1579 .flags
= CLK_SET_RATE_PARENT
,
1580 .ops
= &clk_branch2_ops
,
1585 static struct clk_branch gcc_sdcc4_ahb_clk
= {
1586 .halt_reg
= 0x16008,
1588 .enable_reg
= 0x16008,
1589 .enable_mask
= BIT(0),
1590 .hw
.init
= &(struct clk_init_data
){
1591 .name
= "gcc_sdcc4_ahb_clk",
1592 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1594 .flags
= CLK_SET_RATE_PARENT
,
1595 .ops
= &clk_branch2_ops
,
1600 static struct clk_branch gcc_blsp1_ahb_clk
= {
1601 .halt_reg
= 0x17004,
1602 .halt_check
= BRANCH_HALT_VOTED
,
1604 .enable_reg
= 0x52004,
1605 .enable_mask
= BIT(17),
1606 .hw
.init
= &(struct clk_init_data
){
1607 .name
= "gcc_blsp1_ahb_clk",
1608 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1610 .flags
= CLK_SET_RATE_PARENT
,
1611 .ops
= &clk_branch2_ops
,
1616 static struct clk_branch gcc_blsp1_sleep_clk
= {
1617 .halt_reg
= 0x17008,
1618 .halt_check
= BRANCH_HALT_VOTED
,
1620 .enable_reg
= 0x52004,
1621 .enable_mask
= BIT(16),
1622 .hw
.init
= &(struct clk_init_data
){
1623 .name
= "gcc_blsp1_sleep_clk",
1624 .parent_names
= (const char *[]){ "gcc_sleep_clk_src" },
1626 .flags
= CLK_SET_RATE_PARENT
,
1627 .ops
= &clk_branch2_ops
,
1632 static struct clk_branch gcc_blsp1_qup1_spi_apps_clk
= {
1633 .halt_reg
= 0x19004,
1635 .enable_reg
= 0x19004,
1636 .enable_mask
= BIT(0),
1637 .hw
.init
= &(struct clk_init_data
){
1638 .name
= "gcc_blsp1_qup1_spi_apps_clk",
1639 .parent_names
= (const char *[]){ "blsp1_qup1_spi_apps_clk_src" },
1641 .flags
= CLK_SET_RATE_PARENT
,
1642 .ops
= &clk_branch2_ops
,
1647 static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk
= {
1648 .halt_reg
= 0x19008,
1650 .enable_reg
= 0x19008,
1651 .enable_mask
= BIT(0),
1652 .hw
.init
= &(struct clk_init_data
){
1653 .name
= "gcc_blsp1_qup1_i2c_apps_clk",
1654 .parent_names
= (const char *[]){ "blsp1_qup1_i2c_apps_clk_src" },
1656 .flags
= CLK_SET_RATE_PARENT
,
1657 .ops
= &clk_branch2_ops
,
1662 static struct clk_branch gcc_blsp1_uart1_apps_clk
= {
1663 .halt_reg
= 0x1a004,
1665 .enable_reg
= 0x1a004,
1666 .enable_mask
= BIT(0),
1667 .hw
.init
= &(struct clk_init_data
){
1668 .name
= "gcc_blsp1_uart1_apps_clk",
1669 .parent_names
= (const char *[]){ "blsp1_uart1_apps_clk_src" },
1671 .flags
= CLK_SET_RATE_PARENT
,
1672 .ops
= &clk_branch2_ops
,
1677 static struct clk_branch gcc_blsp1_qup2_spi_apps_clk
= {
1678 .halt_reg
= 0x1b004,
1680 .enable_reg
= 0x1b004,
1681 .enable_mask
= BIT(0),
1682 .hw
.init
= &(struct clk_init_data
){
1683 .name
= "gcc_blsp1_qup2_spi_apps_clk",
1684 .parent_names
= (const char *[]){ "blsp1_qup2_spi_apps_clk_src" },
1686 .flags
= CLK_SET_RATE_PARENT
,
1687 .ops
= &clk_branch2_ops
,
1692 static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk
= {
1693 .halt_reg
= 0x1b008,
1695 .enable_reg
= 0x1b008,
1696 .enable_mask
= BIT(0),
1697 .hw
.init
= &(struct clk_init_data
){
1698 .name
= "gcc_blsp1_qup2_i2c_apps_clk",
1699 .parent_names
= (const char *[]){ "blsp1_qup2_i2c_apps_clk_src" },
1701 .flags
= CLK_SET_RATE_PARENT
,
1702 .ops
= &clk_branch2_ops
,
1707 static struct clk_branch gcc_blsp1_uart2_apps_clk
= {
1708 .halt_reg
= 0x1c004,
1710 .enable_reg
= 0x1c004,
1711 .enable_mask
= BIT(0),
1712 .hw
.init
= &(struct clk_init_data
){
1713 .name
= "gcc_blsp1_uart2_apps_clk",
1714 .parent_names
= (const char *[]){ "blsp1_uart2_apps_clk_src" },
1716 .flags
= CLK_SET_RATE_PARENT
,
1717 .ops
= &clk_branch2_ops
,
1722 static struct clk_branch gcc_blsp1_qup3_spi_apps_clk
= {
1723 .halt_reg
= 0x1d004,
1725 .enable_reg
= 0x1d004,
1726 .enable_mask
= BIT(0),
1727 .hw
.init
= &(struct clk_init_data
){
1728 .name
= "gcc_blsp1_qup3_spi_apps_clk",
1729 .parent_names
= (const char *[]){ "blsp1_qup3_spi_apps_clk_src" },
1731 .flags
= CLK_SET_RATE_PARENT
,
1732 .ops
= &clk_branch2_ops
,
1737 static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk
= {
1738 .halt_reg
= 0x1d008,
1740 .enable_reg
= 0x1d008,
1741 .enable_mask
= BIT(0),
1742 .hw
.init
= &(struct clk_init_data
){
1743 .name
= "gcc_blsp1_qup3_i2c_apps_clk",
1744 .parent_names
= (const char *[]){ "blsp1_qup3_i2c_apps_clk_src" },
1746 .flags
= CLK_SET_RATE_PARENT
,
1747 .ops
= &clk_branch2_ops
,
1752 static struct clk_branch gcc_blsp1_uart3_apps_clk
= {
1753 .halt_reg
= 0x1e004,
1755 .enable_reg
= 0x1e004,
1756 .enable_mask
= BIT(0),
1757 .hw
.init
= &(struct clk_init_data
){
1758 .name
= "gcc_blsp1_uart3_apps_clk",
1759 .parent_names
= (const char *[]){ "blsp1_uart3_apps_clk_src" },
1761 .flags
= CLK_SET_RATE_PARENT
,
1762 .ops
= &clk_branch2_ops
,
1767 static struct clk_branch gcc_blsp1_qup4_spi_apps_clk
= {
1768 .halt_reg
= 0x1f004,
1770 .enable_reg
= 0x1f004,
1771 .enable_mask
= BIT(0),
1772 .hw
.init
= &(struct clk_init_data
){
1773 .name
= "gcc_blsp1_qup4_spi_apps_clk",
1774 .parent_names
= (const char *[]){ "blsp1_qup4_spi_apps_clk_src" },
1776 .flags
= CLK_SET_RATE_PARENT
,
1777 .ops
= &clk_branch2_ops
,
1782 static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk
= {
1783 .halt_reg
= 0x1f008,
1785 .enable_reg
= 0x1f008,
1786 .enable_mask
= BIT(0),
1787 .hw
.init
= &(struct clk_init_data
){
1788 .name
= "gcc_blsp1_qup4_i2c_apps_clk",
1789 .parent_names
= (const char *[]){ "blsp1_qup4_i2c_apps_clk_src" },
1791 .flags
= CLK_SET_RATE_PARENT
,
1792 .ops
= &clk_branch2_ops
,
1797 static struct clk_branch gcc_blsp1_uart4_apps_clk
= {
1798 .halt_reg
= 0x20004,
1800 .enable_reg
= 0x20004,
1801 .enable_mask
= BIT(0),
1802 .hw
.init
= &(struct clk_init_data
){
1803 .name
= "gcc_blsp1_uart4_apps_clk",
1804 .parent_names
= (const char *[]){ "blsp1_uart4_apps_clk_src" },
1806 .flags
= CLK_SET_RATE_PARENT
,
1807 .ops
= &clk_branch2_ops
,
1812 static struct clk_branch gcc_blsp1_qup5_spi_apps_clk
= {
1813 .halt_reg
= 0x21004,
1815 .enable_reg
= 0x21004,
1816 .enable_mask
= BIT(0),
1817 .hw
.init
= &(struct clk_init_data
){
1818 .name
= "gcc_blsp1_qup5_spi_apps_clk",
1819 .parent_names
= (const char *[]){ "blsp1_qup5_spi_apps_clk_src" },
1821 .flags
= CLK_SET_RATE_PARENT
,
1822 .ops
= &clk_branch2_ops
,
1827 static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk
= {
1828 .halt_reg
= 0x21008,
1830 .enable_reg
= 0x21008,
1831 .enable_mask
= BIT(0),
1832 .hw
.init
= &(struct clk_init_data
){
1833 .name
= "gcc_blsp1_qup5_i2c_apps_clk",
1834 .parent_names
= (const char *[]){ "blsp1_qup5_i2c_apps_clk_src" },
1836 .flags
= CLK_SET_RATE_PARENT
,
1837 .ops
= &clk_branch2_ops
,
1842 static struct clk_branch gcc_blsp1_uart5_apps_clk
= {
1843 .halt_reg
= 0x22004,
1845 .enable_reg
= 0x22004,
1846 .enable_mask
= BIT(0),
1847 .hw
.init
= &(struct clk_init_data
){
1848 .name
= "gcc_blsp1_uart5_apps_clk",
1849 .parent_names
= (const char *[]){ "blsp1_uart5_apps_clk_src" },
1851 .flags
= CLK_SET_RATE_PARENT
,
1852 .ops
= &clk_branch2_ops
,
1857 static struct clk_branch gcc_blsp1_qup6_spi_apps_clk
= {
1858 .halt_reg
= 0x23004,
1860 .enable_reg
= 0x23004,
1861 .enable_mask
= BIT(0),
1862 .hw
.init
= &(struct clk_init_data
){
1863 .name
= "gcc_blsp1_qup6_spi_apps_clk",
1864 .parent_names
= (const char *[]){ "blsp1_qup6_spi_apps_clk_src" },
1866 .flags
= CLK_SET_RATE_PARENT
,
1867 .ops
= &clk_branch2_ops
,
1872 static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk
= {
1873 .halt_reg
= 0x23008,
1875 .enable_reg
= 0x23008,
1876 .enable_mask
= BIT(0),
1877 .hw
.init
= &(struct clk_init_data
){
1878 .name
= "gcc_blsp1_qup6_i2c_apps_clk",
1879 .parent_names
= (const char *[]){ "blsp1_qup6_i2c_apps_clk_src" },
1881 .flags
= CLK_SET_RATE_PARENT
,
1882 .ops
= &clk_branch2_ops
,
1887 static struct clk_branch gcc_blsp1_uart6_apps_clk
= {
1888 .halt_reg
= 0x24004,
1890 .enable_reg
= 0x24004,
1891 .enable_mask
= BIT(0),
1892 .hw
.init
= &(struct clk_init_data
){
1893 .name
= "gcc_blsp1_uart6_apps_clk",
1894 .parent_names
= (const char *[]){ "blsp1_uart6_apps_clk_src" },
1896 .flags
= CLK_SET_RATE_PARENT
,
1897 .ops
= &clk_branch2_ops
,
1902 static struct clk_branch gcc_blsp2_ahb_clk
= {
1903 .halt_reg
= 0x25004,
1904 .halt_check
= BRANCH_HALT_VOTED
,
1906 .enable_reg
= 0x52004,
1907 .enable_mask
= BIT(15),
1908 .hw
.init
= &(struct clk_init_data
){
1909 .name
= "gcc_blsp2_ahb_clk",
1910 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
1912 .flags
= CLK_SET_RATE_PARENT
,
1913 .ops
= &clk_branch2_ops
,
1918 static struct clk_branch gcc_blsp2_sleep_clk
= {
1919 .halt_reg
= 0x25008,
1920 .halt_check
= BRANCH_HALT_VOTED
,
1922 .enable_reg
= 0x52004,
1923 .enable_mask
= BIT(14),
1924 .hw
.init
= &(struct clk_init_data
){
1925 .name
= "gcc_blsp2_sleep_clk",
1926 .parent_names
= (const char *[]){ "gcc_sleep_clk_src" },
1928 .flags
= CLK_SET_RATE_PARENT
,
1929 .ops
= &clk_branch2_ops
,
1934 static struct clk_branch gcc_blsp2_qup1_spi_apps_clk
= {
1935 .halt_reg
= 0x26004,
1937 .enable_reg
= 0x26004,
1938 .enable_mask
= BIT(0),
1939 .hw
.init
= &(struct clk_init_data
){
1940 .name
= "gcc_blsp2_qup1_spi_apps_clk",
1941 .parent_names
= (const char *[]){ "blsp2_qup1_spi_apps_clk_src" },
1943 .flags
= CLK_SET_RATE_PARENT
,
1944 .ops
= &clk_branch2_ops
,
1949 static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk
= {
1950 .halt_reg
= 0x26008,
1952 .enable_reg
= 0x26008,
1953 .enable_mask
= BIT(0),
1954 .hw
.init
= &(struct clk_init_data
){
1955 .name
= "gcc_blsp2_qup1_i2c_apps_clk",
1956 .parent_names
= (const char *[]){ "blsp2_qup1_i2c_apps_clk_src" },
1958 .flags
= CLK_SET_RATE_PARENT
,
1959 .ops
= &clk_branch2_ops
,
1964 static struct clk_branch gcc_blsp2_uart1_apps_clk
= {
1965 .halt_reg
= 0x27004,
1967 .enable_reg
= 0x27004,
1968 .enable_mask
= BIT(0),
1969 .hw
.init
= &(struct clk_init_data
){
1970 .name
= "gcc_blsp2_uart1_apps_clk",
1971 .parent_names
= (const char *[]){ "blsp2_uart1_apps_clk_src" },
1973 .flags
= CLK_SET_RATE_PARENT
,
1974 .ops
= &clk_branch2_ops
,
1979 static struct clk_branch gcc_blsp2_qup2_spi_apps_clk
= {
1980 .halt_reg
= 0x28004,
1982 .enable_reg
= 0x28004,
1983 .enable_mask
= BIT(0),
1984 .hw
.init
= &(struct clk_init_data
){
1985 .name
= "gcc_blsp2_qup2_spi_apps_clk",
1986 .parent_names
= (const char *[]){ "blsp2_qup2_spi_apps_clk_src" },
1988 .flags
= CLK_SET_RATE_PARENT
,
1989 .ops
= &clk_branch2_ops
,
1994 static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk
= {
1995 .halt_reg
= 0x28008,
1997 .enable_reg
= 0x28008,
1998 .enable_mask
= BIT(0),
1999 .hw
.init
= &(struct clk_init_data
){
2000 .name
= "gcc_blsp2_qup2_i2c_apps_clk",
2001 .parent_names
= (const char *[]){ "blsp2_qup2_i2c_apps_clk_src" },
2003 .flags
= CLK_SET_RATE_PARENT
,
2004 .ops
= &clk_branch2_ops
,
2009 static struct clk_branch gcc_blsp2_uart2_apps_clk
= {
2010 .halt_reg
= 0x29004,
2012 .enable_reg
= 0x29004,
2013 .enable_mask
= BIT(0),
2014 .hw
.init
= &(struct clk_init_data
){
2015 .name
= "gcc_blsp2_uart2_apps_clk",
2016 .parent_names
= (const char *[]){ "blsp2_uart2_apps_clk_src" },
2018 .flags
= CLK_SET_RATE_PARENT
,
2019 .ops
= &clk_branch2_ops
,
2024 static struct clk_branch gcc_blsp2_qup3_spi_apps_clk
= {
2025 .halt_reg
= 0x2a004,
2027 .enable_reg
= 0x2a004,
2028 .enable_mask
= BIT(0),
2029 .hw
.init
= &(struct clk_init_data
){
2030 .name
= "gcc_blsp2_qup3_spi_apps_clk",
2031 .parent_names
= (const char *[]){ "blsp2_qup3_spi_apps_clk_src" },
2033 .flags
= CLK_SET_RATE_PARENT
,
2034 .ops
= &clk_branch2_ops
,
2039 static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk
= {
2040 .halt_reg
= 0x2a008,
2042 .enable_reg
= 0x2a008,
2043 .enable_mask
= BIT(0),
2044 .hw
.init
= &(struct clk_init_data
){
2045 .name
= "gcc_blsp2_qup3_i2c_apps_clk",
2046 .parent_names
= (const char *[]){ "blsp2_qup3_i2c_apps_clk_src" },
2048 .flags
= CLK_SET_RATE_PARENT
,
2049 .ops
= &clk_branch2_ops
,
2054 static struct clk_branch gcc_blsp2_uart3_apps_clk
= {
2055 .halt_reg
= 0x2b004,
2057 .enable_reg
= 0x2b004,
2058 .enable_mask
= BIT(0),
2059 .hw
.init
= &(struct clk_init_data
){
2060 .name
= "gcc_blsp2_uart3_apps_clk",
2061 .parent_names
= (const char *[]){ "blsp2_uart3_apps_clk_src" },
2063 .flags
= CLK_SET_RATE_PARENT
,
2064 .ops
= &clk_branch2_ops
,
2069 static struct clk_branch gcc_blsp2_qup4_spi_apps_clk
= {
2070 .halt_reg
= 0x2c004,
2072 .enable_reg
= 0x2c004,
2073 .enable_mask
= BIT(0),
2074 .hw
.init
= &(struct clk_init_data
){
2075 .name
= "gcc_blsp2_qup4_spi_apps_clk",
2076 .parent_names
= (const char *[]){ "blsp2_qup4_spi_apps_clk_src" },
2078 .flags
= CLK_SET_RATE_PARENT
,
2079 .ops
= &clk_branch2_ops
,
2084 static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk
= {
2085 .halt_reg
= 0x2c008,
2087 .enable_reg
= 0x2c008,
2088 .enable_mask
= BIT(0),
2089 .hw
.init
= &(struct clk_init_data
){
2090 .name
= "gcc_blsp2_qup4_i2c_apps_clk",
2091 .parent_names
= (const char *[]){ "blsp2_qup4_i2c_apps_clk_src" },
2093 .flags
= CLK_SET_RATE_PARENT
,
2094 .ops
= &clk_branch2_ops
,
2099 static struct clk_branch gcc_blsp2_uart4_apps_clk
= {
2100 .halt_reg
= 0x2d004,
2102 .enable_reg
= 0x2d004,
2103 .enable_mask
= BIT(0),
2104 .hw
.init
= &(struct clk_init_data
){
2105 .name
= "gcc_blsp2_uart4_apps_clk",
2106 .parent_names
= (const char *[]){ "blsp2_uart4_apps_clk_src" },
2108 .flags
= CLK_SET_RATE_PARENT
,
2109 .ops
= &clk_branch2_ops
,
2114 static struct clk_branch gcc_blsp2_qup5_spi_apps_clk
= {
2115 .halt_reg
= 0x2e004,
2117 .enable_reg
= 0x2e004,
2118 .enable_mask
= BIT(0),
2119 .hw
.init
= &(struct clk_init_data
){
2120 .name
= "gcc_blsp2_qup5_spi_apps_clk",
2121 .parent_names
= (const char *[]){ "blsp2_qup5_spi_apps_clk_src" },
2123 .flags
= CLK_SET_RATE_PARENT
,
2124 .ops
= &clk_branch2_ops
,
2129 static struct clk_branch gcc_blsp2_qup5_i2c_apps_clk
= {
2130 .halt_reg
= 0x2e008,
2132 .enable_reg
= 0x2e008,
2133 .enable_mask
= BIT(0),
2134 .hw
.init
= &(struct clk_init_data
){
2135 .name
= "gcc_blsp2_qup5_i2c_apps_clk",
2136 .parent_names
= (const char *[]){ "blsp2_qup5_i2c_apps_clk_src" },
2138 .flags
= CLK_SET_RATE_PARENT
,
2139 .ops
= &clk_branch2_ops
,
2144 static struct clk_branch gcc_blsp2_uart5_apps_clk
= {
2145 .halt_reg
= 0x2f004,
2147 .enable_reg
= 0x2f004,
2148 .enable_mask
= BIT(0),
2149 .hw
.init
= &(struct clk_init_data
){
2150 .name
= "gcc_blsp2_uart5_apps_clk",
2151 .parent_names
= (const char *[]){ "blsp2_uart5_apps_clk_src" },
2153 .flags
= CLK_SET_RATE_PARENT
,
2154 .ops
= &clk_branch2_ops
,
2159 static struct clk_branch gcc_blsp2_qup6_spi_apps_clk
= {
2160 .halt_reg
= 0x30004,
2162 .enable_reg
= 0x30004,
2163 .enable_mask
= BIT(0),
2164 .hw
.init
= &(struct clk_init_data
){
2165 .name
= "gcc_blsp2_qup6_spi_apps_clk",
2166 .parent_names
= (const char *[]){ "blsp2_qup6_spi_apps_clk_src" },
2168 .flags
= CLK_SET_RATE_PARENT
,
2169 .ops
= &clk_branch2_ops
,
2174 static struct clk_branch gcc_blsp2_qup6_i2c_apps_clk
= {
2175 .halt_reg
= 0x30008,
2177 .enable_reg
= 0x30008,
2178 .enable_mask
= BIT(0),
2179 .hw
.init
= &(struct clk_init_data
){
2180 .name
= "gcc_blsp2_qup6_i2c_apps_clk",
2181 .parent_names
= (const char *[]){ "blsp2_qup6_i2c_apps_clk_src" },
2183 .flags
= CLK_SET_RATE_PARENT
,
2184 .ops
= &clk_branch2_ops
,
2189 static struct clk_branch gcc_blsp2_uart6_apps_clk
= {
2190 .halt_reg
= 0x31004,
2192 .enable_reg
= 0x31004,
2193 .enable_mask
= BIT(0),
2194 .hw
.init
= &(struct clk_init_data
){
2195 .name
= "gcc_blsp2_uart6_apps_clk",
2196 .parent_names
= (const char *[]){ "blsp2_uart6_apps_clk_src" },
2198 .flags
= CLK_SET_RATE_PARENT
,
2199 .ops
= &clk_branch2_ops
,
2204 static struct clk_branch gcc_pdm_ahb_clk
= {
2205 .halt_reg
= 0x33004,
2207 .enable_reg
= 0x33004,
2208 .enable_mask
= BIT(0),
2209 .hw
.init
= &(struct clk_init_data
){
2210 .name
= "gcc_pdm_ahb_clk",
2211 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
2213 .flags
= CLK_SET_RATE_PARENT
,
2214 .ops
= &clk_branch2_ops
,
2219 static struct clk_branch gcc_pdm2_clk
= {
2220 .halt_reg
= 0x3300c,
2222 .enable_reg
= 0x3300c,
2223 .enable_mask
= BIT(0),
2224 .hw
.init
= &(struct clk_init_data
){
2225 .name
= "gcc_pdm2_clk",
2226 .parent_names
= (const char *[]){ "pdm2_clk_src" },
2228 .flags
= CLK_SET_RATE_PARENT
,
2229 .ops
= &clk_branch2_ops
,
2234 static struct clk_branch gcc_prng_ahb_clk
= {
2235 .halt_reg
= 0x34004,
2236 .halt_check
= BRANCH_HALT_VOTED
,
2238 .enable_reg
= 0x52004,
2239 .enable_mask
= BIT(13),
2240 .hw
.init
= &(struct clk_init_data
){
2241 .name
= "gcc_prng_ahb_clk",
2242 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2244 .flags
= CLK_SET_RATE_PARENT
,
2245 .ops
= &clk_branch2_ops
,
2250 static struct clk_branch gcc_tsif_ahb_clk
= {
2251 .halt_reg
= 0x36004,
2253 .enable_reg
= 0x36004,
2254 .enable_mask
= BIT(0),
2255 .hw
.init
= &(struct clk_init_data
){
2256 .name
= "gcc_tsif_ahb_clk",
2257 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
2259 .flags
= CLK_SET_RATE_PARENT
,
2260 .ops
= &clk_branch2_ops
,
2265 static struct clk_branch gcc_tsif_ref_clk
= {
2266 .halt_reg
= 0x36008,
2268 .enable_reg
= 0x36008,
2269 .enable_mask
= BIT(0),
2270 .hw
.init
= &(struct clk_init_data
){
2271 .name
= "gcc_tsif_ref_clk",
2272 .parent_names
= (const char *[]){ "tsif_ref_clk_src" },
2274 .flags
= CLK_SET_RATE_PARENT
,
2275 .ops
= &clk_branch2_ops
,
2280 static struct clk_branch gcc_tsif_inactivity_timers_clk
= {
2281 .halt_reg
= 0x3600c,
2283 .enable_reg
= 0x3600c,
2284 .enable_mask
= BIT(0),
2285 .hw
.init
= &(struct clk_init_data
){
2286 .name
= "gcc_tsif_inactivity_timers_clk",
2287 .parent_names
= (const char *[]){ "gcc_sleep_clk_src" },
2289 .flags
= CLK_SET_RATE_PARENT
,
2290 .ops
= &clk_branch2_ops
,
2295 static struct clk_branch gcc_boot_rom_ahb_clk
= {
2296 .halt_reg
= 0x38004,
2297 .halt_check
= BRANCH_HALT_VOTED
,
2299 .enable_reg
= 0x52004,
2300 .enable_mask
= BIT(10),
2301 .hw
.init
= &(struct clk_init_data
){
2302 .name
= "gcc_boot_rom_ahb_clk",
2303 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2305 .flags
= CLK_SET_RATE_PARENT
,
2306 .ops
= &clk_branch2_ops
,
2311 static struct clk_branch gcc_bimc_gfx_clk
= {
2312 .halt_reg
= 0x46018,
2314 .enable_reg
= 0x46018,
2315 .enable_mask
= BIT(0),
2316 .hw
.init
= &(struct clk_init_data
){
2317 .name
= "gcc_bimc_gfx_clk",
2318 .flags
= CLK_SET_RATE_PARENT
,
2319 .ops
= &clk_branch2_ops
,
2324 static struct clk_branch gcc_hmss_rbcpr_clk
= {
2325 .halt_reg
= 0x4800c,
2327 .enable_reg
= 0x4800c,
2328 .enable_mask
= BIT(0),
2329 .hw
.init
= &(struct clk_init_data
){
2330 .name
= "gcc_hmss_rbcpr_clk",
2331 .parent_names
= (const char *[]){ "hmss_rbcpr_clk_src" },
2333 .flags
= CLK_SET_RATE_PARENT
,
2334 .ops
= &clk_branch2_ops
,
2339 static struct clk_branch gcc_gp1_clk
= {
2340 .halt_reg
= 0x64000,
2342 .enable_reg
= 0x64000,
2343 .enable_mask
= BIT(0),
2344 .hw
.init
= &(struct clk_init_data
){
2345 .name
= "gcc_gp1_clk",
2346 .parent_names
= (const char *[]){ "gp1_clk_src" },
2348 .flags
= CLK_SET_RATE_PARENT
,
2349 .ops
= &clk_branch2_ops
,
2354 static struct clk_branch gcc_gp2_clk
= {
2355 .halt_reg
= 0x65000,
2357 .enable_reg
= 0x65000,
2358 .enable_mask
= BIT(0),
2359 .hw
.init
= &(struct clk_init_data
){
2360 .name
= "gcc_gp2_clk",
2361 .parent_names
= (const char *[]){ "gp2_clk_src" },
2363 .flags
= CLK_SET_RATE_PARENT
,
2364 .ops
= &clk_branch2_ops
,
2369 static struct clk_branch gcc_gp3_clk
= {
2370 .halt_reg
= 0x66000,
2372 .enable_reg
= 0x66000,
2373 .enable_mask
= BIT(0),
2374 .hw
.init
= &(struct clk_init_data
){
2375 .name
= "gcc_gp3_clk",
2376 .parent_names
= (const char *[]){ "gp3_clk_src" },
2378 .flags
= CLK_SET_RATE_PARENT
,
2379 .ops
= &clk_branch2_ops
,
2384 static struct clk_branch gcc_pcie_0_slv_axi_clk
= {
2385 .halt_reg
= 0x6b008,
2387 .enable_reg
= 0x6b008,
2388 .enable_mask
= BIT(0),
2389 .hw
.init
= &(struct clk_init_data
){
2390 .name
= "gcc_pcie_0_slv_axi_clk",
2391 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2393 .flags
= CLK_SET_RATE_PARENT
,
2394 .ops
= &clk_branch2_ops
,
2399 static struct clk_branch gcc_pcie_0_mstr_axi_clk
= {
2400 .halt_reg
= 0x6b00c,
2402 .enable_reg
= 0x6b00c,
2403 .enable_mask
= BIT(0),
2404 .hw
.init
= &(struct clk_init_data
){
2405 .name
= "gcc_pcie_0_mstr_axi_clk",
2406 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2408 .flags
= CLK_SET_RATE_PARENT
,
2409 .ops
= &clk_branch2_ops
,
2414 static struct clk_branch gcc_pcie_0_cfg_ahb_clk
= {
2415 .halt_reg
= 0x6b010,
2417 .enable_reg
= 0x6b010,
2418 .enable_mask
= BIT(0),
2419 .hw
.init
= &(struct clk_init_data
){
2420 .name
= "gcc_pcie_0_cfg_ahb_clk",
2421 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2423 .flags
= CLK_SET_RATE_PARENT
,
2424 .ops
= &clk_branch2_ops
,
2429 static struct clk_branch gcc_pcie_0_aux_clk
= {
2430 .halt_reg
= 0x6b014,
2432 .enable_reg
= 0x6b014,
2433 .enable_mask
= BIT(0),
2434 .hw
.init
= &(struct clk_init_data
){
2435 .name
= "gcc_pcie_0_aux_clk",
2436 .parent_names
= (const char *[]){ "pcie_aux_clk_src" },
2438 .flags
= CLK_SET_RATE_PARENT
,
2439 .ops
= &clk_branch2_ops
,
2444 static struct clk_branch gcc_pcie_0_pipe_clk
= {
2445 .halt_reg
= 0x6b018,
2447 .enable_reg
= 0x6b018,
2448 .enable_mask
= BIT(0),
2449 .hw
.init
= &(struct clk_init_data
){
2450 .name
= "gcc_pcie_0_pipe_clk",
2451 .parent_names
= (const char *[]){ "pcie_0_pipe_clk_src" },
2453 .flags
= CLK_SET_RATE_PARENT
,
2454 .ops
= &clk_branch2_ops
,
2459 static struct clk_branch gcc_pcie_1_slv_axi_clk
= {
2460 .halt_reg
= 0x6d008,
2462 .enable_reg
= 0x6d008,
2463 .enable_mask
= BIT(0),
2464 .hw
.init
= &(struct clk_init_data
){
2465 .name
= "gcc_pcie_1_slv_axi_clk",
2466 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2468 .flags
= CLK_SET_RATE_PARENT
,
2469 .ops
= &clk_branch2_ops
,
2474 static struct clk_branch gcc_pcie_1_mstr_axi_clk
= {
2475 .halt_reg
= 0x6d00c,
2477 .enable_reg
= 0x6d00c,
2478 .enable_mask
= BIT(0),
2479 .hw
.init
= &(struct clk_init_data
){
2480 .name
= "gcc_pcie_1_mstr_axi_clk",
2481 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2483 .flags
= CLK_SET_RATE_PARENT
,
2484 .ops
= &clk_branch2_ops
,
2489 static struct clk_branch gcc_pcie_1_cfg_ahb_clk
= {
2490 .halt_reg
= 0x6d010,
2492 .enable_reg
= 0x6d010,
2493 .enable_mask
= BIT(0),
2494 .hw
.init
= &(struct clk_init_data
){
2495 .name
= "gcc_pcie_1_cfg_ahb_clk",
2496 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2498 .flags
= CLK_SET_RATE_PARENT
,
2499 .ops
= &clk_branch2_ops
,
2504 static struct clk_branch gcc_pcie_1_aux_clk
= {
2505 .halt_reg
= 0x6d014,
2507 .enable_reg
= 0x6d014,
2508 .enable_mask
= BIT(0),
2509 .hw
.init
= &(struct clk_init_data
){
2510 .name
= "gcc_pcie_1_aux_clk",
2511 .parent_names
= (const char *[]){ "pcie_aux_clk_src" },
2513 .flags
= CLK_SET_RATE_PARENT
,
2514 .ops
= &clk_branch2_ops
,
2519 static struct clk_branch gcc_pcie_1_pipe_clk
= {
2520 .halt_reg
= 0x6d018,
2522 .enable_reg
= 0x6d018,
2523 .enable_mask
= BIT(0),
2524 .hw
.init
= &(struct clk_init_data
){
2525 .name
= "gcc_pcie_1_pipe_clk",
2526 .parent_names
= (const char *[]){ "pcie_1_pipe_clk_src" },
2528 .flags
= CLK_SET_RATE_PARENT
,
2529 .ops
= &clk_branch2_ops
,
2534 static struct clk_branch gcc_pcie_2_slv_axi_clk
= {
2535 .halt_reg
= 0x6e008,
2537 .enable_reg
= 0x6e008,
2538 .enable_mask
= BIT(0),
2539 .hw
.init
= &(struct clk_init_data
){
2540 .name
= "gcc_pcie_2_slv_axi_clk",
2541 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2543 .flags
= CLK_SET_RATE_PARENT
,
2544 .ops
= &clk_branch2_ops
,
2549 static struct clk_branch gcc_pcie_2_mstr_axi_clk
= {
2550 .halt_reg
= 0x6e00c,
2552 .enable_reg
= 0x6e00c,
2553 .enable_mask
= BIT(0),
2554 .hw
.init
= &(struct clk_init_data
){
2555 .name
= "gcc_pcie_2_mstr_axi_clk",
2556 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2558 .flags
= CLK_SET_RATE_PARENT
,
2559 .ops
= &clk_branch2_ops
,
2564 static struct clk_branch gcc_pcie_2_cfg_ahb_clk
= {
2565 .halt_reg
= 0x6e010,
2567 .enable_reg
= 0x6e010,
2568 .enable_mask
= BIT(0),
2569 .hw
.init
= &(struct clk_init_data
){
2570 .name
= "gcc_pcie_2_cfg_ahb_clk",
2571 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2573 .flags
= CLK_SET_RATE_PARENT
,
2574 .ops
= &clk_branch2_ops
,
2579 static struct clk_branch gcc_pcie_2_aux_clk
= {
2580 .halt_reg
= 0x6e014,
2582 .enable_reg
= 0x6e014,
2583 .enable_mask
= BIT(0),
2584 .hw
.init
= &(struct clk_init_data
){
2585 .name
= "gcc_pcie_2_aux_clk",
2586 .parent_names
= (const char *[]){ "pcie_aux_clk_src" },
2588 .flags
= CLK_SET_RATE_PARENT
,
2589 .ops
= &clk_branch2_ops
,
2594 static struct clk_branch gcc_pcie_2_pipe_clk
= {
2595 .halt_reg
= 0x6e018,
2597 .enable_reg
= 0x6e018,
2598 .enable_mask
= BIT(0),
2599 .hw
.init
= &(struct clk_init_data
){
2600 .name
= "gcc_pcie_2_pipe_clk",
2601 .parent_names
= (const char *[]){ "pcie_2_pipe_clk_src" },
2603 .flags
= CLK_SET_RATE_PARENT
,
2604 .ops
= &clk_branch2_ops
,
2609 static struct clk_branch gcc_pcie_phy_cfg_ahb_clk
= {
2610 .halt_reg
= 0x6f004,
2612 .enable_reg
= 0x6f004,
2613 .enable_mask
= BIT(0),
2614 .hw
.init
= &(struct clk_init_data
){
2615 .name
= "gcc_pcie_phy_cfg_ahb_clk",
2616 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2618 .flags
= CLK_SET_RATE_PARENT
,
2619 .ops
= &clk_branch2_ops
,
2624 static struct clk_branch gcc_pcie_phy_aux_clk
= {
2625 .halt_reg
= 0x6f008,
2627 .enable_reg
= 0x6f008,
2628 .enable_mask
= BIT(0),
2629 .hw
.init
= &(struct clk_init_data
){
2630 .name
= "gcc_pcie_phy_aux_clk",
2631 .parent_names
= (const char *[]){ "pcie_aux_clk_src" },
2633 .flags
= CLK_SET_RATE_PARENT
,
2634 .ops
= &clk_branch2_ops
,
2639 static struct clk_branch gcc_ufs_axi_clk
= {
2640 .halt_reg
= 0x75008,
2642 .enable_reg
= 0x75008,
2643 .enable_mask
= BIT(0),
2644 .hw
.init
= &(struct clk_init_data
){
2645 .name
= "gcc_ufs_axi_clk",
2646 .parent_names
= (const char *[]){ "ufs_axi_clk_src" },
2648 .flags
= CLK_SET_RATE_PARENT
,
2649 .ops
= &clk_branch2_ops
,
2654 static struct clk_branch gcc_ufs_ahb_clk
= {
2655 .halt_reg
= 0x7500c,
2657 .enable_reg
= 0x7500c,
2658 .enable_mask
= BIT(0),
2659 .hw
.init
= &(struct clk_init_data
){
2660 .name
= "gcc_ufs_ahb_clk",
2661 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2663 .flags
= CLK_SET_RATE_PARENT
,
2664 .ops
= &clk_branch2_ops
,
2669 static struct clk_fixed_factor ufs_tx_cfg_clk_src
= {
2672 .hw
.init
= &(struct clk_init_data
){
2673 .name
= "ufs_tx_cfg_clk_src",
2674 .parent_names
= (const char *[]){ "ufs_axi_clk_src" },
2676 .flags
= CLK_SET_RATE_PARENT
,
2677 .ops
= &clk_fixed_factor_ops
,
2681 static struct clk_branch gcc_ufs_tx_cfg_clk
= {
2682 .halt_reg
= 0x75010,
2684 .enable_reg
= 0x75010,
2685 .enable_mask
= BIT(0),
2686 .hw
.init
= &(struct clk_init_data
){
2687 .name
= "gcc_ufs_tx_cfg_clk",
2688 .parent_names
= (const char *[]){ "ufs_tx_cfg_clk_src" },
2690 .flags
= CLK_SET_RATE_PARENT
,
2691 .ops
= &clk_branch2_ops
,
2696 static struct clk_fixed_factor ufs_rx_cfg_clk_src
= {
2699 .hw
.init
= &(struct clk_init_data
){
2700 .name
= "ufs_rx_cfg_clk_src",
2701 .parent_names
= (const char *[]){ "ufs_axi_clk_src" },
2703 .flags
= CLK_SET_RATE_PARENT
,
2704 .ops
= &clk_fixed_factor_ops
,
2708 static struct clk_branch gcc_ufs_rx_cfg_clk
= {
2709 .halt_reg
= 0x75014,
2711 .enable_reg
= 0x75014,
2712 .enable_mask
= BIT(0),
2713 .hw
.init
= &(struct clk_init_data
){
2714 .name
= "gcc_ufs_rx_cfg_clk",
2715 .parent_names
= (const char *[]){ "ufs_rx_cfg_clk_src" },
2717 .flags
= CLK_SET_RATE_PARENT
,
2718 .ops
= &clk_branch2_ops
,
2723 static struct clk_branch gcc_ufs_tx_symbol_0_clk
= {
2724 .halt_reg
= 0x75018,
2726 .enable_reg
= 0x75018,
2727 .enable_mask
= BIT(0),
2728 .hw
.init
= &(struct clk_init_data
){
2729 .name
= "gcc_ufs_tx_symbol_0_clk",
2730 .parent_names
= (const char *[]){ "ufs_tx_symbol_0_clk_src" },
2732 .flags
= CLK_SET_RATE_PARENT
,
2733 .ops
= &clk_branch2_ops
,
2738 static struct clk_branch gcc_ufs_rx_symbol_0_clk
= {
2739 .halt_reg
= 0x7501c,
2741 .enable_reg
= 0x7501c,
2742 .enable_mask
= BIT(0),
2743 .hw
.init
= &(struct clk_init_data
){
2744 .name
= "gcc_ufs_rx_symbol_0_clk",
2745 .parent_names
= (const char *[]){ "ufs_rx_symbol_0_clk_src" },
2747 .flags
= CLK_SET_RATE_PARENT
,
2748 .ops
= &clk_branch2_ops
,
2753 static struct clk_branch gcc_ufs_rx_symbol_1_clk
= {
2754 .halt_reg
= 0x75020,
2756 .enable_reg
= 0x75020,
2757 .enable_mask
= BIT(0),
2758 .hw
.init
= &(struct clk_init_data
){
2759 .name
= "gcc_ufs_rx_symbol_1_clk",
2760 .parent_names
= (const char *[]){ "ufs_rx_symbol_1_clk_src" },
2762 .flags
= CLK_SET_RATE_PARENT
,
2763 .ops
= &clk_branch2_ops
,
2768 static struct clk_fixed_factor ufs_ice_core_postdiv_clk_src
= {
2771 .hw
.init
= &(struct clk_init_data
){
2772 .name
= "ufs_ice_core_postdiv_clk_src",
2773 .parent_names
= (const char *[]){ "ufs_ice_core_clk_src" },
2775 .flags
= CLK_SET_RATE_PARENT
,
2776 .ops
= &clk_fixed_factor_ops
,
2780 static struct clk_branch gcc_ufs_unipro_core_clk
= {
2781 .halt_reg
= 0x7600c,
2783 .enable_reg
= 0x7600c,
2784 .enable_mask
= BIT(0),
2785 .hw
.init
= &(struct clk_init_data
){
2786 .name
= "gcc_ufs_unipro_core_clk",
2787 .parent_names
= (const char *[]){ "ufs_ice_core_postdiv_clk_src" },
2789 .flags
= CLK_SET_RATE_PARENT
,
2790 .ops
= &clk_branch2_ops
,
2795 static struct clk_branch gcc_ufs_ice_core_clk
= {
2796 .halt_reg
= 0x76010,
2798 .enable_reg
= 0x76010,
2799 .enable_mask
= BIT(0),
2800 .hw
.init
= &(struct clk_init_data
){
2801 .name
= "gcc_ufs_ice_core_clk",
2802 .parent_names
= (const char *[]){ "ufs_ice_core_clk_src" },
2804 .flags
= CLK_SET_RATE_PARENT
,
2805 .ops
= &clk_branch2_ops
,
2810 static struct clk_branch gcc_ufs_sys_clk_core_clk
= {
2811 .halt_check
= BRANCH_HALT_DELAY
,
2813 .enable_reg
= 0x76030,
2814 .enable_mask
= BIT(0),
2815 .hw
.init
= &(struct clk_init_data
){
2816 .name
= "gcc_ufs_sys_clk_core_clk",
2817 .ops
= &clk_branch2_ops
,
2822 static struct clk_branch gcc_ufs_tx_symbol_clk_core_clk
= {
2823 .halt_check
= BRANCH_HALT_DELAY
,
2825 .enable_reg
= 0x76034,
2826 .enable_mask
= BIT(0),
2827 .hw
.init
= &(struct clk_init_data
){
2828 .name
= "gcc_ufs_tx_symbol_clk_core_clk",
2829 .ops
= &clk_branch2_ops
,
2834 static struct clk_branch gcc_aggre0_snoc_axi_clk
= {
2835 .halt_reg
= 0x81008,
2837 .enable_reg
= 0x81008,
2838 .enable_mask
= BIT(0),
2839 .hw
.init
= &(struct clk_init_data
){
2840 .name
= "gcc_aggre0_snoc_axi_clk",
2841 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2843 .flags
= CLK_SET_RATE_PARENT
,
2844 .ops
= &clk_branch2_ops
,
2849 static struct clk_branch gcc_aggre0_cnoc_ahb_clk
= {
2850 .halt_reg
= 0x8100c,
2852 .enable_reg
= 0x8100c,
2853 .enable_mask
= BIT(0),
2854 .hw
.init
= &(struct clk_init_data
){
2855 .name
= "gcc_aggre0_cnoc_ahb_clk",
2856 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2858 .flags
= CLK_SET_RATE_PARENT
,
2859 .ops
= &clk_branch2_ops
,
2864 static struct clk_branch gcc_smmu_aggre0_axi_clk
= {
2865 .halt_reg
= 0x81014,
2867 .enable_reg
= 0x81014,
2868 .enable_mask
= BIT(0),
2869 .hw
.init
= &(struct clk_init_data
){
2870 .name
= "gcc_smmu_aggre0_axi_clk",
2871 .parent_names
= (const char *[]){ "system_noc_clk_src" },
2873 .flags
= CLK_SET_RATE_PARENT
,
2874 .ops
= &clk_branch2_ops
,
2879 static struct clk_branch gcc_smmu_aggre0_ahb_clk
= {
2880 .halt_reg
= 0x81018,
2882 .enable_reg
= 0x81018,
2883 .enable_mask
= BIT(0),
2884 .hw
.init
= &(struct clk_init_data
){
2885 .name
= "gcc_smmu_aggre0_ahb_clk",
2886 .parent_names
= (const char *[]){ "config_noc_clk_src" },
2888 .flags
= CLK_SET_RATE_PARENT
,
2889 .ops
= &clk_branch2_ops
,
2894 static struct clk_branch gcc_aggre2_ufs_axi_clk
= {
2895 .halt_reg
= 0x83014,
2897 .enable_reg
= 0x83014,
2898 .enable_mask
= BIT(0),
2899 .hw
.init
= &(struct clk_init_data
){
2900 .name
= "gcc_aggre2_ufs_axi_clk",
2901 .parent_names
= (const char *[]){ "ufs_axi_clk_src" },
2903 .flags
= CLK_SET_RATE_PARENT
,
2904 .ops
= &clk_branch2_ops
,
2909 static struct clk_branch gcc_aggre2_usb3_axi_clk
= {
2910 .halt_reg
= 0x83018,
2912 .enable_reg
= 0x83018,
2913 .enable_mask
= BIT(0),
2914 .hw
.init
= &(struct clk_init_data
){
2915 .name
= "gcc_aggre2_usb3_axi_clk",
2916 .parent_names
= (const char *[]){ "usb30_master_clk_src" },
2918 .flags
= CLK_SET_RATE_PARENT
,
2919 .ops
= &clk_branch2_ops
,
2924 static struct clk_branch gcc_qspi_ahb_clk
= {
2925 .halt_reg
= 0x8b004,
2927 .enable_reg
= 0x8b004,
2928 .enable_mask
= BIT(0),
2929 .hw
.init
= &(struct clk_init_data
){
2930 .name
= "gcc_qspi_ahb_clk",
2931 .parent_names
= (const char *[]){ "periph_noc_clk_src" },
2933 .flags
= CLK_SET_RATE_PARENT
,
2934 .ops
= &clk_branch2_ops
,
2939 static struct clk_branch gcc_qspi_ser_clk
= {
2940 .halt_reg
= 0x8b008,
2942 .enable_reg
= 0x8b008,
2943 .enable_mask
= BIT(0),
2944 .hw
.init
= &(struct clk_init_data
){
2945 .name
= "gcc_qspi_ser_clk",
2946 .parent_names
= (const char *[]){ "qspi_ser_clk_src" },
2948 .flags
= CLK_SET_RATE_PARENT
,
2949 .ops
= &clk_branch2_ops
,
2954 static struct clk_branch gcc_usb3_clkref_clk
= {
2955 .halt_reg
= 0x8800C,
2957 .enable_reg
= 0x8800C,
2958 .enable_mask
= BIT(0),
2959 .hw
.init
= &(struct clk_init_data
){
2960 .name
= "gcc_usb3_clkref_clk",
2961 .parent_names
= (const char *[]){ "xo" },
2963 .ops
= &clk_branch2_ops
,
2968 static struct clk_branch gcc_hdmi_clkref_clk
= {
2969 .halt_reg
= 0x88000,
2971 .enable_reg
= 0x88000,
2972 .enable_mask
= BIT(0),
2973 .hw
.init
= &(struct clk_init_data
){
2974 .name
= "gcc_hdmi_clkref_clk",
2975 .parent_names
= (const char *[]){ "xo" },
2977 .ops
= &clk_branch2_ops
,
2982 static struct clk_branch gcc_ufs_clkref_clk
= {
2983 .halt_reg
= 0x88008,
2985 .enable_reg
= 0x88008,
2986 .enable_mask
= BIT(0),
2987 .hw
.init
= &(struct clk_init_data
){
2988 .name
= "gcc_ufs_clkref_clk",
2989 .parent_names
= (const char *[]){ "xo" },
2991 .ops
= &clk_branch2_ops
,
2996 static struct clk_branch gcc_pcie_clkref_clk
= {
2997 .halt_reg
= 0x88010,
2999 .enable_reg
= 0x88010,
3000 .enable_mask
= BIT(0),
3001 .hw
.init
= &(struct clk_init_data
){
3002 .name
= "gcc_pcie_clkref_clk",
3003 .parent_names
= (const char *[]){ "xo" },
3005 .ops
= &clk_branch2_ops
,
3010 static struct clk_branch gcc_rx2_usb2_clkref_clk
= {
3011 .halt_reg
= 0x88014,
3013 .enable_reg
= 0x88014,
3014 .enable_mask
= BIT(0),
3015 .hw
.init
= &(struct clk_init_data
){
3016 .name
= "gcc_rx2_usb2_clkref_clk",
3017 .parent_names
= (const char *[]){ "xo" },
3019 .ops
= &clk_branch2_ops
,
3024 static struct clk_branch gcc_rx1_usb2_clkref_clk
= {
3025 .halt_reg
= 0x88018,
3027 .enable_reg
= 0x88018,
3028 .enable_mask
= BIT(0),
3029 .hw
.init
= &(struct clk_init_data
){
3030 .name
= "gcc_rx1_usb2_clkref_clk",
3031 .parent_names
= (const char *[]){ "xo" },
3033 .ops
= &clk_branch2_ops
,
3038 static struct clk_hw
*gcc_msm8996_hws
[] = {
3040 &gpll0_early_div
.hw
,
3041 &ufs_tx_cfg_clk_src
.hw
,
3042 &ufs_rx_cfg_clk_src
.hw
,
3043 &ufs_ice_core_postdiv_clk_src
.hw
,
3046 static struct gdsc aggre0_noc_gdsc
= {
3048 .gds_hw_ctrl
= 0x81028,
3050 .name
= "aggre0_noc",
3052 .pwrsts
= PWRSTS_OFF_ON
,
3056 static struct gdsc hlos1_vote_aggre0_noc_gdsc
= {
3059 .name
= "hlos1_vote_aggre0_noc",
3061 .pwrsts
= PWRSTS_OFF_ON
,
3065 static struct gdsc hlos1_vote_lpass_adsp_gdsc
= {
3068 .name
= "hlos1_vote_lpass_adsp",
3070 .pwrsts
= PWRSTS_OFF_ON
,
3074 static struct gdsc hlos1_vote_lpass_core_gdsc
= {
3077 .name
= "hlos1_vote_lpass_core",
3079 .pwrsts
= PWRSTS_OFF_ON
,
3083 static struct gdsc usb30_gdsc
= {
3088 .pwrsts
= PWRSTS_OFF_ON
,
3091 static struct gdsc pcie0_gdsc
= {
3096 .pwrsts
= PWRSTS_OFF_ON
,
3099 static struct gdsc pcie1_gdsc
= {
3104 .pwrsts
= PWRSTS_OFF_ON
,
3107 static struct gdsc pcie2_gdsc
= {
3112 .pwrsts
= PWRSTS_OFF_ON
,
3115 static struct gdsc ufs_gdsc
= {
3120 .pwrsts
= PWRSTS_OFF_ON
,
3123 static struct clk_regmap
*gcc_msm8996_clocks
[] = {
3124 [GPLL0_EARLY
] = &gpll0_early
.clkr
,
3125 [GPLL0
] = &gpll0
.clkr
,
3126 [GPLL4_EARLY
] = &gpll4_early
.clkr
,
3127 [GPLL4
] = &gpll4
.clkr
,
3128 [SYSTEM_NOC_CLK_SRC
] = &system_noc_clk_src
.clkr
,
3129 [CONFIG_NOC_CLK_SRC
] = &config_noc_clk_src
.clkr
,
3130 [PERIPH_NOC_CLK_SRC
] = &periph_noc_clk_src
.clkr
,
3131 [USB30_MASTER_CLK_SRC
] = &usb30_master_clk_src
.clkr
,
3132 [USB30_MOCK_UTMI_CLK_SRC
] = &usb30_mock_utmi_clk_src
.clkr
,
3133 [USB3_PHY_AUX_CLK_SRC
] = &usb3_phy_aux_clk_src
.clkr
,
3134 [USB20_MASTER_CLK_SRC
] = &usb20_master_clk_src
.clkr
,
3135 [USB20_MOCK_UTMI_CLK_SRC
] = &usb20_mock_utmi_clk_src
.clkr
,
3136 [SDCC1_APPS_CLK_SRC
] = &sdcc1_apps_clk_src
.clkr
,
3137 [SDCC1_ICE_CORE_CLK_SRC
] = &sdcc1_ice_core_clk_src
.clkr
,
3138 [SDCC2_APPS_CLK_SRC
] = &sdcc2_apps_clk_src
.clkr
,
3139 [SDCC3_APPS_CLK_SRC
] = &sdcc3_apps_clk_src
.clkr
,
3140 [SDCC4_APPS_CLK_SRC
] = &sdcc4_apps_clk_src
.clkr
,
3141 [BLSP1_QUP1_SPI_APPS_CLK_SRC
] = &blsp1_qup1_spi_apps_clk_src
.clkr
,
3142 [BLSP1_QUP1_I2C_APPS_CLK_SRC
] = &blsp1_qup1_i2c_apps_clk_src
.clkr
,
3143 [BLSP1_UART1_APPS_CLK_SRC
] = &blsp1_uart1_apps_clk_src
.clkr
,
3144 [BLSP1_QUP2_SPI_APPS_CLK_SRC
] = &blsp1_qup2_spi_apps_clk_src
.clkr
,
3145 [BLSP1_QUP2_I2C_APPS_CLK_SRC
] = &blsp1_qup2_i2c_apps_clk_src
.clkr
,
3146 [BLSP1_UART2_APPS_CLK_SRC
] = &blsp1_uart2_apps_clk_src
.clkr
,
3147 [BLSP1_QUP3_SPI_APPS_CLK_SRC
] = &blsp1_qup3_spi_apps_clk_src
.clkr
,
3148 [BLSP1_QUP3_I2C_APPS_CLK_SRC
] = &blsp1_qup3_i2c_apps_clk_src
.clkr
,
3149 [BLSP1_UART3_APPS_CLK_SRC
] = &blsp1_uart3_apps_clk_src
.clkr
,
3150 [BLSP1_QUP4_SPI_APPS_CLK_SRC
] = &blsp1_qup4_spi_apps_clk_src
.clkr
,
3151 [BLSP1_QUP4_I2C_APPS_CLK_SRC
] = &blsp1_qup4_i2c_apps_clk_src
.clkr
,
3152 [BLSP1_UART4_APPS_CLK_SRC
] = &blsp1_uart4_apps_clk_src
.clkr
,
3153 [BLSP1_QUP5_SPI_APPS_CLK_SRC
] = &blsp1_qup5_spi_apps_clk_src
.clkr
,
3154 [BLSP1_QUP5_I2C_APPS_CLK_SRC
] = &blsp1_qup5_i2c_apps_clk_src
.clkr
,
3155 [BLSP1_UART5_APPS_CLK_SRC
] = &blsp1_uart5_apps_clk_src
.clkr
,
3156 [BLSP1_QUP6_SPI_APPS_CLK_SRC
] = &blsp1_qup6_spi_apps_clk_src
.clkr
,
3157 [BLSP1_QUP6_I2C_APPS_CLK_SRC
] = &blsp1_qup6_i2c_apps_clk_src
.clkr
,
3158 [BLSP1_UART6_APPS_CLK_SRC
] = &blsp1_uart6_apps_clk_src
.clkr
,
3159 [BLSP2_QUP1_SPI_APPS_CLK_SRC
] = &blsp2_qup1_spi_apps_clk_src
.clkr
,
3160 [BLSP2_QUP1_I2C_APPS_CLK_SRC
] = &blsp2_qup1_i2c_apps_clk_src
.clkr
,
3161 [BLSP2_UART1_APPS_CLK_SRC
] = &blsp2_uart1_apps_clk_src
.clkr
,
3162 [BLSP2_QUP2_SPI_APPS_CLK_SRC
] = &blsp2_qup2_spi_apps_clk_src
.clkr
,
3163 [BLSP2_QUP2_I2C_APPS_CLK_SRC
] = &blsp2_qup2_i2c_apps_clk_src
.clkr
,
3164 [BLSP2_UART2_APPS_CLK_SRC
] = &blsp2_uart2_apps_clk_src
.clkr
,
3165 [BLSP2_QUP3_SPI_APPS_CLK_SRC
] = &blsp2_qup3_spi_apps_clk_src
.clkr
,
3166 [BLSP2_QUP3_I2C_APPS_CLK_SRC
] = &blsp2_qup3_i2c_apps_clk_src
.clkr
,
3167 [BLSP2_UART3_APPS_CLK_SRC
] = &blsp2_uart3_apps_clk_src
.clkr
,
3168 [BLSP2_QUP4_SPI_APPS_CLK_SRC
] = &blsp2_qup4_spi_apps_clk_src
.clkr
,
3169 [BLSP2_QUP4_I2C_APPS_CLK_SRC
] = &blsp2_qup4_i2c_apps_clk_src
.clkr
,
3170 [BLSP2_UART4_APPS_CLK_SRC
] = &blsp2_uart4_apps_clk_src
.clkr
,
3171 [BLSP2_QUP5_SPI_APPS_CLK_SRC
] = &blsp2_qup5_spi_apps_clk_src
.clkr
,
3172 [BLSP2_QUP5_I2C_APPS_CLK_SRC
] = &blsp2_qup5_i2c_apps_clk_src
.clkr
,
3173 [BLSP2_UART5_APPS_CLK_SRC
] = &blsp2_uart5_apps_clk_src
.clkr
,
3174 [BLSP2_QUP6_SPI_APPS_CLK_SRC
] = &blsp2_qup6_spi_apps_clk_src
.clkr
,
3175 [BLSP2_QUP6_I2C_APPS_CLK_SRC
] = &blsp2_qup6_i2c_apps_clk_src
.clkr
,
3176 [BLSP2_UART6_APPS_CLK_SRC
] = &blsp2_uart6_apps_clk_src
.clkr
,
3177 [PDM2_CLK_SRC
] = &pdm2_clk_src
.clkr
,
3178 [TSIF_REF_CLK_SRC
] = &tsif_ref_clk_src
.clkr
,
3179 [GCC_SLEEP_CLK_SRC
] = &gcc_sleep_clk_src
.clkr
,
3180 [HMSS_RBCPR_CLK_SRC
] = &hmss_rbcpr_clk_src
.clkr
,
3181 [HMSS_GPLL0_CLK_SRC
] = &hmss_gpll0_clk_src
.clkr
,
3182 [GP1_CLK_SRC
] = &gp1_clk_src
.clkr
,
3183 [GP2_CLK_SRC
] = &gp2_clk_src
.clkr
,
3184 [GP3_CLK_SRC
] = &gp3_clk_src
.clkr
,
3185 [PCIE_AUX_CLK_SRC
] = &pcie_aux_clk_src
.clkr
,
3186 [UFS_AXI_CLK_SRC
] = &ufs_axi_clk_src
.clkr
,
3187 [UFS_ICE_CORE_CLK_SRC
] = &ufs_ice_core_clk_src
.clkr
,
3188 [QSPI_SER_CLK_SRC
] = &qspi_ser_clk_src
.clkr
,
3189 [GCC_SYS_NOC_USB3_AXI_CLK
] = &gcc_sys_noc_usb3_axi_clk
.clkr
,
3190 [GCC_SYS_NOC_UFS_AXI_CLK
] = &gcc_sys_noc_ufs_axi_clk
.clkr
,
3191 [GCC_PERIPH_NOC_USB20_AHB_CLK
] = &gcc_periph_noc_usb20_ahb_clk
.clkr
,
3192 [GCC_MMSS_NOC_CFG_AHB_CLK
] = &gcc_mmss_noc_cfg_ahb_clk
.clkr
,
3193 [GCC_MMSS_BIMC_GFX_CLK
] = &gcc_mmss_bimc_gfx_clk
.clkr
,
3194 [GCC_USB30_MASTER_CLK
] = &gcc_usb30_master_clk
.clkr
,
3195 [GCC_USB30_SLEEP_CLK
] = &gcc_usb30_sleep_clk
.clkr
,
3196 [GCC_USB30_MOCK_UTMI_CLK
] = &gcc_usb30_mock_utmi_clk
.clkr
,
3197 [GCC_USB3_PHY_AUX_CLK
] = &gcc_usb3_phy_aux_clk
.clkr
,
3198 [GCC_USB3_PHY_PIPE_CLK
] = &gcc_usb3_phy_pipe_clk
.clkr
,
3199 [GCC_USB20_MASTER_CLK
] = &gcc_usb20_master_clk
.clkr
,
3200 [GCC_USB20_SLEEP_CLK
] = &gcc_usb20_sleep_clk
.clkr
,
3201 [GCC_USB20_MOCK_UTMI_CLK
] = &gcc_usb20_mock_utmi_clk
.clkr
,
3202 [GCC_USB_PHY_CFG_AHB2PHY_CLK
] = &gcc_usb_phy_cfg_ahb2phy_clk
.clkr
,
3203 [GCC_SDCC1_APPS_CLK
] = &gcc_sdcc1_apps_clk
.clkr
,
3204 [GCC_SDCC1_AHB_CLK
] = &gcc_sdcc1_ahb_clk
.clkr
,
3205 [GCC_SDCC1_ICE_CORE_CLK
] = &gcc_sdcc1_ice_core_clk
.clkr
,
3206 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
3207 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
3208 [GCC_SDCC3_APPS_CLK
] = &gcc_sdcc3_apps_clk
.clkr
,
3209 [GCC_SDCC3_AHB_CLK
] = &gcc_sdcc3_ahb_clk
.clkr
,
3210 [GCC_SDCC4_APPS_CLK
] = &gcc_sdcc4_apps_clk
.clkr
,
3211 [GCC_SDCC4_AHB_CLK
] = &gcc_sdcc4_ahb_clk
.clkr
,
3212 [GCC_BLSP1_AHB_CLK
] = &gcc_blsp1_ahb_clk
.clkr
,
3213 [GCC_BLSP1_SLEEP_CLK
] = &gcc_blsp1_sleep_clk
.clkr
,
3214 [GCC_BLSP1_QUP1_SPI_APPS_CLK
] = &gcc_blsp1_qup1_spi_apps_clk
.clkr
,
3215 [GCC_BLSP1_QUP1_I2C_APPS_CLK
] = &gcc_blsp1_qup1_i2c_apps_clk
.clkr
,
3216 [GCC_BLSP1_UART1_APPS_CLK
] = &gcc_blsp1_uart1_apps_clk
.clkr
,
3217 [GCC_BLSP1_QUP2_SPI_APPS_CLK
] = &gcc_blsp1_qup2_spi_apps_clk
.clkr
,
3218 [GCC_BLSP1_QUP2_I2C_APPS_CLK
] = &gcc_blsp1_qup2_i2c_apps_clk
.clkr
,
3219 [GCC_BLSP1_UART2_APPS_CLK
] = &gcc_blsp1_uart2_apps_clk
.clkr
,
3220 [GCC_BLSP1_QUP3_SPI_APPS_CLK
] = &gcc_blsp1_qup3_spi_apps_clk
.clkr
,
3221 [GCC_BLSP1_QUP3_I2C_APPS_CLK
] = &gcc_blsp1_qup3_i2c_apps_clk
.clkr
,
3222 [GCC_BLSP1_UART3_APPS_CLK
] = &gcc_blsp1_uart3_apps_clk
.clkr
,
3223 [GCC_BLSP1_QUP4_SPI_APPS_CLK
] = &gcc_blsp1_qup4_spi_apps_clk
.clkr
,
3224 [GCC_BLSP1_QUP4_I2C_APPS_CLK
] = &gcc_blsp1_qup4_i2c_apps_clk
.clkr
,
3225 [GCC_BLSP1_UART4_APPS_CLK
] = &gcc_blsp1_uart4_apps_clk
.clkr
,
3226 [GCC_BLSP1_QUP5_SPI_APPS_CLK
] = &gcc_blsp1_qup5_spi_apps_clk
.clkr
,
3227 [GCC_BLSP1_QUP5_I2C_APPS_CLK
] = &gcc_blsp1_qup5_i2c_apps_clk
.clkr
,
3228 [GCC_BLSP1_UART5_APPS_CLK
] = &gcc_blsp1_uart5_apps_clk
.clkr
,
3229 [GCC_BLSP1_QUP6_SPI_APPS_CLK
] = &gcc_blsp1_qup6_spi_apps_clk
.clkr
,
3230 [GCC_BLSP1_QUP6_I2C_APPS_CLK
] = &gcc_blsp1_qup6_i2c_apps_clk
.clkr
,
3231 [GCC_BLSP1_UART6_APPS_CLK
] = &gcc_blsp1_uart6_apps_clk
.clkr
,
3232 [GCC_BLSP2_AHB_CLK
] = &gcc_blsp2_ahb_clk
.clkr
,
3233 [GCC_BLSP2_SLEEP_CLK
] = &gcc_blsp2_sleep_clk
.clkr
,
3234 [GCC_BLSP2_QUP1_SPI_APPS_CLK
] = &gcc_blsp2_qup1_spi_apps_clk
.clkr
,
3235 [GCC_BLSP2_QUP1_I2C_APPS_CLK
] = &gcc_blsp2_qup1_i2c_apps_clk
.clkr
,
3236 [GCC_BLSP2_UART1_APPS_CLK
] = &gcc_blsp2_uart1_apps_clk
.clkr
,
3237 [GCC_BLSP2_QUP2_SPI_APPS_CLK
] = &gcc_blsp2_qup2_spi_apps_clk
.clkr
,
3238 [GCC_BLSP2_QUP2_I2C_APPS_CLK
] = &gcc_blsp2_qup2_i2c_apps_clk
.clkr
,
3239 [GCC_BLSP2_UART2_APPS_CLK
] = &gcc_blsp2_uart2_apps_clk
.clkr
,
3240 [GCC_BLSP2_QUP3_SPI_APPS_CLK
] = &gcc_blsp2_qup3_spi_apps_clk
.clkr
,
3241 [GCC_BLSP2_QUP3_I2C_APPS_CLK
] = &gcc_blsp2_qup3_i2c_apps_clk
.clkr
,
3242 [GCC_BLSP2_UART3_APPS_CLK
] = &gcc_blsp2_uart3_apps_clk
.clkr
,
3243 [GCC_BLSP2_QUP4_SPI_APPS_CLK
] = &gcc_blsp2_qup4_spi_apps_clk
.clkr
,
3244 [GCC_BLSP2_QUP4_I2C_APPS_CLK
] = &gcc_blsp2_qup4_i2c_apps_clk
.clkr
,
3245 [GCC_BLSP2_UART4_APPS_CLK
] = &gcc_blsp2_uart4_apps_clk
.clkr
,
3246 [GCC_BLSP2_QUP5_SPI_APPS_CLK
] = &gcc_blsp2_qup5_spi_apps_clk
.clkr
,
3247 [GCC_BLSP2_QUP5_I2C_APPS_CLK
] = &gcc_blsp2_qup5_i2c_apps_clk
.clkr
,
3248 [GCC_BLSP2_UART5_APPS_CLK
] = &gcc_blsp2_uart5_apps_clk
.clkr
,
3249 [GCC_BLSP2_QUP6_SPI_APPS_CLK
] = &gcc_blsp2_qup6_spi_apps_clk
.clkr
,
3250 [GCC_BLSP2_QUP6_I2C_APPS_CLK
] = &gcc_blsp2_qup6_i2c_apps_clk
.clkr
,
3251 [GCC_BLSP2_UART6_APPS_CLK
] = &gcc_blsp2_uart6_apps_clk
.clkr
,
3252 [GCC_PDM_AHB_CLK
] = &gcc_pdm_ahb_clk
.clkr
,
3253 [GCC_PDM2_CLK
] = &gcc_pdm2_clk
.clkr
,
3254 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
3255 [GCC_TSIF_AHB_CLK
] = &gcc_tsif_ahb_clk
.clkr
,
3256 [GCC_TSIF_REF_CLK
] = &gcc_tsif_ref_clk
.clkr
,
3257 [GCC_TSIF_INACTIVITY_TIMERS_CLK
] = &gcc_tsif_inactivity_timers_clk
.clkr
,
3258 [GCC_BOOT_ROM_AHB_CLK
] = &gcc_boot_rom_ahb_clk
.clkr
,
3259 [GCC_BIMC_GFX_CLK
] = &gcc_bimc_gfx_clk
.clkr
,
3260 [GCC_HMSS_RBCPR_CLK
] = &gcc_hmss_rbcpr_clk
.clkr
,
3261 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
3262 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
3263 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
3264 [GCC_PCIE_0_SLV_AXI_CLK
] = &gcc_pcie_0_slv_axi_clk
.clkr
,
3265 [GCC_PCIE_0_MSTR_AXI_CLK
] = &gcc_pcie_0_mstr_axi_clk
.clkr
,
3266 [GCC_PCIE_0_CFG_AHB_CLK
] = &gcc_pcie_0_cfg_ahb_clk
.clkr
,
3267 [GCC_PCIE_0_AUX_CLK
] = &gcc_pcie_0_aux_clk
.clkr
,
3268 [GCC_PCIE_0_PIPE_CLK
] = &gcc_pcie_0_pipe_clk
.clkr
,
3269 [GCC_PCIE_1_SLV_AXI_CLK
] = &gcc_pcie_1_slv_axi_clk
.clkr
,
3270 [GCC_PCIE_1_MSTR_AXI_CLK
] = &gcc_pcie_1_mstr_axi_clk
.clkr
,
3271 [GCC_PCIE_1_CFG_AHB_CLK
] = &gcc_pcie_1_cfg_ahb_clk
.clkr
,
3272 [GCC_PCIE_1_AUX_CLK
] = &gcc_pcie_1_aux_clk
.clkr
,
3273 [GCC_PCIE_1_PIPE_CLK
] = &gcc_pcie_1_pipe_clk
.clkr
,
3274 [GCC_PCIE_2_SLV_AXI_CLK
] = &gcc_pcie_2_slv_axi_clk
.clkr
,
3275 [GCC_PCIE_2_MSTR_AXI_CLK
] = &gcc_pcie_2_mstr_axi_clk
.clkr
,
3276 [GCC_PCIE_2_CFG_AHB_CLK
] = &gcc_pcie_2_cfg_ahb_clk
.clkr
,
3277 [GCC_PCIE_2_AUX_CLK
] = &gcc_pcie_2_aux_clk
.clkr
,
3278 [GCC_PCIE_2_PIPE_CLK
] = &gcc_pcie_2_pipe_clk
.clkr
,
3279 [GCC_PCIE_PHY_CFG_AHB_CLK
] = &gcc_pcie_phy_cfg_ahb_clk
.clkr
,
3280 [GCC_PCIE_PHY_AUX_CLK
] = &gcc_pcie_phy_aux_clk
.clkr
,
3281 [GCC_UFS_AXI_CLK
] = &gcc_ufs_axi_clk
.clkr
,
3282 [GCC_UFS_AHB_CLK
] = &gcc_ufs_ahb_clk
.clkr
,
3283 [GCC_UFS_TX_CFG_CLK
] = &gcc_ufs_tx_cfg_clk
.clkr
,
3284 [GCC_UFS_RX_CFG_CLK
] = &gcc_ufs_rx_cfg_clk
.clkr
,
3285 [GCC_UFS_TX_SYMBOL_0_CLK
] = &gcc_ufs_tx_symbol_0_clk
.clkr
,
3286 [GCC_UFS_RX_SYMBOL_0_CLK
] = &gcc_ufs_rx_symbol_0_clk
.clkr
,
3287 [GCC_UFS_RX_SYMBOL_1_CLK
] = &gcc_ufs_rx_symbol_1_clk
.clkr
,
3288 [GCC_UFS_UNIPRO_CORE_CLK
] = &gcc_ufs_unipro_core_clk
.clkr
,
3289 [GCC_UFS_ICE_CORE_CLK
] = &gcc_ufs_ice_core_clk
.clkr
,
3290 [GCC_UFS_SYS_CLK_CORE_CLK
] = &gcc_ufs_sys_clk_core_clk
.clkr
,
3291 [GCC_UFS_TX_SYMBOL_CLK_CORE_CLK
] = &gcc_ufs_tx_symbol_clk_core_clk
.clkr
,
3292 [GCC_AGGRE0_SNOC_AXI_CLK
] = &gcc_aggre0_snoc_axi_clk
.clkr
,
3293 [GCC_AGGRE0_CNOC_AHB_CLK
] = &gcc_aggre0_cnoc_ahb_clk
.clkr
,
3294 [GCC_SMMU_AGGRE0_AXI_CLK
] = &gcc_smmu_aggre0_axi_clk
.clkr
,
3295 [GCC_SMMU_AGGRE0_AHB_CLK
] = &gcc_smmu_aggre0_ahb_clk
.clkr
,
3296 [GCC_AGGRE2_UFS_AXI_CLK
] = &gcc_aggre2_ufs_axi_clk
.clkr
,
3297 [GCC_AGGRE2_USB3_AXI_CLK
] = &gcc_aggre2_usb3_axi_clk
.clkr
,
3298 [GCC_QSPI_AHB_CLK
] = &gcc_qspi_ahb_clk
.clkr
,
3299 [GCC_QSPI_SER_CLK
] = &gcc_qspi_ser_clk
.clkr
,
3300 [GCC_USB3_CLKREF_CLK
] = &gcc_usb3_clkref_clk
.clkr
,
3301 [GCC_HDMI_CLKREF_CLK
] = &gcc_hdmi_clkref_clk
.clkr
,
3302 [GCC_UFS_CLKREF_CLK
] = &gcc_ufs_clkref_clk
.clkr
,
3303 [GCC_PCIE_CLKREF_CLK
] = &gcc_pcie_clkref_clk
.clkr
,
3304 [GCC_RX2_USB2_CLKREF_CLK
] = &gcc_rx2_usb2_clkref_clk
.clkr
,
3305 [GCC_RX1_USB2_CLKREF_CLK
] = &gcc_rx1_usb2_clkref_clk
.clkr
,
3308 static struct gdsc
*gcc_msm8996_gdscs
[] = {
3309 [AGGRE0_NOC_GDSC
] = &aggre0_noc_gdsc
,
3310 [HLOS1_VOTE_AGGRE0_NOC_GDSC
] = &hlos1_vote_aggre0_noc_gdsc
,
3311 [HLOS1_VOTE_LPASS_ADSP_GDSC
] = &hlos1_vote_lpass_adsp_gdsc
,
3312 [HLOS1_VOTE_LPASS_CORE_GDSC
] = &hlos1_vote_lpass_core_gdsc
,
3313 [USB30_GDSC
] = &usb30_gdsc
,
3314 [PCIE0_GDSC
] = &pcie0_gdsc
,
3315 [PCIE1_GDSC
] = &pcie1_gdsc
,
3316 [PCIE2_GDSC
] = &pcie2_gdsc
,
3317 [UFS_GDSC
] = &ufs_gdsc
,
3320 static const struct qcom_reset_map gcc_msm8996_resets
[] = {
3321 [GCC_SYSTEM_NOC_BCR
] = { 0x4000 },
3322 [GCC_CONFIG_NOC_BCR
] = { 0x5000 },
3323 [GCC_PERIPH_NOC_BCR
] = { 0x6000 },
3324 [GCC_IMEM_BCR
] = { 0x8000 },
3325 [GCC_MMSS_BCR
] = { 0x9000 },
3326 [GCC_PIMEM_BCR
] = { 0x0a000 },
3327 [GCC_QDSS_BCR
] = { 0x0c000 },
3328 [GCC_USB_30_BCR
] = { 0x0f000 },
3329 [GCC_USB_20_BCR
] = { 0x12000 },
3330 [GCC_QUSB2PHY_PRIM_BCR
] = { 0x12038 },
3331 [GCC_QUSB2PHY_SEC_BCR
] = { 0x1203c },
3332 [GCC_USB3_PHY_BCR
] = { 0x50020 },
3333 [GCC_USB3PHY_PHY_BCR
] = { 0x50024 },
3334 [GCC_USB_PHY_CFG_AHB2PHY_BCR
] = { 0x6a000 },
3335 [GCC_SDCC1_BCR
] = { 0x13000 },
3336 [GCC_SDCC2_BCR
] = { 0x14000 },
3337 [GCC_SDCC3_BCR
] = { 0x15000 },
3338 [GCC_SDCC4_BCR
] = { 0x16000 },
3339 [GCC_BLSP1_BCR
] = { 0x17000 },
3340 [GCC_BLSP1_QUP1_BCR
] = { 0x19000 },
3341 [GCC_BLSP1_UART1_BCR
] = { 0x1a000 },
3342 [GCC_BLSP1_QUP2_BCR
] = { 0x1b000 },
3343 [GCC_BLSP1_UART2_BCR
] = { 0x1c000 },
3344 [GCC_BLSP1_QUP3_BCR
] = { 0x1d000 },
3345 [GCC_BLSP1_UART3_BCR
] = { 0x1e000 },
3346 [GCC_BLSP1_QUP4_BCR
] = { 0x1f000 },
3347 [GCC_BLSP1_UART4_BCR
] = { 0x20000 },
3348 [GCC_BLSP1_QUP5_BCR
] = { 0x21000 },
3349 [GCC_BLSP1_UART5_BCR
] = { 0x22000 },
3350 [GCC_BLSP1_QUP6_BCR
] = { 0x23000 },
3351 [GCC_BLSP1_UART6_BCR
] = { 0x24000 },
3352 [GCC_BLSP2_BCR
] = { 0x25000 },
3353 [GCC_BLSP2_QUP1_BCR
] = { 0x26000 },
3354 [GCC_BLSP2_UART1_BCR
] = { 0x27000 },
3355 [GCC_BLSP2_QUP2_BCR
] = { 0x28000 },
3356 [GCC_BLSP2_UART2_BCR
] = { 0x29000 },
3357 [GCC_BLSP2_QUP3_BCR
] = { 0x2a000 },
3358 [GCC_BLSP2_UART3_BCR
] = { 0x2b000 },
3359 [GCC_BLSP2_QUP4_BCR
] = { 0x2c000 },
3360 [GCC_BLSP2_UART4_BCR
] = { 0x2d000 },
3361 [GCC_BLSP2_QUP5_BCR
] = { 0x2e000 },
3362 [GCC_BLSP2_UART5_BCR
] = { 0x2f000 },
3363 [GCC_BLSP2_QUP6_BCR
] = { 0x30000 },
3364 [GCC_BLSP2_UART6_BCR
] = { 0x31000 },
3365 [GCC_PDM_BCR
] = { 0x33000 },
3366 [GCC_PRNG_BCR
] = { 0x34000 },
3367 [GCC_TSIF_BCR
] = { 0x36000 },
3368 [GCC_TCSR_BCR
] = { 0x37000 },
3369 [GCC_BOOT_ROM_BCR
] = { 0x38000 },
3370 [GCC_MSG_RAM_BCR
] = { 0x39000 },
3371 [GCC_TLMM_BCR
] = { 0x3a000 },
3372 [GCC_MPM_BCR
] = { 0x3b000 },
3373 [GCC_SEC_CTRL_BCR
] = { 0x3d000 },
3374 [GCC_SPMI_BCR
] = { 0x3f000 },
3375 [GCC_SPDM_BCR
] = { 0x40000 },
3376 [GCC_CE1_BCR
] = { 0x41000 },
3377 [GCC_BIMC_BCR
] = { 0x44000 },
3378 [GCC_SNOC_BUS_TIMEOUT0_BCR
] = { 0x49000 },
3379 [GCC_SNOC_BUS_TIMEOUT2_BCR
] = { 0x49008 },
3380 [GCC_SNOC_BUS_TIMEOUT1_BCR
] = { 0x49010 },
3381 [GCC_SNOC_BUS_TIMEOUT3_BCR
] = { 0x49018 },
3382 [GCC_SNOC_BUS_TIMEOUT_EXTREF_BCR
] = { 0x49020 },
3383 [GCC_PNOC_BUS_TIMEOUT0_BCR
] = { 0x4a000 },
3384 [GCC_PNOC_BUS_TIMEOUT1_BCR
] = { 0x4a008 },
3385 [GCC_PNOC_BUS_TIMEOUT2_BCR
] = { 0x4a010 },
3386 [GCC_PNOC_BUS_TIMEOUT3_BCR
] = { 0x4a018 },
3387 [GCC_PNOC_BUS_TIMEOUT4_BCR
] = { 0x4a020 },
3388 [GCC_CNOC_BUS_TIMEOUT0_BCR
] = { 0x4b000 },
3389 [GCC_CNOC_BUS_TIMEOUT1_BCR
] = { 0x4b008 },
3390 [GCC_CNOC_BUS_TIMEOUT2_BCR
] = { 0x4b010 },
3391 [GCC_CNOC_BUS_TIMEOUT3_BCR
] = { 0x4b018 },
3392 [GCC_CNOC_BUS_TIMEOUT4_BCR
] = { 0x4b020 },
3393 [GCC_CNOC_BUS_TIMEOUT5_BCR
] = { 0x4b028 },
3394 [GCC_CNOC_BUS_TIMEOUT6_BCR
] = { 0x4b030 },
3395 [GCC_CNOC_BUS_TIMEOUT7_BCR
] = { 0x4b038 },
3396 [GCC_CNOC_BUS_TIMEOUT8_BCR
] = { 0x80000 },
3397 [GCC_CNOC_BUS_TIMEOUT9_BCR
] = { 0x80008 },
3398 [GCC_CNOC_BUS_TIMEOUT_EXTREF_BCR
] = { 0x80010 },
3399 [GCC_APB2JTAG_BCR
] = { 0x4c000 },
3400 [GCC_RBCPR_CX_BCR
] = { 0x4e000 },
3401 [GCC_RBCPR_MX_BCR
] = { 0x4f000 },
3402 [GCC_PCIE_0_BCR
] = { 0x6b000 },
3403 [GCC_PCIE_0_PHY_BCR
] = { 0x6c01c },
3404 [GCC_PCIE_1_BCR
] = { 0x6d000 },
3405 [GCC_PCIE_1_PHY_BCR
] = { 0x6d038 },
3406 [GCC_PCIE_2_BCR
] = { 0x6e000 },
3407 [GCC_PCIE_2_PHY_BCR
] = { 0x6e038 },
3408 [GCC_PCIE_PHY_BCR
] = { 0x6f000 },
3409 [GCC_PCIE_PHY_COM_BCR
] = { 0x6f014 },
3410 [GCC_PCIE_PHY_COM_NOCSR_BCR
] = { 0x6f00c },
3411 [GCC_DCD_BCR
] = { 0x70000 },
3412 [GCC_OBT_ODT_BCR
] = { 0x73000 },
3413 [GCC_UFS_BCR
] = { 0x75000 },
3414 [GCC_SSC_BCR
] = { 0x63000 },
3415 [GCC_VS_BCR
] = { 0x7a000 },
3416 [GCC_AGGRE0_NOC_BCR
] = { 0x81000 },
3417 [GCC_AGGRE1_NOC_BCR
] = { 0x82000 },
3418 [GCC_AGGRE2_NOC_BCR
] = { 0x83000 },
3419 [GCC_DCC_BCR
] = { 0x84000 },
3420 [GCC_IPA_BCR
] = { 0x89000 },
3421 [GCC_QSPI_BCR
] = { 0x8b000 },
3422 [GCC_SKL_BCR
] = { 0x8c000 },
3423 [GCC_MSMPU_BCR
] = { 0x8d000 },
3424 [GCC_MSS_Q6_BCR
] = { 0x8e000 },
3425 [GCC_QREFS_VBG_CAL_BCR
] = { 0x88020 },
3428 static const struct regmap_config gcc_msm8996_regmap_config
= {
3432 .max_register
= 0x8f010,
3436 static const struct qcom_cc_desc gcc_msm8996_desc
= {
3437 .config
= &gcc_msm8996_regmap_config
,
3438 .clks
= gcc_msm8996_clocks
,
3439 .num_clks
= ARRAY_SIZE(gcc_msm8996_clocks
),
3440 .resets
= gcc_msm8996_resets
,
3441 .num_resets
= ARRAY_SIZE(gcc_msm8996_resets
),
3442 .gdscs
= gcc_msm8996_gdscs
,
3443 .num_gdscs
= ARRAY_SIZE(gcc_msm8996_gdscs
),
3446 static const struct of_device_id gcc_msm8996_match_table
[] = {
3447 { .compatible
= "qcom,gcc-msm8996" },
3450 MODULE_DEVICE_TABLE(of
, gcc_msm8996_match_table
);
3452 static int gcc_msm8996_probe(struct platform_device
*pdev
)
3454 struct device
*dev
= &pdev
->dev
;
3456 struct regmap
*regmap
;
3458 regmap
= qcom_cc_map(pdev
, &gcc_msm8996_desc
);
3460 return PTR_ERR(regmap
);
3463 * Set the HMSS_AHB_CLK_SLEEP_ENA bit to allow the hmss_ahb_clk to be
3464 * turned off by hardware during certain apps low power modes.
3466 regmap_update_bits(regmap
, 0x52008, BIT(21), BIT(21));
3468 for (i
= 0; i
< ARRAY_SIZE(gcc_msm8996_hws
); i
++) {
3469 ret
= devm_clk_hw_register(dev
, gcc_msm8996_hws
[i
]);
3474 return qcom_cc_really_probe(pdev
, &gcc_msm8996_desc
, regmap
);
3477 static struct platform_driver gcc_msm8996_driver
= {
3478 .probe
= gcc_msm8996_probe
,
3480 .name
= "gcc-msm8996",
3481 .of_match_table
= gcc_msm8996_match_table
,
3485 static int __init
gcc_msm8996_init(void)
3487 return platform_driver_register(&gcc_msm8996_driver
);
3489 core_initcall(gcc_msm8996_init
);
3491 static void __exit
gcc_msm8996_exit(void)
3493 platform_driver_unregister(&gcc_msm8996_driver
);
3495 module_exit(gcc_msm8996_exit
);
3497 MODULE_DESCRIPTION("QCOM GCC MSM8996 Driver");
3498 MODULE_LICENSE("GPL v2");
3499 MODULE_ALIAS("platform:gcc-msm8996");