2 * Copyright (c) 2017, 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/err.h>
16 #include <linux/platform_device.h>
17 #include <linux/module.h>
19 #include <linux/of_device.h>
20 #include <linux/clk-provider.h>
21 #include <linux/regmap.h>
23 #include <dt-bindings/clock/qcom,gcc-ipq8074.h>
26 #include "clk-regmap.h"
29 #include "clk-branch.h"
30 #include "clk-alpha-pll.h"
31 #include "clk-regmap-divider.h"
32 #include "clk-regmap-mux.h"
35 #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
61 static const char * const gcc_xo_gpll0_gpll0_out_main_div2
[] = {
64 "gpll0_out_main_div2",
67 static const struct parent_map gcc_xo_gpll0_gpll0_out_main_div2_map
[] = {
73 static const char * const gcc_xo_gpll0
[] = {
78 static const struct parent_map gcc_xo_gpll0_map
[] = {
83 static const char * const gcc_xo_gpll0_gpll2_gpll0_out_main_div2
[] = {
87 "gpll0_out_main_div2",
90 static const struct parent_map gcc_xo_gpll0_gpll2_gpll0_out_main_div2_map
[] = {
97 static const char * const gcc_xo_gpll0_sleep_clk
[] = {
103 static const struct parent_map gcc_xo_gpll0_sleep_clk_map
[] = {
109 static const char * const gcc_xo_gpll6_gpll0_gpll0_out_main_div2
[] = {
113 "gpll0_out_main_div2",
116 static const struct parent_map gcc_xo_gpll6_gpll0_gpll0_out_main_div2_map
[] = {
123 static const char * const gcc_xo_gpll0_out_main_div2_gpll0
[] = {
125 "gpll0_out_main_div2",
129 static const struct parent_map gcc_xo_gpll0_out_main_div2_gpll0_map
[] = {
135 static const char * const gcc_usb3phy_0_cc_pipe_clk_xo
[] = {
136 "usb3phy_0_cc_pipe_clk",
140 static const struct parent_map gcc_usb3phy_0_cc_pipe_clk_xo_map
[] = {
141 { P_USB3PHY_0_PIPE
, 0 },
145 static const char * const gcc_usb3phy_1_cc_pipe_clk_xo
[] = {
146 "usb3phy_1_cc_pipe_clk",
150 static const struct parent_map gcc_usb3phy_1_cc_pipe_clk_xo_map
[] = {
151 { P_USB3PHY_1_PIPE
, 0 },
155 static const char * const gcc_pcie20_phy0_pipe_clk_xo
[] = {
156 "pcie20_phy0_pipe_clk",
160 static const struct parent_map gcc_pcie20_phy0_pipe_clk_xo_map
[] = {
161 { P_PCIE20_PHY0_PIPE
, 0 },
165 static const char * const gcc_pcie20_phy1_pipe_clk_xo
[] = {
166 "pcie20_phy1_pipe_clk",
170 static const struct parent_map gcc_pcie20_phy1_pipe_clk_xo_map
[] = {
171 { P_PCIE20_PHY1_PIPE
, 0 },
175 static const char * const gcc_xo_gpll0_gpll6_gpll0_div2
[] = {
179 "gpll0_out_main_div2",
182 static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_div2_map
[] = {
189 static const char * const gcc_xo_gpll0_gpll6_gpll0_out_main_div2
[] = {
193 "gpll0_out_main_div2",
196 static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_out_main_div2_map
[] = {
203 static const char * const gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2
[] = {
205 "bias_pll_nss_noc_clk",
210 static const struct parent_map gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2_map
[] = {
212 { P_BIAS_PLL_NSS_NOC
, 1 },
217 static const char * const gcc_xo_nss_crypto_pll_gpll0
[] = {
223 static const struct parent_map gcc_xo_nss_crypto_pll_gpll0_map
[] = {
225 { P_NSS_CRYPTO_PLL
, 1 },
229 static const char * const gcc_xo_ubi32_pll_gpll0_gpll2_gpll4_gpll6
[] = {
238 static const struct parent_map gcc_xo_ubi32_gpll0_gpll2_gpll4_gpll6_map
[] = {
247 static const char * const gcc_xo_gpll0_out_main_div2
[] = {
249 "gpll0_out_main_div2",
252 static const struct parent_map gcc_xo_gpll0_out_main_div2_map
[] = {
257 static const char * const gcc_xo_bias_gpll0_gpll4_nss_ubi32
[] = {
266 static const struct parent_map gcc_xo_bias_gpll0_gpll4_nss_ubi32_map
[] = {
271 { P_NSS_CRYPTO_PLL
, 4 },
275 static const char * const gcc_xo_gpll0_gpll4
[] = {
281 static const struct parent_map gcc_xo_gpll0_gpll4_map
[] = {
287 static const char * const gcc_xo_uniphy0_rx_tx_ubi32_bias
[] = {
289 "uniphy0_gcc_rx_clk",
290 "uniphy0_gcc_tx_clk",
295 static const struct parent_map gcc_xo_uniphy0_rx_tx_ubi32_bias_map
[] = {
303 static const char * const gcc_xo_uniphy0_tx_rx_ubi32_bias
[] = {
305 "uniphy0_gcc_tx_clk",
306 "uniphy0_gcc_rx_clk",
311 static const struct parent_map gcc_xo_uniphy0_tx_rx_ubi32_bias_map
[] = {
319 static const char * const gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias
[] = {
321 "uniphy0_gcc_rx_clk",
322 "uniphy0_gcc_tx_clk",
323 "uniphy1_gcc_rx_clk",
324 "uniphy1_gcc_tx_clk",
329 static const struct parent_map
330 gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias_map
[] = {
340 static const char * const gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias
[] = {
342 "uniphy0_gcc_tx_clk",
343 "uniphy0_gcc_rx_clk",
344 "uniphy1_gcc_tx_clk",
345 "uniphy1_gcc_rx_clk",
350 static const struct parent_map
351 gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias_map
[] = {
361 static const char * const gcc_xo_uniphy2_rx_tx_ubi32_bias
[] = {
363 "uniphy2_gcc_rx_clk",
364 "uniphy2_gcc_tx_clk",
369 static const struct parent_map gcc_xo_uniphy2_rx_tx_ubi32_bias_map
[] = {
377 static const char * const gcc_xo_uniphy2_tx_rx_ubi32_bias
[] = {
379 "uniphy2_gcc_tx_clk",
380 "uniphy2_gcc_rx_clk",
385 static const struct parent_map gcc_xo_uniphy2_tx_rx_ubi32_bias_map
[] = {
393 static const char * const gcc_xo_gpll0_gpll6_gpll0_sleep_clk
[] = {
397 "gpll0_out_main_div2",
401 static const struct parent_map gcc_xo_gpll0_gpll6_gpll0_sleep_clk_map
[] = {
409 static struct clk_alpha_pll gpll0_main
= {
411 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
413 .enable_reg
= 0x0b000,
414 .enable_mask
= BIT(0),
415 .hw
.init
= &(struct clk_init_data
){
416 .name
= "gpll0_main",
417 .parent_names
= (const char *[]){
421 .ops
= &clk_alpha_pll_ops
,
426 static struct clk_fixed_factor gpll0_out_main_div2
= {
429 .hw
.init
= &(struct clk_init_data
){
430 .name
= "gpll0_out_main_div2",
431 .parent_names
= (const char *[]){
435 .ops
= &clk_fixed_factor_ops
,
436 .flags
= CLK_SET_RATE_PARENT
,
440 static struct clk_alpha_pll_postdiv gpll0
= {
442 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
444 .clkr
.hw
.init
= &(struct clk_init_data
){
446 .parent_names
= (const char *[]){
450 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
454 static struct clk_alpha_pll gpll2_main
= {
456 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
458 .enable_reg
= 0x0b000,
459 .enable_mask
= BIT(2),
460 .hw
.init
= &(struct clk_init_data
){
461 .name
= "gpll2_main",
462 .parent_names
= (const char *[]){
466 .ops
= &clk_alpha_pll_ops
,
467 .flags
= CLK_IS_CRITICAL
,
472 static struct clk_alpha_pll_postdiv gpll2
= {
474 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
476 .clkr
.hw
.init
= &(struct clk_init_data
){
478 .parent_names
= (const char *[]){
482 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
483 .flags
= CLK_SET_RATE_PARENT
,
487 static struct clk_alpha_pll gpll4_main
= {
489 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
491 .enable_reg
= 0x0b000,
492 .enable_mask
= BIT(5),
493 .hw
.init
= &(struct clk_init_data
){
494 .name
= "gpll4_main",
495 .parent_names
= (const char *[]){
499 .ops
= &clk_alpha_pll_ops
,
500 .flags
= CLK_IS_CRITICAL
,
505 static struct clk_alpha_pll_postdiv gpll4
= {
507 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
509 .clkr
.hw
.init
= &(struct clk_init_data
){
511 .parent_names
= (const char *[]){
515 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
516 .flags
= CLK_SET_RATE_PARENT
,
520 static struct clk_alpha_pll gpll6_main
= {
522 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_BRAMMO
],
523 .flags
= SUPPORTS_DYNAMIC_UPDATE
,
525 .enable_reg
= 0x0b000,
526 .enable_mask
= BIT(7),
527 .hw
.init
= &(struct clk_init_data
){
528 .name
= "gpll6_main",
529 .parent_names
= (const char *[]){
533 .ops
= &clk_alpha_pll_ops
,
534 .flags
= CLK_IS_CRITICAL
,
539 static struct clk_alpha_pll_postdiv gpll6
= {
541 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_BRAMMO
],
543 .clkr
.hw
.init
= &(struct clk_init_data
){
545 .parent_names
= (const char *[]){
549 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
550 .flags
= CLK_SET_RATE_PARENT
,
554 static struct clk_fixed_factor gpll6_out_main_div2
= {
557 .hw
.init
= &(struct clk_init_data
){
558 .name
= "gpll6_out_main_div2",
559 .parent_names
= (const char *[]){
563 .ops
= &clk_fixed_factor_ops
,
564 .flags
= CLK_SET_RATE_PARENT
,
568 static struct clk_alpha_pll ubi32_pll_main
= {
570 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_HUAYRA
],
571 .flags
= SUPPORTS_DYNAMIC_UPDATE
,
573 .enable_reg
= 0x0b000,
574 .enable_mask
= BIT(6),
575 .hw
.init
= &(struct clk_init_data
){
576 .name
= "ubi32_pll_main",
577 .parent_names
= (const char *[]){
581 .ops
= &clk_alpha_pll_huayra_ops
,
586 static struct clk_alpha_pll_postdiv ubi32_pll
= {
588 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_HUAYRA
],
590 .clkr
.hw
.init
= &(struct clk_init_data
){
592 .parent_names
= (const char *[]){
596 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
597 .flags
= CLK_SET_RATE_PARENT
,
601 static struct clk_alpha_pll nss_crypto_pll_main
= {
603 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
605 .enable_reg
= 0x0b000,
606 .enable_mask
= BIT(4),
607 .hw
.init
= &(struct clk_init_data
){
608 .name
= "nss_crypto_pll_main",
609 .parent_names
= (const char *[]){
613 .ops
= &clk_alpha_pll_ops
,
618 static struct clk_alpha_pll_postdiv nss_crypto_pll
= {
620 .regs
= clk_alpha_pll_regs
[CLK_ALPHA_PLL_TYPE_DEFAULT
],
622 .clkr
.hw
.init
= &(struct clk_init_data
){
623 .name
= "nss_crypto_pll",
624 .parent_names
= (const char *[]){
625 "nss_crypto_pll_main"
628 .ops
= &clk_alpha_pll_postdiv_ro_ops
,
629 .flags
= CLK_SET_RATE_PARENT
,
633 static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src
[] = {
634 F(19200000, P_XO
, 1, 0, 0),
635 F(50000000, P_GPLL0
, 16, 0, 0),
636 F(100000000, P_GPLL0
, 8, 0, 0),
640 static struct clk_rcg2 pcnoc_bfdcd_clk_src
= {
642 .freq_tbl
= ftbl_pcnoc_bfdcd_clk_src
,
644 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
645 .clkr
.hw
.init
= &(struct clk_init_data
){
646 .name
= "pcnoc_bfdcd_clk_src",
647 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
649 .ops
= &clk_rcg2_ops
,
650 .flags
= CLK_IS_CRITICAL
,
654 static struct clk_fixed_factor pcnoc_clk_src
= {
657 .hw
.init
= &(struct clk_init_data
){
658 .name
= "pcnoc_clk_src",
659 .parent_names
= (const char *[]){
660 "pcnoc_bfdcd_clk_src"
663 .ops
= &clk_fixed_factor_ops
,
664 .flags
= CLK_SET_RATE_PARENT
,
668 static struct clk_branch gcc_sleep_clk_src
= {
671 .enable_reg
= 0x30000,
672 .enable_mask
= BIT(1),
673 .hw
.init
= &(struct clk_init_data
){
674 .name
= "gcc_sleep_clk_src",
675 .parent_names
= (const char *[]){
679 .ops
= &clk_branch2_ops
,
684 static const struct freq_tbl ftbl_blsp1_qup_i2c_apps_clk_src
[] = {
685 F(19200000, P_XO
, 1, 0, 0),
686 F(25000000, P_GPLL0_DIV2
, 16, 0, 0),
687 F(50000000, P_GPLL0
, 16, 0, 0),
691 static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src
= {
693 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
695 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
696 .clkr
.hw
.init
= &(struct clk_init_data
){
697 .name
= "blsp1_qup1_i2c_apps_clk_src",
698 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
700 .ops
= &clk_rcg2_ops
,
704 static const struct freq_tbl ftbl_blsp1_qup_spi_apps_clk_src
[] = {
705 F(960000, P_XO
, 10, 1, 2),
706 F(4800000, P_XO
, 4, 0, 0),
707 F(9600000, P_XO
, 2, 0, 0),
708 F(12500000, P_GPLL0_DIV2
, 16, 1, 2),
709 F(16000000, P_GPLL0
, 10, 1, 5),
710 F(19200000, P_XO
, 1, 0, 0),
711 F(25000000, P_GPLL0
, 16, 1, 2),
712 F(50000000, P_GPLL0
, 16, 0, 0),
716 static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src
= {
718 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
721 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
722 .clkr
.hw
.init
= &(struct clk_init_data
){
723 .name
= "blsp1_qup1_spi_apps_clk_src",
724 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
726 .ops
= &clk_rcg2_ops
,
730 static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src
= {
732 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
734 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
735 .clkr
.hw
.init
= &(struct clk_init_data
){
736 .name
= "blsp1_qup2_i2c_apps_clk_src",
737 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
739 .ops
= &clk_rcg2_ops
,
743 static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src
= {
745 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
748 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
749 .clkr
.hw
.init
= &(struct clk_init_data
){
750 .name
= "blsp1_qup2_spi_apps_clk_src",
751 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
753 .ops
= &clk_rcg2_ops
,
757 static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src
= {
759 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
761 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
762 .clkr
.hw
.init
= &(struct clk_init_data
){
763 .name
= "blsp1_qup3_i2c_apps_clk_src",
764 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
766 .ops
= &clk_rcg2_ops
,
770 static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src
= {
772 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
775 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
776 .clkr
.hw
.init
= &(struct clk_init_data
){
777 .name
= "blsp1_qup3_spi_apps_clk_src",
778 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
780 .ops
= &clk_rcg2_ops
,
784 static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src
= {
786 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
788 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
789 .clkr
.hw
.init
= &(struct clk_init_data
){
790 .name
= "blsp1_qup4_i2c_apps_clk_src",
791 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
793 .ops
= &clk_rcg2_ops
,
797 static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src
= {
799 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
802 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
803 .clkr
.hw
.init
= &(struct clk_init_data
){
804 .name
= "blsp1_qup4_spi_apps_clk_src",
805 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
807 .ops
= &clk_rcg2_ops
,
811 static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src
= {
813 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
815 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
816 .clkr
.hw
.init
= &(struct clk_init_data
){
817 .name
= "blsp1_qup5_i2c_apps_clk_src",
818 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
820 .ops
= &clk_rcg2_ops
,
824 static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src
= {
826 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
829 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
830 .clkr
.hw
.init
= &(struct clk_init_data
){
831 .name
= "blsp1_qup5_spi_apps_clk_src",
832 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
834 .ops
= &clk_rcg2_ops
,
838 static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src
= {
840 .freq_tbl
= ftbl_blsp1_qup_i2c_apps_clk_src
,
842 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
843 .clkr
.hw
.init
= &(struct clk_init_data
){
844 .name
= "blsp1_qup6_i2c_apps_clk_src",
845 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
847 .ops
= &clk_rcg2_ops
,
851 static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src
= {
853 .freq_tbl
= ftbl_blsp1_qup_spi_apps_clk_src
,
856 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
857 .clkr
.hw
.init
= &(struct clk_init_data
){
858 .name
= "blsp1_qup6_spi_apps_clk_src",
859 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
861 .ops
= &clk_rcg2_ops
,
865 static const struct freq_tbl ftbl_blsp1_uart_apps_clk_src
[] = {
866 F(3686400, P_GPLL0_DIV2
, 1, 144, 15625),
867 F(7372800, P_GPLL0_DIV2
, 1, 288, 15625),
868 F(14745600, P_GPLL0_DIV2
, 1, 576, 15625),
869 F(16000000, P_GPLL0_DIV2
, 5, 1, 5),
870 F(19200000, P_XO
, 1, 0, 0),
871 F(24000000, P_GPLL0
, 1, 3, 100),
872 F(25000000, P_GPLL0
, 16, 1, 2),
873 F(32000000, P_GPLL0
, 1, 1, 25),
874 F(40000000, P_GPLL0
, 1, 1, 20),
875 F(46400000, P_GPLL0
, 1, 29, 500),
876 F(48000000, P_GPLL0
, 1, 3, 50),
877 F(51200000, P_GPLL0
, 1, 8, 125),
878 F(56000000, P_GPLL0
, 1, 7, 100),
879 F(58982400, P_GPLL0
, 1, 1152, 15625),
880 F(60000000, P_GPLL0
, 1, 3, 40),
881 F(64000000, P_GPLL0
, 12.5, 1, 1),
885 static struct clk_rcg2 blsp1_uart1_apps_clk_src
= {
887 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
890 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
891 .clkr
.hw
.init
= &(struct clk_init_data
){
892 .name
= "blsp1_uart1_apps_clk_src",
893 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
895 .ops
= &clk_rcg2_ops
,
899 static struct clk_rcg2 blsp1_uart2_apps_clk_src
= {
901 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
904 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
905 .clkr
.hw
.init
= &(struct clk_init_data
){
906 .name
= "blsp1_uart2_apps_clk_src",
907 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
909 .ops
= &clk_rcg2_ops
,
913 static struct clk_rcg2 blsp1_uart3_apps_clk_src
= {
915 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
918 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
919 .clkr
.hw
.init
= &(struct clk_init_data
){
920 .name
= "blsp1_uart3_apps_clk_src",
921 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
923 .ops
= &clk_rcg2_ops
,
927 static struct clk_rcg2 blsp1_uart4_apps_clk_src
= {
929 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
932 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
933 .clkr
.hw
.init
= &(struct clk_init_data
){
934 .name
= "blsp1_uart4_apps_clk_src",
935 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
937 .ops
= &clk_rcg2_ops
,
941 static struct clk_rcg2 blsp1_uart5_apps_clk_src
= {
943 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
946 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
947 .clkr
.hw
.init
= &(struct clk_init_data
){
948 .name
= "blsp1_uart5_apps_clk_src",
949 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
951 .ops
= &clk_rcg2_ops
,
955 static struct clk_rcg2 blsp1_uart6_apps_clk_src
= {
957 .freq_tbl
= ftbl_blsp1_uart_apps_clk_src
,
960 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
961 .clkr
.hw
.init
= &(struct clk_init_data
){
962 .name
= "blsp1_uart6_apps_clk_src",
963 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
965 .ops
= &clk_rcg2_ops
,
969 static const struct freq_tbl ftbl_pcie_axi_clk_src
[] = {
970 F(19200000, P_XO
, 1, 0, 0),
971 F(200000000, P_GPLL0
, 4, 0, 0),
975 static struct clk_rcg2 pcie0_axi_clk_src
= {
977 .freq_tbl
= ftbl_pcie_axi_clk_src
,
979 .parent_map
= gcc_xo_gpll0_map
,
980 .clkr
.hw
.init
= &(struct clk_init_data
){
981 .name
= "pcie0_axi_clk_src",
982 .parent_names
= gcc_xo_gpll0
,
984 .ops
= &clk_rcg2_ops
,
988 static const struct freq_tbl ftbl_pcie_aux_clk_src
[] = {
989 F(19200000, P_XO
, 1, 0, 0),
992 static struct clk_rcg2 pcie0_aux_clk_src
= {
994 .freq_tbl
= ftbl_pcie_aux_clk_src
,
997 .parent_map
= gcc_xo_gpll0_sleep_clk_map
,
998 .clkr
.hw
.init
= &(struct clk_init_data
){
999 .name
= "pcie0_aux_clk_src",
1000 .parent_names
= gcc_xo_gpll0_sleep_clk
,
1002 .ops
= &clk_rcg2_ops
,
1006 static struct clk_regmap_mux pcie0_pipe_clk_src
= {
1010 .parent_map
= gcc_pcie20_phy0_pipe_clk_xo_map
,
1012 .hw
.init
= &(struct clk_init_data
){
1013 .name
= "pcie0_pipe_clk_src",
1014 .parent_names
= gcc_pcie20_phy0_pipe_clk_xo
,
1016 .ops
= &clk_regmap_mux_closest_ops
,
1017 .flags
= CLK_SET_RATE_PARENT
,
1022 static struct clk_rcg2 pcie1_axi_clk_src
= {
1023 .cmd_rcgr
= 0x76054,
1024 .freq_tbl
= ftbl_pcie_axi_clk_src
,
1026 .parent_map
= gcc_xo_gpll0_map
,
1027 .clkr
.hw
.init
= &(struct clk_init_data
){
1028 .name
= "pcie1_axi_clk_src",
1029 .parent_names
= gcc_xo_gpll0
,
1031 .ops
= &clk_rcg2_ops
,
1035 static struct clk_rcg2 pcie1_aux_clk_src
= {
1036 .cmd_rcgr
= 0x76024,
1037 .freq_tbl
= ftbl_pcie_aux_clk_src
,
1040 .parent_map
= gcc_xo_gpll0_sleep_clk_map
,
1041 .clkr
.hw
.init
= &(struct clk_init_data
){
1042 .name
= "pcie1_aux_clk_src",
1043 .parent_names
= gcc_xo_gpll0_sleep_clk
,
1045 .ops
= &clk_rcg2_ops
,
1049 static struct clk_regmap_mux pcie1_pipe_clk_src
= {
1053 .parent_map
= gcc_pcie20_phy1_pipe_clk_xo_map
,
1055 .hw
.init
= &(struct clk_init_data
){
1056 .name
= "pcie1_pipe_clk_src",
1057 .parent_names
= gcc_pcie20_phy1_pipe_clk_xo
,
1059 .ops
= &clk_regmap_mux_closest_ops
,
1060 .flags
= CLK_SET_RATE_PARENT
,
1065 static const struct freq_tbl ftbl_sdcc_apps_clk_src
[] = {
1066 F(144000, P_XO
, 16, 3, 25),
1067 F(400000, P_XO
, 12, 1, 4),
1068 F(24000000, P_GPLL2
, 12, 1, 4),
1069 F(48000000, P_GPLL2
, 12, 1, 2),
1070 F(96000000, P_GPLL2
, 12, 0, 0),
1071 F(177777778, P_GPLL0
, 4.5, 0, 0),
1072 F(192000000, P_GPLL2
, 6, 0, 0),
1073 F(384000000, P_GPLL2
, 3, 0, 0),
1077 static struct clk_rcg2 sdcc1_apps_clk_src
= {
1078 .cmd_rcgr
= 0x42004,
1079 .freq_tbl
= ftbl_sdcc_apps_clk_src
,
1082 .parent_map
= gcc_xo_gpll0_gpll2_gpll0_out_main_div2_map
,
1083 .clkr
.hw
.init
= &(struct clk_init_data
){
1084 .name
= "sdcc1_apps_clk_src",
1085 .parent_names
= gcc_xo_gpll0_gpll2_gpll0_out_main_div2
,
1087 .ops
= &clk_rcg2_ops
,
1091 static const struct freq_tbl ftbl_sdcc_ice_core_clk_src
[] = {
1092 F(19200000, P_XO
, 1, 0, 0),
1093 F(160000000, P_GPLL0
, 5, 0, 0),
1094 F(308570000, P_GPLL6
, 3.5, 0, 0),
1097 static struct clk_rcg2 sdcc1_ice_core_clk_src
= {
1098 .cmd_rcgr
= 0x5d000,
1099 .freq_tbl
= ftbl_sdcc_ice_core_clk_src
,
1102 .parent_map
= gcc_xo_gpll0_gpll6_gpll0_div2_map
,
1103 .clkr
.hw
.init
= &(struct clk_init_data
){
1104 .name
= "sdcc1_ice_core_clk_src",
1105 .parent_names
= gcc_xo_gpll0_gpll6_gpll0_div2
,
1107 .ops
= &clk_rcg2_ops
,
1111 static struct clk_rcg2 sdcc2_apps_clk_src
= {
1112 .cmd_rcgr
= 0x43004,
1113 .freq_tbl
= ftbl_sdcc_apps_clk_src
,
1116 .parent_map
= gcc_xo_gpll0_gpll2_gpll0_out_main_div2_map
,
1117 .clkr
.hw
.init
= &(struct clk_init_data
){
1118 .name
= "sdcc2_apps_clk_src",
1119 .parent_names
= gcc_xo_gpll0_gpll2_gpll0_out_main_div2
,
1121 .ops
= &clk_rcg2_ops
,
1125 static const struct freq_tbl ftbl_usb_master_clk_src
[] = {
1126 F(80000000, P_GPLL0_DIV2
, 5, 0, 0),
1127 F(100000000, P_GPLL0
, 8, 0, 0),
1128 F(133330000, P_GPLL0
, 6, 0, 0),
1132 static struct clk_rcg2 usb0_master_clk_src
= {
1133 .cmd_rcgr
= 0x3e00c,
1134 .freq_tbl
= ftbl_usb_master_clk_src
,
1137 .parent_map
= gcc_xo_gpll0_out_main_div2_gpll0_map
,
1138 .clkr
.hw
.init
= &(struct clk_init_data
){
1139 .name
= "usb0_master_clk_src",
1140 .parent_names
= gcc_xo_gpll0_out_main_div2_gpll0
,
1142 .ops
= &clk_rcg2_ops
,
1146 static const struct freq_tbl ftbl_usb_aux_clk_src
[] = {
1147 F(19200000, P_XO
, 1, 0, 0),
1151 static struct clk_rcg2 usb0_aux_clk_src
= {
1152 .cmd_rcgr
= 0x3e05c,
1153 .freq_tbl
= ftbl_usb_aux_clk_src
,
1156 .parent_map
= gcc_xo_gpll0_sleep_clk_map
,
1157 .clkr
.hw
.init
= &(struct clk_init_data
){
1158 .name
= "usb0_aux_clk_src",
1159 .parent_names
= gcc_xo_gpll0_sleep_clk
,
1161 .ops
= &clk_rcg2_ops
,
1165 static const struct freq_tbl ftbl_usb_mock_utmi_clk_src
[] = {
1166 F(19200000, P_XO
, 1, 0, 0),
1167 F(20000000, P_GPLL6
, 6, 1, 9),
1168 F(60000000, P_GPLL6
, 6, 1, 3),
1172 static struct clk_rcg2 usb0_mock_utmi_clk_src
= {
1173 .cmd_rcgr
= 0x3e020,
1174 .freq_tbl
= ftbl_usb_mock_utmi_clk_src
,
1177 .parent_map
= gcc_xo_gpll6_gpll0_gpll0_out_main_div2_map
,
1178 .clkr
.hw
.init
= &(struct clk_init_data
){
1179 .name
= "usb0_mock_utmi_clk_src",
1180 .parent_names
= gcc_xo_gpll6_gpll0_gpll0_out_main_div2
,
1182 .ops
= &clk_rcg2_ops
,
1186 static struct clk_regmap_mux usb0_pipe_clk_src
= {
1190 .parent_map
= gcc_usb3phy_0_cc_pipe_clk_xo_map
,
1192 .hw
.init
= &(struct clk_init_data
){
1193 .name
= "usb0_pipe_clk_src",
1194 .parent_names
= gcc_usb3phy_0_cc_pipe_clk_xo
,
1196 .ops
= &clk_regmap_mux_closest_ops
,
1197 .flags
= CLK_SET_RATE_PARENT
,
1202 static struct clk_rcg2 usb1_master_clk_src
= {
1203 .cmd_rcgr
= 0x3f00c,
1204 .freq_tbl
= ftbl_usb_master_clk_src
,
1207 .parent_map
= gcc_xo_gpll0_out_main_div2_gpll0_map
,
1208 .clkr
.hw
.init
= &(struct clk_init_data
){
1209 .name
= "usb1_master_clk_src",
1210 .parent_names
= gcc_xo_gpll0_out_main_div2_gpll0
,
1212 .ops
= &clk_rcg2_ops
,
1216 static struct clk_rcg2 usb1_aux_clk_src
= {
1217 .cmd_rcgr
= 0x3f05c,
1218 .freq_tbl
= ftbl_usb_aux_clk_src
,
1221 .parent_map
= gcc_xo_gpll0_sleep_clk_map
,
1222 .clkr
.hw
.init
= &(struct clk_init_data
){
1223 .name
= "usb1_aux_clk_src",
1224 .parent_names
= gcc_xo_gpll0_sleep_clk
,
1226 .ops
= &clk_rcg2_ops
,
1230 static struct clk_rcg2 usb1_mock_utmi_clk_src
= {
1231 .cmd_rcgr
= 0x3f020,
1232 .freq_tbl
= ftbl_usb_mock_utmi_clk_src
,
1235 .parent_map
= gcc_xo_gpll6_gpll0_gpll0_out_main_div2_map
,
1236 .clkr
.hw
.init
= &(struct clk_init_data
){
1237 .name
= "usb1_mock_utmi_clk_src",
1238 .parent_names
= gcc_xo_gpll6_gpll0_gpll0_out_main_div2
,
1240 .ops
= &clk_rcg2_ops
,
1244 static struct clk_regmap_mux usb1_pipe_clk_src
= {
1248 .parent_map
= gcc_usb3phy_1_cc_pipe_clk_xo_map
,
1250 .hw
.init
= &(struct clk_init_data
){
1251 .name
= "usb1_pipe_clk_src",
1252 .parent_names
= gcc_usb3phy_1_cc_pipe_clk_xo
,
1254 .ops
= &clk_regmap_mux_closest_ops
,
1255 .flags
= CLK_SET_RATE_PARENT
,
1260 static struct clk_branch gcc_xo_clk_src
= {
1261 .halt_reg
= 0x30018,
1263 .enable_reg
= 0x30018,
1264 .enable_mask
= BIT(1),
1265 .hw
.init
= &(struct clk_init_data
){
1266 .name
= "gcc_xo_clk_src",
1267 .parent_names
= (const char *[]){
1271 .flags
= CLK_SET_RATE_PARENT
| CLK_IS_CRITICAL
,
1272 .ops
= &clk_branch2_ops
,
1277 static struct clk_fixed_factor gcc_xo_div4_clk_src
= {
1280 .hw
.init
= &(struct clk_init_data
){
1281 .name
= "gcc_xo_div4_clk_src",
1282 .parent_names
= (const char *[]){
1286 .ops
= &clk_fixed_factor_ops
,
1287 .flags
= CLK_SET_RATE_PARENT
,
1291 static const struct freq_tbl ftbl_system_noc_bfdcd_clk_src
[] = {
1292 F(19200000, P_XO
, 1, 0, 0),
1293 F(50000000, P_GPLL0_DIV2
, 8, 0, 0),
1294 F(100000000, P_GPLL0
, 8, 0, 0),
1295 F(133333333, P_GPLL0
, 6, 0, 0),
1296 F(160000000, P_GPLL0
, 5, 0, 0),
1297 F(200000000, P_GPLL0
, 4, 0, 0),
1298 F(266666667, P_GPLL0
, 3, 0, 0),
1302 static struct clk_rcg2 system_noc_bfdcd_clk_src
= {
1303 .cmd_rcgr
= 0x26004,
1304 .freq_tbl
= ftbl_system_noc_bfdcd_clk_src
,
1306 .parent_map
= gcc_xo_gpll0_gpll6_gpll0_out_main_div2_map
,
1307 .clkr
.hw
.init
= &(struct clk_init_data
){
1308 .name
= "system_noc_bfdcd_clk_src",
1309 .parent_names
= gcc_xo_gpll0_gpll6_gpll0_out_main_div2
,
1311 .ops
= &clk_rcg2_ops
,
1312 .flags
= CLK_IS_CRITICAL
,
1316 static struct clk_fixed_factor system_noc_clk_src
= {
1319 .hw
.init
= &(struct clk_init_data
){
1320 .name
= "system_noc_clk_src",
1321 .parent_names
= (const char *[]){
1322 "system_noc_bfdcd_clk_src"
1325 .ops
= &clk_fixed_factor_ops
,
1326 .flags
= CLK_SET_RATE_PARENT
,
1330 static const struct freq_tbl ftbl_nss_ce_clk_src
[] = {
1331 F(19200000, P_XO
, 1, 0, 0),
1332 F(200000000, P_GPLL0
, 4, 0, 0),
1336 static struct clk_rcg2 nss_ce_clk_src
= {
1337 .cmd_rcgr
= 0x68098,
1338 .freq_tbl
= ftbl_nss_ce_clk_src
,
1340 .parent_map
= gcc_xo_gpll0_map
,
1341 .clkr
.hw
.init
= &(struct clk_init_data
){
1342 .name
= "nss_ce_clk_src",
1343 .parent_names
= gcc_xo_gpll0
,
1345 .ops
= &clk_rcg2_ops
,
1349 static const struct freq_tbl ftbl_nss_noc_bfdcd_clk_src
[] = {
1350 F(19200000, P_XO
, 1, 0, 0),
1351 F(461500000, P_BIAS_PLL_NSS_NOC
, 1, 0, 0),
1355 static struct clk_rcg2 nss_noc_bfdcd_clk_src
= {
1356 .cmd_rcgr
= 0x68088,
1357 .freq_tbl
= ftbl_nss_noc_bfdcd_clk_src
,
1359 .parent_map
= gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2_map
,
1360 .clkr
.hw
.init
= &(struct clk_init_data
){
1361 .name
= "nss_noc_bfdcd_clk_src",
1362 .parent_names
= gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2
,
1364 .ops
= &clk_rcg2_ops
,
1368 static struct clk_fixed_factor nss_noc_clk_src
= {
1371 .hw
.init
= &(struct clk_init_data
){
1372 .name
= "nss_noc_clk_src",
1373 .parent_names
= (const char *[]){
1374 "nss_noc_bfdcd_clk_src"
1377 .ops
= &clk_fixed_factor_ops
,
1378 .flags
= CLK_SET_RATE_PARENT
,
1382 static const struct freq_tbl ftbl_nss_crypto_clk_src
[] = {
1383 F(19200000, P_XO
, 1, 0, 0),
1384 F(600000000, P_NSS_CRYPTO_PLL
, 1, 0, 0),
1388 static struct clk_rcg2 nss_crypto_clk_src
= {
1389 .cmd_rcgr
= 0x68144,
1390 .freq_tbl
= ftbl_nss_crypto_clk_src
,
1393 .parent_map
= gcc_xo_nss_crypto_pll_gpll0_map
,
1394 .clkr
.hw
.init
= &(struct clk_init_data
){
1395 .name
= "nss_crypto_clk_src",
1396 .parent_names
= gcc_xo_nss_crypto_pll_gpll0
,
1398 .ops
= &clk_rcg2_ops
,
1402 static const struct freq_tbl ftbl_nss_ubi_clk_src
[] = {
1403 F(19200000, P_XO
, 1, 0, 0),
1404 F(187200000, P_UBI32_PLL
, 8, 0, 0),
1405 F(748800000, P_UBI32_PLL
, 2, 0, 0),
1406 F(1497600000, P_UBI32_PLL
, 1, 0, 0),
1407 F(1689600000, P_UBI32_PLL
, 1, 0, 0),
1411 static struct clk_rcg2 nss_ubi0_clk_src
= {
1412 .cmd_rcgr
= 0x68104,
1413 .freq_tbl
= ftbl_nss_ubi_clk_src
,
1415 .parent_map
= gcc_xo_ubi32_gpll0_gpll2_gpll4_gpll6_map
,
1416 .clkr
.hw
.init
= &(struct clk_init_data
){
1417 .name
= "nss_ubi0_clk_src",
1418 .parent_names
= gcc_xo_ubi32_pll_gpll0_gpll2_gpll4_gpll6
,
1420 .ops
= &clk_rcg2_ops
,
1421 .flags
= CLK_SET_RATE_PARENT
,
1425 static struct clk_regmap_div nss_ubi0_div_clk_src
= {
1430 .hw
.init
= &(struct clk_init_data
){
1431 .name
= "nss_ubi0_div_clk_src",
1432 .parent_names
= (const char *[]){
1436 .ops
= &clk_regmap_div_ro_ops
,
1437 .flags
= CLK_SET_RATE_PARENT
,
1442 static struct clk_rcg2 nss_ubi1_clk_src
= {
1443 .cmd_rcgr
= 0x68124,
1444 .freq_tbl
= ftbl_nss_ubi_clk_src
,
1446 .parent_map
= gcc_xo_ubi32_gpll0_gpll2_gpll4_gpll6_map
,
1447 .clkr
.hw
.init
= &(struct clk_init_data
){
1448 .name
= "nss_ubi1_clk_src",
1449 .parent_names
= gcc_xo_ubi32_pll_gpll0_gpll2_gpll4_gpll6
,
1451 .ops
= &clk_rcg2_ops
,
1452 .flags
= CLK_SET_RATE_PARENT
,
1456 static struct clk_regmap_div nss_ubi1_div_clk_src
= {
1461 .hw
.init
= &(struct clk_init_data
){
1462 .name
= "nss_ubi1_div_clk_src",
1463 .parent_names
= (const char *[]){
1467 .ops
= &clk_regmap_div_ro_ops
,
1468 .flags
= CLK_SET_RATE_PARENT
,
1473 static const struct freq_tbl ftbl_ubi_mpt_clk_src
[] = {
1474 F(19200000, P_XO
, 1, 0, 0),
1475 F(25000000, P_GPLL0_DIV2
, 16, 0, 0),
1479 static struct clk_rcg2 ubi_mpt_clk_src
= {
1480 .cmd_rcgr
= 0x68090,
1481 .freq_tbl
= ftbl_ubi_mpt_clk_src
,
1483 .parent_map
= gcc_xo_gpll0_out_main_div2_map
,
1484 .clkr
.hw
.init
= &(struct clk_init_data
){
1485 .name
= "ubi_mpt_clk_src",
1486 .parent_names
= gcc_xo_gpll0_out_main_div2
,
1488 .ops
= &clk_rcg2_ops
,
1492 static const struct freq_tbl ftbl_nss_imem_clk_src
[] = {
1493 F(19200000, P_XO
, 1, 0, 0),
1494 F(400000000, P_GPLL0
, 2, 0, 0),
1498 static struct clk_rcg2 nss_imem_clk_src
= {
1499 .cmd_rcgr
= 0x68158,
1500 .freq_tbl
= ftbl_nss_imem_clk_src
,
1502 .parent_map
= gcc_xo_gpll0_gpll4_map
,
1503 .clkr
.hw
.init
= &(struct clk_init_data
){
1504 .name
= "nss_imem_clk_src",
1505 .parent_names
= gcc_xo_gpll0_gpll4
,
1507 .ops
= &clk_rcg2_ops
,
1511 static const struct freq_tbl ftbl_nss_ppe_clk_src
[] = {
1512 F(19200000, P_XO
, 1, 0, 0),
1513 F(300000000, P_BIAS_PLL
, 1, 0, 0),
1517 static struct clk_rcg2 nss_ppe_clk_src
= {
1518 .cmd_rcgr
= 0x68080,
1519 .freq_tbl
= ftbl_nss_ppe_clk_src
,
1521 .parent_map
= gcc_xo_bias_gpll0_gpll4_nss_ubi32_map
,
1522 .clkr
.hw
.init
= &(struct clk_init_data
){
1523 .name
= "nss_ppe_clk_src",
1524 .parent_names
= gcc_xo_bias_gpll0_gpll4_nss_ubi32
,
1526 .ops
= &clk_rcg2_ops
,
1530 static struct clk_fixed_factor nss_ppe_cdiv_clk_src
= {
1533 .hw
.init
= &(struct clk_init_data
){
1534 .name
= "nss_ppe_cdiv_clk_src",
1535 .parent_names
= (const char *[]){
1539 .ops
= &clk_fixed_factor_ops
,
1540 .flags
= CLK_SET_RATE_PARENT
,
1544 static const struct freq_tbl ftbl_nss_port1_rx_clk_src
[] = {
1545 F(19200000, P_XO
, 1, 0, 0),
1546 F(25000000, P_UNIPHY0_RX
, 5, 0, 0),
1547 F(125000000, P_UNIPHY0_RX
, 1, 0, 0),
1551 static struct clk_rcg2 nss_port1_rx_clk_src
= {
1552 .cmd_rcgr
= 0x68020,
1553 .freq_tbl
= ftbl_nss_port1_rx_clk_src
,
1555 .parent_map
= gcc_xo_uniphy0_rx_tx_ubi32_bias_map
,
1556 .clkr
.hw
.init
= &(struct clk_init_data
){
1557 .name
= "nss_port1_rx_clk_src",
1558 .parent_names
= gcc_xo_uniphy0_rx_tx_ubi32_bias
,
1560 .ops
= &clk_rcg2_ops
,
1564 static struct clk_regmap_div nss_port1_rx_div_clk_src
= {
1569 .hw
.init
= &(struct clk_init_data
){
1570 .name
= "nss_port1_rx_div_clk_src",
1571 .parent_names
= (const char *[]){
1572 "nss_port1_rx_clk_src"
1575 .ops
= &clk_regmap_div_ops
,
1576 .flags
= CLK_SET_RATE_PARENT
,
1581 static const struct freq_tbl ftbl_nss_port1_tx_clk_src
[] = {
1582 F(19200000, P_XO
, 1, 0, 0),
1583 F(25000000, P_UNIPHY0_TX
, 5, 0, 0),
1584 F(125000000, P_UNIPHY0_TX
, 1, 0, 0),
1588 static struct clk_rcg2 nss_port1_tx_clk_src
= {
1589 .cmd_rcgr
= 0x68028,
1590 .freq_tbl
= ftbl_nss_port1_tx_clk_src
,
1592 .parent_map
= gcc_xo_uniphy0_tx_rx_ubi32_bias_map
,
1593 .clkr
.hw
.init
= &(struct clk_init_data
){
1594 .name
= "nss_port1_tx_clk_src",
1595 .parent_names
= gcc_xo_uniphy0_tx_rx_ubi32_bias
,
1597 .ops
= &clk_rcg2_ops
,
1601 static struct clk_regmap_div nss_port1_tx_div_clk_src
= {
1606 .hw
.init
= &(struct clk_init_data
){
1607 .name
= "nss_port1_tx_div_clk_src",
1608 .parent_names
= (const char *[]){
1609 "nss_port1_tx_clk_src"
1612 .ops
= &clk_regmap_div_ops
,
1613 .flags
= CLK_SET_RATE_PARENT
,
1618 static struct clk_rcg2 nss_port2_rx_clk_src
= {
1619 .cmd_rcgr
= 0x68030,
1620 .freq_tbl
= ftbl_nss_port1_rx_clk_src
,
1622 .parent_map
= gcc_xo_uniphy0_rx_tx_ubi32_bias_map
,
1623 .clkr
.hw
.init
= &(struct clk_init_data
){
1624 .name
= "nss_port2_rx_clk_src",
1625 .parent_names
= gcc_xo_uniphy0_rx_tx_ubi32_bias
,
1627 .ops
= &clk_rcg2_ops
,
1631 static struct clk_regmap_div nss_port2_rx_div_clk_src
= {
1636 .hw
.init
= &(struct clk_init_data
){
1637 .name
= "nss_port2_rx_div_clk_src",
1638 .parent_names
= (const char *[]){
1639 "nss_port2_rx_clk_src"
1642 .ops
= &clk_regmap_div_ops
,
1643 .flags
= CLK_SET_RATE_PARENT
,
1648 static struct clk_rcg2 nss_port2_tx_clk_src
= {
1649 .cmd_rcgr
= 0x68038,
1650 .freq_tbl
= ftbl_nss_port1_tx_clk_src
,
1652 .parent_map
= gcc_xo_uniphy0_tx_rx_ubi32_bias_map
,
1653 .clkr
.hw
.init
= &(struct clk_init_data
){
1654 .name
= "nss_port2_tx_clk_src",
1655 .parent_names
= gcc_xo_uniphy0_tx_rx_ubi32_bias
,
1657 .ops
= &clk_rcg2_ops
,
1661 static struct clk_regmap_div nss_port2_tx_div_clk_src
= {
1666 .hw
.init
= &(struct clk_init_data
){
1667 .name
= "nss_port2_tx_div_clk_src",
1668 .parent_names
= (const char *[]){
1669 "nss_port2_tx_clk_src"
1672 .ops
= &clk_regmap_div_ops
,
1673 .flags
= CLK_SET_RATE_PARENT
,
1678 static struct clk_rcg2 nss_port3_rx_clk_src
= {
1679 .cmd_rcgr
= 0x68040,
1680 .freq_tbl
= ftbl_nss_port1_rx_clk_src
,
1682 .parent_map
= gcc_xo_uniphy0_rx_tx_ubi32_bias_map
,
1683 .clkr
.hw
.init
= &(struct clk_init_data
){
1684 .name
= "nss_port3_rx_clk_src",
1685 .parent_names
= gcc_xo_uniphy0_rx_tx_ubi32_bias
,
1687 .ops
= &clk_rcg2_ops
,
1691 static struct clk_regmap_div nss_port3_rx_div_clk_src
= {
1696 .hw
.init
= &(struct clk_init_data
){
1697 .name
= "nss_port3_rx_div_clk_src",
1698 .parent_names
= (const char *[]){
1699 "nss_port3_rx_clk_src"
1702 .ops
= &clk_regmap_div_ops
,
1703 .flags
= CLK_SET_RATE_PARENT
,
1708 static struct clk_rcg2 nss_port3_tx_clk_src
= {
1709 .cmd_rcgr
= 0x68048,
1710 .freq_tbl
= ftbl_nss_port1_tx_clk_src
,
1712 .parent_map
= gcc_xo_uniphy0_tx_rx_ubi32_bias_map
,
1713 .clkr
.hw
.init
= &(struct clk_init_data
){
1714 .name
= "nss_port3_tx_clk_src",
1715 .parent_names
= gcc_xo_uniphy0_tx_rx_ubi32_bias
,
1717 .ops
= &clk_rcg2_ops
,
1721 static struct clk_regmap_div nss_port3_tx_div_clk_src
= {
1726 .hw
.init
= &(struct clk_init_data
){
1727 .name
= "nss_port3_tx_div_clk_src",
1728 .parent_names
= (const char *[]){
1729 "nss_port3_tx_clk_src"
1732 .ops
= &clk_regmap_div_ops
,
1733 .flags
= CLK_SET_RATE_PARENT
,
1738 static struct clk_rcg2 nss_port4_rx_clk_src
= {
1739 .cmd_rcgr
= 0x68050,
1740 .freq_tbl
= ftbl_nss_port1_rx_clk_src
,
1742 .parent_map
= gcc_xo_uniphy0_rx_tx_ubi32_bias_map
,
1743 .clkr
.hw
.init
= &(struct clk_init_data
){
1744 .name
= "nss_port4_rx_clk_src",
1745 .parent_names
= gcc_xo_uniphy0_rx_tx_ubi32_bias
,
1747 .ops
= &clk_rcg2_ops
,
1751 static struct clk_regmap_div nss_port4_rx_div_clk_src
= {
1756 .hw
.init
= &(struct clk_init_data
){
1757 .name
= "nss_port4_rx_div_clk_src",
1758 .parent_names
= (const char *[]){
1759 "nss_port4_rx_clk_src"
1762 .ops
= &clk_regmap_div_ops
,
1763 .flags
= CLK_SET_RATE_PARENT
,
1768 static struct clk_rcg2 nss_port4_tx_clk_src
= {
1769 .cmd_rcgr
= 0x68058,
1770 .freq_tbl
= ftbl_nss_port1_tx_clk_src
,
1772 .parent_map
= gcc_xo_uniphy0_tx_rx_ubi32_bias_map
,
1773 .clkr
.hw
.init
= &(struct clk_init_data
){
1774 .name
= "nss_port4_tx_clk_src",
1775 .parent_names
= gcc_xo_uniphy0_tx_rx_ubi32_bias
,
1777 .ops
= &clk_rcg2_ops
,
1781 static struct clk_regmap_div nss_port4_tx_div_clk_src
= {
1786 .hw
.init
= &(struct clk_init_data
){
1787 .name
= "nss_port4_tx_div_clk_src",
1788 .parent_names
= (const char *[]){
1789 "nss_port4_tx_clk_src"
1792 .ops
= &clk_regmap_div_ops
,
1793 .flags
= CLK_SET_RATE_PARENT
,
1798 static const struct freq_tbl ftbl_nss_port5_rx_clk_src
[] = {
1799 F(19200000, P_XO
, 1, 0, 0),
1800 F(25000000, P_UNIPHY1_RX
, 12.5, 0, 0),
1801 F(78125000, P_UNIPHY1_RX
, 4, 0, 0),
1802 F(125000000, P_UNIPHY1_RX
, 2.5, 0, 0),
1803 F(156250000, P_UNIPHY1_RX
, 2, 0, 0),
1804 F(312500000, P_UNIPHY1_RX
, 1, 0, 0),
1808 static struct clk_rcg2 nss_port5_rx_clk_src
= {
1809 .cmd_rcgr
= 0x68060,
1810 .freq_tbl
= ftbl_nss_port5_rx_clk_src
,
1812 .parent_map
= gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias_map
,
1813 .clkr
.hw
.init
= &(struct clk_init_data
){
1814 .name
= "nss_port5_rx_clk_src",
1815 .parent_names
= gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias
,
1817 .ops
= &clk_rcg2_ops
,
1821 static struct clk_regmap_div nss_port5_rx_div_clk_src
= {
1826 .hw
.init
= &(struct clk_init_data
){
1827 .name
= "nss_port5_rx_div_clk_src",
1828 .parent_names
= (const char *[]){
1829 "nss_port5_rx_clk_src"
1832 .ops
= &clk_regmap_div_ops
,
1833 .flags
= CLK_SET_RATE_PARENT
,
1838 static const struct freq_tbl ftbl_nss_port5_tx_clk_src
[] = {
1839 F(19200000, P_XO
, 1, 0, 0),
1840 F(25000000, P_UNIPHY1_TX
, 12.5, 0, 0),
1841 F(78125000, P_UNIPHY1_TX
, 4, 0, 0),
1842 F(125000000, P_UNIPHY1_TX
, 2.5, 0, 0),
1843 F(156250000, P_UNIPHY1_TX
, 2, 0, 0),
1844 F(312500000, P_UNIPHY1_TX
, 1, 0, 0),
1848 static struct clk_rcg2 nss_port5_tx_clk_src
= {
1849 .cmd_rcgr
= 0x68068,
1850 .freq_tbl
= ftbl_nss_port5_tx_clk_src
,
1852 .parent_map
= gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias_map
,
1853 .clkr
.hw
.init
= &(struct clk_init_data
){
1854 .name
= "nss_port5_tx_clk_src",
1855 .parent_names
= gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias
,
1857 .ops
= &clk_rcg2_ops
,
1861 static struct clk_regmap_div nss_port5_tx_div_clk_src
= {
1866 .hw
.init
= &(struct clk_init_data
){
1867 .name
= "nss_port5_tx_div_clk_src",
1868 .parent_names
= (const char *[]){
1869 "nss_port5_tx_clk_src"
1872 .ops
= &clk_regmap_div_ops
,
1873 .flags
= CLK_SET_RATE_PARENT
,
1878 static const struct freq_tbl ftbl_nss_port6_rx_clk_src
[] = {
1879 F(19200000, P_XO
, 1, 0, 0),
1880 F(25000000, P_UNIPHY2_RX
, 12.5, 0, 0),
1881 F(78125000, P_UNIPHY2_RX
, 4, 0, 0),
1882 F(125000000, P_UNIPHY2_RX
, 2.5, 0, 0),
1883 F(156250000, P_UNIPHY2_RX
, 2, 0, 0),
1884 F(312500000, P_UNIPHY2_RX
, 1, 0, 0),
1888 static struct clk_rcg2 nss_port6_rx_clk_src
= {
1889 .cmd_rcgr
= 0x68070,
1890 .freq_tbl
= ftbl_nss_port6_rx_clk_src
,
1892 .parent_map
= gcc_xo_uniphy2_rx_tx_ubi32_bias_map
,
1893 .clkr
.hw
.init
= &(struct clk_init_data
){
1894 .name
= "nss_port6_rx_clk_src",
1895 .parent_names
= gcc_xo_uniphy2_rx_tx_ubi32_bias
,
1897 .ops
= &clk_rcg2_ops
,
1901 static struct clk_regmap_div nss_port6_rx_div_clk_src
= {
1906 .hw
.init
= &(struct clk_init_data
){
1907 .name
= "nss_port6_rx_div_clk_src",
1908 .parent_names
= (const char *[]){
1909 "nss_port6_rx_clk_src"
1912 .ops
= &clk_regmap_div_ops
,
1913 .flags
= CLK_SET_RATE_PARENT
,
1918 static const struct freq_tbl ftbl_nss_port6_tx_clk_src
[] = {
1919 F(19200000, P_XO
, 1, 0, 0),
1920 F(25000000, P_UNIPHY2_TX
, 12.5, 0, 0),
1921 F(78125000, P_UNIPHY2_TX
, 4, 0, 0),
1922 F(125000000, P_UNIPHY2_TX
, 2.5, 0, 0),
1923 F(156250000, P_UNIPHY2_TX
, 2, 0, 0),
1924 F(312500000, P_UNIPHY2_TX
, 1, 0, 0),
1928 static struct clk_rcg2 nss_port6_tx_clk_src
= {
1929 .cmd_rcgr
= 0x68078,
1930 .freq_tbl
= ftbl_nss_port6_tx_clk_src
,
1932 .parent_map
= gcc_xo_uniphy2_tx_rx_ubi32_bias_map
,
1933 .clkr
.hw
.init
= &(struct clk_init_data
){
1934 .name
= "nss_port6_tx_clk_src",
1935 .parent_names
= gcc_xo_uniphy2_tx_rx_ubi32_bias
,
1937 .ops
= &clk_rcg2_ops
,
1941 static struct clk_regmap_div nss_port6_tx_div_clk_src
= {
1946 .hw
.init
= &(struct clk_init_data
){
1947 .name
= "nss_port6_tx_div_clk_src",
1948 .parent_names
= (const char *[]){
1949 "nss_port6_tx_clk_src"
1952 .ops
= &clk_regmap_div_ops
,
1953 .flags
= CLK_SET_RATE_PARENT
,
1958 static struct freq_tbl ftbl_crypto_clk_src
[] = {
1959 F(40000000, P_GPLL0_DIV2
, 10, 0, 0),
1960 F(80000000, P_GPLL0
, 10, 0, 0),
1961 F(100000000, P_GPLL0
, 8, 0, 0),
1962 F(160000000, P_GPLL0
, 5, 0, 0),
1966 static struct clk_rcg2 crypto_clk_src
= {
1967 .cmd_rcgr
= 0x16004,
1968 .freq_tbl
= ftbl_crypto_clk_src
,
1970 .parent_map
= gcc_xo_gpll0_gpll0_out_main_div2_map
,
1971 .clkr
.hw
.init
= &(struct clk_init_data
){
1972 .name
= "crypto_clk_src",
1973 .parent_names
= gcc_xo_gpll0_gpll0_out_main_div2
,
1975 .ops
= &clk_rcg2_ops
,
1979 static struct freq_tbl ftbl_gp_clk_src
[] = {
1980 F(19200000, P_XO
, 1, 0, 0),
1984 static struct clk_rcg2 gp1_clk_src
= {
1985 .cmd_rcgr
= 0x08004,
1986 .freq_tbl
= ftbl_gp_clk_src
,
1989 .parent_map
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk_map
,
1990 .clkr
.hw
.init
= &(struct clk_init_data
){
1991 .name
= "gp1_clk_src",
1992 .parent_names
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk
,
1994 .ops
= &clk_rcg2_ops
,
1998 static struct clk_rcg2 gp2_clk_src
= {
1999 .cmd_rcgr
= 0x09004,
2000 .freq_tbl
= ftbl_gp_clk_src
,
2003 .parent_map
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk_map
,
2004 .clkr
.hw
.init
= &(struct clk_init_data
){
2005 .name
= "gp2_clk_src",
2006 .parent_names
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk
,
2008 .ops
= &clk_rcg2_ops
,
2012 static struct clk_rcg2 gp3_clk_src
= {
2013 .cmd_rcgr
= 0x0a004,
2014 .freq_tbl
= ftbl_gp_clk_src
,
2017 .parent_map
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk_map
,
2018 .clkr
.hw
.init
= &(struct clk_init_data
){
2019 .name
= "gp3_clk_src",
2020 .parent_names
= gcc_xo_gpll0_gpll6_gpll0_sleep_clk
,
2022 .ops
= &clk_rcg2_ops
,
2026 static struct clk_branch gcc_blsp1_ahb_clk
= {
2027 .halt_reg
= 0x01008,
2029 .enable_reg
= 0x01008,
2030 .enable_mask
= BIT(0),
2031 .hw
.init
= &(struct clk_init_data
){
2032 .name
= "gcc_blsp1_ahb_clk",
2033 .parent_names
= (const char *[]){
2037 .flags
= CLK_SET_RATE_PARENT
,
2038 .ops
= &clk_branch2_ops
,
2043 static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk
= {
2044 .halt_reg
= 0x02008,
2046 .enable_reg
= 0x02008,
2047 .enable_mask
= BIT(0),
2048 .hw
.init
= &(struct clk_init_data
){
2049 .name
= "gcc_blsp1_qup1_i2c_apps_clk",
2050 .parent_names
= (const char *[]){
2051 "blsp1_qup1_i2c_apps_clk_src"
2054 .flags
= CLK_SET_RATE_PARENT
,
2055 .ops
= &clk_branch2_ops
,
2060 static struct clk_branch gcc_blsp1_qup1_spi_apps_clk
= {
2061 .halt_reg
= 0x02004,
2063 .enable_reg
= 0x02004,
2064 .enable_mask
= BIT(0),
2065 .hw
.init
= &(struct clk_init_data
){
2066 .name
= "gcc_blsp1_qup1_spi_apps_clk",
2067 .parent_names
= (const char *[]){
2068 "blsp1_qup1_spi_apps_clk_src"
2071 .flags
= CLK_SET_RATE_PARENT
,
2072 .ops
= &clk_branch2_ops
,
2077 static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk
= {
2078 .halt_reg
= 0x03010,
2080 .enable_reg
= 0x03010,
2081 .enable_mask
= BIT(0),
2082 .hw
.init
= &(struct clk_init_data
){
2083 .name
= "gcc_blsp1_qup2_i2c_apps_clk",
2084 .parent_names
= (const char *[]){
2085 "blsp1_qup2_i2c_apps_clk_src"
2088 .flags
= CLK_SET_RATE_PARENT
,
2089 .ops
= &clk_branch2_ops
,
2094 static struct clk_branch gcc_blsp1_qup2_spi_apps_clk
= {
2095 .halt_reg
= 0x0300c,
2097 .enable_reg
= 0x0300c,
2098 .enable_mask
= BIT(0),
2099 .hw
.init
= &(struct clk_init_data
){
2100 .name
= "gcc_blsp1_qup2_spi_apps_clk",
2101 .parent_names
= (const char *[]){
2102 "blsp1_qup2_spi_apps_clk_src"
2105 .flags
= CLK_SET_RATE_PARENT
,
2106 .ops
= &clk_branch2_ops
,
2111 static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk
= {
2112 .halt_reg
= 0x04010,
2114 .enable_reg
= 0x04010,
2115 .enable_mask
= BIT(0),
2116 .hw
.init
= &(struct clk_init_data
){
2117 .name
= "gcc_blsp1_qup3_i2c_apps_clk",
2118 .parent_names
= (const char *[]){
2119 "blsp1_qup3_i2c_apps_clk_src"
2122 .flags
= CLK_SET_RATE_PARENT
,
2123 .ops
= &clk_branch2_ops
,
2128 static struct clk_branch gcc_blsp1_qup3_spi_apps_clk
= {
2129 .halt_reg
= 0x0400c,
2131 .enable_reg
= 0x0400c,
2132 .enable_mask
= BIT(0),
2133 .hw
.init
= &(struct clk_init_data
){
2134 .name
= "gcc_blsp1_qup3_spi_apps_clk",
2135 .parent_names
= (const char *[]){
2136 "blsp1_qup3_spi_apps_clk_src"
2139 .flags
= CLK_SET_RATE_PARENT
,
2140 .ops
= &clk_branch2_ops
,
2145 static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk
= {
2146 .halt_reg
= 0x05010,
2148 .enable_reg
= 0x05010,
2149 .enable_mask
= BIT(0),
2150 .hw
.init
= &(struct clk_init_data
){
2151 .name
= "gcc_blsp1_qup4_i2c_apps_clk",
2152 .parent_names
= (const char *[]){
2153 "blsp1_qup4_i2c_apps_clk_src"
2156 .flags
= CLK_SET_RATE_PARENT
,
2157 .ops
= &clk_branch2_ops
,
2162 static struct clk_branch gcc_blsp1_qup4_spi_apps_clk
= {
2163 .halt_reg
= 0x0500c,
2165 .enable_reg
= 0x0500c,
2166 .enable_mask
= BIT(0),
2167 .hw
.init
= &(struct clk_init_data
){
2168 .name
= "gcc_blsp1_qup4_spi_apps_clk",
2169 .parent_names
= (const char *[]){
2170 "blsp1_qup4_spi_apps_clk_src"
2173 .flags
= CLK_SET_RATE_PARENT
,
2174 .ops
= &clk_branch2_ops
,
2179 static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk
= {
2180 .halt_reg
= 0x06010,
2182 .enable_reg
= 0x06010,
2183 .enable_mask
= BIT(0),
2184 .hw
.init
= &(struct clk_init_data
){
2185 .name
= "gcc_blsp1_qup5_i2c_apps_clk",
2186 .parent_names
= (const char *[]){
2187 "blsp1_qup5_i2c_apps_clk_src"
2190 .flags
= CLK_SET_RATE_PARENT
,
2191 .ops
= &clk_branch2_ops
,
2196 static struct clk_branch gcc_blsp1_qup5_spi_apps_clk
= {
2197 .halt_reg
= 0x0600c,
2199 .enable_reg
= 0x0600c,
2200 .enable_mask
= BIT(0),
2201 .hw
.init
= &(struct clk_init_data
){
2202 .name
= "gcc_blsp1_qup5_spi_apps_clk",
2203 .parent_names
= (const char *[]){
2204 "blsp1_qup5_spi_apps_clk_src"
2207 .flags
= CLK_SET_RATE_PARENT
,
2208 .ops
= &clk_branch2_ops
,
2213 static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk
= {
2214 .halt_reg
= 0x07010,
2216 .enable_reg
= 0x07010,
2217 .enable_mask
= BIT(0),
2218 .hw
.init
= &(struct clk_init_data
){
2219 .name
= "gcc_blsp1_qup6_i2c_apps_clk",
2220 .parent_names
= (const char *[]){
2221 "blsp1_qup6_i2c_apps_clk_src"
2224 .flags
= CLK_SET_RATE_PARENT
,
2225 .ops
= &clk_branch2_ops
,
2230 static struct clk_branch gcc_blsp1_qup6_spi_apps_clk
= {
2231 .halt_reg
= 0x0700c,
2233 .enable_reg
= 0x0700c,
2234 .enable_mask
= BIT(0),
2235 .hw
.init
= &(struct clk_init_data
){
2236 .name
= "gcc_blsp1_qup6_spi_apps_clk",
2237 .parent_names
= (const char *[]){
2238 "blsp1_qup6_spi_apps_clk_src"
2241 .flags
= CLK_SET_RATE_PARENT
,
2242 .ops
= &clk_branch2_ops
,
2247 static struct clk_branch gcc_blsp1_uart1_apps_clk
= {
2248 .halt_reg
= 0x0203c,
2250 .enable_reg
= 0x0203c,
2251 .enable_mask
= BIT(0),
2252 .hw
.init
= &(struct clk_init_data
){
2253 .name
= "gcc_blsp1_uart1_apps_clk",
2254 .parent_names
= (const char *[]){
2255 "blsp1_uart1_apps_clk_src"
2258 .flags
= CLK_SET_RATE_PARENT
,
2259 .ops
= &clk_branch2_ops
,
2264 static struct clk_branch gcc_blsp1_uart2_apps_clk
= {
2265 .halt_reg
= 0x0302c,
2267 .enable_reg
= 0x0302c,
2268 .enable_mask
= BIT(0),
2269 .hw
.init
= &(struct clk_init_data
){
2270 .name
= "gcc_blsp1_uart2_apps_clk",
2271 .parent_names
= (const char *[]){
2272 "blsp1_uart2_apps_clk_src"
2275 .flags
= CLK_SET_RATE_PARENT
,
2276 .ops
= &clk_branch2_ops
,
2281 static struct clk_branch gcc_blsp1_uart3_apps_clk
= {
2282 .halt_reg
= 0x0402c,
2284 .enable_reg
= 0x0402c,
2285 .enable_mask
= BIT(0),
2286 .hw
.init
= &(struct clk_init_data
){
2287 .name
= "gcc_blsp1_uart3_apps_clk",
2288 .parent_names
= (const char *[]){
2289 "blsp1_uart3_apps_clk_src"
2292 .flags
= CLK_SET_RATE_PARENT
,
2293 .ops
= &clk_branch2_ops
,
2298 static struct clk_branch gcc_blsp1_uart4_apps_clk
= {
2299 .halt_reg
= 0x0502c,
2301 .enable_reg
= 0x0502c,
2302 .enable_mask
= BIT(0),
2303 .hw
.init
= &(struct clk_init_data
){
2304 .name
= "gcc_blsp1_uart4_apps_clk",
2305 .parent_names
= (const char *[]){
2306 "blsp1_uart4_apps_clk_src"
2309 .flags
= CLK_SET_RATE_PARENT
,
2310 .ops
= &clk_branch2_ops
,
2315 static struct clk_branch gcc_blsp1_uart5_apps_clk
= {
2316 .halt_reg
= 0x0602c,
2318 .enable_reg
= 0x0602c,
2319 .enable_mask
= BIT(0),
2320 .hw
.init
= &(struct clk_init_data
){
2321 .name
= "gcc_blsp1_uart5_apps_clk",
2322 .parent_names
= (const char *[]){
2323 "blsp1_uart5_apps_clk_src"
2326 .flags
= CLK_SET_RATE_PARENT
,
2327 .ops
= &clk_branch2_ops
,
2332 static struct clk_branch gcc_blsp1_uart6_apps_clk
= {
2333 .halt_reg
= 0x0702c,
2335 .enable_reg
= 0x0702c,
2336 .enable_mask
= BIT(0),
2337 .hw
.init
= &(struct clk_init_data
){
2338 .name
= "gcc_blsp1_uart6_apps_clk",
2339 .parent_names
= (const char *[]){
2340 "blsp1_uart6_apps_clk_src"
2343 .flags
= CLK_SET_RATE_PARENT
,
2344 .ops
= &clk_branch2_ops
,
2349 static struct clk_branch gcc_prng_ahb_clk
= {
2350 .halt_reg
= 0x13004,
2351 .halt_check
= BRANCH_HALT_VOTED
,
2353 .enable_reg
= 0x0b004,
2354 .enable_mask
= BIT(8),
2355 .hw
.init
= &(struct clk_init_data
){
2356 .name
= "gcc_prng_ahb_clk",
2357 .parent_names
= (const char *[]){
2361 .flags
= CLK_SET_RATE_PARENT
,
2362 .ops
= &clk_branch2_ops
,
2367 static struct clk_branch gcc_qpic_ahb_clk
= {
2368 .halt_reg
= 0x57024,
2370 .enable_reg
= 0x57024,
2371 .enable_mask
= BIT(0),
2372 .hw
.init
= &(struct clk_init_data
){
2373 .name
= "gcc_qpic_ahb_clk",
2374 .parent_names
= (const char *[]){
2378 .flags
= CLK_SET_RATE_PARENT
,
2379 .ops
= &clk_branch2_ops
,
2384 static struct clk_branch gcc_qpic_clk
= {
2385 .halt_reg
= 0x57020,
2387 .enable_reg
= 0x57020,
2388 .enable_mask
= BIT(0),
2389 .hw
.init
= &(struct clk_init_data
){
2390 .name
= "gcc_qpic_clk",
2391 .parent_names
= (const char *[]){
2395 .flags
= CLK_SET_RATE_PARENT
,
2396 .ops
= &clk_branch2_ops
,
2401 static struct clk_branch gcc_pcie0_ahb_clk
= {
2402 .halt_reg
= 0x75010,
2404 .enable_reg
= 0x75010,
2405 .enable_mask
= BIT(0),
2406 .hw
.init
= &(struct clk_init_data
){
2407 .name
= "gcc_pcie0_ahb_clk",
2408 .parent_names
= (const char *[]){
2412 .flags
= CLK_SET_RATE_PARENT
,
2413 .ops
= &clk_branch2_ops
,
2418 static struct clk_branch gcc_pcie0_aux_clk
= {
2419 .halt_reg
= 0x75014,
2421 .enable_reg
= 0x75014,
2422 .enable_mask
= BIT(0),
2423 .hw
.init
= &(struct clk_init_data
){
2424 .name
= "gcc_pcie0_aux_clk",
2425 .parent_names
= (const char *[]){
2429 .flags
= CLK_SET_RATE_PARENT
,
2430 .ops
= &clk_branch2_ops
,
2435 static struct clk_branch gcc_pcie0_axi_m_clk
= {
2436 .halt_reg
= 0x75008,
2438 .enable_reg
= 0x75008,
2439 .enable_mask
= BIT(0),
2440 .hw
.init
= &(struct clk_init_data
){
2441 .name
= "gcc_pcie0_axi_m_clk",
2442 .parent_names
= (const char *[]){
2446 .flags
= CLK_SET_RATE_PARENT
,
2447 .ops
= &clk_branch2_ops
,
2452 static struct clk_branch gcc_pcie0_axi_s_clk
= {
2453 .halt_reg
= 0x7500c,
2455 .enable_reg
= 0x7500c,
2456 .enable_mask
= BIT(0),
2457 .hw
.init
= &(struct clk_init_data
){
2458 .name
= "gcc_pcie0_axi_s_clk",
2459 .parent_names
= (const char *[]){
2463 .flags
= CLK_SET_RATE_PARENT
,
2464 .ops
= &clk_branch2_ops
,
2469 static struct clk_branch gcc_pcie0_pipe_clk
= {
2470 .halt_reg
= 0x75018,
2471 .halt_check
= BRANCH_HALT_DELAY
,
2473 .enable_reg
= 0x75018,
2474 .enable_mask
= BIT(0),
2475 .hw
.init
= &(struct clk_init_data
){
2476 .name
= "gcc_pcie0_pipe_clk",
2477 .parent_names
= (const char *[]){
2478 "pcie0_pipe_clk_src"
2481 .flags
= CLK_SET_RATE_PARENT
,
2482 .ops
= &clk_branch2_ops
,
2487 static struct clk_branch gcc_sys_noc_pcie0_axi_clk
= {
2488 .halt_reg
= 0x26048,
2490 .enable_reg
= 0x26048,
2491 .enable_mask
= BIT(0),
2492 .hw
.init
= &(struct clk_init_data
){
2493 .name
= "gcc_sys_noc_pcie0_axi_clk",
2494 .parent_names
= (const char *[]){
2498 .flags
= CLK_SET_RATE_PARENT
,
2499 .ops
= &clk_branch2_ops
,
2504 static struct clk_branch gcc_pcie1_ahb_clk
= {
2505 .halt_reg
= 0x76010,
2507 .enable_reg
= 0x76010,
2508 .enable_mask
= BIT(0),
2509 .hw
.init
= &(struct clk_init_data
){
2510 .name
= "gcc_pcie1_ahb_clk",
2511 .parent_names
= (const char *[]){
2515 .flags
= CLK_SET_RATE_PARENT
,
2516 .ops
= &clk_branch2_ops
,
2521 static struct clk_branch gcc_pcie1_aux_clk
= {
2522 .halt_reg
= 0x76014,
2524 .enable_reg
= 0x76014,
2525 .enable_mask
= BIT(0),
2526 .hw
.init
= &(struct clk_init_data
){
2527 .name
= "gcc_pcie1_aux_clk",
2528 .parent_names
= (const char *[]){
2532 .flags
= CLK_SET_RATE_PARENT
,
2533 .ops
= &clk_branch2_ops
,
2538 static struct clk_branch gcc_pcie1_axi_m_clk
= {
2539 .halt_reg
= 0x76008,
2541 .enable_reg
= 0x76008,
2542 .enable_mask
= BIT(0),
2543 .hw
.init
= &(struct clk_init_data
){
2544 .name
= "gcc_pcie1_axi_m_clk",
2545 .parent_names
= (const char *[]){
2549 .flags
= CLK_SET_RATE_PARENT
,
2550 .ops
= &clk_branch2_ops
,
2555 static struct clk_branch gcc_pcie1_axi_s_clk
= {
2556 .halt_reg
= 0x7600c,
2558 .enable_reg
= 0x7600c,
2559 .enable_mask
= BIT(0),
2560 .hw
.init
= &(struct clk_init_data
){
2561 .name
= "gcc_pcie1_axi_s_clk",
2562 .parent_names
= (const char *[]){
2566 .flags
= CLK_SET_RATE_PARENT
,
2567 .ops
= &clk_branch2_ops
,
2572 static struct clk_branch gcc_pcie1_pipe_clk
= {
2573 .halt_reg
= 0x76018,
2574 .halt_check
= BRANCH_HALT_DELAY
,
2576 .enable_reg
= 0x76018,
2577 .enable_mask
= BIT(0),
2578 .hw
.init
= &(struct clk_init_data
){
2579 .name
= "gcc_pcie1_pipe_clk",
2580 .parent_names
= (const char *[]){
2581 "pcie1_pipe_clk_src"
2584 .flags
= CLK_SET_RATE_PARENT
,
2585 .ops
= &clk_branch2_ops
,
2590 static struct clk_branch gcc_sys_noc_pcie1_axi_clk
= {
2591 .halt_reg
= 0x2604c,
2593 .enable_reg
= 0x2604c,
2594 .enable_mask
= BIT(0),
2595 .hw
.init
= &(struct clk_init_data
){
2596 .name
= "gcc_sys_noc_pcie1_axi_clk",
2597 .parent_names
= (const char *[]){
2601 .flags
= CLK_SET_RATE_PARENT
,
2602 .ops
= &clk_branch2_ops
,
2607 static struct clk_branch gcc_usb0_aux_clk
= {
2608 .halt_reg
= 0x3e044,
2610 .enable_reg
= 0x3e044,
2611 .enable_mask
= BIT(0),
2612 .hw
.init
= &(struct clk_init_data
){
2613 .name
= "gcc_usb0_aux_clk",
2614 .parent_names
= (const char *[]){
2618 .flags
= CLK_SET_RATE_PARENT
,
2619 .ops
= &clk_branch2_ops
,
2624 static struct clk_branch gcc_sys_noc_usb0_axi_clk
= {
2625 .halt_reg
= 0x26040,
2627 .enable_reg
= 0x26040,
2628 .enable_mask
= BIT(0),
2629 .hw
.init
= &(struct clk_init_data
){
2630 .name
= "gcc_sys_noc_usb0_axi_clk",
2631 .parent_names
= (const char *[]){
2632 "usb0_master_clk_src"
2635 .flags
= CLK_SET_RATE_PARENT
,
2636 .ops
= &clk_branch2_ops
,
2641 static struct clk_branch gcc_usb0_master_clk
= {
2642 .halt_reg
= 0x3e000,
2644 .enable_reg
= 0x3e000,
2645 .enable_mask
= BIT(0),
2646 .hw
.init
= &(struct clk_init_data
){
2647 .name
= "gcc_usb0_master_clk",
2648 .parent_names
= (const char *[]){
2649 "usb0_master_clk_src"
2652 .flags
= CLK_SET_RATE_PARENT
,
2653 .ops
= &clk_branch2_ops
,
2658 static struct clk_branch gcc_usb0_mock_utmi_clk
= {
2659 .halt_reg
= 0x3e008,
2661 .enable_reg
= 0x3e008,
2662 .enable_mask
= BIT(0),
2663 .hw
.init
= &(struct clk_init_data
){
2664 .name
= "gcc_usb0_mock_utmi_clk",
2665 .parent_names
= (const char *[]){
2666 "usb0_mock_utmi_clk_src"
2669 .flags
= CLK_SET_RATE_PARENT
,
2670 .ops
= &clk_branch2_ops
,
2675 static struct clk_branch gcc_usb0_phy_cfg_ahb_clk
= {
2676 .halt_reg
= 0x3e080,
2678 .enable_reg
= 0x3e080,
2679 .enable_mask
= BIT(0),
2680 .hw
.init
= &(struct clk_init_data
){
2681 .name
= "gcc_usb0_phy_cfg_ahb_clk",
2682 .parent_names
= (const char *[]){
2686 .flags
= CLK_SET_RATE_PARENT
,
2687 .ops
= &clk_branch2_ops
,
2692 static struct clk_branch gcc_usb0_pipe_clk
= {
2693 .halt_reg
= 0x3e040,
2694 .halt_check
= BRANCH_HALT_DELAY
,
2696 .enable_reg
= 0x3e040,
2697 .enable_mask
= BIT(0),
2698 .hw
.init
= &(struct clk_init_data
){
2699 .name
= "gcc_usb0_pipe_clk",
2700 .parent_names
= (const char *[]){
2704 .flags
= CLK_SET_RATE_PARENT
,
2705 .ops
= &clk_branch2_ops
,
2710 static struct clk_branch gcc_usb0_sleep_clk
= {
2711 .halt_reg
= 0x3e004,
2713 .enable_reg
= 0x3e004,
2714 .enable_mask
= BIT(0),
2715 .hw
.init
= &(struct clk_init_data
){
2716 .name
= "gcc_usb0_sleep_clk",
2717 .parent_names
= (const char *[]){
2721 .flags
= CLK_SET_RATE_PARENT
,
2722 .ops
= &clk_branch2_ops
,
2727 static struct clk_branch gcc_usb1_aux_clk
= {
2728 .halt_reg
= 0x3f044,
2730 .enable_reg
= 0x3f044,
2731 .enable_mask
= BIT(0),
2732 .hw
.init
= &(struct clk_init_data
){
2733 .name
= "gcc_usb1_aux_clk",
2734 .parent_names
= (const char *[]){
2738 .flags
= CLK_SET_RATE_PARENT
,
2739 .ops
= &clk_branch2_ops
,
2744 static struct clk_branch gcc_sys_noc_usb1_axi_clk
= {
2745 .halt_reg
= 0x26044,
2747 .enable_reg
= 0x26044,
2748 .enable_mask
= BIT(0),
2749 .hw
.init
= &(struct clk_init_data
){
2750 .name
= "gcc_sys_noc_usb1_axi_clk",
2751 .parent_names
= (const char *[]){
2752 "usb1_master_clk_src"
2755 .flags
= CLK_SET_RATE_PARENT
,
2756 .ops
= &clk_branch2_ops
,
2761 static struct clk_branch gcc_usb1_master_clk
= {
2762 .halt_reg
= 0x3f000,
2764 .enable_reg
= 0x3f000,
2765 .enable_mask
= BIT(0),
2766 .hw
.init
= &(struct clk_init_data
){
2767 .name
= "gcc_usb1_master_clk",
2768 .parent_names
= (const char *[]){
2769 "usb1_master_clk_src"
2772 .flags
= CLK_SET_RATE_PARENT
,
2773 .ops
= &clk_branch2_ops
,
2778 static struct clk_branch gcc_usb1_mock_utmi_clk
= {
2779 .halt_reg
= 0x3f008,
2781 .enable_reg
= 0x3f008,
2782 .enable_mask
= BIT(0),
2783 .hw
.init
= &(struct clk_init_data
){
2784 .name
= "gcc_usb1_mock_utmi_clk",
2785 .parent_names
= (const char *[]){
2786 "usb1_mock_utmi_clk_src"
2789 .flags
= CLK_SET_RATE_PARENT
,
2790 .ops
= &clk_branch2_ops
,
2795 static struct clk_branch gcc_usb1_phy_cfg_ahb_clk
= {
2796 .halt_reg
= 0x3f080,
2798 .enable_reg
= 0x3f080,
2799 .enable_mask
= BIT(0),
2800 .hw
.init
= &(struct clk_init_data
){
2801 .name
= "gcc_usb1_phy_cfg_ahb_clk",
2802 .parent_names
= (const char *[]){
2806 .flags
= CLK_SET_RATE_PARENT
,
2807 .ops
= &clk_branch2_ops
,
2812 static struct clk_branch gcc_usb1_pipe_clk
= {
2813 .halt_reg
= 0x3f040,
2814 .halt_check
= BRANCH_HALT_DELAY
,
2816 .enable_reg
= 0x3f040,
2817 .enable_mask
= BIT(0),
2818 .hw
.init
= &(struct clk_init_data
){
2819 .name
= "gcc_usb1_pipe_clk",
2820 .parent_names
= (const char *[]){
2824 .flags
= CLK_SET_RATE_PARENT
,
2825 .ops
= &clk_branch2_ops
,
2830 static struct clk_branch gcc_usb1_sleep_clk
= {
2831 .halt_reg
= 0x3f004,
2833 .enable_reg
= 0x3f004,
2834 .enable_mask
= BIT(0),
2835 .hw
.init
= &(struct clk_init_data
){
2836 .name
= "gcc_usb1_sleep_clk",
2837 .parent_names
= (const char *[]){
2841 .flags
= CLK_SET_RATE_PARENT
,
2842 .ops
= &clk_branch2_ops
,
2847 static struct clk_branch gcc_sdcc1_ahb_clk
= {
2848 .halt_reg
= 0x4201c,
2850 .enable_reg
= 0x4201c,
2851 .enable_mask
= BIT(0),
2852 .hw
.init
= &(struct clk_init_data
){
2853 .name
= "gcc_sdcc1_ahb_clk",
2854 .parent_names
= (const char *[]){
2858 .flags
= CLK_SET_RATE_PARENT
,
2859 .ops
= &clk_branch2_ops
,
2864 static struct clk_branch gcc_sdcc1_apps_clk
= {
2865 .halt_reg
= 0x42018,
2867 .enable_reg
= 0x42018,
2868 .enable_mask
= BIT(0),
2869 .hw
.init
= &(struct clk_init_data
){
2870 .name
= "gcc_sdcc1_apps_clk",
2871 .parent_names
= (const char *[]){
2872 "sdcc1_apps_clk_src"
2875 .flags
= CLK_SET_RATE_PARENT
,
2876 .ops
= &clk_branch2_ops
,
2881 static struct clk_branch gcc_sdcc1_ice_core_clk
= {
2882 .halt_reg
= 0x5d014,
2884 .enable_reg
= 0x5d014,
2885 .enable_mask
= BIT(0),
2886 .hw
.init
= &(struct clk_init_data
){
2887 .name
= "gcc_sdcc1_ice_core_clk",
2888 .parent_names
= (const char *[]){
2889 "sdcc1_ice_core_clk_src"
2892 .flags
= CLK_SET_RATE_PARENT
,
2893 .ops
= &clk_branch2_ops
,
2898 static struct clk_branch gcc_sdcc2_ahb_clk
= {
2899 .halt_reg
= 0x4301c,
2901 .enable_reg
= 0x4301c,
2902 .enable_mask
= BIT(0),
2903 .hw
.init
= &(struct clk_init_data
){
2904 .name
= "gcc_sdcc2_ahb_clk",
2905 .parent_names
= (const char *[]){
2909 .flags
= CLK_SET_RATE_PARENT
,
2910 .ops
= &clk_branch2_ops
,
2915 static struct clk_branch gcc_sdcc2_apps_clk
= {
2916 .halt_reg
= 0x43018,
2918 .enable_reg
= 0x43018,
2919 .enable_mask
= BIT(0),
2920 .hw
.init
= &(struct clk_init_data
){
2921 .name
= "gcc_sdcc2_apps_clk",
2922 .parent_names
= (const char *[]){
2923 "sdcc2_apps_clk_src"
2926 .flags
= CLK_SET_RATE_PARENT
,
2927 .ops
= &clk_branch2_ops
,
2932 static struct clk_branch gcc_mem_noc_nss_axi_clk
= {
2933 .halt_reg
= 0x1d03c,
2935 .enable_reg
= 0x1d03c,
2936 .enable_mask
= BIT(0),
2937 .hw
.init
= &(struct clk_init_data
){
2938 .name
= "gcc_mem_noc_nss_axi_clk",
2939 .parent_names
= (const char *[]){
2943 .flags
= CLK_SET_RATE_PARENT
,
2944 .ops
= &clk_branch2_ops
,
2949 static struct clk_branch gcc_nss_ce_apb_clk
= {
2950 .halt_reg
= 0x68174,
2952 .enable_reg
= 0x68174,
2953 .enable_mask
= BIT(0),
2954 .hw
.init
= &(struct clk_init_data
){
2955 .name
= "gcc_nss_ce_apb_clk",
2956 .parent_names
= (const char *[]){
2960 .flags
= CLK_SET_RATE_PARENT
,
2961 .ops
= &clk_branch2_ops
,
2966 static struct clk_branch gcc_nss_ce_axi_clk
= {
2967 .halt_reg
= 0x68170,
2969 .enable_reg
= 0x68170,
2970 .enable_mask
= BIT(0),
2971 .hw
.init
= &(struct clk_init_data
){
2972 .name
= "gcc_nss_ce_axi_clk",
2973 .parent_names
= (const char *[]){
2977 .flags
= CLK_SET_RATE_PARENT
,
2978 .ops
= &clk_branch2_ops
,
2983 static struct clk_branch gcc_nss_cfg_clk
= {
2984 .halt_reg
= 0x68160,
2986 .enable_reg
= 0x68160,
2987 .enable_mask
= BIT(0),
2988 .hw
.init
= &(struct clk_init_data
){
2989 .name
= "gcc_nss_cfg_clk",
2990 .parent_names
= (const char *[]){
2994 .flags
= CLK_SET_RATE_PARENT
,
2995 .ops
= &clk_branch2_ops
,
3000 static struct clk_branch gcc_nss_crypto_clk
= {
3001 .halt_reg
= 0x68164,
3003 .enable_reg
= 0x68164,
3004 .enable_mask
= BIT(0),
3005 .hw
.init
= &(struct clk_init_data
){
3006 .name
= "gcc_nss_crypto_clk",
3007 .parent_names
= (const char *[]){
3008 "nss_crypto_clk_src"
3011 .flags
= CLK_SET_RATE_PARENT
,
3012 .ops
= &clk_branch2_ops
,
3017 static struct clk_branch gcc_nss_csr_clk
= {
3018 .halt_reg
= 0x68318,
3020 .enable_reg
= 0x68318,
3021 .enable_mask
= BIT(0),
3022 .hw
.init
= &(struct clk_init_data
){
3023 .name
= "gcc_nss_csr_clk",
3024 .parent_names
= (const char *[]){
3028 .flags
= CLK_SET_RATE_PARENT
,
3029 .ops
= &clk_branch2_ops
,
3034 static struct clk_branch gcc_nss_edma_cfg_clk
= {
3035 .halt_reg
= 0x6819c,
3037 .enable_reg
= 0x6819c,
3038 .enable_mask
= BIT(0),
3039 .hw
.init
= &(struct clk_init_data
){
3040 .name
= "gcc_nss_edma_cfg_clk",
3041 .parent_names
= (const char *[]){
3045 .flags
= CLK_SET_RATE_PARENT
,
3046 .ops
= &clk_branch2_ops
,
3051 static struct clk_branch gcc_nss_edma_clk
= {
3052 .halt_reg
= 0x68198,
3054 .enable_reg
= 0x68198,
3055 .enable_mask
= BIT(0),
3056 .hw
.init
= &(struct clk_init_data
){
3057 .name
= "gcc_nss_edma_clk",
3058 .parent_names
= (const char *[]){
3062 .flags
= CLK_SET_RATE_PARENT
,
3063 .ops
= &clk_branch2_ops
,
3068 static struct clk_branch gcc_nss_imem_clk
= {
3069 .halt_reg
= 0x68178,
3071 .enable_reg
= 0x68178,
3072 .enable_mask
= BIT(0),
3073 .hw
.init
= &(struct clk_init_data
){
3074 .name
= "gcc_nss_imem_clk",
3075 .parent_names
= (const char *[]){
3079 .flags
= CLK_SET_RATE_PARENT
,
3080 .ops
= &clk_branch2_ops
,
3085 static struct clk_branch gcc_nss_noc_clk
= {
3086 .halt_reg
= 0x68168,
3088 .enable_reg
= 0x68168,
3089 .enable_mask
= BIT(0),
3090 .hw
.init
= &(struct clk_init_data
){
3091 .name
= "gcc_nss_noc_clk",
3092 .parent_names
= (const char *[]){
3096 .flags
= CLK_SET_RATE_PARENT
,
3097 .ops
= &clk_branch2_ops
,
3102 static struct clk_branch gcc_nss_ppe_btq_clk
= {
3103 .halt_reg
= 0x6833c,
3105 .enable_reg
= 0x6833c,
3106 .enable_mask
= BIT(0),
3107 .hw
.init
= &(struct clk_init_data
){
3108 .name
= "gcc_nss_ppe_btq_clk",
3109 .parent_names
= (const char *[]){
3113 .flags
= CLK_SET_RATE_PARENT
,
3114 .ops
= &clk_branch2_ops
,
3119 static struct clk_branch gcc_nss_ppe_cfg_clk
= {
3120 .halt_reg
= 0x68194,
3122 .enable_reg
= 0x68194,
3123 .enable_mask
= BIT(0),
3124 .hw
.init
= &(struct clk_init_data
){
3125 .name
= "gcc_nss_ppe_cfg_clk",
3126 .parent_names
= (const char *[]){
3130 .flags
= CLK_SET_RATE_PARENT
,
3131 .ops
= &clk_branch2_ops
,
3136 static struct clk_branch gcc_nss_ppe_clk
= {
3137 .halt_reg
= 0x68190,
3139 .enable_reg
= 0x68190,
3140 .enable_mask
= BIT(0),
3141 .hw
.init
= &(struct clk_init_data
){
3142 .name
= "gcc_nss_ppe_clk",
3143 .parent_names
= (const char *[]){
3147 .flags
= CLK_SET_RATE_PARENT
,
3148 .ops
= &clk_branch2_ops
,
3153 static struct clk_branch gcc_nss_ppe_ipe_clk
= {
3154 .halt_reg
= 0x68338,
3156 .enable_reg
= 0x68338,
3157 .enable_mask
= BIT(0),
3158 .hw
.init
= &(struct clk_init_data
){
3159 .name
= "gcc_nss_ppe_ipe_clk",
3160 .parent_names
= (const char *[]){
3164 .flags
= CLK_SET_RATE_PARENT
,
3165 .ops
= &clk_branch2_ops
,
3170 static struct clk_branch gcc_nss_ptp_ref_clk
= {
3171 .halt_reg
= 0x6816c,
3173 .enable_reg
= 0x6816c,
3174 .enable_mask
= BIT(0),
3175 .hw
.init
= &(struct clk_init_data
){
3176 .name
= "gcc_nss_ptp_ref_clk",
3177 .parent_names
= (const char *[]){
3178 "nss_ppe_cdiv_clk_src"
3181 .flags
= CLK_SET_RATE_PARENT
,
3182 .ops
= &clk_branch2_ops
,
3187 static struct clk_branch gcc_nssnoc_ce_apb_clk
= {
3188 .halt_reg
= 0x6830c,
3190 .enable_reg
= 0x6830c,
3191 .enable_mask
= BIT(0),
3192 .hw
.init
= &(struct clk_init_data
){
3193 .name
= "gcc_nssnoc_ce_apb_clk",
3194 .parent_names
= (const char *[]){
3198 .flags
= CLK_SET_RATE_PARENT
,
3199 .ops
= &clk_branch2_ops
,
3204 static struct clk_branch gcc_nssnoc_ce_axi_clk
= {
3205 .halt_reg
= 0x68308,
3207 .enable_reg
= 0x68308,
3208 .enable_mask
= BIT(0),
3209 .hw
.init
= &(struct clk_init_data
){
3210 .name
= "gcc_nssnoc_ce_axi_clk",
3211 .parent_names
= (const char *[]){
3215 .flags
= CLK_SET_RATE_PARENT
,
3216 .ops
= &clk_branch2_ops
,
3221 static struct clk_branch gcc_nssnoc_crypto_clk
= {
3222 .halt_reg
= 0x68314,
3224 .enable_reg
= 0x68314,
3225 .enable_mask
= BIT(0),
3226 .hw
.init
= &(struct clk_init_data
){
3227 .name
= "gcc_nssnoc_crypto_clk",
3228 .parent_names
= (const char *[]){
3229 "nss_crypto_clk_src"
3232 .flags
= CLK_SET_RATE_PARENT
,
3233 .ops
= &clk_branch2_ops
,
3238 static struct clk_branch gcc_nssnoc_ppe_cfg_clk
= {
3239 .halt_reg
= 0x68304,
3241 .enable_reg
= 0x68304,
3242 .enable_mask
= BIT(0),
3243 .hw
.init
= &(struct clk_init_data
){
3244 .name
= "gcc_nssnoc_ppe_cfg_clk",
3245 .parent_names
= (const char *[]){
3249 .flags
= CLK_SET_RATE_PARENT
,
3250 .ops
= &clk_branch2_ops
,
3255 static struct clk_branch gcc_nssnoc_ppe_clk
= {
3256 .halt_reg
= 0x68300,
3258 .enable_reg
= 0x68300,
3259 .enable_mask
= BIT(0),
3260 .hw
.init
= &(struct clk_init_data
){
3261 .name
= "gcc_nssnoc_ppe_clk",
3262 .parent_names
= (const char *[]){
3266 .flags
= CLK_SET_RATE_PARENT
,
3267 .ops
= &clk_branch2_ops
,
3272 static struct clk_branch gcc_nssnoc_qosgen_ref_clk
= {
3273 .halt_reg
= 0x68180,
3275 .enable_reg
= 0x68180,
3276 .enable_mask
= BIT(0),
3277 .hw
.init
= &(struct clk_init_data
){
3278 .name
= "gcc_nssnoc_qosgen_ref_clk",
3279 .parent_names
= (const char *[]){
3283 .flags
= CLK_SET_RATE_PARENT
,
3284 .ops
= &clk_branch2_ops
,
3289 static struct clk_branch gcc_nssnoc_snoc_clk
= {
3290 .halt_reg
= 0x68188,
3292 .enable_reg
= 0x68188,
3293 .enable_mask
= BIT(0),
3294 .hw
.init
= &(struct clk_init_data
){
3295 .name
= "gcc_nssnoc_snoc_clk",
3296 .parent_names
= (const char *[]){
3297 "system_noc_clk_src"
3300 .flags
= CLK_SET_RATE_PARENT
,
3301 .ops
= &clk_branch2_ops
,
3306 static struct clk_branch gcc_nssnoc_timeout_ref_clk
= {
3307 .halt_reg
= 0x68184,
3309 .enable_reg
= 0x68184,
3310 .enable_mask
= BIT(0),
3311 .hw
.init
= &(struct clk_init_data
){
3312 .name
= "gcc_nssnoc_timeout_ref_clk",
3313 .parent_names
= (const char *[]){
3314 "gcc_xo_div4_clk_src"
3317 .flags
= CLK_SET_RATE_PARENT
,
3318 .ops
= &clk_branch2_ops
,
3323 static struct clk_branch gcc_nssnoc_ubi0_ahb_clk
= {
3324 .halt_reg
= 0x68270,
3326 .enable_reg
= 0x68270,
3327 .enable_mask
= BIT(0),
3328 .hw
.init
= &(struct clk_init_data
){
3329 .name
= "gcc_nssnoc_ubi0_ahb_clk",
3330 .parent_names
= (const char *[]){
3334 .flags
= CLK_SET_RATE_PARENT
,
3335 .ops
= &clk_branch2_ops
,
3340 static struct clk_branch gcc_nssnoc_ubi1_ahb_clk
= {
3341 .halt_reg
= 0x68274,
3343 .enable_reg
= 0x68274,
3344 .enable_mask
= BIT(0),
3345 .hw
.init
= &(struct clk_init_data
){
3346 .name
= "gcc_nssnoc_ubi1_ahb_clk",
3347 .parent_names
= (const char *[]){
3351 .flags
= CLK_SET_RATE_PARENT
,
3352 .ops
= &clk_branch2_ops
,
3357 static struct clk_branch gcc_ubi0_ahb_clk
= {
3358 .halt_reg
= 0x6820c,
3360 .enable_reg
= 0x6820c,
3361 .enable_mask
= BIT(0),
3362 .hw
.init
= &(struct clk_init_data
){
3363 .name
= "gcc_ubi0_ahb_clk",
3364 .parent_names
= (const char *[]){
3368 .flags
= CLK_SET_RATE_PARENT
,
3369 .ops
= &clk_branch2_ops
,
3374 static struct clk_branch gcc_ubi0_axi_clk
= {
3375 .halt_reg
= 0x68200,
3377 .enable_reg
= 0x68200,
3378 .enable_mask
= BIT(0),
3379 .hw
.init
= &(struct clk_init_data
){
3380 .name
= "gcc_ubi0_axi_clk",
3381 .parent_names
= (const char *[]){
3385 .flags
= CLK_SET_RATE_PARENT
,
3386 .ops
= &clk_branch2_ops
,
3391 static struct clk_branch gcc_ubi0_nc_axi_clk
= {
3392 .halt_reg
= 0x68204,
3394 .enable_reg
= 0x68204,
3395 .enable_mask
= BIT(0),
3396 .hw
.init
= &(struct clk_init_data
){
3397 .name
= "gcc_ubi0_nc_axi_clk",
3398 .parent_names
= (const char *[]){
3402 .flags
= CLK_SET_RATE_PARENT
,
3403 .ops
= &clk_branch2_ops
,
3408 static struct clk_branch gcc_ubi0_core_clk
= {
3409 .halt_reg
= 0x68210,
3411 .enable_reg
= 0x68210,
3412 .enable_mask
= BIT(0),
3413 .hw
.init
= &(struct clk_init_data
){
3414 .name
= "gcc_ubi0_core_clk",
3415 .parent_names
= (const char *[]){
3416 "nss_ubi0_div_clk_src"
3419 .flags
= CLK_SET_RATE_PARENT
,
3420 .ops
= &clk_branch2_ops
,
3425 static struct clk_branch gcc_ubi0_mpt_clk
= {
3426 .halt_reg
= 0x68208,
3428 .enable_reg
= 0x68208,
3429 .enable_mask
= BIT(0),
3430 .hw
.init
= &(struct clk_init_data
){
3431 .name
= "gcc_ubi0_mpt_clk",
3432 .parent_names
= (const char *[]){
3436 .flags
= CLK_SET_RATE_PARENT
,
3437 .ops
= &clk_branch2_ops
,
3442 static struct clk_branch gcc_ubi1_ahb_clk
= {
3443 .halt_reg
= 0x6822c,
3445 .enable_reg
= 0x6822c,
3446 .enable_mask
= BIT(0),
3447 .hw
.init
= &(struct clk_init_data
){
3448 .name
= "gcc_ubi1_ahb_clk",
3449 .parent_names
= (const char *[]){
3453 .flags
= CLK_SET_RATE_PARENT
,
3454 .ops
= &clk_branch2_ops
,
3459 static struct clk_branch gcc_ubi1_axi_clk
= {
3460 .halt_reg
= 0x68220,
3462 .enable_reg
= 0x68220,
3463 .enable_mask
= BIT(0),
3464 .hw
.init
= &(struct clk_init_data
){
3465 .name
= "gcc_ubi1_axi_clk",
3466 .parent_names
= (const char *[]){
3470 .flags
= CLK_SET_RATE_PARENT
,
3471 .ops
= &clk_branch2_ops
,
3476 static struct clk_branch gcc_ubi1_nc_axi_clk
= {
3477 .halt_reg
= 0x68224,
3479 .enable_reg
= 0x68224,
3480 .enable_mask
= BIT(0),
3481 .hw
.init
= &(struct clk_init_data
){
3482 .name
= "gcc_ubi1_nc_axi_clk",
3483 .parent_names
= (const char *[]){
3487 .flags
= CLK_SET_RATE_PARENT
,
3488 .ops
= &clk_branch2_ops
,
3493 static struct clk_branch gcc_ubi1_core_clk
= {
3494 .halt_reg
= 0x68230,
3496 .enable_reg
= 0x68230,
3497 .enable_mask
= BIT(0),
3498 .hw
.init
= &(struct clk_init_data
){
3499 .name
= "gcc_ubi1_core_clk",
3500 .parent_names
= (const char *[]){
3501 "nss_ubi1_div_clk_src"
3504 .flags
= CLK_SET_RATE_PARENT
,
3505 .ops
= &clk_branch2_ops
,
3510 static struct clk_branch gcc_ubi1_mpt_clk
= {
3511 .halt_reg
= 0x68228,
3513 .enable_reg
= 0x68228,
3514 .enable_mask
= BIT(0),
3515 .hw
.init
= &(struct clk_init_data
){
3516 .name
= "gcc_ubi1_mpt_clk",
3517 .parent_names
= (const char *[]){
3521 .flags
= CLK_SET_RATE_PARENT
,
3522 .ops
= &clk_branch2_ops
,
3527 static struct clk_branch gcc_cmn_12gpll_ahb_clk
= {
3528 .halt_reg
= 0x56308,
3530 .enable_reg
= 0x56308,
3531 .enable_mask
= BIT(0),
3532 .hw
.init
= &(struct clk_init_data
){
3533 .name
= "gcc_cmn_12gpll_ahb_clk",
3534 .parent_names
= (const char *[]){
3538 .flags
= CLK_SET_RATE_PARENT
,
3539 .ops
= &clk_branch2_ops
,
3544 static struct clk_branch gcc_cmn_12gpll_sys_clk
= {
3545 .halt_reg
= 0x5630c,
3547 .enable_reg
= 0x5630c,
3548 .enable_mask
= BIT(0),
3549 .hw
.init
= &(struct clk_init_data
){
3550 .name
= "gcc_cmn_12gpll_sys_clk",
3551 .parent_names
= (const char *[]){
3555 .flags
= CLK_SET_RATE_PARENT
,
3556 .ops
= &clk_branch2_ops
,
3561 static struct clk_branch gcc_mdio_ahb_clk
= {
3562 .halt_reg
= 0x58004,
3564 .enable_reg
= 0x58004,
3565 .enable_mask
= BIT(0),
3566 .hw
.init
= &(struct clk_init_data
){
3567 .name
= "gcc_mdio_ahb_clk",
3568 .parent_names
= (const char *[]){
3572 .flags
= CLK_SET_RATE_PARENT
,
3573 .ops
= &clk_branch2_ops
,
3578 static struct clk_branch gcc_uniphy0_ahb_clk
= {
3579 .halt_reg
= 0x56008,
3581 .enable_reg
= 0x56008,
3582 .enable_mask
= BIT(0),
3583 .hw
.init
= &(struct clk_init_data
){
3584 .name
= "gcc_uniphy0_ahb_clk",
3585 .parent_names
= (const char *[]){
3589 .flags
= CLK_SET_RATE_PARENT
,
3590 .ops
= &clk_branch2_ops
,
3595 static struct clk_branch gcc_uniphy0_sys_clk
= {
3596 .halt_reg
= 0x5600c,
3598 .enable_reg
= 0x5600c,
3599 .enable_mask
= BIT(0),
3600 .hw
.init
= &(struct clk_init_data
){
3601 .name
= "gcc_uniphy0_sys_clk",
3602 .parent_names
= (const char *[]){
3606 .flags
= CLK_SET_RATE_PARENT
,
3607 .ops
= &clk_branch2_ops
,
3612 static struct clk_branch gcc_uniphy1_ahb_clk
= {
3613 .halt_reg
= 0x56108,
3615 .enable_reg
= 0x56108,
3616 .enable_mask
= BIT(0),
3617 .hw
.init
= &(struct clk_init_data
){
3618 .name
= "gcc_uniphy1_ahb_clk",
3619 .parent_names
= (const char *[]){
3623 .flags
= CLK_SET_RATE_PARENT
,
3624 .ops
= &clk_branch2_ops
,
3629 static struct clk_branch gcc_uniphy1_sys_clk
= {
3630 .halt_reg
= 0x5610c,
3632 .enable_reg
= 0x5610c,
3633 .enable_mask
= BIT(0),
3634 .hw
.init
= &(struct clk_init_data
){
3635 .name
= "gcc_uniphy1_sys_clk",
3636 .parent_names
= (const char *[]){
3640 .flags
= CLK_SET_RATE_PARENT
,
3641 .ops
= &clk_branch2_ops
,
3646 static struct clk_branch gcc_uniphy2_ahb_clk
= {
3647 .halt_reg
= 0x56208,
3649 .enable_reg
= 0x56208,
3650 .enable_mask
= BIT(0),
3651 .hw
.init
= &(struct clk_init_data
){
3652 .name
= "gcc_uniphy2_ahb_clk",
3653 .parent_names
= (const char *[]){
3657 .flags
= CLK_SET_RATE_PARENT
,
3658 .ops
= &clk_branch2_ops
,
3663 static struct clk_branch gcc_uniphy2_sys_clk
= {
3664 .halt_reg
= 0x5620c,
3666 .enable_reg
= 0x5620c,
3667 .enable_mask
= BIT(0),
3668 .hw
.init
= &(struct clk_init_data
){
3669 .name
= "gcc_uniphy2_sys_clk",
3670 .parent_names
= (const char *[]){
3674 .flags
= CLK_SET_RATE_PARENT
,
3675 .ops
= &clk_branch2_ops
,
3680 static struct clk_branch gcc_nss_port1_rx_clk
= {
3681 .halt_reg
= 0x68240,
3683 .enable_reg
= 0x68240,
3684 .enable_mask
= BIT(0),
3685 .hw
.init
= &(struct clk_init_data
){
3686 .name
= "gcc_nss_port1_rx_clk",
3687 .parent_names
= (const char *[]){
3688 "nss_port1_rx_div_clk_src"
3691 .flags
= CLK_SET_RATE_PARENT
,
3692 .ops
= &clk_branch2_ops
,
3697 static struct clk_branch gcc_nss_port1_tx_clk
= {
3698 .halt_reg
= 0x68244,
3700 .enable_reg
= 0x68244,
3701 .enable_mask
= BIT(0),
3702 .hw
.init
= &(struct clk_init_data
){
3703 .name
= "gcc_nss_port1_tx_clk",
3704 .parent_names
= (const char *[]){
3705 "nss_port1_tx_div_clk_src"
3708 .flags
= CLK_SET_RATE_PARENT
,
3709 .ops
= &clk_branch2_ops
,
3714 static struct clk_branch gcc_nss_port2_rx_clk
= {
3715 .halt_reg
= 0x68248,
3717 .enable_reg
= 0x68248,
3718 .enable_mask
= BIT(0),
3719 .hw
.init
= &(struct clk_init_data
){
3720 .name
= "gcc_nss_port2_rx_clk",
3721 .parent_names
= (const char *[]){
3722 "nss_port2_rx_div_clk_src"
3725 .flags
= CLK_SET_RATE_PARENT
,
3726 .ops
= &clk_branch2_ops
,
3731 static struct clk_branch gcc_nss_port2_tx_clk
= {
3732 .halt_reg
= 0x6824c,
3734 .enable_reg
= 0x6824c,
3735 .enable_mask
= BIT(0),
3736 .hw
.init
= &(struct clk_init_data
){
3737 .name
= "gcc_nss_port2_tx_clk",
3738 .parent_names
= (const char *[]){
3739 "nss_port2_tx_div_clk_src"
3742 .flags
= CLK_SET_RATE_PARENT
,
3743 .ops
= &clk_branch2_ops
,
3748 static struct clk_branch gcc_nss_port3_rx_clk
= {
3749 .halt_reg
= 0x68250,
3751 .enable_reg
= 0x68250,
3752 .enable_mask
= BIT(0),
3753 .hw
.init
= &(struct clk_init_data
){
3754 .name
= "gcc_nss_port3_rx_clk",
3755 .parent_names
= (const char *[]){
3756 "nss_port3_rx_div_clk_src"
3759 .flags
= CLK_SET_RATE_PARENT
,
3760 .ops
= &clk_branch2_ops
,
3765 static struct clk_branch gcc_nss_port3_tx_clk
= {
3766 .halt_reg
= 0x68254,
3768 .enable_reg
= 0x68254,
3769 .enable_mask
= BIT(0),
3770 .hw
.init
= &(struct clk_init_data
){
3771 .name
= "gcc_nss_port3_tx_clk",
3772 .parent_names
= (const char *[]){
3773 "nss_port3_tx_div_clk_src"
3776 .flags
= CLK_SET_RATE_PARENT
,
3777 .ops
= &clk_branch2_ops
,
3782 static struct clk_branch gcc_nss_port4_rx_clk
= {
3783 .halt_reg
= 0x68258,
3785 .enable_reg
= 0x68258,
3786 .enable_mask
= BIT(0),
3787 .hw
.init
= &(struct clk_init_data
){
3788 .name
= "gcc_nss_port4_rx_clk",
3789 .parent_names
= (const char *[]){
3790 "nss_port4_rx_div_clk_src"
3793 .flags
= CLK_SET_RATE_PARENT
,
3794 .ops
= &clk_branch2_ops
,
3799 static struct clk_branch gcc_nss_port4_tx_clk
= {
3800 .halt_reg
= 0x6825c,
3802 .enable_reg
= 0x6825c,
3803 .enable_mask
= BIT(0),
3804 .hw
.init
= &(struct clk_init_data
){
3805 .name
= "gcc_nss_port4_tx_clk",
3806 .parent_names
= (const char *[]){
3807 "nss_port4_tx_div_clk_src"
3810 .flags
= CLK_SET_RATE_PARENT
,
3811 .ops
= &clk_branch2_ops
,
3816 static struct clk_branch gcc_nss_port5_rx_clk
= {
3817 .halt_reg
= 0x68260,
3819 .enable_reg
= 0x68260,
3820 .enable_mask
= BIT(0),
3821 .hw
.init
= &(struct clk_init_data
){
3822 .name
= "gcc_nss_port5_rx_clk",
3823 .parent_names
= (const char *[]){
3824 "nss_port5_rx_div_clk_src"
3827 .flags
= CLK_SET_RATE_PARENT
,
3828 .ops
= &clk_branch2_ops
,
3833 static struct clk_branch gcc_nss_port5_tx_clk
= {
3834 .halt_reg
= 0x68264,
3836 .enable_reg
= 0x68264,
3837 .enable_mask
= BIT(0),
3838 .hw
.init
= &(struct clk_init_data
){
3839 .name
= "gcc_nss_port5_tx_clk",
3840 .parent_names
= (const char *[]){
3841 "nss_port5_tx_div_clk_src"
3844 .flags
= CLK_SET_RATE_PARENT
,
3845 .ops
= &clk_branch2_ops
,
3850 static struct clk_branch gcc_nss_port6_rx_clk
= {
3851 .halt_reg
= 0x68268,
3853 .enable_reg
= 0x68268,
3854 .enable_mask
= BIT(0),
3855 .hw
.init
= &(struct clk_init_data
){
3856 .name
= "gcc_nss_port6_rx_clk",
3857 .parent_names
= (const char *[]){
3858 "nss_port6_rx_div_clk_src"
3861 .flags
= CLK_SET_RATE_PARENT
,
3862 .ops
= &clk_branch2_ops
,
3867 static struct clk_branch gcc_nss_port6_tx_clk
= {
3868 .halt_reg
= 0x6826c,
3870 .enable_reg
= 0x6826c,
3871 .enable_mask
= BIT(0),
3872 .hw
.init
= &(struct clk_init_data
){
3873 .name
= "gcc_nss_port6_tx_clk",
3874 .parent_names
= (const char *[]){
3875 "nss_port6_tx_div_clk_src"
3878 .flags
= CLK_SET_RATE_PARENT
,
3879 .ops
= &clk_branch2_ops
,
3884 static struct clk_branch gcc_port1_mac_clk
= {
3885 .halt_reg
= 0x68320,
3887 .enable_reg
= 0x68320,
3888 .enable_mask
= BIT(0),
3889 .hw
.init
= &(struct clk_init_data
){
3890 .name
= "gcc_port1_mac_clk",
3891 .parent_names
= (const char *[]){
3895 .flags
= CLK_SET_RATE_PARENT
,
3896 .ops
= &clk_branch2_ops
,
3901 static struct clk_branch gcc_port2_mac_clk
= {
3902 .halt_reg
= 0x68324,
3904 .enable_reg
= 0x68324,
3905 .enable_mask
= BIT(0),
3906 .hw
.init
= &(struct clk_init_data
){
3907 .name
= "gcc_port2_mac_clk",
3908 .parent_names
= (const char *[]){
3912 .flags
= CLK_SET_RATE_PARENT
,
3913 .ops
= &clk_branch2_ops
,
3918 static struct clk_branch gcc_port3_mac_clk
= {
3919 .halt_reg
= 0x68328,
3921 .enable_reg
= 0x68328,
3922 .enable_mask
= BIT(0),
3923 .hw
.init
= &(struct clk_init_data
){
3924 .name
= "gcc_port3_mac_clk",
3925 .parent_names
= (const char *[]){
3929 .flags
= CLK_SET_RATE_PARENT
,
3930 .ops
= &clk_branch2_ops
,
3935 static struct clk_branch gcc_port4_mac_clk
= {
3936 .halt_reg
= 0x6832c,
3938 .enable_reg
= 0x6832c,
3939 .enable_mask
= BIT(0),
3940 .hw
.init
= &(struct clk_init_data
){
3941 .name
= "gcc_port4_mac_clk",
3942 .parent_names
= (const char *[]){
3946 .flags
= CLK_SET_RATE_PARENT
,
3947 .ops
= &clk_branch2_ops
,
3952 static struct clk_branch gcc_port5_mac_clk
= {
3953 .halt_reg
= 0x68330,
3955 .enable_reg
= 0x68330,
3956 .enable_mask
= BIT(0),
3957 .hw
.init
= &(struct clk_init_data
){
3958 .name
= "gcc_port5_mac_clk",
3959 .parent_names
= (const char *[]){
3963 .flags
= CLK_SET_RATE_PARENT
,
3964 .ops
= &clk_branch2_ops
,
3969 static struct clk_branch gcc_port6_mac_clk
= {
3970 .halt_reg
= 0x68334,
3972 .enable_reg
= 0x68334,
3973 .enable_mask
= BIT(0),
3974 .hw
.init
= &(struct clk_init_data
){
3975 .name
= "gcc_port6_mac_clk",
3976 .parent_names
= (const char *[]){
3980 .flags
= CLK_SET_RATE_PARENT
,
3981 .ops
= &clk_branch2_ops
,
3986 static struct clk_branch gcc_uniphy0_port1_rx_clk
= {
3987 .halt_reg
= 0x56010,
3989 .enable_reg
= 0x56010,
3990 .enable_mask
= BIT(0),
3991 .hw
.init
= &(struct clk_init_data
){
3992 .name
= "gcc_uniphy0_port1_rx_clk",
3993 .parent_names
= (const char *[]){
3994 "nss_port1_rx_div_clk_src"
3997 .flags
= CLK_SET_RATE_PARENT
,
3998 .ops
= &clk_branch2_ops
,
4003 static struct clk_branch gcc_uniphy0_port1_tx_clk
= {
4004 .halt_reg
= 0x56014,
4006 .enable_reg
= 0x56014,
4007 .enable_mask
= BIT(0),
4008 .hw
.init
= &(struct clk_init_data
){
4009 .name
= "gcc_uniphy0_port1_tx_clk",
4010 .parent_names
= (const char *[]){
4011 "nss_port1_tx_div_clk_src"
4014 .flags
= CLK_SET_RATE_PARENT
,
4015 .ops
= &clk_branch2_ops
,
4020 static struct clk_branch gcc_uniphy0_port2_rx_clk
= {
4021 .halt_reg
= 0x56018,
4023 .enable_reg
= 0x56018,
4024 .enable_mask
= BIT(0),
4025 .hw
.init
= &(struct clk_init_data
){
4026 .name
= "gcc_uniphy0_port2_rx_clk",
4027 .parent_names
= (const char *[]){
4028 "nss_port2_rx_div_clk_src"
4031 .flags
= CLK_SET_RATE_PARENT
,
4032 .ops
= &clk_branch2_ops
,
4037 static struct clk_branch gcc_uniphy0_port2_tx_clk
= {
4038 .halt_reg
= 0x5601c,
4040 .enable_reg
= 0x5601c,
4041 .enable_mask
= BIT(0),
4042 .hw
.init
= &(struct clk_init_data
){
4043 .name
= "gcc_uniphy0_port2_tx_clk",
4044 .parent_names
= (const char *[]){
4045 "nss_port2_tx_div_clk_src"
4048 .flags
= CLK_SET_RATE_PARENT
,
4049 .ops
= &clk_branch2_ops
,
4054 static struct clk_branch gcc_uniphy0_port3_rx_clk
= {
4055 .halt_reg
= 0x56020,
4057 .enable_reg
= 0x56020,
4058 .enable_mask
= BIT(0),
4059 .hw
.init
= &(struct clk_init_data
){
4060 .name
= "gcc_uniphy0_port3_rx_clk",
4061 .parent_names
= (const char *[]){
4062 "nss_port3_rx_div_clk_src"
4065 .flags
= CLK_SET_RATE_PARENT
,
4066 .ops
= &clk_branch2_ops
,
4071 static struct clk_branch gcc_uniphy0_port3_tx_clk
= {
4072 .halt_reg
= 0x56024,
4074 .enable_reg
= 0x56024,
4075 .enable_mask
= BIT(0),
4076 .hw
.init
= &(struct clk_init_data
){
4077 .name
= "gcc_uniphy0_port3_tx_clk",
4078 .parent_names
= (const char *[]){
4079 "nss_port3_tx_div_clk_src"
4082 .flags
= CLK_SET_RATE_PARENT
,
4083 .ops
= &clk_branch2_ops
,
4088 static struct clk_branch gcc_uniphy0_port4_rx_clk
= {
4089 .halt_reg
= 0x56028,
4091 .enable_reg
= 0x56028,
4092 .enable_mask
= BIT(0),
4093 .hw
.init
= &(struct clk_init_data
){
4094 .name
= "gcc_uniphy0_port4_rx_clk",
4095 .parent_names
= (const char *[]){
4096 "nss_port4_rx_div_clk_src"
4099 .flags
= CLK_SET_RATE_PARENT
,
4100 .ops
= &clk_branch2_ops
,
4105 static struct clk_branch gcc_uniphy0_port4_tx_clk
= {
4106 .halt_reg
= 0x5602c,
4108 .enable_reg
= 0x5602c,
4109 .enable_mask
= BIT(0),
4110 .hw
.init
= &(struct clk_init_data
){
4111 .name
= "gcc_uniphy0_port4_tx_clk",
4112 .parent_names
= (const char *[]){
4113 "nss_port4_tx_div_clk_src"
4116 .flags
= CLK_SET_RATE_PARENT
,
4117 .ops
= &clk_branch2_ops
,
4122 static struct clk_branch gcc_uniphy0_port5_rx_clk
= {
4123 .halt_reg
= 0x56030,
4125 .enable_reg
= 0x56030,
4126 .enable_mask
= BIT(0),
4127 .hw
.init
= &(struct clk_init_data
){
4128 .name
= "gcc_uniphy0_port5_rx_clk",
4129 .parent_names
= (const char *[]){
4130 "nss_port5_rx_div_clk_src"
4133 .flags
= CLK_SET_RATE_PARENT
,
4134 .ops
= &clk_branch2_ops
,
4139 static struct clk_branch gcc_uniphy0_port5_tx_clk
= {
4140 .halt_reg
= 0x56034,
4142 .enable_reg
= 0x56034,
4143 .enable_mask
= BIT(0),
4144 .hw
.init
= &(struct clk_init_data
){
4145 .name
= "gcc_uniphy0_port5_tx_clk",
4146 .parent_names
= (const char *[]){
4147 "nss_port5_tx_div_clk_src"
4150 .flags
= CLK_SET_RATE_PARENT
,
4151 .ops
= &clk_branch2_ops
,
4156 static struct clk_branch gcc_uniphy1_port5_rx_clk
= {
4157 .halt_reg
= 0x56110,
4159 .enable_reg
= 0x56110,
4160 .enable_mask
= BIT(0),
4161 .hw
.init
= &(struct clk_init_data
){
4162 .name
= "gcc_uniphy1_port5_rx_clk",
4163 .parent_names
= (const char *[]){
4164 "nss_port5_rx_div_clk_src"
4167 .flags
= CLK_SET_RATE_PARENT
,
4168 .ops
= &clk_branch2_ops
,
4173 static struct clk_branch gcc_uniphy1_port5_tx_clk
= {
4174 .halt_reg
= 0x56114,
4176 .enable_reg
= 0x56114,
4177 .enable_mask
= BIT(0),
4178 .hw
.init
= &(struct clk_init_data
){
4179 .name
= "gcc_uniphy1_port5_tx_clk",
4180 .parent_names
= (const char *[]){
4181 "nss_port5_tx_div_clk_src"
4184 .flags
= CLK_SET_RATE_PARENT
,
4185 .ops
= &clk_branch2_ops
,
4190 static struct clk_branch gcc_uniphy2_port6_rx_clk
= {
4191 .halt_reg
= 0x56210,
4193 .enable_reg
= 0x56210,
4194 .enable_mask
= BIT(0),
4195 .hw
.init
= &(struct clk_init_data
){
4196 .name
= "gcc_uniphy2_port6_rx_clk",
4197 .parent_names
= (const char *[]){
4198 "nss_port6_rx_div_clk_src"
4201 .flags
= CLK_SET_RATE_PARENT
,
4202 .ops
= &clk_branch2_ops
,
4207 static struct clk_branch gcc_uniphy2_port6_tx_clk
= {
4208 .halt_reg
= 0x56214,
4210 .enable_reg
= 0x56214,
4211 .enable_mask
= BIT(0),
4212 .hw
.init
= &(struct clk_init_data
){
4213 .name
= "gcc_uniphy2_port6_tx_clk",
4214 .parent_names
= (const char *[]){
4215 "nss_port6_tx_div_clk_src"
4218 .flags
= CLK_SET_RATE_PARENT
,
4219 .ops
= &clk_branch2_ops
,
4224 static struct clk_branch gcc_crypto_ahb_clk
= {
4225 .halt_reg
= 0x16024,
4226 .halt_check
= BRANCH_HALT_VOTED
,
4228 .enable_reg
= 0x0b004,
4229 .enable_mask
= BIT(0),
4230 .hw
.init
= &(struct clk_init_data
){
4231 .name
= "gcc_crypto_ahb_clk",
4232 .parent_names
= (const char *[]){
4236 .flags
= CLK_SET_RATE_PARENT
,
4237 .ops
= &clk_branch2_ops
,
4242 static struct clk_branch gcc_crypto_axi_clk
= {
4243 .halt_reg
= 0x16020,
4244 .halt_check
= BRANCH_HALT_VOTED
,
4246 .enable_reg
= 0x0b004,
4247 .enable_mask
= BIT(1),
4248 .hw
.init
= &(struct clk_init_data
){
4249 .name
= "gcc_crypto_axi_clk",
4250 .parent_names
= (const char *[]){
4254 .flags
= CLK_SET_RATE_PARENT
,
4255 .ops
= &clk_branch2_ops
,
4260 static struct clk_branch gcc_crypto_clk
= {
4261 .halt_reg
= 0x1601c,
4262 .halt_check
= BRANCH_HALT_VOTED
,
4264 .enable_reg
= 0x0b004,
4265 .enable_mask
= BIT(2),
4266 .hw
.init
= &(struct clk_init_data
){
4267 .name
= "gcc_crypto_clk",
4268 .parent_names
= (const char *[]){
4272 .flags
= CLK_SET_RATE_PARENT
,
4273 .ops
= &clk_branch2_ops
,
4278 static struct clk_branch gcc_gp1_clk
= {
4279 .halt_reg
= 0x08000,
4281 .enable_reg
= 0x08000,
4282 .enable_mask
= BIT(0),
4283 .hw
.init
= &(struct clk_init_data
){
4284 .name
= "gcc_gp1_clk",
4285 .parent_names
= (const char *[]){
4289 .flags
= CLK_SET_RATE_PARENT
,
4290 .ops
= &clk_branch2_ops
,
4295 static struct clk_branch gcc_gp2_clk
= {
4296 .halt_reg
= 0x09000,
4298 .enable_reg
= 0x09000,
4299 .enable_mask
= BIT(0),
4300 .hw
.init
= &(struct clk_init_data
){
4301 .name
= "gcc_gp2_clk",
4302 .parent_names
= (const char *[]){
4306 .flags
= CLK_SET_RATE_PARENT
,
4307 .ops
= &clk_branch2_ops
,
4312 static struct clk_branch gcc_gp3_clk
= {
4313 .halt_reg
= 0x0a000,
4315 .enable_reg
= 0x0a000,
4316 .enable_mask
= BIT(0),
4317 .hw
.init
= &(struct clk_init_data
){
4318 .name
= "gcc_gp3_clk",
4319 .parent_names
= (const char *[]){
4323 .flags
= CLK_SET_RATE_PARENT
,
4324 .ops
= &clk_branch2_ops
,
4329 static struct clk_hw
*gcc_ipq8074_hws
[] = {
4330 &gpll0_out_main_div2
.hw
,
4331 &gpll6_out_main_div2
.hw
,
4333 &system_noc_clk_src
.hw
,
4334 &gcc_xo_div4_clk_src
.hw
,
4335 &nss_noc_clk_src
.hw
,
4336 &nss_ppe_cdiv_clk_src
.hw
,
4339 static struct clk_regmap
*gcc_ipq8074_clks
[] = {
4340 [GPLL0_MAIN
] = &gpll0_main
.clkr
,
4341 [GPLL0
] = &gpll0
.clkr
,
4342 [GPLL2_MAIN
] = &gpll2_main
.clkr
,
4343 [GPLL2
] = &gpll2
.clkr
,
4344 [GPLL4_MAIN
] = &gpll4_main
.clkr
,
4345 [GPLL4
] = &gpll4
.clkr
,
4346 [GPLL6_MAIN
] = &gpll6_main
.clkr
,
4347 [GPLL6
] = &gpll6
.clkr
,
4348 [UBI32_PLL_MAIN
] = &ubi32_pll_main
.clkr
,
4349 [UBI32_PLL
] = &ubi32_pll
.clkr
,
4350 [NSS_CRYPTO_PLL_MAIN
] = &nss_crypto_pll_main
.clkr
,
4351 [NSS_CRYPTO_PLL
] = &nss_crypto_pll
.clkr
,
4352 [PCNOC_BFDCD_CLK_SRC
] = &pcnoc_bfdcd_clk_src
.clkr
,
4353 [GCC_SLEEP_CLK_SRC
] = &gcc_sleep_clk_src
.clkr
,
4354 [BLSP1_QUP1_I2C_APPS_CLK_SRC
] = &blsp1_qup1_i2c_apps_clk_src
.clkr
,
4355 [BLSP1_QUP1_SPI_APPS_CLK_SRC
] = &blsp1_qup1_spi_apps_clk_src
.clkr
,
4356 [BLSP1_QUP2_I2C_APPS_CLK_SRC
] = &blsp1_qup2_i2c_apps_clk_src
.clkr
,
4357 [BLSP1_QUP2_SPI_APPS_CLK_SRC
] = &blsp1_qup2_spi_apps_clk_src
.clkr
,
4358 [BLSP1_QUP3_I2C_APPS_CLK_SRC
] = &blsp1_qup3_i2c_apps_clk_src
.clkr
,
4359 [BLSP1_QUP3_SPI_APPS_CLK_SRC
] = &blsp1_qup3_spi_apps_clk_src
.clkr
,
4360 [BLSP1_QUP4_I2C_APPS_CLK_SRC
] = &blsp1_qup4_i2c_apps_clk_src
.clkr
,
4361 [BLSP1_QUP4_SPI_APPS_CLK_SRC
] = &blsp1_qup4_spi_apps_clk_src
.clkr
,
4362 [BLSP1_QUP5_I2C_APPS_CLK_SRC
] = &blsp1_qup5_i2c_apps_clk_src
.clkr
,
4363 [BLSP1_QUP5_SPI_APPS_CLK_SRC
] = &blsp1_qup5_spi_apps_clk_src
.clkr
,
4364 [BLSP1_QUP6_I2C_APPS_CLK_SRC
] = &blsp1_qup6_i2c_apps_clk_src
.clkr
,
4365 [BLSP1_QUP6_SPI_APPS_CLK_SRC
] = &blsp1_qup6_spi_apps_clk_src
.clkr
,
4366 [BLSP1_UART1_APPS_CLK_SRC
] = &blsp1_uart1_apps_clk_src
.clkr
,
4367 [BLSP1_UART2_APPS_CLK_SRC
] = &blsp1_uart2_apps_clk_src
.clkr
,
4368 [BLSP1_UART3_APPS_CLK_SRC
] = &blsp1_uart3_apps_clk_src
.clkr
,
4369 [BLSP1_UART4_APPS_CLK_SRC
] = &blsp1_uart4_apps_clk_src
.clkr
,
4370 [BLSP1_UART5_APPS_CLK_SRC
] = &blsp1_uart5_apps_clk_src
.clkr
,
4371 [BLSP1_UART6_APPS_CLK_SRC
] = &blsp1_uart6_apps_clk_src
.clkr
,
4372 [PCIE0_AXI_CLK_SRC
] = &pcie0_axi_clk_src
.clkr
,
4373 [PCIE0_AUX_CLK_SRC
] = &pcie0_aux_clk_src
.clkr
,
4374 [PCIE0_PIPE_CLK_SRC
] = &pcie0_pipe_clk_src
.clkr
,
4375 [PCIE1_AXI_CLK_SRC
] = &pcie1_axi_clk_src
.clkr
,
4376 [PCIE1_AUX_CLK_SRC
] = &pcie1_aux_clk_src
.clkr
,
4377 [PCIE1_PIPE_CLK_SRC
] = &pcie1_pipe_clk_src
.clkr
,
4378 [SDCC1_APPS_CLK_SRC
] = &sdcc1_apps_clk_src
.clkr
,
4379 [SDCC1_ICE_CORE_CLK_SRC
] = &sdcc1_ice_core_clk_src
.clkr
,
4380 [SDCC2_APPS_CLK_SRC
] = &sdcc2_apps_clk_src
.clkr
,
4381 [USB0_MASTER_CLK_SRC
] = &usb0_master_clk_src
.clkr
,
4382 [USB0_AUX_CLK_SRC
] = &usb0_aux_clk_src
.clkr
,
4383 [USB0_MOCK_UTMI_CLK_SRC
] = &usb0_mock_utmi_clk_src
.clkr
,
4384 [USB0_PIPE_CLK_SRC
] = &usb0_pipe_clk_src
.clkr
,
4385 [USB1_MASTER_CLK_SRC
] = &usb1_master_clk_src
.clkr
,
4386 [USB1_AUX_CLK_SRC
] = &usb1_aux_clk_src
.clkr
,
4387 [USB1_MOCK_UTMI_CLK_SRC
] = &usb1_mock_utmi_clk_src
.clkr
,
4388 [USB1_PIPE_CLK_SRC
] = &usb1_pipe_clk_src
.clkr
,
4389 [GCC_XO_CLK_SRC
] = &gcc_xo_clk_src
.clkr
,
4390 [SYSTEM_NOC_BFDCD_CLK_SRC
] = &system_noc_bfdcd_clk_src
.clkr
,
4391 [NSS_CE_CLK_SRC
] = &nss_ce_clk_src
.clkr
,
4392 [NSS_NOC_BFDCD_CLK_SRC
] = &nss_noc_bfdcd_clk_src
.clkr
,
4393 [NSS_CRYPTO_CLK_SRC
] = &nss_crypto_clk_src
.clkr
,
4394 [NSS_UBI0_CLK_SRC
] = &nss_ubi0_clk_src
.clkr
,
4395 [NSS_UBI0_DIV_CLK_SRC
] = &nss_ubi0_div_clk_src
.clkr
,
4396 [NSS_UBI1_CLK_SRC
] = &nss_ubi1_clk_src
.clkr
,
4397 [NSS_UBI1_DIV_CLK_SRC
] = &nss_ubi1_div_clk_src
.clkr
,
4398 [UBI_MPT_CLK_SRC
] = &ubi_mpt_clk_src
.clkr
,
4399 [NSS_IMEM_CLK_SRC
] = &nss_imem_clk_src
.clkr
,
4400 [NSS_PPE_CLK_SRC
] = &nss_ppe_clk_src
.clkr
,
4401 [NSS_PORT1_RX_CLK_SRC
] = &nss_port1_rx_clk_src
.clkr
,
4402 [NSS_PORT1_RX_DIV_CLK_SRC
] = &nss_port1_rx_div_clk_src
.clkr
,
4403 [NSS_PORT1_TX_CLK_SRC
] = &nss_port1_tx_clk_src
.clkr
,
4404 [NSS_PORT1_TX_DIV_CLK_SRC
] = &nss_port1_tx_div_clk_src
.clkr
,
4405 [NSS_PORT2_RX_CLK_SRC
] = &nss_port2_rx_clk_src
.clkr
,
4406 [NSS_PORT2_RX_DIV_CLK_SRC
] = &nss_port2_rx_div_clk_src
.clkr
,
4407 [NSS_PORT2_TX_CLK_SRC
] = &nss_port2_tx_clk_src
.clkr
,
4408 [NSS_PORT2_TX_DIV_CLK_SRC
] = &nss_port2_tx_div_clk_src
.clkr
,
4409 [NSS_PORT3_RX_CLK_SRC
] = &nss_port3_rx_clk_src
.clkr
,
4410 [NSS_PORT3_RX_DIV_CLK_SRC
] = &nss_port3_rx_div_clk_src
.clkr
,
4411 [NSS_PORT3_TX_CLK_SRC
] = &nss_port3_tx_clk_src
.clkr
,
4412 [NSS_PORT3_TX_DIV_CLK_SRC
] = &nss_port3_tx_div_clk_src
.clkr
,
4413 [NSS_PORT4_RX_CLK_SRC
] = &nss_port4_rx_clk_src
.clkr
,
4414 [NSS_PORT4_RX_DIV_CLK_SRC
] = &nss_port4_rx_div_clk_src
.clkr
,
4415 [NSS_PORT4_TX_CLK_SRC
] = &nss_port4_tx_clk_src
.clkr
,
4416 [NSS_PORT4_TX_DIV_CLK_SRC
] = &nss_port4_tx_div_clk_src
.clkr
,
4417 [NSS_PORT5_RX_CLK_SRC
] = &nss_port5_rx_clk_src
.clkr
,
4418 [NSS_PORT5_RX_DIV_CLK_SRC
] = &nss_port5_rx_div_clk_src
.clkr
,
4419 [NSS_PORT5_TX_CLK_SRC
] = &nss_port5_tx_clk_src
.clkr
,
4420 [NSS_PORT5_TX_DIV_CLK_SRC
] = &nss_port5_tx_div_clk_src
.clkr
,
4421 [NSS_PORT6_RX_CLK_SRC
] = &nss_port6_rx_clk_src
.clkr
,
4422 [NSS_PORT6_RX_DIV_CLK_SRC
] = &nss_port6_rx_div_clk_src
.clkr
,
4423 [NSS_PORT6_TX_CLK_SRC
] = &nss_port6_tx_clk_src
.clkr
,
4424 [NSS_PORT6_TX_DIV_CLK_SRC
] = &nss_port6_tx_div_clk_src
.clkr
,
4425 [CRYPTO_CLK_SRC
] = &crypto_clk_src
.clkr
,
4426 [GP1_CLK_SRC
] = &gp1_clk_src
.clkr
,
4427 [GP2_CLK_SRC
] = &gp2_clk_src
.clkr
,
4428 [GP3_CLK_SRC
] = &gp3_clk_src
.clkr
,
4429 [GCC_BLSP1_AHB_CLK
] = &gcc_blsp1_ahb_clk
.clkr
,
4430 [GCC_BLSP1_QUP1_I2C_APPS_CLK
] = &gcc_blsp1_qup1_i2c_apps_clk
.clkr
,
4431 [GCC_BLSP1_QUP1_SPI_APPS_CLK
] = &gcc_blsp1_qup1_spi_apps_clk
.clkr
,
4432 [GCC_BLSP1_QUP2_I2C_APPS_CLK
] = &gcc_blsp1_qup2_i2c_apps_clk
.clkr
,
4433 [GCC_BLSP1_QUP2_SPI_APPS_CLK
] = &gcc_blsp1_qup2_spi_apps_clk
.clkr
,
4434 [GCC_BLSP1_QUP3_I2C_APPS_CLK
] = &gcc_blsp1_qup3_i2c_apps_clk
.clkr
,
4435 [GCC_BLSP1_QUP3_SPI_APPS_CLK
] = &gcc_blsp1_qup3_spi_apps_clk
.clkr
,
4436 [GCC_BLSP1_QUP4_I2C_APPS_CLK
] = &gcc_blsp1_qup4_i2c_apps_clk
.clkr
,
4437 [GCC_BLSP1_QUP4_SPI_APPS_CLK
] = &gcc_blsp1_qup4_spi_apps_clk
.clkr
,
4438 [GCC_BLSP1_QUP5_I2C_APPS_CLK
] = &gcc_blsp1_qup5_i2c_apps_clk
.clkr
,
4439 [GCC_BLSP1_QUP5_SPI_APPS_CLK
] = &gcc_blsp1_qup5_spi_apps_clk
.clkr
,
4440 [GCC_BLSP1_QUP6_I2C_APPS_CLK
] = &gcc_blsp1_qup6_i2c_apps_clk
.clkr
,
4441 [GCC_BLSP1_QUP6_SPI_APPS_CLK
] = &gcc_blsp1_qup6_spi_apps_clk
.clkr
,
4442 [GCC_BLSP1_UART1_APPS_CLK
] = &gcc_blsp1_uart1_apps_clk
.clkr
,
4443 [GCC_BLSP1_UART2_APPS_CLK
] = &gcc_blsp1_uart2_apps_clk
.clkr
,
4444 [GCC_BLSP1_UART3_APPS_CLK
] = &gcc_blsp1_uart3_apps_clk
.clkr
,
4445 [GCC_BLSP1_UART4_APPS_CLK
] = &gcc_blsp1_uart4_apps_clk
.clkr
,
4446 [GCC_BLSP1_UART5_APPS_CLK
] = &gcc_blsp1_uart5_apps_clk
.clkr
,
4447 [GCC_BLSP1_UART6_APPS_CLK
] = &gcc_blsp1_uart6_apps_clk
.clkr
,
4448 [GCC_PRNG_AHB_CLK
] = &gcc_prng_ahb_clk
.clkr
,
4449 [GCC_QPIC_AHB_CLK
] = &gcc_qpic_ahb_clk
.clkr
,
4450 [GCC_QPIC_CLK
] = &gcc_qpic_clk
.clkr
,
4451 [GCC_PCIE0_AHB_CLK
] = &gcc_pcie0_ahb_clk
.clkr
,
4452 [GCC_PCIE0_AUX_CLK
] = &gcc_pcie0_aux_clk
.clkr
,
4453 [GCC_PCIE0_AXI_M_CLK
] = &gcc_pcie0_axi_m_clk
.clkr
,
4454 [GCC_PCIE0_AXI_S_CLK
] = &gcc_pcie0_axi_s_clk
.clkr
,
4455 [GCC_PCIE0_PIPE_CLK
] = &gcc_pcie0_pipe_clk
.clkr
,
4456 [GCC_SYS_NOC_PCIE0_AXI_CLK
] = &gcc_sys_noc_pcie0_axi_clk
.clkr
,
4457 [GCC_PCIE1_AHB_CLK
] = &gcc_pcie1_ahb_clk
.clkr
,
4458 [GCC_PCIE1_AUX_CLK
] = &gcc_pcie1_aux_clk
.clkr
,
4459 [GCC_PCIE1_AXI_M_CLK
] = &gcc_pcie1_axi_m_clk
.clkr
,
4460 [GCC_PCIE1_AXI_S_CLK
] = &gcc_pcie1_axi_s_clk
.clkr
,
4461 [GCC_PCIE1_PIPE_CLK
] = &gcc_pcie1_pipe_clk
.clkr
,
4462 [GCC_SYS_NOC_PCIE1_AXI_CLK
] = &gcc_sys_noc_pcie1_axi_clk
.clkr
,
4463 [GCC_USB0_AUX_CLK
] = &gcc_usb0_aux_clk
.clkr
,
4464 [GCC_SYS_NOC_USB0_AXI_CLK
] = &gcc_sys_noc_usb0_axi_clk
.clkr
,
4465 [GCC_USB0_MASTER_CLK
] = &gcc_usb0_master_clk
.clkr
,
4466 [GCC_USB0_MOCK_UTMI_CLK
] = &gcc_usb0_mock_utmi_clk
.clkr
,
4467 [GCC_USB0_PHY_CFG_AHB_CLK
] = &gcc_usb0_phy_cfg_ahb_clk
.clkr
,
4468 [GCC_USB0_PIPE_CLK
] = &gcc_usb0_pipe_clk
.clkr
,
4469 [GCC_USB0_SLEEP_CLK
] = &gcc_usb0_sleep_clk
.clkr
,
4470 [GCC_USB1_AUX_CLK
] = &gcc_usb1_aux_clk
.clkr
,
4471 [GCC_SYS_NOC_USB1_AXI_CLK
] = &gcc_sys_noc_usb1_axi_clk
.clkr
,
4472 [GCC_USB1_MASTER_CLK
] = &gcc_usb1_master_clk
.clkr
,
4473 [GCC_USB1_MOCK_UTMI_CLK
] = &gcc_usb1_mock_utmi_clk
.clkr
,
4474 [GCC_USB1_PHY_CFG_AHB_CLK
] = &gcc_usb1_phy_cfg_ahb_clk
.clkr
,
4475 [GCC_USB1_PIPE_CLK
] = &gcc_usb1_pipe_clk
.clkr
,
4476 [GCC_USB1_SLEEP_CLK
] = &gcc_usb1_sleep_clk
.clkr
,
4477 [GCC_SDCC1_AHB_CLK
] = &gcc_sdcc1_ahb_clk
.clkr
,
4478 [GCC_SDCC1_APPS_CLK
] = &gcc_sdcc1_apps_clk
.clkr
,
4479 [GCC_SDCC1_ICE_CORE_CLK
] = &gcc_sdcc1_ice_core_clk
.clkr
,
4480 [GCC_SDCC2_AHB_CLK
] = &gcc_sdcc2_ahb_clk
.clkr
,
4481 [GCC_SDCC2_APPS_CLK
] = &gcc_sdcc2_apps_clk
.clkr
,
4482 [GCC_MEM_NOC_NSS_AXI_CLK
] = &gcc_mem_noc_nss_axi_clk
.clkr
,
4483 [GCC_NSS_CE_APB_CLK
] = &gcc_nss_ce_apb_clk
.clkr
,
4484 [GCC_NSS_CE_AXI_CLK
] = &gcc_nss_ce_axi_clk
.clkr
,
4485 [GCC_NSS_CFG_CLK
] = &gcc_nss_cfg_clk
.clkr
,
4486 [GCC_NSS_CRYPTO_CLK
] = &gcc_nss_crypto_clk
.clkr
,
4487 [GCC_NSS_CSR_CLK
] = &gcc_nss_csr_clk
.clkr
,
4488 [GCC_NSS_EDMA_CFG_CLK
] = &gcc_nss_edma_cfg_clk
.clkr
,
4489 [GCC_NSS_EDMA_CLK
] = &gcc_nss_edma_clk
.clkr
,
4490 [GCC_NSS_IMEM_CLK
] = &gcc_nss_imem_clk
.clkr
,
4491 [GCC_NSS_NOC_CLK
] = &gcc_nss_noc_clk
.clkr
,
4492 [GCC_NSS_PPE_BTQ_CLK
] = &gcc_nss_ppe_btq_clk
.clkr
,
4493 [GCC_NSS_PPE_CFG_CLK
] = &gcc_nss_ppe_cfg_clk
.clkr
,
4494 [GCC_NSS_PPE_CLK
] = &gcc_nss_ppe_clk
.clkr
,
4495 [GCC_NSS_PPE_IPE_CLK
] = &gcc_nss_ppe_ipe_clk
.clkr
,
4496 [GCC_NSS_PTP_REF_CLK
] = &gcc_nss_ptp_ref_clk
.clkr
,
4497 [GCC_NSSNOC_CE_APB_CLK
] = &gcc_nssnoc_ce_apb_clk
.clkr
,
4498 [GCC_NSSNOC_CE_AXI_CLK
] = &gcc_nssnoc_ce_axi_clk
.clkr
,
4499 [GCC_NSSNOC_CRYPTO_CLK
] = &gcc_nssnoc_crypto_clk
.clkr
,
4500 [GCC_NSSNOC_PPE_CFG_CLK
] = &gcc_nssnoc_ppe_cfg_clk
.clkr
,
4501 [GCC_NSSNOC_PPE_CLK
] = &gcc_nssnoc_ppe_clk
.clkr
,
4502 [GCC_NSSNOC_QOSGEN_REF_CLK
] = &gcc_nssnoc_qosgen_ref_clk
.clkr
,
4503 [GCC_NSSNOC_SNOC_CLK
] = &gcc_nssnoc_snoc_clk
.clkr
,
4504 [GCC_NSSNOC_TIMEOUT_REF_CLK
] = &gcc_nssnoc_timeout_ref_clk
.clkr
,
4505 [GCC_NSSNOC_UBI0_AHB_CLK
] = &gcc_nssnoc_ubi0_ahb_clk
.clkr
,
4506 [GCC_NSSNOC_UBI1_AHB_CLK
] = &gcc_nssnoc_ubi1_ahb_clk
.clkr
,
4507 [GCC_UBI0_AHB_CLK
] = &gcc_ubi0_ahb_clk
.clkr
,
4508 [GCC_UBI0_AXI_CLK
] = &gcc_ubi0_axi_clk
.clkr
,
4509 [GCC_UBI0_NC_AXI_CLK
] = &gcc_ubi0_nc_axi_clk
.clkr
,
4510 [GCC_UBI0_CORE_CLK
] = &gcc_ubi0_core_clk
.clkr
,
4511 [GCC_UBI0_MPT_CLK
] = &gcc_ubi0_mpt_clk
.clkr
,
4512 [GCC_UBI1_AHB_CLK
] = &gcc_ubi1_ahb_clk
.clkr
,
4513 [GCC_UBI1_AXI_CLK
] = &gcc_ubi1_axi_clk
.clkr
,
4514 [GCC_UBI1_NC_AXI_CLK
] = &gcc_ubi1_nc_axi_clk
.clkr
,
4515 [GCC_UBI1_CORE_CLK
] = &gcc_ubi1_core_clk
.clkr
,
4516 [GCC_UBI1_MPT_CLK
] = &gcc_ubi1_mpt_clk
.clkr
,
4517 [GCC_CMN_12GPLL_AHB_CLK
] = &gcc_cmn_12gpll_ahb_clk
.clkr
,
4518 [GCC_CMN_12GPLL_SYS_CLK
] = &gcc_cmn_12gpll_sys_clk
.clkr
,
4519 [GCC_MDIO_AHB_CLK
] = &gcc_mdio_ahb_clk
.clkr
,
4520 [GCC_UNIPHY0_AHB_CLK
] = &gcc_uniphy0_ahb_clk
.clkr
,
4521 [GCC_UNIPHY0_SYS_CLK
] = &gcc_uniphy0_sys_clk
.clkr
,
4522 [GCC_UNIPHY1_AHB_CLK
] = &gcc_uniphy1_ahb_clk
.clkr
,
4523 [GCC_UNIPHY1_SYS_CLK
] = &gcc_uniphy1_sys_clk
.clkr
,
4524 [GCC_UNIPHY2_AHB_CLK
] = &gcc_uniphy2_ahb_clk
.clkr
,
4525 [GCC_UNIPHY2_SYS_CLK
] = &gcc_uniphy2_sys_clk
.clkr
,
4526 [GCC_NSS_PORT1_RX_CLK
] = &gcc_nss_port1_rx_clk
.clkr
,
4527 [GCC_NSS_PORT1_TX_CLK
] = &gcc_nss_port1_tx_clk
.clkr
,
4528 [GCC_NSS_PORT2_RX_CLK
] = &gcc_nss_port2_rx_clk
.clkr
,
4529 [GCC_NSS_PORT2_TX_CLK
] = &gcc_nss_port2_tx_clk
.clkr
,
4530 [GCC_NSS_PORT3_RX_CLK
] = &gcc_nss_port3_rx_clk
.clkr
,
4531 [GCC_NSS_PORT3_TX_CLK
] = &gcc_nss_port3_tx_clk
.clkr
,
4532 [GCC_NSS_PORT4_RX_CLK
] = &gcc_nss_port4_rx_clk
.clkr
,
4533 [GCC_NSS_PORT4_TX_CLK
] = &gcc_nss_port4_tx_clk
.clkr
,
4534 [GCC_NSS_PORT5_RX_CLK
] = &gcc_nss_port5_rx_clk
.clkr
,
4535 [GCC_NSS_PORT5_TX_CLK
] = &gcc_nss_port5_tx_clk
.clkr
,
4536 [GCC_NSS_PORT6_RX_CLK
] = &gcc_nss_port6_rx_clk
.clkr
,
4537 [GCC_NSS_PORT6_TX_CLK
] = &gcc_nss_port6_tx_clk
.clkr
,
4538 [GCC_PORT1_MAC_CLK
] = &gcc_port1_mac_clk
.clkr
,
4539 [GCC_PORT2_MAC_CLK
] = &gcc_port2_mac_clk
.clkr
,
4540 [GCC_PORT3_MAC_CLK
] = &gcc_port3_mac_clk
.clkr
,
4541 [GCC_PORT4_MAC_CLK
] = &gcc_port4_mac_clk
.clkr
,
4542 [GCC_PORT5_MAC_CLK
] = &gcc_port5_mac_clk
.clkr
,
4543 [GCC_PORT6_MAC_CLK
] = &gcc_port6_mac_clk
.clkr
,
4544 [GCC_UNIPHY0_PORT1_RX_CLK
] = &gcc_uniphy0_port1_rx_clk
.clkr
,
4545 [GCC_UNIPHY0_PORT1_TX_CLK
] = &gcc_uniphy0_port1_tx_clk
.clkr
,
4546 [GCC_UNIPHY0_PORT2_RX_CLK
] = &gcc_uniphy0_port2_rx_clk
.clkr
,
4547 [GCC_UNIPHY0_PORT2_TX_CLK
] = &gcc_uniphy0_port2_tx_clk
.clkr
,
4548 [GCC_UNIPHY0_PORT3_RX_CLK
] = &gcc_uniphy0_port3_rx_clk
.clkr
,
4549 [GCC_UNIPHY0_PORT3_TX_CLK
] = &gcc_uniphy0_port3_tx_clk
.clkr
,
4550 [GCC_UNIPHY0_PORT4_RX_CLK
] = &gcc_uniphy0_port4_rx_clk
.clkr
,
4551 [GCC_UNIPHY0_PORT4_TX_CLK
] = &gcc_uniphy0_port4_tx_clk
.clkr
,
4552 [GCC_UNIPHY0_PORT5_RX_CLK
] = &gcc_uniphy0_port5_rx_clk
.clkr
,
4553 [GCC_UNIPHY0_PORT5_TX_CLK
] = &gcc_uniphy0_port5_tx_clk
.clkr
,
4554 [GCC_UNIPHY1_PORT5_RX_CLK
] = &gcc_uniphy1_port5_rx_clk
.clkr
,
4555 [GCC_UNIPHY1_PORT5_TX_CLK
] = &gcc_uniphy1_port5_tx_clk
.clkr
,
4556 [GCC_UNIPHY2_PORT6_RX_CLK
] = &gcc_uniphy2_port6_rx_clk
.clkr
,
4557 [GCC_UNIPHY2_PORT6_TX_CLK
] = &gcc_uniphy2_port6_tx_clk
.clkr
,
4558 [GCC_CRYPTO_AHB_CLK
] = &gcc_crypto_ahb_clk
.clkr
,
4559 [GCC_CRYPTO_AXI_CLK
] = &gcc_crypto_axi_clk
.clkr
,
4560 [GCC_CRYPTO_CLK
] = &gcc_crypto_clk
.clkr
,
4561 [GCC_GP1_CLK
] = &gcc_gp1_clk
.clkr
,
4562 [GCC_GP2_CLK
] = &gcc_gp2_clk
.clkr
,
4563 [GCC_GP3_CLK
] = &gcc_gp3_clk
.clkr
,
4566 static const struct qcom_reset_map gcc_ipq8074_resets
[] = {
4567 [GCC_BLSP1_BCR
] = { 0x01000, 0 },
4568 [GCC_BLSP1_QUP1_BCR
] = { 0x02000, 0 },
4569 [GCC_BLSP1_UART1_BCR
] = { 0x02038, 0 },
4570 [GCC_BLSP1_QUP2_BCR
] = { 0x03008, 0 },
4571 [GCC_BLSP1_UART2_BCR
] = { 0x03028, 0 },
4572 [GCC_BLSP1_QUP3_BCR
] = { 0x04008, 0 },
4573 [GCC_BLSP1_UART3_BCR
] = { 0x04028, 0 },
4574 [GCC_BLSP1_QUP4_BCR
] = { 0x05008, 0 },
4575 [GCC_BLSP1_UART4_BCR
] = { 0x05028, 0 },
4576 [GCC_BLSP1_QUP5_BCR
] = { 0x06008, 0 },
4577 [GCC_BLSP1_UART5_BCR
] = { 0x06028, 0 },
4578 [GCC_BLSP1_QUP6_BCR
] = { 0x07008, 0 },
4579 [GCC_BLSP1_UART6_BCR
] = { 0x07028, 0 },
4580 [GCC_IMEM_BCR
] = { 0x0e000, 0 },
4581 [GCC_SMMU_BCR
] = { 0x12000, 0 },
4582 [GCC_APSS_TCU_BCR
] = { 0x12050, 0 },
4583 [GCC_SMMU_XPU_BCR
] = { 0x12054, 0 },
4584 [GCC_PCNOC_TBU_BCR
] = { 0x12058, 0 },
4585 [GCC_SMMU_CFG_BCR
] = { 0x1208c, 0 },
4586 [GCC_PRNG_BCR
] = { 0x13000, 0 },
4587 [GCC_BOOT_ROM_BCR
] = { 0x13008, 0 },
4588 [GCC_CRYPTO_BCR
] = { 0x16000, 0 },
4589 [GCC_WCSS_BCR
] = { 0x18000, 0 },
4590 [GCC_WCSS_Q6_BCR
] = { 0x18100, 0 },
4591 [GCC_NSS_BCR
] = { 0x19000, 0 },
4592 [GCC_SEC_CTRL_BCR
] = { 0x1a000, 0 },
4593 [GCC_ADSS_BCR
] = { 0x1c000, 0 },
4594 [GCC_DDRSS_BCR
] = { 0x1e000, 0 },
4595 [GCC_SYSTEM_NOC_BCR
] = { 0x26000, 0 },
4596 [GCC_PCNOC_BCR
] = { 0x27018, 0 },
4597 [GCC_TCSR_BCR
] = { 0x28000, 0 },
4598 [GCC_QDSS_BCR
] = { 0x29000, 0 },
4599 [GCC_DCD_BCR
] = { 0x2a000, 0 },
4600 [GCC_MSG_RAM_BCR
] = { 0x2b000, 0 },
4601 [GCC_MPM_BCR
] = { 0x2c000, 0 },
4602 [GCC_SPMI_BCR
] = { 0x2e000, 0 },
4603 [GCC_SPDM_BCR
] = { 0x2f000, 0 },
4604 [GCC_RBCPR_BCR
] = { 0x33000, 0 },
4605 [GCC_RBCPR_MX_BCR
] = { 0x33014, 0 },
4606 [GCC_TLMM_BCR
] = { 0x34000, 0 },
4607 [GCC_RBCPR_WCSS_BCR
] = { 0x3a000, 0 },
4608 [GCC_USB0_PHY_BCR
] = { 0x3e034, 0 },
4609 [GCC_USB3PHY_0_PHY_BCR
] = { 0x3e03c, 0 },
4610 [GCC_USB0_BCR
] = { 0x3e070, 0 },
4611 [GCC_USB1_PHY_BCR
] = { 0x3f034, 0 },
4612 [GCC_USB3PHY_1_PHY_BCR
] = { 0x3f03c, 0 },
4613 [GCC_USB1_BCR
] = { 0x3f070, 0 },
4614 [GCC_QUSB2_0_PHY_BCR
] = { 0x4103c, 0 },
4615 [GCC_QUSB2_1_PHY_BCR
] = { 0x41040, 0 },
4616 [GCC_SDCC1_BCR
] = { 0x42000, 0 },
4617 [GCC_SDCC2_BCR
] = { 0x43000, 0 },
4618 [GCC_SNOC_BUS_TIMEOUT0_BCR
] = { 0x47000, 0 },
4619 [GCC_SNOC_BUS_TIMEOUT2_BCR
] = { 0x47008, 0 },
4620 [GCC_SNOC_BUS_TIMEOUT3_BCR
] = { 0x47010, 0 },
4621 [GCC_PCNOC_BUS_TIMEOUT0_BCR
] = { 0x48000, 0 },
4622 [GCC_PCNOC_BUS_TIMEOUT1_BCR
] = { 0x48008, 0 },
4623 [GCC_PCNOC_BUS_TIMEOUT2_BCR
] = { 0x48010, 0 },
4624 [GCC_PCNOC_BUS_TIMEOUT3_BCR
] = { 0x48018, 0 },
4625 [GCC_PCNOC_BUS_TIMEOUT4_BCR
] = { 0x48020, 0 },
4626 [GCC_PCNOC_BUS_TIMEOUT5_BCR
] = { 0x48028, 0 },
4627 [GCC_PCNOC_BUS_TIMEOUT6_BCR
] = { 0x48030, 0 },
4628 [GCC_PCNOC_BUS_TIMEOUT7_BCR
] = { 0x48038, 0 },
4629 [GCC_PCNOC_BUS_TIMEOUT8_BCR
] = { 0x48040, 0 },
4630 [GCC_PCNOC_BUS_TIMEOUT9_BCR
] = { 0x48048, 0 },
4631 [GCC_UNIPHY0_BCR
] = { 0x56000, 0 },
4632 [GCC_UNIPHY1_BCR
] = { 0x56100, 0 },
4633 [GCC_UNIPHY2_BCR
] = { 0x56200, 0 },
4634 [GCC_CMN_12GPLL_BCR
] = { 0x56300, 0 },
4635 [GCC_QPIC_BCR
] = { 0x57018, 0 },
4636 [GCC_MDIO_BCR
] = { 0x58000, 0 },
4637 [GCC_PCIE1_TBU_BCR
] = { 0x65000, 0 },
4638 [GCC_WCSS_CORE_TBU_BCR
] = { 0x66000, 0 },
4639 [GCC_WCSS_Q6_TBU_BCR
] = { 0x67000, 0 },
4640 [GCC_USB0_TBU_BCR
] = { 0x6a000, 0 },
4641 [GCC_USB1_TBU_BCR
] = { 0x6a004, 0 },
4642 [GCC_PCIE0_TBU_BCR
] = { 0x6b000, 0 },
4643 [GCC_NSS_NOC_TBU_BCR
] = { 0x6e000, 0 },
4644 [GCC_PCIE0_BCR
] = { 0x75004, 0 },
4645 [GCC_PCIE0_PHY_BCR
] = { 0x75038, 0 },
4646 [GCC_PCIE0PHY_PHY_BCR
] = { 0x7503c, 0 },
4647 [GCC_PCIE0_LINK_DOWN_BCR
] = { 0x75044, 0 },
4648 [GCC_PCIE1_BCR
] = { 0x76004, 0 },
4649 [GCC_PCIE1_PHY_BCR
] = { 0x76038, 0 },
4650 [GCC_PCIE1PHY_PHY_BCR
] = { 0x7603c, 0 },
4651 [GCC_PCIE1_LINK_DOWN_BCR
] = { 0x76044, 0 },
4652 [GCC_DCC_BCR
] = { 0x77000, 0 },
4653 [GCC_APC0_VOLTAGE_DROOP_DETECTOR_BCR
] = { 0x78000, 0 },
4654 [GCC_APC1_VOLTAGE_DROOP_DETECTOR_BCR
] = { 0x79000, 0 },
4655 [GCC_SMMU_CATS_BCR
] = { 0x7c000, 0 },
4656 [GCC_UBI0_AXI_ARES
] = { 0x68010, 0 },
4657 [GCC_UBI0_AHB_ARES
] = { 0x68010, 1 },
4658 [GCC_UBI0_NC_AXI_ARES
] = { 0x68010, 2 },
4659 [GCC_UBI0_DBG_ARES
] = { 0x68010, 3 },
4660 [GCC_UBI0_CORE_CLAMP_ENABLE
] = { 0x68010, 4 },
4661 [GCC_UBI0_CLKRST_CLAMP_ENABLE
] = { 0x68010, 5 },
4662 [GCC_UBI1_AXI_ARES
] = { 0x68010, 8 },
4663 [GCC_UBI1_AHB_ARES
] = { 0x68010, 9 },
4664 [GCC_UBI1_NC_AXI_ARES
] = { 0x68010, 10 },
4665 [GCC_UBI1_DBG_ARES
] = { 0x68010, 11 },
4666 [GCC_UBI1_CORE_CLAMP_ENABLE
] = { 0x68010, 12 },
4667 [GCC_UBI1_CLKRST_CLAMP_ENABLE
] = { 0x68010, 13 },
4668 [GCC_NSS_CFG_ARES
] = { 0x68010, 16 },
4669 [GCC_NSS_IMEM_ARES
] = { 0x68010, 17 },
4670 [GCC_NSS_NOC_ARES
] = { 0x68010, 18 },
4671 [GCC_NSS_CRYPTO_ARES
] = { 0x68010, 19 },
4672 [GCC_NSS_CSR_ARES
] = { 0x68010, 20 },
4673 [GCC_NSS_CE_APB_ARES
] = { 0x68010, 21 },
4674 [GCC_NSS_CE_AXI_ARES
] = { 0x68010, 22 },
4675 [GCC_NSSNOC_CE_APB_ARES
] = { 0x68010, 23 },
4676 [GCC_NSSNOC_CE_AXI_ARES
] = { 0x68010, 24 },
4677 [GCC_NSSNOC_UBI0_AHB_ARES
] = { 0x68010, 25 },
4678 [GCC_NSSNOC_UBI1_AHB_ARES
] = { 0x68010, 26 },
4679 [GCC_NSSNOC_SNOC_ARES
] = { 0x68010, 27 },
4680 [GCC_NSSNOC_CRYPTO_ARES
] = { 0x68010, 28 },
4681 [GCC_NSSNOC_ATB_ARES
] = { 0x68010, 29 },
4682 [GCC_NSSNOC_QOSGEN_REF_ARES
] = { 0x68010, 30 },
4683 [GCC_NSSNOC_TIMEOUT_REF_ARES
] = { 0x68010, 31 },
4684 [GCC_PCIE0_PIPE_ARES
] = { 0x75040, 0 },
4685 [GCC_PCIE0_SLEEP_ARES
] = { 0x75040, 1 },
4686 [GCC_PCIE0_CORE_STICKY_ARES
] = { 0x75040, 2 },
4687 [GCC_PCIE0_AXI_MASTER_ARES
] = { 0x75040, 3 },
4688 [GCC_PCIE0_AXI_SLAVE_ARES
] = { 0x75040, 4 },
4689 [GCC_PCIE0_AHB_ARES
] = { 0x75040, 5 },
4690 [GCC_PCIE0_AXI_MASTER_STICKY_ARES
] = { 0x75040, 6 },
4691 [GCC_PCIE1_PIPE_ARES
] = { 0x76040, 0 },
4692 [GCC_PCIE1_SLEEP_ARES
] = { 0x76040, 1 },
4693 [GCC_PCIE1_CORE_STICKY_ARES
] = { 0x76040, 2 },
4694 [GCC_PCIE1_AXI_MASTER_ARES
] = { 0x76040, 3 },
4695 [GCC_PCIE1_AXI_SLAVE_ARES
] = { 0x76040, 4 },
4696 [GCC_PCIE1_AHB_ARES
] = { 0x76040, 5 },
4697 [GCC_PCIE1_AXI_MASTER_STICKY_ARES
] = { 0x76040, 6 },
4700 static const struct of_device_id gcc_ipq8074_match_table
[] = {
4701 { .compatible
= "qcom,gcc-ipq8074" },
4704 MODULE_DEVICE_TABLE(of
, gcc_ipq8074_match_table
);
4706 static const struct regmap_config gcc_ipq8074_regmap_config
= {
4710 .max_register
= 0x7fffc,
4714 static const struct qcom_cc_desc gcc_ipq8074_desc
= {
4715 .config
= &gcc_ipq8074_regmap_config
,
4716 .clks
= gcc_ipq8074_clks
,
4717 .num_clks
= ARRAY_SIZE(gcc_ipq8074_clks
),
4718 .resets
= gcc_ipq8074_resets
,
4719 .num_resets
= ARRAY_SIZE(gcc_ipq8074_resets
),
4722 static int gcc_ipq8074_probe(struct platform_device
*pdev
)
4726 for (i
= 0; i
< ARRAY_SIZE(gcc_ipq8074_hws
); i
++) {
4727 ret
= devm_clk_hw_register(&pdev
->dev
, gcc_ipq8074_hws
[i
]);
4732 return qcom_cc_probe(pdev
, &gcc_ipq8074_desc
);
4735 static struct platform_driver gcc_ipq8074_driver
= {
4736 .probe
= gcc_ipq8074_probe
,
4738 .name
= "qcom,gcc-ipq8074",
4739 .of_match_table
= gcc_ipq8074_match_table
,
4743 static int __init
gcc_ipq8074_init(void)
4745 return platform_driver_register(&gcc_ipq8074_driver
);
4747 core_initcall(gcc_ipq8074_init
);
4749 static void __exit
gcc_ipq8074_exit(void)
4751 platform_driver_unregister(&gcc_ipq8074_driver
);
4753 module_exit(gcc_ipq8074_exit
);
4755 MODULE_DESCRIPTION("QCOM GCC IPQ8074 Driver");
4756 MODULE_LICENSE("GPL v2");
4757 MODULE_ALIAS("platform:gcc-ipq8074");