117269568STaniya Das // SPDX-License-Identifier: GPL-2.0-only 217269568STaniya Das /* 3d79dfa19STaniya Das * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. 417269568STaniya Das */ 517269568STaniya Das 617269568STaniya Das #include <linux/clk-provider.h> 717269568STaniya Das #include <linux/err.h> 817269568STaniya Das #include <linux/kernel.h> 917269568STaniya Das #include <linux/module.h> 1017269568STaniya Das #include <linux/of.h> 1117269568STaniya Das #include <linux/of_device.h> 1217269568STaniya Das #include <linux/regmap.h> 1317269568STaniya Das 1417269568STaniya Das #include <dt-bindings/clock/qcom,gcc-sc7180.h> 1517269568STaniya Das 1617269568STaniya Das #include "clk-alpha-pll.h" 1717269568STaniya Das #include "clk-branch.h" 1817269568STaniya Das #include "clk-rcg.h" 1917269568STaniya Das #include "clk-regmap.h" 2017269568STaniya Das #include "common.h" 2117269568STaniya Das #include "gdsc.h" 2217269568STaniya Das #include "reset.h" 2317269568STaniya Das 2417269568STaniya Das enum { 2517269568STaniya Das P_BI_TCXO, 2617269568STaniya Das P_CORE_BI_PLL_TEST_SE, 2717269568STaniya Das P_GPLL0_OUT_EVEN, 2817269568STaniya Das P_GPLL0_OUT_MAIN, 2917269568STaniya Das P_GPLL1_OUT_MAIN, 3017269568STaniya Das P_GPLL4_OUT_MAIN, 3117269568STaniya Das P_GPLL6_OUT_MAIN, 3217269568STaniya Das P_GPLL7_OUT_MAIN, 3317269568STaniya Das P_SLEEP_CLK, 3417269568STaniya Das }; 3517269568STaniya Das 3617269568STaniya Das static struct clk_alpha_pll gpll0 = { 3717269568STaniya Das .offset = 0x0, 3817269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 3917269568STaniya Das .clkr = { 4017269568STaniya Das .enable_reg = 0x52010, 4117269568STaniya Das .enable_mask = BIT(0), 4217269568STaniya Das .hw.init = &(struct clk_init_data){ 4317269568STaniya Das .name = "gpll0", 4417269568STaniya Das .parent_data = &(const struct clk_parent_data){ 4517269568STaniya Das .fw_name = "bi_tcxo", 4617269568STaniya Das .name = "bi_tcxo", 4717269568STaniya Das }, 4817269568STaniya Das .num_parents = 1, 4917269568STaniya Das .ops = &clk_alpha_pll_fixed_fabia_ops, 5017269568STaniya Das }, 5117269568STaniya Das }, 5217269568STaniya Das }; 5317269568STaniya Das 5417269568STaniya Das static const struct clk_div_table post_div_table_gpll0_out_even[] = { 5517269568STaniya Das { 0x1, 2 }, 5617269568STaniya Das { } 5717269568STaniya Das }; 5817269568STaniya Das 5917269568STaniya Das static struct clk_alpha_pll_postdiv gpll0_out_even = { 6017269568STaniya Das .offset = 0x0, 6117269568STaniya Das .post_div_shift = 8, 6217269568STaniya Das .post_div_table = post_div_table_gpll0_out_even, 6317269568STaniya Das .num_post_div = ARRAY_SIZE(post_div_table_gpll0_out_even), 6417269568STaniya Das .width = 4, 6517269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 6617269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 6717269568STaniya Das .name = "gpll0_out_even", 68041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 69041b893bSDmitry Baryshkov &gpll0.clkr.hw, 7017269568STaniya Das }, 7117269568STaniya Das .num_parents = 1, 7217269568STaniya Das .ops = &clk_alpha_pll_postdiv_fabia_ops, 7317269568STaniya Das }, 7417269568STaniya Das }; 7517269568STaniya Das 7617269568STaniya Das static struct clk_fixed_factor gcc_pll0_main_div_cdiv = { 7717269568STaniya Das .mult = 1, 7817269568STaniya Das .div = 2, 7917269568STaniya Das .hw.init = &(struct clk_init_data){ 8017269568STaniya Das .name = "gcc_pll0_main_div_cdiv", 81041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 82041b893bSDmitry Baryshkov &gpll0.clkr.hw, 8317269568STaniya Das }, 8417269568STaniya Das .num_parents = 1, 8517269568STaniya Das .ops = &clk_fixed_factor_ops, 8617269568STaniya Das }, 8717269568STaniya Das }; 8817269568STaniya Das 8917269568STaniya Das static struct clk_alpha_pll gpll1 = { 9017269568STaniya Das .offset = 0x01000, 9117269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 9217269568STaniya Das .clkr = { 9317269568STaniya Das .enable_reg = 0x52010, 9417269568STaniya Das .enable_mask = BIT(1), 9517269568STaniya Das .hw.init = &(struct clk_init_data){ 9617269568STaniya Das .name = "gpll1", 9717269568STaniya Das .parent_data = &(const struct clk_parent_data){ 9817269568STaniya Das .fw_name = "bi_tcxo", 9917269568STaniya Das .name = "bi_tcxo", 10017269568STaniya Das }, 10117269568STaniya Das .num_parents = 1, 10217269568STaniya Das .ops = &clk_alpha_pll_fixed_fabia_ops, 10317269568STaniya Das }, 10417269568STaniya Das }, 10517269568STaniya Das }; 10617269568STaniya Das 10717269568STaniya Das static struct clk_alpha_pll gpll4 = { 10817269568STaniya Das .offset = 0x76000, 10917269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 11017269568STaniya Das .clkr = { 11117269568STaniya Das .enable_reg = 0x52010, 11217269568STaniya Das .enable_mask = BIT(4), 11317269568STaniya Das .hw.init = &(struct clk_init_data){ 11417269568STaniya Das .name = "gpll4", 11517269568STaniya Das .parent_data = &(const struct clk_parent_data){ 11617269568STaniya Das .fw_name = "bi_tcxo", 11717269568STaniya Das .name = "bi_tcxo", 11817269568STaniya Das }, 11917269568STaniya Das .num_parents = 1, 12017269568STaniya Das .ops = &clk_alpha_pll_fixed_fabia_ops, 12117269568STaniya Das }, 12217269568STaniya Das }, 12317269568STaniya Das }; 12417269568STaniya Das 12517269568STaniya Das static struct clk_alpha_pll gpll6 = { 12617269568STaniya Das .offset = 0x13000, 12717269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 12817269568STaniya Das .clkr = { 12917269568STaniya Das .enable_reg = 0x52010, 13017269568STaniya Das .enable_mask = BIT(6), 13117269568STaniya Das .hw.init = &(struct clk_init_data){ 13217269568STaniya Das .name = "gpll6", 13317269568STaniya Das .parent_data = &(const struct clk_parent_data){ 13417269568STaniya Das .fw_name = "bi_tcxo", 13517269568STaniya Das .name = "bi_tcxo", 13617269568STaniya Das }, 13717269568STaniya Das .num_parents = 1, 13817269568STaniya Das .ops = &clk_alpha_pll_fixed_fabia_ops, 13917269568STaniya Das }, 14017269568STaniya Das }, 14117269568STaniya Das }; 14217269568STaniya Das 14317269568STaniya Das static struct clk_alpha_pll gpll7 = { 14417269568STaniya Das .offset = 0x27000, 14517269568STaniya Das .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 14617269568STaniya Das .clkr = { 14717269568STaniya Das .enable_reg = 0x52010, 14817269568STaniya Das .enable_mask = BIT(7), 14917269568STaniya Das .hw.init = &(struct clk_init_data){ 15017269568STaniya Das .name = "gpll7", 15117269568STaniya Das .parent_data = &(const struct clk_parent_data){ 15217269568STaniya Das .fw_name = "bi_tcxo", 15317269568STaniya Das .name = "bi_tcxo", 15417269568STaniya Das }, 15517269568STaniya Das .num_parents = 1, 15617269568STaniya Das .ops = &clk_alpha_pll_fixed_fabia_ops, 15717269568STaniya Das }, 15817269568STaniya Das }, 15917269568STaniya Das }; 16017269568STaniya Das 16117269568STaniya Das static const struct parent_map gcc_parent_map_0[] = { 16217269568STaniya Das { P_BI_TCXO, 0 }, 16317269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 16417269568STaniya Das { P_GPLL0_OUT_EVEN, 6 }, 16517269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 16617269568STaniya Das }; 16717269568STaniya Das 16817269568STaniya Das static const struct clk_parent_data gcc_parent_data_0[] = { 16917269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 17017269568STaniya Das { .hw = &gpll0.clkr.hw }, 17117269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 17217269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 17317269568STaniya Das }; 17417269568STaniya Das 17517269568STaniya Das static const struct clk_parent_data gcc_parent_data_0_ao[] = { 17617269568STaniya Das { .fw_name = "bi_tcxo_ao", .name = "bi_tcxo_ao" }, 17717269568STaniya Das { .hw = &gpll0.clkr.hw }, 17817269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 17917269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 18017269568STaniya Das }; 18117269568STaniya Das 18217269568STaniya Das static const struct parent_map gcc_parent_map_1[] = { 18317269568STaniya Das { P_BI_TCXO, 0 }, 18417269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 18517269568STaniya Das { P_GPLL6_OUT_MAIN, 2 }, 18617269568STaniya Das { P_GPLL0_OUT_EVEN, 6 }, 18717269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 18817269568STaniya Das }; 18917269568STaniya Das 19017269568STaniya Das static const struct clk_parent_data gcc_parent_data_1[] = { 19117269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 19217269568STaniya Das { .hw = &gpll0.clkr.hw }, 19317269568STaniya Das { .hw = &gpll6.clkr.hw }, 19417269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 19517269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 19617269568STaniya Das }; 19717269568STaniya Das 19817269568STaniya Das static const struct parent_map gcc_parent_map_2[] = { 19917269568STaniya Das { P_BI_TCXO, 0 }, 20017269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 20117269568STaniya Das { P_GPLL1_OUT_MAIN, 4 }, 20217269568STaniya Das { P_GPLL4_OUT_MAIN, 5 }, 20317269568STaniya Das { P_GPLL0_OUT_EVEN, 6 }, 20417269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 20517269568STaniya Das }; 20617269568STaniya Das 20717269568STaniya Das static const struct clk_parent_data gcc_parent_data_2[] = { 20817269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 20917269568STaniya Das { .hw = &gpll0.clkr.hw }, 21017269568STaniya Das { .hw = &gpll1.clkr.hw }, 21117269568STaniya Das { .hw = &gpll4.clkr.hw }, 21217269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 21317269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 21417269568STaniya Das }; 21517269568STaniya Das 21617269568STaniya Das static const struct parent_map gcc_parent_map_3[] = { 21717269568STaniya Das { P_BI_TCXO, 0 }, 21817269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 21917269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 22017269568STaniya Das }; 22117269568STaniya Das 22217269568STaniya Das static const struct clk_parent_data gcc_parent_data_3[] = { 22317269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 22417269568STaniya Das { .hw = &gpll0.clkr.hw }, 22517269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 22617269568STaniya Das }; 22717269568STaniya Das 22817269568STaniya Das static const struct parent_map gcc_parent_map_4[] = { 22917269568STaniya Das { P_BI_TCXO, 0 }, 23017269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 23117269568STaniya Das { P_SLEEP_CLK, 5 }, 23217269568STaniya Das { P_GPLL0_OUT_EVEN, 6 }, 23317269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 23417269568STaniya Das }; 23517269568STaniya Das 23617269568STaniya Das static const struct clk_parent_data gcc_parent_data_4[] = { 23717269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 23817269568STaniya Das { .hw = &gpll0.clkr.hw }, 23917269568STaniya Das { .fw_name = "sleep_clk", .name = "sleep_clk" }, 24017269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 24117269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 24217269568STaniya Das }; 24317269568STaniya Das 24417269568STaniya Das static const struct parent_map gcc_parent_map_5[] = { 24517269568STaniya Das { P_BI_TCXO, 0 }, 24617269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 24717269568STaniya Das { P_GPLL7_OUT_MAIN, 3 }, 24817269568STaniya Das { P_GPLL0_OUT_EVEN, 6 }, 24917269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 25017269568STaniya Das }; 25117269568STaniya Das 25217269568STaniya Das static const struct clk_parent_data gcc_parent_data_5[] = { 25317269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 25417269568STaniya Das { .hw = &gpll0.clkr.hw }, 25517269568STaniya Das { .hw = &gpll7.clkr.hw }, 25617269568STaniya Das { .hw = &gpll0_out_even.clkr.hw }, 25717269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 25817269568STaniya Das }; 25917269568STaniya Das 26017269568STaniya Das static const struct parent_map gcc_parent_map_6[] = { 26117269568STaniya Das { P_BI_TCXO, 0 }, 26217269568STaniya Das { P_GPLL0_OUT_MAIN, 1 }, 26317269568STaniya Das { P_SLEEP_CLK, 5 }, 26417269568STaniya Das { P_CORE_BI_PLL_TEST_SE, 7 }, 26517269568STaniya Das }; 26617269568STaniya Das 26717269568STaniya Das static const struct clk_parent_data gcc_parent_data_6[] = { 26817269568STaniya Das { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 26917269568STaniya Das { .hw = &gpll0.clkr.hw }, 27017269568STaniya Das { .fw_name = "sleep_clk", .name = "sleep_clk" }, 27117269568STaniya Das { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 27217269568STaniya Das }; 27317269568STaniya Das 27417269568STaniya Das static const struct freq_tbl ftbl_gcc_cpuss_ahb_clk_src[] = { 27517269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 27617269568STaniya Das { } 27717269568STaniya Das }; 27817269568STaniya Das 27917269568STaniya Das static struct clk_rcg2 gcc_cpuss_ahb_clk_src = { 28017269568STaniya Das .cmd_rcgr = 0x48014, 28117269568STaniya Das .mnd_width = 0, 28217269568STaniya Das .hid_width = 5, 28317269568STaniya Das .parent_map = gcc_parent_map_0, 28417269568STaniya Das .freq_tbl = ftbl_gcc_cpuss_ahb_clk_src, 28517269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 28617269568STaniya Das .name = "gcc_cpuss_ahb_clk_src", 28717269568STaniya Das .parent_data = gcc_parent_data_0_ao, 288e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0_ao), 28917269568STaniya Das .flags = CLK_SET_RATE_PARENT, 29017269568STaniya Das .ops = &clk_rcg2_ops, 29117269568STaniya Das }, 29217269568STaniya Das }; 29317269568STaniya Das 29417269568STaniya Das static const struct freq_tbl ftbl_gcc_gp1_clk_src[] = { 29517269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 29617269568STaniya Das F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 29717269568STaniya Das F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 29817269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 29917269568STaniya Das F(200000000, P_GPLL0_OUT_EVEN, 1.5, 0, 0), 30017269568STaniya Das { } 30117269568STaniya Das }; 30217269568STaniya Das 30317269568STaniya Das static struct clk_rcg2 gcc_gp1_clk_src = { 30417269568STaniya Das .cmd_rcgr = 0x64004, 30517269568STaniya Das .mnd_width = 8, 30617269568STaniya Das .hid_width = 5, 30717269568STaniya Das .parent_map = gcc_parent_map_4, 30817269568STaniya Das .freq_tbl = ftbl_gcc_gp1_clk_src, 30917269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 31017269568STaniya Das .name = "gcc_gp1_clk_src", 31117269568STaniya Das .parent_data = gcc_parent_data_4, 312e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_4), 31317269568STaniya Das .ops = &clk_rcg2_ops, 31417269568STaniya Das }, 31517269568STaniya Das }; 31617269568STaniya Das 31717269568STaniya Das static struct clk_rcg2 gcc_gp2_clk_src = { 31817269568STaniya Das .cmd_rcgr = 0x65004, 31917269568STaniya Das .mnd_width = 8, 32017269568STaniya Das .hid_width = 5, 32117269568STaniya Das .parent_map = gcc_parent_map_4, 32217269568STaniya Das .freq_tbl = ftbl_gcc_gp1_clk_src, 32317269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 32417269568STaniya Das .name = "gcc_gp2_clk_src", 32517269568STaniya Das .parent_data = gcc_parent_data_4, 326e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_4), 32717269568STaniya Das .ops = &clk_rcg2_ops, 32817269568STaniya Das }, 32917269568STaniya Das }; 33017269568STaniya Das 33117269568STaniya Das static struct clk_rcg2 gcc_gp3_clk_src = { 33217269568STaniya Das .cmd_rcgr = 0x66004, 33317269568STaniya Das .mnd_width = 8, 33417269568STaniya Das .hid_width = 5, 33517269568STaniya Das .parent_map = gcc_parent_map_4, 33617269568STaniya Das .freq_tbl = ftbl_gcc_gp1_clk_src, 33717269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 33817269568STaniya Das .name = "gcc_gp3_clk_src", 33917269568STaniya Das .parent_data = gcc_parent_data_4, 340e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_4), 34117269568STaniya Das .ops = &clk_rcg2_ops, 34217269568STaniya Das }, 34317269568STaniya Das }; 34417269568STaniya Das 34517269568STaniya Das static const struct freq_tbl ftbl_gcc_pdm2_clk_src[] = { 34617269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 34717269568STaniya Das F(60000000, P_GPLL0_OUT_EVEN, 5, 0, 0), 34817269568STaniya Das { } 34917269568STaniya Das }; 35017269568STaniya Das 35117269568STaniya Das static struct clk_rcg2 gcc_pdm2_clk_src = { 35217269568STaniya Das .cmd_rcgr = 0x33010, 35317269568STaniya Das .mnd_width = 0, 35417269568STaniya Das .hid_width = 5, 35517269568STaniya Das .parent_map = gcc_parent_map_0, 35617269568STaniya Das .freq_tbl = ftbl_gcc_pdm2_clk_src, 35717269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 35817269568STaniya Das .name = "gcc_pdm2_clk_src", 35917269568STaniya Das .parent_data = gcc_parent_data_0, 360e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 36117269568STaniya Das .ops = &clk_rcg2_ops, 36217269568STaniya Das }, 36317269568STaniya Das }; 36417269568STaniya Das 36517269568STaniya Das static const struct freq_tbl ftbl_gcc_qspi_core_clk_src[] = { 36617269568STaniya Das F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 36717269568STaniya Das F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 36817269568STaniya Das F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 36917269568STaniya Das { } 37017269568STaniya Das }; 37117269568STaniya Das 37217269568STaniya Das static struct clk_rcg2 gcc_qspi_core_clk_src = { 37317269568STaniya Das .cmd_rcgr = 0x4b00c, 37417269568STaniya Das .mnd_width = 0, 37517269568STaniya Das .hid_width = 5, 37617269568STaniya Das .parent_map = gcc_parent_map_2, 37717269568STaniya Das .freq_tbl = ftbl_gcc_qspi_core_clk_src, 37817269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 37917269568STaniya Das .name = "gcc_qspi_core_clk_src", 38017269568STaniya Das .parent_data = gcc_parent_data_2, 381e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_2), 38217269568STaniya Das .ops = &clk_rcg2_ops, 38317269568STaniya Das }, 38417269568STaniya Das }; 38517269568STaniya Das 38617269568STaniya Das static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = { 38717269568STaniya Das F(7372800, P_GPLL0_OUT_EVEN, 1, 384, 15625), 38817269568STaniya Das F(14745600, P_GPLL0_OUT_EVEN, 1, 768, 15625), 38917269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 39017269568STaniya Das F(29491200, P_GPLL0_OUT_EVEN, 1, 1536, 15625), 39117269568STaniya Das F(32000000, P_GPLL0_OUT_EVEN, 1, 8, 75), 39217269568STaniya Das F(48000000, P_GPLL0_OUT_EVEN, 1, 4, 25), 3931b70061fSTaniya Das F(51200000, P_GPLL6_OUT_MAIN, 7.5, 0, 0), 39417269568STaniya Das F(64000000, P_GPLL0_OUT_EVEN, 1, 16, 75), 39517269568STaniya Das F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 39617269568STaniya Das F(80000000, P_GPLL0_OUT_EVEN, 1, 4, 15), 39717269568STaniya Das F(96000000, P_GPLL0_OUT_EVEN, 1, 8, 25), 39817269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 39917269568STaniya Das F(102400000, P_GPLL0_OUT_EVEN, 1, 128, 375), 40017269568STaniya Das F(112000000, P_GPLL0_OUT_EVEN, 1, 28, 75), 40117269568STaniya Das F(117964800, P_GPLL0_OUT_EVEN, 1, 6144, 15625), 40217269568STaniya Das F(120000000, P_GPLL0_OUT_EVEN, 2.5, 0, 0), 40317269568STaniya Das F(128000000, P_GPLL6_OUT_MAIN, 3, 0, 0), 40417269568STaniya Das { } 40517269568STaniya Das }; 40617269568STaniya Das 40717269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init = { 40817269568STaniya Das .name = "gcc_qupv3_wrap0_s0_clk_src", 4091b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4101b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 41117269568STaniya Das .ops = &clk_rcg2_ops, 41217269568STaniya Das }; 41317269568STaniya Das 41417269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src = { 41517269568STaniya Das .cmd_rcgr = 0x17034, 41617269568STaniya Das .mnd_width = 16, 41717269568STaniya Das .hid_width = 5, 4181b70061fSTaniya Das .parent_map = gcc_parent_map_1, 41917269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 42017269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s0_clk_src_init, 42117269568STaniya Das }; 42217269568STaniya Das 42317269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s1_clk_src_init = { 42417269568STaniya Das .name = "gcc_qupv3_wrap0_s1_clk_src", 4251b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4261b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 42717269568STaniya Das .ops = &clk_rcg2_ops, 42817269568STaniya Das }; 42917269568STaniya Das 43017269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s1_clk_src = { 43117269568STaniya Das .cmd_rcgr = 0x17164, 43217269568STaniya Das .mnd_width = 16, 43317269568STaniya Das .hid_width = 5, 4341b70061fSTaniya Das .parent_map = gcc_parent_map_1, 43517269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 43617269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s1_clk_src_init, 43717269568STaniya Das }; 43817269568STaniya Das 43917269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s2_clk_src_init = { 44017269568STaniya Das .name = "gcc_qupv3_wrap0_s2_clk_src", 4411b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4421b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 44317269568STaniya Das .ops = &clk_rcg2_ops, 44417269568STaniya Das }; 44517269568STaniya Das 44617269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s2_clk_src = { 44717269568STaniya Das .cmd_rcgr = 0x17294, 44817269568STaniya Das .mnd_width = 16, 44917269568STaniya Das .hid_width = 5, 4501b70061fSTaniya Das .parent_map = gcc_parent_map_1, 45117269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 45217269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s2_clk_src_init, 45317269568STaniya Das }; 45417269568STaniya Das 45517269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s3_clk_src_init = { 45617269568STaniya Das .name = "gcc_qupv3_wrap0_s3_clk_src", 4571b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4581b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 45917269568STaniya Das .ops = &clk_rcg2_ops, 46017269568STaniya Das }; 46117269568STaniya Das 46217269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s3_clk_src = { 46317269568STaniya Das .cmd_rcgr = 0x173c4, 46417269568STaniya Das .mnd_width = 16, 46517269568STaniya Das .hid_width = 5, 4661b70061fSTaniya Das .parent_map = gcc_parent_map_1, 46717269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 46817269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s3_clk_src_init, 46917269568STaniya Das }; 47017269568STaniya Das 47117269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s4_clk_src_init = { 47217269568STaniya Das .name = "gcc_qupv3_wrap0_s4_clk_src", 4731b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4741b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 47517269568STaniya Das .ops = &clk_rcg2_ops, 47617269568STaniya Das }; 47717269568STaniya Das 47817269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s4_clk_src = { 47917269568STaniya Das .cmd_rcgr = 0x174f4, 48017269568STaniya Das .mnd_width = 16, 48117269568STaniya Das .hid_width = 5, 4821b70061fSTaniya Das .parent_map = gcc_parent_map_1, 48317269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 48417269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s4_clk_src_init, 48517269568STaniya Das }; 48617269568STaniya Das 48717269568STaniya Das static struct clk_init_data gcc_qupv3_wrap0_s5_clk_src_init = { 48817269568STaniya Das .name = "gcc_qupv3_wrap0_s5_clk_src", 4891b70061fSTaniya Das .parent_data = gcc_parent_data_1, 4901b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 49117269568STaniya Das .ops = &clk_rcg2_ops, 49217269568STaniya Das }; 49317269568STaniya Das 49417269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap0_s5_clk_src = { 49517269568STaniya Das .cmd_rcgr = 0x17624, 49617269568STaniya Das .mnd_width = 16, 49717269568STaniya Das .hid_width = 5, 4981b70061fSTaniya Das .parent_map = gcc_parent_map_1, 49917269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 50017269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap0_s5_clk_src_init, 50117269568STaniya Das }; 50217269568STaniya Das 50317269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s0_clk_src_init = { 50417269568STaniya Das .name = "gcc_qupv3_wrap1_s0_clk_src", 5051b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5061b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 50717269568STaniya Das .ops = &clk_rcg2_ops, 50817269568STaniya Das }; 50917269568STaniya Das 51017269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s0_clk_src = { 51117269568STaniya Das .cmd_rcgr = 0x18018, 51217269568STaniya Das .mnd_width = 16, 51317269568STaniya Das .hid_width = 5, 5141b70061fSTaniya Das .parent_map = gcc_parent_map_1, 51517269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 51617269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s0_clk_src_init, 51717269568STaniya Das }; 51817269568STaniya Das 51917269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s1_clk_src_init = { 52017269568STaniya Das .name = "gcc_qupv3_wrap1_s1_clk_src", 5211b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5221b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 52317269568STaniya Das .ops = &clk_rcg2_ops, 52417269568STaniya Das }; 52517269568STaniya Das 52617269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s1_clk_src = { 52717269568STaniya Das .cmd_rcgr = 0x18148, 52817269568STaniya Das .mnd_width = 16, 52917269568STaniya Das .hid_width = 5, 5301b70061fSTaniya Das .parent_map = gcc_parent_map_1, 53117269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 53217269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s1_clk_src_init, 53317269568STaniya Das }; 53417269568STaniya Das 53517269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s2_clk_src_init = { 53617269568STaniya Das .name = "gcc_qupv3_wrap1_s2_clk_src", 5371b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5381b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 53917269568STaniya Das .ops = &clk_rcg2_ops, 54017269568STaniya Das }; 54117269568STaniya Das 54217269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s2_clk_src = { 54317269568STaniya Das .cmd_rcgr = 0x18278, 54417269568STaniya Das .mnd_width = 16, 54517269568STaniya Das .hid_width = 5, 5461b70061fSTaniya Das .parent_map = gcc_parent_map_1, 54717269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 54817269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s2_clk_src_init, 54917269568STaniya Das }; 55017269568STaniya Das 55117269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s3_clk_src_init = { 55217269568STaniya Das .name = "gcc_qupv3_wrap1_s3_clk_src", 5531b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5541b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 55517269568STaniya Das .ops = &clk_rcg2_ops, 55617269568STaniya Das }; 55717269568STaniya Das 55817269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s3_clk_src = { 55917269568STaniya Das .cmd_rcgr = 0x183a8, 56017269568STaniya Das .mnd_width = 16, 56117269568STaniya Das .hid_width = 5, 5621b70061fSTaniya Das .parent_map = gcc_parent_map_1, 56317269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 56417269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s3_clk_src_init, 56517269568STaniya Das }; 56617269568STaniya Das 56717269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s4_clk_src_init = { 56817269568STaniya Das .name = "gcc_qupv3_wrap1_s4_clk_src", 5691b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5701b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 57117269568STaniya Das .ops = &clk_rcg2_ops, 57217269568STaniya Das }; 57317269568STaniya Das 57417269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s4_clk_src = { 57517269568STaniya Das .cmd_rcgr = 0x184d8, 57617269568STaniya Das .mnd_width = 16, 57717269568STaniya Das .hid_width = 5, 5781b70061fSTaniya Das .parent_map = gcc_parent_map_1, 57917269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 58017269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s4_clk_src_init, 58117269568STaniya Das }; 58217269568STaniya Das 58317269568STaniya Das static struct clk_init_data gcc_qupv3_wrap1_s5_clk_src_init = { 58417269568STaniya Das .name = "gcc_qupv3_wrap1_s5_clk_src", 5851b70061fSTaniya Das .parent_data = gcc_parent_data_1, 5861b70061fSTaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_1), 58717269568STaniya Das .ops = &clk_rcg2_ops, 58817269568STaniya Das }; 58917269568STaniya Das 59017269568STaniya Das static struct clk_rcg2 gcc_qupv3_wrap1_s5_clk_src = { 59117269568STaniya Das .cmd_rcgr = 0x18608, 59217269568STaniya Das .mnd_width = 16, 59317269568STaniya Das .hid_width = 5, 5941b70061fSTaniya Das .parent_map = gcc_parent_map_1, 59517269568STaniya Das .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 59617269568STaniya Das .clkr.hw.init = &gcc_qupv3_wrap1_s5_clk_src_init, 59717269568STaniya Das }; 59817269568STaniya Das 59917269568STaniya Das 60017269568STaniya Das static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] = { 60117269568STaniya Das F(144000, P_BI_TCXO, 16, 3, 25), 60217269568STaniya Das F(400000, P_BI_TCXO, 12, 1, 4), 60317269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 60417269568STaniya Das F(20000000, P_GPLL0_OUT_EVEN, 5, 1, 3), 60517269568STaniya Das F(25000000, P_GPLL0_OUT_EVEN, 6, 1, 2), 60617269568STaniya Das F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 60717269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 60817269568STaniya Das F(192000000, P_GPLL6_OUT_MAIN, 2, 0, 0), 60917269568STaniya Das F(384000000, P_GPLL6_OUT_MAIN, 1, 0, 0), 61017269568STaniya Das { } 61117269568STaniya Das }; 61217269568STaniya Das 61317269568STaniya Das static struct clk_rcg2 gcc_sdcc1_apps_clk_src = { 61417269568STaniya Das .cmd_rcgr = 0x12028, 61517269568STaniya Das .mnd_width = 8, 61617269568STaniya Das .hid_width = 5, 61717269568STaniya Das .parent_map = gcc_parent_map_1, 61817269568STaniya Das .freq_tbl = ftbl_gcc_sdcc1_apps_clk_src, 61917269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 62017269568STaniya Das .name = "gcc_sdcc1_apps_clk_src", 62117269568STaniya Das .parent_data = gcc_parent_data_1, 622e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_1), 623148ddaa8SDouglas Anderson .ops = &clk_rcg2_floor_ops, 62417269568STaniya Das }, 62517269568STaniya Das }; 62617269568STaniya Das 62717269568STaniya Das static const struct freq_tbl ftbl_gcc_sdcc1_ice_core_clk_src[] = { 62817269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 62917269568STaniya Das F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 63017269568STaniya Das F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 63117269568STaniya Das F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 63217269568STaniya Das { } 63317269568STaniya Das }; 63417269568STaniya Das 63517269568STaniya Das static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = { 63617269568STaniya Das .cmd_rcgr = 0x12010, 63717269568STaniya Das .mnd_width = 0, 63817269568STaniya Das .hid_width = 5, 63917269568STaniya Das .parent_map = gcc_parent_map_0, 64017269568STaniya Das .freq_tbl = ftbl_gcc_sdcc1_ice_core_clk_src, 64117269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 64217269568STaniya Das .name = "gcc_sdcc1_ice_core_clk_src", 64317269568STaniya Das .parent_data = gcc_parent_data_0, 644e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 645148ddaa8SDouglas Anderson .ops = &clk_rcg2_ops, 64617269568STaniya Das }, 64717269568STaniya Das }; 64817269568STaniya Das 64917269568STaniya Das static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] = { 65017269568STaniya Das F(400000, P_BI_TCXO, 12, 1, 4), 65117269568STaniya Das F(9600000, P_BI_TCXO, 2, 0, 0), 65217269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 65317269568STaniya Das F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 65404357751SDouglas Anderson F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 65517269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 65617269568STaniya Das F(202000000, P_GPLL7_OUT_MAIN, 4, 0, 0), 65717269568STaniya Das { } 65817269568STaniya Das }; 65917269568STaniya Das 66017269568STaniya Das static struct clk_rcg2 gcc_sdcc2_apps_clk_src = { 66117269568STaniya Das .cmd_rcgr = 0x1400c, 66217269568STaniya Das .mnd_width = 8, 66317269568STaniya Das .hid_width = 5, 66417269568STaniya Das .parent_map = gcc_parent_map_5, 66517269568STaniya Das .freq_tbl = ftbl_gcc_sdcc2_apps_clk_src, 66617269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 66717269568STaniya Das .name = "gcc_sdcc2_apps_clk_src", 66817269568STaniya Das .parent_data = gcc_parent_data_5, 669e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_5), 6706d37a8d1SDouglas Anderson .ops = &clk_rcg2_floor_ops, 67117269568STaniya Das }, 67217269568STaniya Das }; 67317269568STaniya Das 67417269568STaniya Das static const struct freq_tbl ftbl_gcc_ufs_phy_axi_clk_src[] = { 67517269568STaniya Das F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 67617269568STaniya Das F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 67717269568STaniya Das F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 67817269568STaniya Das F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 67917269568STaniya Das F(240000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0), 68017269568STaniya Das { } 68117269568STaniya Das }; 68217269568STaniya Das 68317269568STaniya Das static struct clk_rcg2 gcc_ufs_phy_axi_clk_src = { 68417269568STaniya Das .cmd_rcgr = 0x77020, 68517269568STaniya Das .mnd_width = 8, 68617269568STaniya Das .hid_width = 5, 68717269568STaniya Das .parent_map = gcc_parent_map_0, 68817269568STaniya Das .freq_tbl = ftbl_gcc_ufs_phy_axi_clk_src, 68917269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 69017269568STaniya Das .name = "gcc_ufs_phy_axi_clk_src", 69117269568STaniya Das .parent_data = gcc_parent_data_0, 692e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 69317269568STaniya Das .ops = &clk_rcg2_ops, 69417269568STaniya Das }, 69517269568STaniya Das }; 69617269568STaniya Das 69717269568STaniya Das static const struct freq_tbl ftbl_gcc_ufs_phy_ice_core_clk_src[] = { 69817269568STaniya Das F(37500000, P_GPLL0_OUT_EVEN, 8, 0, 0), 69917269568STaniya Das F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 70017269568STaniya Das F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 70117269568STaniya Das F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 70217269568STaniya Das { } 70317269568STaniya Das }; 70417269568STaniya Das 70517269568STaniya Das static struct clk_rcg2 gcc_ufs_phy_ice_core_clk_src = { 70617269568STaniya Das .cmd_rcgr = 0x77048, 70717269568STaniya Das .mnd_width = 0, 70817269568STaniya Das .hid_width = 5, 70917269568STaniya Das .parent_map = gcc_parent_map_0, 71017269568STaniya Das .freq_tbl = ftbl_gcc_ufs_phy_ice_core_clk_src, 71117269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 71217269568STaniya Das .name = "gcc_ufs_phy_ice_core_clk_src", 71317269568STaniya Das .parent_data = gcc_parent_data_0, 714e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 71517269568STaniya Das .ops = &clk_rcg2_ops, 71617269568STaniya Das }, 71717269568STaniya Das }; 71817269568STaniya Das 71917269568STaniya Das static const struct freq_tbl ftbl_gcc_ufs_phy_phy_aux_clk_src[] = { 72017269568STaniya Das F(9600000, P_BI_TCXO, 2, 0, 0), 72117269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 72217269568STaniya Das { } 72317269568STaniya Das }; 72417269568STaniya Das 72517269568STaniya Das static struct clk_rcg2 gcc_ufs_phy_phy_aux_clk_src = { 72617269568STaniya Das .cmd_rcgr = 0x77098, 72717269568STaniya Das .mnd_width = 0, 72817269568STaniya Das .hid_width = 5, 72917269568STaniya Das .parent_map = gcc_parent_map_3, 73017269568STaniya Das .freq_tbl = ftbl_gcc_ufs_phy_phy_aux_clk_src, 73117269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 73217269568STaniya Das .name = "gcc_ufs_phy_phy_aux_clk_src", 73317269568STaniya Das .parent_data = gcc_parent_data_3, 734e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_3), 73517269568STaniya Das .ops = &clk_rcg2_ops, 73617269568STaniya Das }, 73717269568STaniya Das }; 73817269568STaniya Das 73917269568STaniya Das static const struct freq_tbl ftbl_gcc_ufs_phy_unipro_core_clk_src[] = { 74017269568STaniya Das F(37500000, P_GPLL0_OUT_EVEN, 8, 0, 0), 74117269568STaniya Das F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 74217269568STaniya Das F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 74317269568STaniya Das { } 74417269568STaniya Das }; 74517269568STaniya Das 74617269568STaniya Das static struct clk_rcg2 gcc_ufs_phy_unipro_core_clk_src = { 74717269568STaniya Das .cmd_rcgr = 0x77060, 74817269568STaniya Das .mnd_width = 0, 74917269568STaniya Das .hid_width = 5, 75017269568STaniya Das .parent_map = gcc_parent_map_0, 75117269568STaniya Das .freq_tbl = ftbl_gcc_ufs_phy_unipro_core_clk_src, 75217269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 75317269568STaniya Das .name = "gcc_ufs_phy_unipro_core_clk_src", 75417269568STaniya Das .parent_data = gcc_parent_data_0, 755e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 75617269568STaniya Das .ops = &clk_rcg2_ops, 75717269568STaniya Das }, 75817269568STaniya Das }; 75917269568STaniya Das 76017269568STaniya Das static const struct freq_tbl ftbl_gcc_usb30_prim_master_clk_src[] = { 76117269568STaniya Das F(66666667, P_GPLL0_OUT_EVEN, 4.5, 0, 0), 76217269568STaniya Das F(133333333, P_GPLL0_OUT_MAIN, 4.5, 0, 0), 76317269568STaniya Das F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 76417269568STaniya Das F(240000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0), 76517269568STaniya Das { } 76617269568STaniya Das }; 76717269568STaniya Das 76817269568STaniya Das static struct clk_rcg2 gcc_usb30_prim_master_clk_src = { 76917269568STaniya Das .cmd_rcgr = 0xf01c, 77017269568STaniya Das .mnd_width = 8, 77117269568STaniya Das .hid_width = 5, 77217269568STaniya Das .parent_map = gcc_parent_map_0, 77317269568STaniya Das .freq_tbl = ftbl_gcc_usb30_prim_master_clk_src, 77417269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 77517269568STaniya Das .name = "gcc_usb30_prim_master_clk_src", 77617269568STaniya Das .parent_data = gcc_parent_data_0, 777e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 77817269568STaniya Das .ops = &clk_rcg2_ops, 77917269568STaniya Das }, 78017269568STaniya Das }; 78117269568STaniya Das 78217269568STaniya Das static const struct freq_tbl ftbl_gcc_usb30_prim_mock_utmi_clk_src[] = { 78317269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 78417269568STaniya Das F(20000000, P_GPLL0_OUT_EVEN, 15, 0, 0), 78517269568STaniya Das { } 78617269568STaniya Das }; 78717269568STaniya Das 78817269568STaniya Das static struct clk_rcg2 gcc_usb30_prim_mock_utmi_clk_src = { 78917269568STaniya Das .cmd_rcgr = 0xf034, 79017269568STaniya Das .mnd_width = 0, 79117269568STaniya Das .hid_width = 5, 79217269568STaniya Das .parent_map = gcc_parent_map_0, 79317269568STaniya Das .freq_tbl = ftbl_gcc_usb30_prim_mock_utmi_clk_src, 79417269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 79517269568STaniya Das .name = "gcc_usb30_prim_mock_utmi_clk_src", 79617269568STaniya Das .parent_data = gcc_parent_data_0, 797e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_0), 79817269568STaniya Das .ops = &clk_rcg2_ops, 79917269568STaniya Das }, 80017269568STaniya Das }; 80117269568STaniya Das 80217269568STaniya Das static const struct freq_tbl ftbl_gcc_usb3_prim_phy_aux_clk_src[] = { 80317269568STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 80417269568STaniya Das { } 80517269568STaniya Das }; 80617269568STaniya Das 80717269568STaniya Das static struct clk_rcg2 gcc_usb3_prim_phy_aux_clk_src = { 80817269568STaniya Das .cmd_rcgr = 0xf060, 80917269568STaniya Das .mnd_width = 0, 81017269568STaniya Das .hid_width = 5, 81117269568STaniya Das .parent_map = gcc_parent_map_6, 81217269568STaniya Das .freq_tbl = ftbl_gcc_usb3_prim_phy_aux_clk_src, 81317269568STaniya Das .clkr.hw.init = &(struct clk_init_data){ 81417269568STaniya Das .name = "gcc_usb3_prim_phy_aux_clk_src", 81517269568STaniya Das .parent_data = gcc_parent_data_6, 816e957ca2aSDmitry Baryshkov .num_parents = ARRAY_SIZE(gcc_parent_data_6), 81717269568STaniya Das .ops = &clk_rcg2_ops, 81817269568STaniya Das }, 81917269568STaniya Das }; 82017269568STaniya Das 821bd4bb225STaniya Das static const struct freq_tbl ftbl_gcc_sec_ctrl_clk_src[] = { 822bd4bb225STaniya Das F(4800000, P_BI_TCXO, 4, 0, 0), 823bd4bb225STaniya Das F(19200000, P_BI_TCXO, 1, 0, 0), 824bd4bb225STaniya Das { } 825bd4bb225STaniya Das }; 826bd4bb225STaniya Das 827bd4bb225STaniya Das static struct clk_rcg2 gcc_sec_ctrl_clk_src = { 828bd4bb225STaniya Das .cmd_rcgr = 0x3d030, 829bd4bb225STaniya Das .mnd_width = 0, 830bd4bb225STaniya Das .hid_width = 5, 831bd4bb225STaniya Das .parent_map = gcc_parent_map_3, 832bd4bb225STaniya Das .freq_tbl = ftbl_gcc_sec_ctrl_clk_src, 833bd4bb225STaniya Das .clkr.hw.init = &(struct clk_init_data){ 834bd4bb225STaniya Das .name = "gcc_sec_ctrl_clk_src", 835bd4bb225STaniya Das .parent_data = gcc_parent_data_3, 836bd4bb225STaniya Das .num_parents = ARRAY_SIZE(gcc_parent_data_3), 837bd4bb225STaniya Das .ops = &clk_rcg2_ops, 838bd4bb225STaniya Das }, 839bd4bb225STaniya Das }; 840bd4bb225STaniya Das 84117269568STaniya Das static struct clk_branch gcc_aggre_ufs_phy_axi_clk = { 84217269568STaniya Das .halt_reg = 0x82024, 84317269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 84417269568STaniya Das .hwcg_reg = 0x82024, 84517269568STaniya Das .hwcg_bit = 1, 84617269568STaniya Das .clkr = { 84717269568STaniya Das .enable_reg = 0x82024, 84817269568STaniya Das .enable_mask = BIT(0), 84917269568STaniya Das .hw.init = &(struct clk_init_data){ 85017269568STaniya Das .name = "gcc_aggre_ufs_phy_axi_clk", 851041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 852041b893bSDmitry Baryshkov &gcc_ufs_phy_axi_clk_src.clkr.hw, 85317269568STaniya Das }, 85417269568STaniya Das .num_parents = 1, 85517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 85617269568STaniya Das .ops = &clk_branch2_ops, 85717269568STaniya Das }, 85817269568STaniya Das }, 85917269568STaniya Das }; 86017269568STaniya Das 86117269568STaniya Das static struct clk_branch gcc_aggre_usb3_prim_axi_clk = { 86217269568STaniya Das .halt_reg = 0x8201c, 86317269568STaniya Das .halt_check = BRANCH_HALT, 86417269568STaniya Das .clkr = { 86517269568STaniya Das .enable_reg = 0x8201c, 86617269568STaniya Das .enable_mask = BIT(0), 86717269568STaniya Das .hw.init = &(struct clk_init_data){ 86817269568STaniya Das .name = "gcc_aggre_usb3_prim_axi_clk", 869041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 870041b893bSDmitry Baryshkov &gcc_usb30_prim_master_clk_src.clkr.hw, 87117269568STaniya Das }, 87217269568STaniya Das .num_parents = 1, 87317269568STaniya Das .flags = CLK_SET_RATE_PARENT, 87417269568STaniya Das .ops = &clk_branch2_ops, 87517269568STaniya Das }, 87617269568STaniya Das }, 87717269568STaniya Das }; 87817269568STaniya Das 87917269568STaniya Das static struct clk_branch gcc_boot_rom_ahb_clk = { 88017269568STaniya Das .halt_reg = 0x38004, 88117269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 88217269568STaniya Das .hwcg_reg = 0x38004, 88317269568STaniya Das .hwcg_bit = 1, 88417269568STaniya Das .clkr = { 88517269568STaniya Das .enable_reg = 0x52000, 88617269568STaniya Das .enable_mask = BIT(10), 88717269568STaniya Das .hw.init = &(struct clk_init_data){ 88817269568STaniya Das .name = "gcc_boot_rom_ahb_clk", 88917269568STaniya Das .ops = &clk_branch2_ops, 89017269568STaniya Das }, 89117269568STaniya Das }, 89217269568STaniya Das }; 89317269568STaniya Das 89417269568STaniya Das static struct clk_branch gcc_camera_hf_axi_clk = { 89517269568STaniya Das .halt_reg = 0xb020, 89617269568STaniya Das .halt_check = BRANCH_HALT, 89717269568STaniya Das .clkr = { 89817269568STaniya Das .enable_reg = 0xb020, 89917269568STaniya Das .enable_mask = BIT(0), 90017269568STaniya Das .hw.init = &(struct clk_init_data){ 90117269568STaniya Das .name = "gcc_camera_hf_axi_clk", 90217269568STaniya Das .ops = &clk_branch2_ops, 90317269568STaniya Das }, 90417269568STaniya Das }, 90517269568STaniya Das }; 90617269568STaniya Das 90717269568STaniya Das static struct clk_branch gcc_camera_throttle_hf_axi_clk = { 90817269568STaniya Das .halt_reg = 0xb080, 90917269568STaniya Das .halt_check = BRANCH_HALT, 91017269568STaniya Das .hwcg_reg = 0xb080, 91117269568STaniya Das .hwcg_bit = 1, 91217269568STaniya Das .clkr = { 91317269568STaniya Das .enable_reg = 0xb080, 91417269568STaniya Das .enable_mask = BIT(0), 91517269568STaniya Das .hw.init = &(struct clk_init_data){ 91617269568STaniya Das .name = "gcc_camera_throttle_hf_axi_clk", 91717269568STaniya Das .ops = &clk_branch2_ops, 91817269568STaniya Das }, 91917269568STaniya Das }, 92017269568STaniya Das }; 92117269568STaniya Das 92217269568STaniya Das static struct clk_branch gcc_ce1_ahb_clk = { 92317269568STaniya Das .halt_reg = 0x4100c, 92417269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 92517269568STaniya Das .hwcg_reg = 0x4100c, 92617269568STaniya Das .hwcg_bit = 1, 92717269568STaniya Das .clkr = { 92817269568STaniya Das .enable_reg = 0x52000, 92917269568STaniya Das .enable_mask = BIT(3), 93017269568STaniya Das .hw.init = &(struct clk_init_data){ 93117269568STaniya Das .name = "gcc_ce1_ahb_clk", 93217269568STaniya Das .ops = &clk_branch2_ops, 93317269568STaniya Das }, 93417269568STaniya Das }, 93517269568STaniya Das }; 93617269568STaniya Das 93717269568STaniya Das static struct clk_branch gcc_ce1_axi_clk = { 93817269568STaniya Das .halt_reg = 0x41008, 93917269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 94017269568STaniya Das .clkr = { 94117269568STaniya Das .enable_reg = 0x52000, 94217269568STaniya Das .enable_mask = BIT(4), 94317269568STaniya Das .hw.init = &(struct clk_init_data){ 94417269568STaniya Das .name = "gcc_ce1_axi_clk", 94517269568STaniya Das .ops = &clk_branch2_ops, 94617269568STaniya Das }, 94717269568STaniya Das }, 94817269568STaniya Das }; 94917269568STaniya Das 95017269568STaniya Das static struct clk_branch gcc_ce1_clk = { 95117269568STaniya Das .halt_reg = 0x41004, 95217269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 95317269568STaniya Das .clkr = { 95417269568STaniya Das .enable_reg = 0x52000, 95517269568STaniya Das .enable_mask = BIT(5), 95617269568STaniya Das .hw.init = &(struct clk_init_data){ 95717269568STaniya Das .name = "gcc_ce1_clk", 95817269568STaniya Das .ops = &clk_branch2_ops, 95917269568STaniya Das }, 96017269568STaniya Das }, 96117269568STaniya Das }; 96217269568STaniya Das 96317269568STaniya Das static struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk = { 96417269568STaniya Das .halt_reg = 0x502c, 96517269568STaniya Das .halt_check = BRANCH_HALT, 96617269568STaniya Das .clkr = { 96717269568STaniya Das .enable_reg = 0x502c, 96817269568STaniya Das .enable_mask = BIT(0), 96917269568STaniya Das .hw.init = &(struct clk_init_data){ 97017269568STaniya Das .name = "gcc_cfg_noc_usb3_prim_axi_clk", 971041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 972041b893bSDmitry Baryshkov &gcc_usb30_prim_master_clk_src.clkr.hw, 97317269568STaniya Das }, 97417269568STaniya Das .num_parents = 1, 97517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 97617269568STaniya Das .ops = &clk_branch2_ops, 97717269568STaniya Das }, 97817269568STaniya Das }, 97917269568STaniya Das }; 98017269568STaniya Das 98117269568STaniya Das /* For CPUSS functionality the AHB clock needs to be left enabled */ 98217269568STaniya Das static struct clk_branch gcc_cpuss_ahb_clk = { 98317269568STaniya Das .halt_reg = 0x48000, 98417269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 98517269568STaniya Das .clkr = { 98617269568STaniya Das .enable_reg = 0x52000, 98717269568STaniya Das .enable_mask = BIT(21), 98817269568STaniya Das .hw.init = &(struct clk_init_data){ 98917269568STaniya Das .name = "gcc_cpuss_ahb_clk", 990041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 991041b893bSDmitry Baryshkov &gcc_cpuss_ahb_clk_src.clkr.hw, 99217269568STaniya Das }, 99317269568STaniya Das .num_parents = 1, 99417269568STaniya Das .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 99517269568STaniya Das .ops = &clk_branch2_ops, 99617269568STaniya Das }, 99717269568STaniya Das }, 99817269568STaniya Das }; 99917269568STaniya Das 100017269568STaniya Das static struct clk_branch gcc_cpuss_rbcpr_clk = { 100117269568STaniya Das .halt_reg = 0x48008, 100217269568STaniya Das .halt_check = BRANCH_HALT, 100317269568STaniya Das .clkr = { 100417269568STaniya Das .enable_reg = 0x48008, 100517269568STaniya Das .enable_mask = BIT(0), 100617269568STaniya Das .hw.init = &(struct clk_init_data){ 100717269568STaniya Das .name = "gcc_cpuss_rbcpr_clk", 100817269568STaniya Das .ops = &clk_branch2_ops, 100917269568STaniya Das }, 101017269568STaniya Das }, 101117269568STaniya Das }; 101217269568STaniya Das 101317269568STaniya Das static struct clk_branch gcc_ddrss_gpu_axi_clk = { 101417269568STaniya Das .halt_reg = 0x4452c, 101517269568STaniya Das .halt_check = BRANCH_VOTED, 101617269568STaniya Das .clkr = { 101717269568STaniya Das .enable_reg = 0x4452c, 101817269568STaniya Das .enable_mask = BIT(0), 101917269568STaniya Das .hw.init = &(struct clk_init_data){ 102017269568STaniya Das .name = "gcc_ddrss_gpu_axi_clk", 102117269568STaniya Das .ops = &clk_branch2_ops, 102217269568STaniya Das }, 102317269568STaniya Das }, 102417269568STaniya Das }; 102517269568STaniya Das 102617269568STaniya Das static struct clk_branch gcc_disp_gpll0_clk_src = { 102717269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 102817269568STaniya Das .clkr = { 102917269568STaniya Das .enable_reg = 0x52000, 103017269568STaniya Das .enable_mask = BIT(18), 103117269568STaniya Das .hw.init = &(struct clk_init_data){ 103217269568STaniya Das .name = "gcc_disp_gpll0_clk_src", 1033041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1034041b893bSDmitry Baryshkov &gpll0.clkr.hw, 103517269568STaniya Das }, 103617269568STaniya Das .num_parents = 1, 10379c3df2b1STaniya Das .ops = &clk_branch2_aon_ops, 103817269568STaniya Das }, 103917269568STaniya Das }, 104017269568STaniya Das }; 104117269568STaniya Das 104217269568STaniya Das static struct clk_branch gcc_disp_gpll0_div_clk_src = { 104317269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 104417269568STaniya Das .clkr = { 104517269568STaniya Das .enable_reg = 0x52000, 104617269568STaniya Das .enable_mask = BIT(19), 104717269568STaniya Das .hw.init = &(struct clk_init_data){ 104817269568STaniya Das .name = "gcc_disp_gpll0_div_clk_src", 1049041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1050041b893bSDmitry Baryshkov &gcc_pll0_main_div_cdiv.hw, 105117269568STaniya Das }, 105217269568STaniya Das .num_parents = 1, 105317269568STaniya Das .ops = &clk_branch2_ops, 105417269568STaniya Das }, 105517269568STaniya Das }, 105617269568STaniya Das }; 105717269568STaniya Das 105817269568STaniya Das static struct clk_branch gcc_disp_hf_axi_clk = { 105917269568STaniya Das .halt_reg = 0xb024, 106017269568STaniya Das .halt_check = BRANCH_HALT, 106117269568STaniya Das .clkr = { 106217269568STaniya Das .enable_reg = 0xb024, 106317269568STaniya Das .enable_mask = BIT(0), 106417269568STaniya Das .hw.init = &(struct clk_init_data){ 106517269568STaniya Das .name = "gcc_disp_hf_axi_clk", 106617269568STaniya Das .ops = &clk_branch2_ops, 106717269568STaniya Das }, 106817269568STaniya Das }, 106917269568STaniya Das }; 107017269568STaniya Das 107117269568STaniya Das static struct clk_branch gcc_disp_throttle_hf_axi_clk = { 107217269568STaniya Das .halt_reg = 0xb084, 107317269568STaniya Das .halt_check = BRANCH_HALT, 107417269568STaniya Das .hwcg_reg = 0xb084, 107517269568STaniya Das .hwcg_bit = 1, 107617269568STaniya Das .clkr = { 107717269568STaniya Das .enable_reg = 0xb084, 107817269568STaniya Das .enable_mask = BIT(0), 107917269568STaniya Das .hw.init = &(struct clk_init_data){ 108017269568STaniya Das .name = "gcc_disp_throttle_hf_axi_clk", 108117269568STaniya Das .ops = &clk_branch2_ops, 108217269568STaniya Das }, 108317269568STaniya Das }, 108417269568STaniya Das }; 108517269568STaniya Das 108617269568STaniya Das static struct clk_branch gcc_gp1_clk = { 108717269568STaniya Das .halt_reg = 0x64000, 108817269568STaniya Das .halt_check = BRANCH_HALT, 108917269568STaniya Das .clkr = { 109017269568STaniya Das .enable_reg = 0x64000, 109117269568STaniya Das .enable_mask = BIT(0), 109217269568STaniya Das .hw.init = &(struct clk_init_data){ 109317269568STaniya Das .name = "gcc_gp1_clk", 1094041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1095041b893bSDmitry Baryshkov &gcc_gp1_clk_src.clkr.hw, 109617269568STaniya Das }, 109717269568STaniya Das .num_parents = 1, 109817269568STaniya Das .flags = CLK_SET_RATE_PARENT, 109917269568STaniya Das .ops = &clk_branch2_ops, 110017269568STaniya Das }, 110117269568STaniya Das }, 110217269568STaniya Das }; 110317269568STaniya Das 110417269568STaniya Das static struct clk_branch gcc_gp2_clk = { 110517269568STaniya Das .halt_reg = 0x65000, 110617269568STaniya Das .halt_check = BRANCH_HALT, 110717269568STaniya Das .clkr = { 110817269568STaniya Das .enable_reg = 0x65000, 110917269568STaniya Das .enable_mask = BIT(0), 111017269568STaniya Das .hw.init = &(struct clk_init_data){ 111117269568STaniya Das .name = "gcc_gp2_clk", 1112041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1113041b893bSDmitry Baryshkov &gcc_gp2_clk_src.clkr.hw, 111417269568STaniya Das }, 111517269568STaniya Das .num_parents = 1, 111617269568STaniya Das .flags = CLK_SET_RATE_PARENT, 111717269568STaniya Das .ops = &clk_branch2_ops, 111817269568STaniya Das }, 111917269568STaniya Das }, 112017269568STaniya Das }; 112117269568STaniya Das 112217269568STaniya Das static struct clk_branch gcc_gp3_clk = { 112317269568STaniya Das .halt_reg = 0x66000, 112417269568STaniya Das .halt_check = BRANCH_HALT, 112517269568STaniya Das .clkr = { 112617269568STaniya Das .enable_reg = 0x66000, 112717269568STaniya Das .enable_mask = BIT(0), 112817269568STaniya Das .hw.init = &(struct clk_init_data){ 112917269568STaniya Das .name = "gcc_gp3_clk", 1130041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1131041b893bSDmitry Baryshkov &gcc_gp3_clk_src.clkr.hw, 113217269568STaniya Das }, 113317269568STaniya Das .num_parents = 1, 113417269568STaniya Das .flags = CLK_SET_RATE_PARENT, 113517269568STaniya Das .ops = &clk_branch2_ops, 113617269568STaniya Das }, 113717269568STaniya Das }, 113817269568STaniya Das }; 113917269568STaniya Das 114017269568STaniya Das static struct clk_branch gcc_gpu_gpll0_clk_src = { 114117269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 114217269568STaniya Das .clkr = { 114317269568STaniya Das .enable_reg = 0x52000, 114417269568STaniya Das .enable_mask = BIT(15), 114517269568STaniya Das .hw.init = &(struct clk_init_data){ 114617269568STaniya Das .name = "gcc_gpu_gpll0_clk_src", 1147041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1148041b893bSDmitry Baryshkov &gpll0.clkr.hw, 114917269568STaniya Das }, 115017269568STaniya Das .num_parents = 1, 115117269568STaniya Das .ops = &clk_branch2_ops, 115217269568STaniya Das }, 115317269568STaniya Das }, 115417269568STaniya Das }; 115517269568STaniya Das 115617269568STaniya Das static struct clk_branch gcc_gpu_gpll0_div_clk_src = { 115717269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 115817269568STaniya Das .clkr = { 115917269568STaniya Das .enable_reg = 0x52000, 116017269568STaniya Das .enable_mask = BIT(16), 116117269568STaniya Das .hw.init = &(struct clk_init_data){ 116217269568STaniya Das .name = "gcc_gpu_gpll0_div_clk_src", 1163041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1164041b893bSDmitry Baryshkov &gcc_pll0_main_div_cdiv.hw, 116517269568STaniya Das }, 116617269568STaniya Das .num_parents = 1, 116717269568STaniya Das .ops = &clk_branch2_ops, 116817269568STaniya Das }, 116917269568STaniya Das }, 117017269568STaniya Das }; 117117269568STaniya Das 117217269568STaniya Das static struct clk_branch gcc_gpu_memnoc_gfx_clk = { 117317269568STaniya Das .halt_reg = 0x7100c, 117417269568STaniya Das .halt_check = BRANCH_VOTED, 117517269568STaniya Das .clkr = { 117617269568STaniya Das .enable_reg = 0x7100c, 117717269568STaniya Das .enable_mask = BIT(0), 117817269568STaniya Das .hw.init = &(struct clk_init_data){ 117917269568STaniya Das .name = "gcc_gpu_memnoc_gfx_clk", 118017269568STaniya Das .ops = &clk_branch2_ops, 118117269568STaniya Das }, 118217269568STaniya Das }, 118317269568STaniya Das }; 118417269568STaniya Das 118517269568STaniya Das static struct clk_branch gcc_gpu_snoc_dvm_gfx_clk = { 118617269568STaniya Das .halt_reg = 0x71018, 118717269568STaniya Das .halt_check = BRANCH_HALT, 118817269568STaniya Das .clkr = { 118917269568STaniya Das .enable_reg = 0x71018, 119017269568STaniya Das .enable_mask = BIT(0), 119117269568STaniya Das .hw.init = &(struct clk_init_data){ 119217269568STaniya Das .name = "gcc_gpu_snoc_dvm_gfx_clk", 119317269568STaniya Das .ops = &clk_branch2_ops, 119417269568STaniya Das }, 119517269568STaniya Das }, 119617269568STaniya Das }; 119717269568STaniya Das 119817269568STaniya Das static struct clk_branch gcc_npu_axi_clk = { 119917269568STaniya Das .halt_reg = 0x4d008, 120017269568STaniya Das .halt_check = BRANCH_HALT, 120117269568STaniya Das .clkr = { 120217269568STaniya Das .enable_reg = 0x4d008, 120317269568STaniya Das .enable_mask = BIT(0), 120417269568STaniya Das .hw.init = &(struct clk_init_data){ 120517269568STaniya Das .name = "gcc_npu_axi_clk", 120617269568STaniya Das .ops = &clk_branch2_ops, 120717269568STaniya Das }, 120817269568STaniya Das }, 120917269568STaniya Das }; 121017269568STaniya Das 121117269568STaniya Das static struct clk_branch gcc_npu_bwmon_axi_clk = { 121217269568STaniya Das .halt_reg = 0x73008, 121317269568STaniya Das .halt_check = BRANCH_HALT, 121417269568STaniya Das .clkr = { 121517269568STaniya Das .enable_reg = 0x73008, 121617269568STaniya Das .enable_mask = BIT(0), 121717269568STaniya Das .hw.init = &(struct clk_init_data){ 121817269568STaniya Das .name = "gcc_npu_bwmon_axi_clk", 121917269568STaniya Das .ops = &clk_branch2_ops, 122017269568STaniya Das }, 122117269568STaniya Das }, 122217269568STaniya Das }; 122317269568STaniya Das 122417269568STaniya Das static struct clk_branch gcc_npu_bwmon_dma_cfg_ahb_clk = { 122517269568STaniya Das .halt_reg = 0x73018, 122617269568STaniya Das .halt_check = BRANCH_HALT, 122717269568STaniya Das .clkr = { 122817269568STaniya Das .enable_reg = 0x73018, 122917269568STaniya Das .enable_mask = BIT(0), 123017269568STaniya Das .hw.init = &(struct clk_init_data){ 123117269568STaniya Das .name = "gcc_npu_bwmon_dma_cfg_ahb_clk", 123217269568STaniya Das .ops = &clk_branch2_ops, 123317269568STaniya Das }, 123417269568STaniya Das }, 123517269568STaniya Das }; 123617269568STaniya Das 123717269568STaniya Das static struct clk_branch gcc_npu_bwmon_dsp_cfg_ahb_clk = { 123817269568STaniya Das .halt_reg = 0x7301c, 123917269568STaniya Das .halt_check = BRANCH_HALT, 124017269568STaniya Das .clkr = { 124117269568STaniya Das .enable_reg = 0x7301c, 124217269568STaniya Das .enable_mask = BIT(0), 124317269568STaniya Das .hw.init = &(struct clk_init_data){ 124417269568STaniya Das .name = "gcc_npu_bwmon_dsp_cfg_ahb_clk", 124517269568STaniya Das .ops = &clk_branch2_ops, 124617269568STaniya Das }, 124717269568STaniya Das }, 124817269568STaniya Das }; 124917269568STaniya Das 125017269568STaniya Das static struct clk_branch gcc_npu_cfg_ahb_clk = { 125117269568STaniya Das .halt_reg = 0x4d004, 125217269568STaniya Das .halt_check = BRANCH_HALT, 125317269568STaniya Das .hwcg_reg = 0x4d004, 125417269568STaniya Das .hwcg_bit = 1, 125517269568STaniya Das .clkr = { 125617269568STaniya Das .enable_reg = 0x4d004, 125717269568STaniya Das .enable_mask = BIT(0), 125817269568STaniya Das .hw.init = &(struct clk_init_data){ 125917269568STaniya Das .name = "gcc_npu_cfg_ahb_clk", 126017269568STaniya Das .ops = &clk_branch2_ops, 126117269568STaniya Das }, 126217269568STaniya Das }, 126317269568STaniya Das }; 126417269568STaniya Das 126517269568STaniya Das static struct clk_branch gcc_npu_dma_clk = { 126617269568STaniya Das .halt_reg = 0x4d1a0, 126717269568STaniya Das .halt_check = BRANCH_HALT, 126817269568STaniya Das .hwcg_reg = 0x4d1a0, 126917269568STaniya Das .hwcg_bit = 1, 127017269568STaniya Das .clkr = { 127117269568STaniya Das .enable_reg = 0x4d1a0, 127217269568STaniya Das .enable_mask = BIT(0), 127317269568STaniya Das .hw.init = &(struct clk_init_data){ 127417269568STaniya Das .name = "gcc_npu_dma_clk", 127517269568STaniya Das .ops = &clk_branch2_ops, 127617269568STaniya Das }, 127717269568STaniya Das }, 127817269568STaniya Das }; 127917269568STaniya Das 128017269568STaniya Das static struct clk_branch gcc_npu_gpll0_clk_src = { 128117269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 128217269568STaniya Das .clkr = { 128317269568STaniya Das .enable_reg = 0x52000, 128417269568STaniya Das .enable_mask = BIT(25), 128517269568STaniya Das .hw.init = &(struct clk_init_data){ 128617269568STaniya Das .name = "gcc_npu_gpll0_clk_src", 1287041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1288041b893bSDmitry Baryshkov &gpll0.clkr.hw, 128917269568STaniya Das }, 129017269568STaniya Das .num_parents = 1, 129117269568STaniya Das .ops = &clk_branch2_ops, 129217269568STaniya Das }, 129317269568STaniya Das }, 129417269568STaniya Das }; 129517269568STaniya Das 129617269568STaniya Das static struct clk_branch gcc_npu_gpll0_div_clk_src = { 129717269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 129817269568STaniya Das .clkr = { 129917269568STaniya Das .enable_reg = 0x52000, 130017269568STaniya Das .enable_mask = BIT(26), 130117269568STaniya Das .hw.init = &(struct clk_init_data){ 130217269568STaniya Das .name = "gcc_npu_gpll0_div_clk_src", 1303041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1304041b893bSDmitry Baryshkov &gcc_pll0_main_div_cdiv.hw, 130517269568STaniya Das }, 130617269568STaniya Das .num_parents = 1, 130717269568STaniya Das .flags = CLK_SET_RATE_PARENT, 130817269568STaniya Das .ops = &clk_branch2_ops, 130917269568STaniya Das }, 131017269568STaniya Das }, 131117269568STaniya Das }; 131217269568STaniya Das 131317269568STaniya Das static struct clk_branch gcc_pdm2_clk = { 131417269568STaniya Das .halt_reg = 0x3300c, 131517269568STaniya Das .halt_check = BRANCH_HALT, 131617269568STaniya Das .clkr = { 131717269568STaniya Das .enable_reg = 0x3300c, 131817269568STaniya Das .enable_mask = BIT(0), 131917269568STaniya Das .hw.init = &(struct clk_init_data){ 132017269568STaniya Das .name = "gcc_pdm2_clk", 1321041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1322041b893bSDmitry Baryshkov &gcc_pdm2_clk_src.clkr.hw, 132317269568STaniya Das }, 132417269568STaniya Das .num_parents = 1, 132517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 132617269568STaniya Das .ops = &clk_branch2_ops, 132717269568STaniya Das }, 132817269568STaniya Das }, 132917269568STaniya Das }; 133017269568STaniya Das 133117269568STaniya Das static struct clk_branch gcc_pdm_ahb_clk = { 133217269568STaniya Das .halt_reg = 0x33004, 133317269568STaniya Das .halt_check = BRANCH_HALT, 133417269568STaniya Das .hwcg_reg = 0x33004, 133517269568STaniya Das .hwcg_bit = 1, 133617269568STaniya Das .clkr = { 133717269568STaniya Das .enable_reg = 0x33004, 133817269568STaniya Das .enable_mask = BIT(0), 133917269568STaniya Das .hw.init = &(struct clk_init_data){ 134017269568STaniya Das .name = "gcc_pdm_ahb_clk", 134117269568STaniya Das .ops = &clk_branch2_ops, 134217269568STaniya Das }, 134317269568STaniya Das }, 134417269568STaniya Das }; 134517269568STaniya Das 134617269568STaniya Das static struct clk_branch gcc_pdm_xo4_clk = { 134717269568STaniya Das .halt_reg = 0x33008, 134817269568STaniya Das .halt_check = BRANCH_HALT, 134917269568STaniya Das .clkr = { 135017269568STaniya Das .enable_reg = 0x33008, 135117269568STaniya Das .enable_mask = BIT(0), 135217269568STaniya Das .hw.init = &(struct clk_init_data){ 135317269568STaniya Das .name = "gcc_pdm_xo4_clk", 135417269568STaniya Das .ops = &clk_branch2_ops, 135517269568STaniya Das }, 135617269568STaniya Das }, 135717269568STaniya Das }; 135817269568STaniya Das 135917269568STaniya Das static struct clk_branch gcc_prng_ahb_clk = { 136017269568STaniya Das .halt_reg = 0x34004, 136117269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 136217269568STaniya Das .hwcg_reg = 0x34004, 136317269568STaniya Das .hwcg_bit = 1, 136417269568STaniya Das .clkr = { 136517269568STaniya Das .enable_reg = 0x52000, 136617269568STaniya Das .enable_mask = BIT(13), 136717269568STaniya Das .hw.init = &(struct clk_init_data){ 136817269568STaniya Das .name = "gcc_prng_ahb_clk", 136917269568STaniya Das .ops = &clk_branch2_ops, 137017269568STaniya Das }, 137117269568STaniya Das }, 137217269568STaniya Das }; 137317269568STaniya Das 137417269568STaniya Das static struct clk_branch gcc_qspi_cnoc_periph_ahb_clk = { 137517269568STaniya Das .halt_reg = 0x4b004, 137617269568STaniya Das .halt_check = BRANCH_HALT, 137717269568STaniya Das .hwcg_reg = 0x4b004, 137817269568STaniya Das .hwcg_bit = 1, 137917269568STaniya Das .clkr = { 138017269568STaniya Das .enable_reg = 0x4b004, 138117269568STaniya Das .enable_mask = BIT(0), 138217269568STaniya Das .hw.init = &(struct clk_init_data){ 138317269568STaniya Das .name = "gcc_qspi_cnoc_periph_ahb_clk", 138417269568STaniya Das .ops = &clk_branch2_ops, 138517269568STaniya Das }, 138617269568STaniya Das }, 138717269568STaniya Das }; 138817269568STaniya Das 138917269568STaniya Das static struct clk_branch gcc_qspi_core_clk = { 139017269568STaniya Das .halt_reg = 0x4b008, 139117269568STaniya Das .halt_check = BRANCH_HALT, 139217269568STaniya Das .clkr = { 139317269568STaniya Das .enable_reg = 0x4b008, 139417269568STaniya Das .enable_mask = BIT(0), 139517269568STaniya Das .hw.init = &(struct clk_init_data){ 139617269568STaniya Das .name = "gcc_qspi_core_clk", 1397041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1398041b893bSDmitry Baryshkov &gcc_qspi_core_clk_src.clkr.hw, 139917269568STaniya Das }, 140017269568STaniya Das .num_parents = 1, 140117269568STaniya Das .flags = CLK_SET_RATE_PARENT, 140217269568STaniya Das .ops = &clk_branch2_ops, 140317269568STaniya Das }, 140417269568STaniya Das }, 140517269568STaniya Das }; 140617269568STaniya Das 140717269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_core_2x_clk = { 140817269568STaniya Das .halt_reg = 0x17014, 140917269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 141017269568STaniya Das .clkr = { 141117269568STaniya Das .enable_reg = 0x52008, 141217269568STaniya Das .enable_mask = BIT(9), 141317269568STaniya Das .hw.init = &(struct clk_init_data){ 141417269568STaniya Das .name = "gcc_qupv3_wrap0_core_2x_clk", 141517269568STaniya Das .ops = &clk_branch2_ops, 141617269568STaniya Das }, 141717269568STaniya Das }, 141817269568STaniya Das }; 141917269568STaniya Das 142017269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_core_clk = { 142117269568STaniya Das .halt_reg = 0x1700c, 142217269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 142317269568STaniya Das .clkr = { 142417269568STaniya Das .enable_reg = 0x52008, 142517269568STaniya Das .enable_mask = BIT(8), 142617269568STaniya Das .hw.init = &(struct clk_init_data){ 142717269568STaniya Das .name = "gcc_qupv3_wrap0_core_clk", 142817269568STaniya Das .ops = &clk_branch2_ops, 142917269568STaniya Das }, 143017269568STaniya Das }, 143117269568STaniya Das }; 143217269568STaniya Das 143317269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s0_clk = { 143417269568STaniya Das .halt_reg = 0x17030, 143517269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 143617269568STaniya Das .clkr = { 143717269568STaniya Das .enable_reg = 0x52008, 143817269568STaniya Das .enable_mask = BIT(10), 143917269568STaniya Das .hw.init = &(struct clk_init_data){ 144017269568STaniya Das .name = "gcc_qupv3_wrap0_s0_clk", 1441041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1442041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s0_clk_src.clkr.hw, 144317269568STaniya Das }, 144417269568STaniya Das .num_parents = 1, 144517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 144617269568STaniya Das .ops = &clk_branch2_ops, 144717269568STaniya Das }, 144817269568STaniya Das }, 144917269568STaniya Das }; 145017269568STaniya Das 145117269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s1_clk = { 145217269568STaniya Das .halt_reg = 0x17160, 145317269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 145417269568STaniya Das .clkr = { 145517269568STaniya Das .enable_reg = 0x52008, 145617269568STaniya Das .enable_mask = BIT(11), 145717269568STaniya Das .hw.init = &(struct clk_init_data){ 145817269568STaniya Das .name = "gcc_qupv3_wrap0_s1_clk", 1459041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1460041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s1_clk_src.clkr.hw, 146117269568STaniya Das }, 146217269568STaniya Das .num_parents = 1, 146317269568STaniya Das .flags = CLK_SET_RATE_PARENT, 146417269568STaniya Das .ops = &clk_branch2_ops, 146517269568STaniya Das }, 146617269568STaniya Das }, 146717269568STaniya Das }; 146817269568STaniya Das 146917269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s2_clk = { 147017269568STaniya Das .halt_reg = 0x17290, 147117269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 147217269568STaniya Das .clkr = { 147317269568STaniya Das .enable_reg = 0x52008, 147417269568STaniya Das .enable_mask = BIT(12), 147517269568STaniya Das .hw.init = &(struct clk_init_data){ 147617269568STaniya Das .name = "gcc_qupv3_wrap0_s2_clk", 1477041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1478041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s2_clk_src.clkr.hw, 147917269568STaniya Das }, 148017269568STaniya Das .num_parents = 1, 148117269568STaniya Das .flags = CLK_SET_RATE_PARENT, 148217269568STaniya Das .ops = &clk_branch2_ops, 148317269568STaniya Das }, 148417269568STaniya Das }, 148517269568STaniya Das }; 148617269568STaniya Das 148717269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s3_clk = { 148817269568STaniya Das .halt_reg = 0x173c0, 148917269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 149017269568STaniya Das .clkr = { 149117269568STaniya Das .enable_reg = 0x52008, 149217269568STaniya Das .enable_mask = BIT(13), 149317269568STaniya Das .hw.init = &(struct clk_init_data){ 149417269568STaniya Das .name = "gcc_qupv3_wrap0_s3_clk", 1495041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1496041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s3_clk_src.clkr.hw, 149717269568STaniya Das }, 149817269568STaniya Das .num_parents = 1, 149917269568STaniya Das .flags = CLK_SET_RATE_PARENT, 150017269568STaniya Das .ops = &clk_branch2_ops, 150117269568STaniya Das }, 150217269568STaniya Das }, 150317269568STaniya Das }; 150417269568STaniya Das 150517269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s4_clk = { 150617269568STaniya Das .halt_reg = 0x174f0, 150717269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 150817269568STaniya Das .clkr = { 150917269568STaniya Das .enable_reg = 0x52008, 151017269568STaniya Das .enable_mask = BIT(14), 151117269568STaniya Das .hw.init = &(struct clk_init_data){ 151217269568STaniya Das .name = "gcc_qupv3_wrap0_s4_clk", 1513041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1514041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s4_clk_src.clkr.hw, 151517269568STaniya Das }, 151617269568STaniya Das .num_parents = 1, 151717269568STaniya Das .flags = CLK_SET_RATE_PARENT, 151817269568STaniya Das .ops = &clk_branch2_ops, 151917269568STaniya Das }, 152017269568STaniya Das }, 152117269568STaniya Das }; 152217269568STaniya Das 152317269568STaniya Das static struct clk_branch gcc_qupv3_wrap0_s5_clk = { 152417269568STaniya Das .halt_reg = 0x17620, 152517269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 152617269568STaniya Das .clkr = { 152717269568STaniya Das .enable_reg = 0x52008, 152817269568STaniya Das .enable_mask = BIT(15), 152917269568STaniya Das .hw.init = &(struct clk_init_data){ 153017269568STaniya Das .name = "gcc_qupv3_wrap0_s5_clk", 1531041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1532041b893bSDmitry Baryshkov &gcc_qupv3_wrap0_s5_clk_src.clkr.hw, 153317269568STaniya Das }, 153417269568STaniya Das .num_parents = 1, 153517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 153617269568STaniya Das .ops = &clk_branch2_ops, 153717269568STaniya Das }, 153817269568STaniya Das }, 153917269568STaniya Das }; 154017269568STaniya Das 154117269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_core_2x_clk = { 154217269568STaniya Das .halt_reg = 0x18004, 154317269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 154417269568STaniya Das .clkr = { 154517269568STaniya Das .enable_reg = 0x52008, 154617269568STaniya Das .enable_mask = BIT(18), 154717269568STaniya Das .hw.init = &(struct clk_init_data){ 154817269568STaniya Das .name = "gcc_qupv3_wrap1_core_2x_clk", 154917269568STaniya Das .ops = &clk_branch2_ops, 155017269568STaniya Das }, 155117269568STaniya Das }, 155217269568STaniya Das }; 155317269568STaniya Das 155417269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_core_clk = { 155517269568STaniya Das .halt_reg = 0x18008, 155617269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 155717269568STaniya Das .clkr = { 155817269568STaniya Das .enable_reg = 0x52008, 155917269568STaniya Das .enable_mask = BIT(19), 156017269568STaniya Das .hw.init = &(struct clk_init_data){ 156117269568STaniya Das .name = "gcc_qupv3_wrap1_core_clk", 156217269568STaniya Das .ops = &clk_branch2_ops, 156317269568STaniya Das }, 156417269568STaniya Das }, 156517269568STaniya Das }; 156617269568STaniya Das 156717269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s0_clk = { 156817269568STaniya Das .halt_reg = 0x18014, 156917269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 157017269568STaniya Das .clkr = { 157117269568STaniya Das .enable_reg = 0x52008, 157217269568STaniya Das .enable_mask = BIT(22), 157317269568STaniya Das .hw.init = &(struct clk_init_data){ 157417269568STaniya Das .name = "gcc_qupv3_wrap1_s0_clk", 1575041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1576041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s0_clk_src.clkr.hw, 157717269568STaniya Das }, 157817269568STaniya Das .num_parents = 1, 157917269568STaniya Das .flags = CLK_SET_RATE_PARENT, 158017269568STaniya Das .ops = &clk_branch2_ops, 158117269568STaniya Das }, 158217269568STaniya Das }, 158317269568STaniya Das }; 158417269568STaniya Das 158517269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s1_clk = { 158617269568STaniya Das .halt_reg = 0x18144, 158717269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 158817269568STaniya Das .clkr = { 158917269568STaniya Das .enable_reg = 0x52008, 159017269568STaniya Das .enable_mask = BIT(23), 159117269568STaniya Das .hw.init = &(struct clk_init_data){ 159217269568STaniya Das .name = "gcc_qupv3_wrap1_s1_clk", 1593041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1594041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s1_clk_src.clkr.hw, 159517269568STaniya Das }, 159617269568STaniya Das .num_parents = 1, 159717269568STaniya Das .flags = CLK_SET_RATE_PARENT, 159817269568STaniya Das .ops = &clk_branch2_ops, 159917269568STaniya Das }, 160017269568STaniya Das }, 160117269568STaniya Das }; 160217269568STaniya Das 160317269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s2_clk = { 160417269568STaniya Das .halt_reg = 0x18274, 160517269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 160617269568STaniya Das .clkr = { 160717269568STaniya Das .enable_reg = 0x52008, 160817269568STaniya Das .enable_mask = BIT(24), 160917269568STaniya Das .hw.init = &(struct clk_init_data){ 161017269568STaniya Das .name = "gcc_qupv3_wrap1_s2_clk", 1611041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1612041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s2_clk_src.clkr.hw, 161317269568STaniya Das }, 161417269568STaniya Das .num_parents = 1, 161517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 161617269568STaniya Das .ops = &clk_branch2_ops, 161717269568STaniya Das }, 161817269568STaniya Das }, 161917269568STaniya Das }; 162017269568STaniya Das 162117269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s3_clk = { 162217269568STaniya Das .halt_reg = 0x183a4, 162317269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 162417269568STaniya Das .clkr = { 162517269568STaniya Das .enable_reg = 0x52008, 162617269568STaniya Das .enable_mask = BIT(25), 162717269568STaniya Das .hw.init = &(struct clk_init_data){ 162817269568STaniya Das .name = "gcc_qupv3_wrap1_s3_clk", 1629041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1630041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s3_clk_src.clkr.hw, 163117269568STaniya Das }, 163217269568STaniya Das .num_parents = 1, 163317269568STaniya Das .flags = CLK_SET_RATE_PARENT, 163417269568STaniya Das .ops = &clk_branch2_ops, 163517269568STaniya Das }, 163617269568STaniya Das }, 163717269568STaniya Das }; 163817269568STaniya Das 163917269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s4_clk = { 164017269568STaniya Das .halt_reg = 0x184d4, 164117269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 164217269568STaniya Das .clkr = { 164317269568STaniya Das .enable_reg = 0x52008, 164417269568STaniya Das .enable_mask = BIT(26), 164517269568STaniya Das .hw.init = &(struct clk_init_data){ 164617269568STaniya Das .name = "gcc_qupv3_wrap1_s4_clk", 1647041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1648041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s4_clk_src.clkr.hw, 164917269568STaniya Das }, 165017269568STaniya Das .num_parents = 1, 165117269568STaniya Das .flags = CLK_SET_RATE_PARENT, 165217269568STaniya Das .ops = &clk_branch2_ops, 165317269568STaniya Das }, 165417269568STaniya Das }, 165517269568STaniya Das }; 165617269568STaniya Das 165717269568STaniya Das static struct clk_branch gcc_qupv3_wrap1_s5_clk = { 165817269568STaniya Das .halt_reg = 0x18604, 165917269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 166017269568STaniya Das .clkr = { 166117269568STaniya Das .enable_reg = 0x52008, 166217269568STaniya Das .enable_mask = BIT(27), 166317269568STaniya Das .hw.init = &(struct clk_init_data){ 166417269568STaniya Das .name = "gcc_qupv3_wrap1_s5_clk", 1665041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1666041b893bSDmitry Baryshkov &gcc_qupv3_wrap1_s5_clk_src.clkr.hw, 166717269568STaniya Das }, 166817269568STaniya Das .num_parents = 1, 166917269568STaniya Das .flags = CLK_SET_RATE_PARENT, 167017269568STaniya Das .ops = &clk_branch2_ops, 167117269568STaniya Das }, 167217269568STaniya Das }, 167317269568STaniya Das }; 167417269568STaniya Das 167517269568STaniya Das static struct clk_branch gcc_qupv3_wrap_0_m_ahb_clk = { 167617269568STaniya Das .halt_reg = 0x17004, 167717269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 167817269568STaniya Das .clkr = { 167917269568STaniya Das .enable_reg = 0x52008, 168017269568STaniya Das .enable_mask = BIT(6), 168117269568STaniya Das .hw.init = &(struct clk_init_data){ 168217269568STaniya Das .name = "gcc_qupv3_wrap_0_m_ahb_clk", 168317269568STaniya Das .ops = &clk_branch2_ops, 168417269568STaniya Das }, 168517269568STaniya Das }, 168617269568STaniya Das }; 168717269568STaniya Das 168817269568STaniya Das static struct clk_branch gcc_qupv3_wrap_0_s_ahb_clk = { 168917269568STaniya Das .halt_reg = 0x17008, 169017269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 169117269568STaniya Das .hwcg_reg = 0x17008, 169217269568STaniya Das .hwcg_bit = 1, 169317269568STaniya Das .clkr = { 169417269568STaniya Das .enable_reg = 0x52008, 169517269568STaniya Das .enable_mask = BIT(7), 169617269568STaniya Das .hw.init = &(struct clk_init_data){ 169717269568STaniya Das .name = "gcc_qupv3_wrap_0_s_ahb_clk", 169817269568STaniya Das .ops = &clk_branch2_ops, 169917269568STaniya Das }, 170017269568STaniya Das }, 170117269568STaniya Das }; 170217269568STaniya Das 170317269568STaniya Das static struct clk_branch gcc_qupv3_wrap_1_m_ahb_clk = { 170417269568STaniya Das .halt_reg = 0x1800c, 170517269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 170617269568STaniya Das .clkr = { 170717269568STaniya Das .enable_reg = 0x52008, 170817269568STaniya Das .enable_mask = BIT(20), 170917269568STaniya Das .hw.init = &(struct clk_init_data){ 171017269568STaniya Das .name = "gcc_qupv3_wrap_1_m_ahb_clk", 171117269568STaniya Das .ops = &clk_branch2_ops, 171217269568STaniya Das }, 171317269568STaniya Das }, 171417269568STaniya Das }; 171517269568STaniya Das 171617269568STaniya Das static struct clk_branch gcc_qupv3_wrap_1_s_ahb_clk = { 171717269568STaniya Das .halt_reg = 0x18010, 171817269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 171917269568STaniya Das .hwcg_reg = 0x18010, 172017269568STaniya Das .hwcg_bit = 1, 172117269568STaniya Das .clkr = { 172217269568STaniya Das .enable_reg = 0x52008, 172317269568STaniya Das .enable_mask = BIT(21), 172417269568STaniya Das .hw.init = &(struct clk_init_data){ 172517269568STaniya Das .name = "gcc_qupv3_wrap_1_s_ahb_clk", 172617269568STaniya Das .ops = &clk_branch2_ops, 172717269568STaniya Das }, 172817269568STaniya Das }, 172917269568STaniya Das }; 173017269568STaniya Das 173117269568STaniya Das static struct clk_branch gcc_sdcc1_ahb_clk = { 173217269568STaniya Das .halt_reg = 0x12008, 173317269568STaniya Das .halt_check = BRANCH_HALT, 173417269568STaniya Das .clkr = { 173517269568STaniya Das .enable_reg = 0x12008, 173617269568STaniya Das .enable_mask = BIT(0), 173717269568STaniya Das .hw.init = &(struct clk_init_data){ 173817269568STaniya Das .name = "gcc_sdcc1_ahb_clk", 173917269568STaniya Das .ops = &clk_branch2_ops, 174017269568STaniya Das }, 174117269568STaniya Das }, 174217269568STaniya Das }; 174317269568STaniya Das 174417269568STaniya Das static struct clk_branch gcc_sdcc1_apps_clk = { 174517269568STaniya Das .halt_reg = 0x1200c, 174617269568STaniya Das .halt_check = BRANCH_HALT, 174717269568STaniya Das .clkr = { 174817269568STaniya Das .enable_reg = 0x1200c, 174917269568STaniya Das .enable_mask = BIT(0), 175017269568STaniya Das .hw.init = &(struct clk_init_data){ 175117269568STaniya Das .name = "gcc_sdcc1_apps_clk", 1752041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1753041b893bSDmitry Baryshkov &gcc_sdcc1_apps_clk_src.clkr.hw, 175417269568STaniya Das }, 175517269568STaniya Das .num_parents = 1, 175617269568STaniya Das .flags = CLK_SET_RATE_PARENT, 175717269568STaniya Das .ops = &clk_branch2_ops, 175817269568STaniya Das }, 175917269568STaniya Das }, 176017269568STaniya Das }; 176117269568STaniya Das 176217269568STaniya Das static struct clk_branch gcc_sdcc1_ice_core_clk = { 176317269568STaniya Das .halt_reg = 0x12040, 176417269568STaniya Das .halt_check = BRANCH_HALT, 176517269568STaniya Das .clkr = { 176617269568STaniya Das .enable_reg = 0x12040, 176717269568STaniya Das .enable_mask = BIT(0), 176817269568STaniya Das .hw.init = &(struct clk_init_data){ 176917269568STaniya Das .name = "gcc_sdcc1_ice_core_clk", 1770041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1771041b893bSDmitry Baryshkov &gcc_sdcc1_ice_core_clk_src.clkr.hw, 177217269568STaniya Das }, 177317269568STaniya Das .num_parents = 1, 177417269568STaniya Das .flags = CLK_SET_RATE_PARENT, 177517269568STaniya Das .ops = &clk_branch2_ops, 177617269568STaniya Das }, 177717269568STaniya Das }, 177817269568STaniya Das }; 177917269568STaniya Das 178017269568STaniya Das static struct clk_branch gcc_sdcc2_ahb_clk = { 178117269568STaniya Das .halt_reg = 0x14008, 178217269568STaniya Das .halt_check = BRANCH_HALT, 178317269568STaniya Das .clkr = { 178417269568STaniya Das .enable_reg = 0x14008, 178517269568STaniya Das .enable_mask = BIT(0), 178617269568STaniya Das .hw.init = &(struct clk_init_data){ 178717269568STaniya Das .name = "gcc_sdcc2_ahb_clk", 178817269568STaniya Das .ops = &clk_branch2_ops, 178917269568STaniya Das }, 179017269568STaniya Das }, 179117269568STaniya Das }; 179217269568STaniya Das 179317269568STaniya Das static struct clk_branch gcc_sdcc2_apps_clk = { 179417269568STaniya Das .halt_reg = 0x14004, 179517269568STaniya Das .halt_check = BRANCH_HALT, 179617269568STaniya Das .clkr = { 179717269568STaniya Das .enable_reg = 0x14004, 179817269568STaniya Das .enable_mask = BIT(0), 179917269568STaniya Das .hw.init = &(struct clk_init_data){ 180017269568STaniya Das .name = "gcc_sdcc2_apps_clk", 1801041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1802041b893bSDmitry Baryshkov &gcc_sdcc2_apps_clk_src.clkr.hw, 180317269568STaniya Das }, 180417269568STaniya Das .num_parents = 1, 180517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 180617269568STaniya Das .ops = &clk_branch2_ops, 180717269568STaniya Das }, 180817269568STaniya Das }, 180917269568STaniya Das }; 181017269568STaniya Das 181117269568STaniya Das /* For CPUSS functionality the SYS NOC clock needs to be left enabled */ 181217269568STaniya Das static struct clk_branch gcc_sys_noc_cpuss_ahb_clk = { 181317269568STaniya Das .halt_reg = 0x4144, 181417269568STaniya Das .halt_check = BRANCH_HALT_VOTED, 181517269568STaniya Das .clkr = { 181617269568STaniya Das .enable_reg = 0x52000, 181717269568STaniya Das .enable_mask = BIT(0), 181817269568STaniya Das .hw.init = &(struct clk_init_data){ 181917269568STaniya Das .name = "gcc_sys_noc_cpuss_ahb_clk", 1820041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1821041b893bSDmitry Baryshkov &gcc_cpuss_ahb_clk_src.clkr.hw, 182217269568STaniya Das }, 182317269568STaniya Das .num_parents = 1, 182417269568STaniya Das .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 182517269568STaniya Das .ops = &clk_branch2_ops, 182617269568STaniya Das }, 182717269568STaniya Das }, 182817269568STaniya Das }; 182917269568STaniya Das 183017269568STaniya Das static struct clk_branch gcc_ufs_mem_clkref_clk = { 183117269568STaniya Das .halt_reg = 0x8c000, 183217269568STaniya Das .halt_check = BRANCH_HALT, 183317269568STaniya Das .clkr = { 183417269568STaniya Das .enable_reg = 0x8c000, 183517269568STaniya Das .enable_mask = BIT(0), 183617269568STaniya Das .hw.init = &(struct clk_init_data){ 183717269568STaniya Das .name = "gcc_ufs_mem_clkref_clk", 183817269568STaniya Das .ops = &clk_branch2_ops, 183917269568STaniya Das }, 184017269568STaniya Das }, 184117269568STaniya Das }; 184217269568STaniya Das 184317269568STaniya Das static struct clk_branch gcc_ufs_phy_ahb_clk = { 184417269568STaniya Das .halt_reg = 0x77014, 184517269568STaniya Das .halt_check = BRANCH_HALT, 184617269568STaniya Das .hwcg_reg = 0x77014, 184717269568STaniya Das .hwcg_bit = 1, 184817269568STaniya Das .clkr = { 184917269568STaniya Das .enable_reg = 0x77014, 185017269568STaniya Das .enable_mask = BIT(0), 185117269568STaniya Das .hw.init = &(struct clk_init_data){ 185217269568STaniya Das .name = "gcc_ufs_phy_ahb_clk", 185317269568STaniya Das .ops = &clk_branch2_ops, 185417269568STaniya Das }, 185517269568STaniya Das }, 185617269568STaniya Das }; 185717269568STaniya Das 185817269568STaniya Das static struct clk_branch gcc_ufs_phy_axi_clk = { 185917269568STaniya Das .halt_reg = 0x77038, 186017269568STaniya Das .halt_check = BRANCH_HALT, 186117269568STaniya Das .hwcg_reg = 0x77038, 186217269568STaniya Das .hwcg_bit = 1, 186317269568STaniya Das .clkr = { 186417269568STaniya Das .enable_reg = 0x77038, 186517269568STaniya Das .enable_mask = BIT(0), 186617269568STaniya Das .hw.init = &(struct clk_init_data){ 186717269568STaniya Das .name = "gcc_ufs_phy_axi_clk", 1868041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1869041b893bSDmitry Baryshkov &gcc_ufs_phy_axi_clk_src.clkr.hw, 187017269568STaniya Das }, 187117269568STaniya Das .num_parents = 1, 187217269568STaniya Das .flags = CLK_SET_RATE_PARENT, 187317269568STaniya Das .ops = &clk_branch2_ops, 187417269568STaniya Das }, 187517269568STaniya Das }, 187617269568STaniya Das }; 187717269568STaniya Das 187817269568STaniya Das static struct clk_branch gcc_ufs_phy_ice_core_clk = { 187917269568STaniya Das .halt_reg = 0x77090, 188017269568STaniya Das .halt_check = BRANCH_HALT, 188117269568STaniya Das .hwcg_reg = 0x77090, 188217269568STaniya Das .hwcg_bit = 1, 188317269568STaniya Das .clkr = { 188417269568STaniya Das .enable_reg = 0x77090, 188517269568STaniya Das .enable_mask = BIT(0), 188617269568STaniya Das .hw.init = &(struct clk_init_data){ 188717269568STaniya Das .name = "gcc_ufs_phy_ice_core_clk", 1888041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1889041b893bSDmitry Baryshkov &gcc_ufs_phy_ice_core_clk_src.clkr.hw, 189017269568STaniya Das }, 189117269568STaniya Das .num_parents = 1, 189217269568STaniya Das .flags = CLK_SET_RATE_PARENT, 189317269568STaniya Das .ops = &clk_branch2_ops, 189417269568STaniya Das }, 189517269568STaniya Das }, 189617269568STaniya Das }; 189717269568STaniya Das 189817269568STaniya Das static struct clk_branch gcc_ufs_phy_phy_aux_clk = { 189917269568STaniya Das .halt_reg = 0x77094, 190017269568STaniya Das .halt_check = BRANCH_HALT, 190117269568STaniya Das .hwcg_reg = 0x77094, 190217269568STaniya Das .hwcg_bit = 1, 190317269568STaniya Das .clkr = { 190417269568STaniya Das .enable_reg = 0x77094, 190517269568STaniya Das .enable_mask = BIT(0), 190617269568STaniya Das .hw.init = &(struct clk_init_data){ 190717269568STaniya Das .name = "gcc_ufs_phy_phy_aux_clk", 1908041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1909041b893bSDmitry Baryshkov &gcc_ufs_phy_phy_aux_clk_src.clkr.hw, 191017269568STaniya Das }, 191117269568STaniya Das .num_parents = 1, 191217269568STaniya Das .flags = CLK_SET_RATE_PARENT, 191317269568STaniya Das .ops = &clk_branch2_ops, 191417269568STaniya Das }, 191517269568STaniya Das }, 191617269568STaniya Das }; 191717269568STaniya Das 191817269568STaniya Das static struct clk_branch gcc_ufs_phy_rx_symbol_0_clk = { 191917269568STaniya Das .halt_reg = 0x7701c, 192017269568STaniya Das .halt_check = BRANCH_HALT_SKIP, 192117269568STaniya Das .clkr = { 192217269568STaniya Das .enable_reg = 0x7701c, 192317269568STaniya Das .enable_mask = BIT(0), 192417269568STaniya Das .hw.init = &(struct clk_init_data){ 192517269568STaniya Das .name = "gcc_ufs_phy_rx_symbol_0_clk", 192617269568STaniya Das .ops = &clk_branch2_ops, 192717269568STaniya Das }, 192817269568STaniya Das }, 192917269568STaniya Das }; 193017269568STaniya Das 193117269568STaniya Das static struct clk_branch gcc_ufs_phy_tx_symbol_0_clk = { 193217269568STaniya Das .halt_reg = 0x77018, 193317269568STaniya Das .halt_check = BRANCH_HALT_SKIP, 193417269568STaniya Das .clkr = { 193517269568STaniya Das .enable_reg = 0x77018, 193617269568STaniya Das .enable_mask = BIT(0), 193717269568STaniya Das .hw.init = &(struct clk_init_data){ 193817269568STaniya Das .name = "gcc_ufs_phy_tx_symbol_0_clk", 193917269568STaniya Das .ops = &clk_branch2_ops, 194017269568STaniya Das }, 194117269568STaniya Das }, 194217269568STaniya Das }; 194317269568STaniya Das 194417269568STaniya Das static struct clk_branch gcc_ufs_phy_unipro_core_clk = { 194517269568STaniya Das .halt_reg = 0x7708c, 194617269568STaniya Das .halt_check = BRANCH_HALT, 194717269568STaniya Das .hwcg_reg = 0x7708c, 194817269568STaniya Das .hwcg_bit = 1, 194917269568STaniya Das .clkr = { 195017269568STaniya Das .enable_reg = 0x7708c, 195117269568STaniya Das .enable_mask = BIT(0), 195217269568STaniya Das .hw.init = &(struct clk_init_data){ 195317269568STaniya Das .name = "gcc_ufs_phy_unipro_core_clk", 1954041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1955041b893bSDmitry Baryshkov &gcc_ufs_phy_unipro_core_clk_src.clkr.hw, 195617269568STaniya Das }, 195717269568STaniya Das .num_parents = 1, 195817269568STaniya Das .flags = CLK_SET_RATE_PARENT, 195917269568STaniya Das .ops = &clk_branch2_ops, 196017269568STaniya Das }, 196117269568STaniya Das }, 196217269568STaniya Das }; 196317269568STaniya Das 196417269568STaniya Das static struct clk_branch gcc_usb30_prim_master_clk = { 196517269568STaniya Das .halt_reg = 0xf010, 196617269568STaniya Das .halt_check = BRANCH_HALT, 196717269568STaniya Das .clkr = { 196817269568STaniya Das .enable_reg = 0xf010, 196917269568STaniya Das .enable_mask = BIT(0), 197017269568STaniya Das .hw.init = &(struct clk_init_data){ 197117269568STaniya Das .name = "gcc_usb30_prim_master_clk", 1972041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 1973041b893bSDmitry Baryshkov &gcc_usb30_prim_master_clk_src.clkr.hw, 197417269568STaniya Das }, 197517269568STaniya Das .num_parents = 1, 197617269568STaniya Das .flags = CLK_SET_RATE_PARENT, 197717269568STaniya Das .ops = &clk_branch2_ops, 197817269568STaniya Das }, 197917269568STaniya Das }, 198017269568STaniya Das }; 198117269568STaniya Das 198217269568STaniya Das static struct clk_branch gcc_usb30_prim_mock_utmi_clk = { 198317269568STaniya Das .halt_reg = 0xf018, 198417269568STaniya Das .halt_check = BRANCH_HALT, 198517269568STaniya Das .clkr = { 198617269568STaniya Das .enable_reg = 0xf018, 198717269568STaniya Das .enable_mask = BIT(0), 198817269568STaniya Das .hw.init = &(struct clk_init_data){ 198917269568STaniya Das .name = "gcc_usb30_prim_mock_utmi_clk", 199017269568STaniya Das .parent_data = &(const struct clk_parent_data){ 199117269568STaniya Das .hw = 199217269568STaniya Das &gcc_usb30_prim_mock_utmi_clk_src.clkr.hw, 199317269568STaniya Das }, 199417269568STaniya Das .num_parents = 1, 199517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 199617269568STaniya Das .ops = &clk_branch2_ops, 199717269568STaniya Das }, 199817269568STaniya Das }, 199917269568STaniya Das }; 200017269568STaniya Das 200117269568STaniya Das static struct clk_branch gcc_usb30_prim_sleep_clk = { 200217269568STaniya Das .halt_reg = 0xf014, 200317269568STaniya Das .halt_check = BRANCH_HALT, 200417269568STaniya Das .clkr = { 200517269568STaniya Das .enable_reg = 0xf014, 200617269568STaniya Das .enable_mask = BIT(0), 200717269568STaniya Das .hw.init = &(struct clk_init_data){ 200817269568STaniya Das .name = "gcc_usb30_prim_sleep_clk", 200917269568STaniya Das .ops = &clk_branch2_ops, 201017269568STaniya Das }, 201117269568STaniya Das }, 201217269568STaniya Das }; 201317269568STaniya Das 201417269568STaniya Das static struct clk_branch gcc_usb3_prim_clkref_clk = { 201517269568STaniya Das .halt_reg = 0x8c010, 201617269568STaniya Das .halt_check = BRANCH_HALT, 201717269568STaniya Das .clkr = { 201817269568STaniya Das .enable_reg = 0x8c010, 201917269568STaniya Das .enable_mask = BIT(0), 202017269568STaniya Das .hw.init = &(struct clk_init_data){ 202117269568STaniya Das .name = "gcc_usb3_prim_clkref_clk", 202217269568STaniya Das .ops = &clk_branch2_ops, 202317269568STaniya Das }, 202417269568STaniya Das }, 202517269568STaniya Das }; 202617269568STaniya Das 202717269568STaniya Das static struct clk_branch gcc_usb3_prim_phy_aux_clk = { 202817269568STaniya Das .halt_reg = 0xf050, 202917269568STaniya Das .halt_check = BRANCH_HALT, 203017269568STaniya Das .clkr = { 203117269568STaniya Das .enable_reg = 0xf050, 203217269568STaniya Das .enable_mask = BIT(0), 203317269568STaniya Das .hw.init = &(struct clk_init_data){ 203417269568STaniya Das .name = "gcc_usb3_prim_phy_aux_clk", 2035041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 2036041b893bSDmitry Baryshkov &gcc_usb3_prim_phy_aux_clk_src.clkr.hw, 203717269568STaniya Das }, 203817269568STaniya Das .num_parents = 1, 203917269568STaniya Das .flags = CLK_SET_RATE_PARENT, 204017269568STaniya Das .ops = &clk_branch2_ops, 204117269568STaniya Das }, 204217269568STaniya Das }, 204317269568STaniya Das }; 204417269568STaniya Das 204517269568STaniya Das static struct clk_branch gcc_usb3_prim_phy_com_aux_clk = { 204617269568STaniya Das .halt_reg = 0xf054, 204717269568STaniya Das .halt_check = BRANCH_HALT, 204817269568STaniya Das .clkr = { 204917269568STaniya Das .enable_reg = 0xf054, 205017269568STaniya Das .enable_mask = BIT(0), 205117269568STaniya Das .hw.init = &(struct clk_init_data){ 205217269568STaniya Das .name = "gcc_usb3_prim_phy_com_aux_clk", 2053041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 2054041b893bSDmitry Baryshkov &gcc_usb3_prim_phy_aux_clk_src.clkr.hw, 205517269568STaniya Das }, 205617269568STaniya Das .num_parents = 1, 205717269568STaniya Das .flags = CLK_SET_RATE_PARENT, 205817269568STaniya Das .ops = &clk_branch2_ops, 205917269568STaniya Das }, 206017269568STaniya Das }, 206117269568STaniya Das }; 206217269568STaniya Das 206317269568STaniya Das static struct clk_branch gcc_usb3_prim_phy_pipe_clk = { 206417269568STaniya Das .halt_reg = 0xf058, 206517269568STaniya Das .halt_check = BRANCH_HALT_SKIP, 206617269568STaniya Das .clkr = { 206717269568STaniya Das .enable_reg = 0xf058, 206817269568STaniya Das .enable_mask = BIT(0), 206917269568STaniya Das .hw.init = &(struct clk_init_data){ 207017269568STaniya Das .name = "gcc_usb3_prim_phy_pipe_clk", 207117269568STaniya Das .ops = &clk_branch2_ops, 207217269568STaniya Das }, 207317269568STaniya Das }, 207417269568STaniya Das }; 207517269568STaniya Das 207617269568STaniya Das static struct clk_branch gcc_usb_phy_cfg_ahb2phy_clk = { 207717269568STaniya Das .halt_reg = 0x6a004, 207817269568STaniya Das .halt_check = BRANCH_HALT, 207917269568STaniya Das .hwcg_reg = 0x6a004, 208017269568STaniya Das .hwcg_bit = 1, 208117269568STaniya Das .clkr = { 208217269568STaniya Das .enable_reg = 0x6a004, 208317269568STaniya Das .enable_mask = BIT(0), 208417269568STaniya Das .hw.init = &(struct clk_init_data){ 208517269568STaniya Das .name = "gcc_usb_phy_cfg_ahb2phy_clk", 208617269568STaniya Das .ops = &clk_branch2_ops, 208717269568STaniya Das }, 208817269568STaniya Das }, 208917269568STaniya Das }; 209017269568STaniya Das 209117269568STaniya Das static struct clk_branch gcc_video_axi_clk = { 209217269568STaniya Das .halt_reg = 0xb01c, 209317269568STaniya Das .halt_check = BRANCH_HALT, 209417269568STaniya Das .clkr = { 209517269568STaniya Das .enable_reg = 0xb01c, 209617269568STaniya Das .enable_mask = BIT(0), 209717269568STaniya Das .hw.init = &(struct clk_init_data){ 209817269568STaniya Das .name = "gcc_video_axi_clk", 209917269568STaniya Das .ops = &clk_branch2_ops, 210017269568STaniya Das }, 210117269568STaniya Das }, 210217269568STaniya Das }; 210317269568STaniya Das 210417269568STaniya Das static struct clk_branch gcc_video_gpll0_div_clk_src = { 210517269568STaniya Das .halt_check = BRANCH_HALT_DELAY, 210617269568STaniya Das .clkr = { 210717269568STaniya Das .enable_reg = 0x52000, 210817269568STaniya Das .enable_mask = BIT(20), 210917269568STaniya Das .hw.init = &(struct clk_init_data){ 211017269568STaniya Das .name = "gcc_video_gpll0_div_clk_src", 2111041b893bSDmitry Baryshkov .parent_hws = (const struct clk_hw*[]){ 2112041b893bSDmitry Baryshkov &gcc_pll0_main_div_cdiv.hw, 211317269568STaniya Das }, 211417269568STaniya Das .num_parents = 1, 211517269568STaniya Das .flags = CLK_SET_RATE_PARENT, 211617269568STaniya Das .ops = &clk_branch2_ops, 211717269568STaniya Das }, 211817269568STaniya Das }, 211917269568STaniya Das }; 212017269568STaniya Das 212117269568STaniya Das static struct clk_branch gcc_video_throttle_axi_clk = { 212217269568STaniya Das .halt_reg = 0xb07c, 212317269568STaniya Das .halt_check = BRANCH_HALT, 212417269568STaniya Das .hwcg_reg = 0xb07c, 212517269568STaniya Das .hwcg_bit = 1, 212617269568STaniya Das .clkr = { 212717269568STaniya Das .enable_reg = 0xb07c, 212817269568STaniya Das .enable_mask = BIT(0), 212917269568STaniya Das .hw.init = &(struct clk_init_data){ 213017269568STaniya Das .name = "gcc_video_throttle_axi_clk", 213117269568STaniya Das .ops = &clk_branch2_ops, 213217269568STaniya Das }, 213317269568STaniya Das }, 213417269568STaniya Das }; 213517269568STaniya Das 2136253a0af5STaniya Das static struct clk_branch gcc_mss_cfg_ahb_clk = { 2137253a0af5STaniya Das .halt_reg = 0x8a000, 2138253a0af5STaniya Das .halt_check = BRANCH_HALT, 2139253a0af5STaniya Das .clkr = { 2140253a0af5STaniya Das .enable_reg = 0x8a000, 2141253a0af5STaniya Das .enable_mask = BIT(0), 2142253a0af5STaniya Das .hw.init = &(struct clk_init_data){ 2143253a0af5STaniya Das .name = "gcc_mss_cfg_ahb_clk", 2144253a0af5STaniya Das .ops = &clk_branch2_ops, 2145253a0af5STaniya Das }, 2146253a0af5STaniya Das }, 2147253a0af5STaniya Das }; 2148253a0af5STaniya Das 2149253a0af5STaniya Das static struct clk_branch gcc_mss_mfab_axis_clk = { 2150253a0af5STaniya Das .halt_reg = 0x8a004, 2151253a0af5STaniya Das .halt_check = BRANCH_HALT_VOTED, 2152253a0af5STaniya Das .clkr = { 2153253a0af5STaniya Das .enable_reg = 0x8a004, 2154253a0af5STaniya Das .enable_mask = BIT(0), 2155253a0af5STaniya Das .hw.init = &(struct clk_init_data){ 2156253a0af5STaniya Das .name = "gcc_mss_mfab_axis_clk", 2157253a0af5STaniya Das .ops = &clk_branch2_ops, 2158253a0af5STaniya Das }, 2159253a0af5STaniya Das }, 2160253a0af5STaniya Das }; 2161253a0af5STaniya Das 2162253a0af5STaniya Das static struct clk_branch gcc_mss_nav_axi_clk = { 2163253a0af5STaniya Das .halt_reg = 0x8a00c, 2164253a0af5STaniya Das .halt_check = BRANCH_HALT_VOTED, 2165253a0af5STaniya Das .clkr = { 2166253a0af5STaniya Das .enable_reg = 0x8a00c, 2167253a0af5STaniya Das .enable_mask = BIT(0), 2168253a0af5STaniya Das .hw.init = &(struct clk_init_data){ 2169253a0af5STaniya Das .name = "gcc_mss_nav_axi_clk", 2170253a0af5STaniya Das .ops = &clk_branch2_ops, 2171253a0af5STaniya Das }, 2172253a0af5STaniya Das }, 2173253a0af5STaniya Das }; 2174253a0af5STaniya Das 2175253a0af5STaniya Das static struct clk_branch gcc_mss_snoc_axi_clk = { 2176253a0af5STaniya Das .halt_reg = 0x8a150, 2177253a0af5STaniya Das .halt_check = BRANCH_HALT, 2178253a0af5STaniya Das .clkr = { 2179253a0af5STaniya Das .enable_reg = 0x8a150, 2180253a0af5STaniya Das .enable_mask = BIT(0), 2181253a0af5STaniya Das .hw.init = &(struct clk_init_data){ 2182253a0af5STaniya Das .name = "gcc_mss_snoc_axi_clk", 2183253a0af5STaniya Das .ops = &clk_branch2_ops, 2184253a0af5STaniya Das }, 2185253a0af5STaniya Das }, 2186253a0af5STaniya Das }; 2187253a0af5STaniya Das 2188253a0af5STaniya Das static struct clk_branch gcc_mss_q6_memnoc_axi_clk = { 2189253a0af5STaniya Das .halt_reg = 0x8a154, 2190253a0af5STaniya Das .halt_check = BRANCH_HALT, 2191253a0af5STaniya Das .clkr = { 2192253a0af5STaniya Das .enable_reg = 0x8a154, 2193253a0af5STaniya Das .enable_mask = BIT(0), 2194253a0af5STaniya Das .hw.init = &(struct clk_init_data){ 2195253a0af5STaniya Das .name = "gcc_mss_q6_memnoc_axi_clk", 2196253a0af5STaniya Das .ops = &clk_branch2_ops, 2197253a0af5STaniya Das }, 2198253a0af5STaniya Das }, 2199253a0af5STaniya Das }; 2200253a0af5STaniya Das 220147110b6aSTaniya Das static struct clk_branch gcc_lpass_cfg_noc_sway_clk = { 220247110b6aSTaniya Das .halt_reg = 0x47018, 220347110b6aSTaniya Das .halt_check = BRANCH_HALT_DELAY, 220447110b6aSTaniya Das .clkr = { 220547110b6aSTaniya Das .enable_reg = 0x47018, 220647110b6aSTaniya Das .enable_mask = BIT(0), 220747110b6aSTaniya Das .hw.init = &(struct clk_init_data){ 220847110b6aSTaniya Das .name = "gcc_lpass_cfg_noc_sway_clk", 220947110b6aSTaniya Das .ops = &clk_branch2_ops, 221047110b6aSTaniya Das }, 221147110b6aSTaniya Das }, 221247110b6aSTaniya Das }; 221347110b6aSTaniya Das 221417269568STaniya Das static struct gdsc ufs_phy_gdsc = { 221517269568STaniya Das .gdscr = 0x77004, 221617269568STaniya Das .pd = { 221717269568STaniya Das .name = "ufs_phy_gdsc", 221817269568STaniya Das }, 221917269568STaniya Das .pwrsts = PWRSTS_OFF_ON, 222017269568STaniya Das }; 222117269568STaniya Das 222217269568STaniya Das static struct gdsc usb30_prim_gdsc = { 222317269568STaniya Das .gdscr = 0x0f004, 222417269568STaniya Das .pd = { 222517269568STaniya Das .name = "usb30_prim_gdsc", 222617269568STaniya Das }, 2227*d9fe9f3fSRajendra Nayak .pwrsts = PWRSTS_RET_ON, 222817269568STaniya Das }; 222917269568STaniya Das 223017269568STaniya Das static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { 223117269568STaniya Das .gdscr = 0x7d040, 223217269568STaniya Das .pd = { 223317269568STaniya Das .name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc", 223417269568STaniya Das }, 22358d20c39fSMatthias Kaehlcke .pwrsts = PWRSTS_OFF_ON, 22368d20c39fSMatthias Kaehlcke .flags = VOTABLE, 223717269568STaniya Das }; 223817269568STaniya Das 223917269568STaniya Das static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { 224017269568STaniya Das .gdscr = 0x7d044, 224117269568STaniya Das .pd = { 224217269568STaniya Das .name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc", 224317269568STaniya Das }, 22448d20c39fSMatthias Kaehlcke .pwrsts = PWRSTS_OFF_ON, 22458d20c39fSMatthias Kaehlcke .flags = VOTABLE, 224617269568STaniya Das }; 224717269568STaniya Das 224817269568STaniya Das static struct gdsc *gcc_sc7180_gdscs[] = { 224917269568STaniya Das [UFS_PHY_GDSC] = &ufs_phy_gdsc, 225017269568STaniya Das [USB30_PRIM_GDSC] = &usb30_prim_gdsc, 225117269568STaniya Das [HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC] = 225217269568STaniya Das &hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc, 225317269568STaniya Das [HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC] = 225417269568STaniya Das &hlos1_vote_mmnoc_mmu_tbu_sf_gdsc, 225517269568STaniya Das }; 225617269568STaniya Das 225717269568STaniya Das 225817269568STaniya Das static struct clk_hw *gcc_sc7180_hws[] = { 225917269568STaniya Das [GCC_GPLL0_MAIN_DIV_CDIV] = &gcc_pll0_main_div_cdiv.hw, 226017269568STaniya Das }; 226117269568STaniya Das 226217269568STaniya Das static struct clk_regmap *gcc_sc7180_clocks[] = { 226317269568STaniya Das [GCC_AGGRE_UFS_PHY_AXI_CLK] = &gcc_aggre_ufs_phy_axi_clk.clkr, 226417269568STaniya Das [GCC_AGGRE_USB3_PRIM_AXI_CLK] = &gcc_aggre_usb3_prim_axi_clk.clkr, 226517269568STaniya Das [GCC_BOOT_ROM_AHB_CLK] = &gcc_boot_rom_ahb_clk.clkr, 226617269568STaniya Das [GCC_CAMERA_HF_AXI_CLK] = &gcc_camera_hf_axi_clk.clkr, 226717269568STaniya Das [GCC_CAMERA_THROTTLE_HF_AXI_CLK] = &gcc_camera_throttle_hf_axi_clk.clkr, 226817269568STaniya Das [GCC_CE1_AHB_CLK] = &gcc_ce1_ahb_clk.clkr, 226917269568STaniya Das [GCC_CE1_AXI_CLK] = &gcc_ce1_axi_clk.clkr, 227017269568STaniya Das [GCC_CE1_CLK] = &gcc_ce1_clk.clkr, 227117269568STaniya Das [GCC_CFG_NOC_USB3_PRIM_AXI_CLK] = &gcc_cfg_noc_usb3_prim_axi_clk.clkr, 227217269568STaniya Das [GCC_CPUSS_AHB_CLK] = &gcc_cpuss_ahb_clk.clkr, 227317269568STaniya Das [GCC_CPUSS_AHB_CLK_SRC] = &gcc_cpuss_ahb_clk_src.clkr, 227417269568STaniya Das [GCC_CPUSS_RBCPR_CLK] = &gcc_cpuss_rbcpr_clk.clkr, 227517269568STaniya Das [GCC_DDRSS_GPU_AXI_CLK] = &gcc_ddrss_gpu_axi_clk.clkr, 227617269568STaniya Das [GCC_DISP_GPLL0_CLK_SRC] = &gcc_disp_gpll0_clk_src.clkr, 227717269568STaniya Das [GCC_DISP_GPLL0_DIV_CLK_SRC] = &gcc_disp_gpll0_div_clk_src.clkr, 227817269568STaniya Das [GCC_DISP_HF_AXI_CLK] = &gcc_disp_hf_axi_clk.clkr, 227917269568STaniya Das [GCC_DISP_THROTTLE_HF_AXI_CLK] = &gcc_disp_throttle_hf_axi_clk.clkr, 228017269568STaniya Das [GCC_GP1_CLK] = &gcc_gp1_clk.clkr, 228117269568STaniya Das [GCC_GP1_CLK_SRC] = &gcc_gp1_clk_src.clkr, 228217269568STaniya Das [GCC_GP2_CLK] = &gcc_gp2_clk.clkr, 228317269568STaniya Das [GCC_GP2_CLK_SRC] = &gcc_gp2_clk_src.clkr, 228417269568STaniya Das [GCC_GP3_CLK] = &gcc_gp3_clk.clkr, 228517269568STaniya Das [GCC_GP3_CLK_SRC] = &gcc_gp3_clk_src.clkr, 228617269568STaniya Das [GCC_GPU_GPLL0_CLK_SRC] = &gcc_gpu_gpll0_clk_src.clkr, 228717269568STaniya Das [GCC_GPU_GPLL0_DIV_CLK_SRC] = &gcc_gpu_gpll0_div_clk_src.clkr, 228817269568STaniya Das [GCC_GPU_MEMNOC_GFX_CLK] = &gcc_gpu_memnoc_gfx_clk.clkr, 228917269568STaniya Das [GCC_GPU_SNOC_DVM_GFX_CLK] = &gcc_gpu_snoc_dvm_gfx_clk.clkr, 229017269568STaniya Das [GCC_NPU_AXI_CLK] = &gcc_npu_axi_clk.clkr, 229117269568STaniya Das [GCC_NPU_BWMON_AXI_CLK] = &gcc_npu_bwmon_axi_clk.clkr, 229217269568STaniya Das [GCC_NPU_BWMON_DMA_CFG_AHB_CLK] = &gcc_npu_bwmon_dma_cfg_ahb_clk.clkr, 229317269568STaniya Das [GCC_NPU_BWMON_DSP_CFG_AHB_CLK] = &gcc_npu_bwmon_dsp_cfg_ahb_clk.clkr, 229417269568STaniya Das [GCC_NPU_CFG_AHB_CLK] = &gcc_npu_cfg_ahb_clk.clkr, 229517269568STaniya Das [GCC_NPU_DMA_CLK] = &gcc_npu_dma_clk.clkr, 229617269568STaniya Das [GCC_NPU_GPLL0_CLK_SRC] = &gcc_npu_gpll0_clk_src.clkr, 229717269568STaniya Das [GCC_NPU_GPLL0_DIV_CLK_SRC] = &gcc_npu_gpll0_div_clk_src.clkr, 229817269568STaniya Das [GCC_PDM2_CLK] = &gcc_pdm2_clk.clkr, 229917269568STaniya Das [GCC_PDM2_CLK_SRC] = &gcc_pdm2_clk_src.clkr, 230017269568STaniya Das [GCC_PDM_AHB_CLK] = &gcc_pdm_ahb_clk.clkr, 230117269568STaniya Das [GCC_PDM_XO4_CLK] = &gcc_pdm_xo4_clk.clkr, 230217269568STaniya Das [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr, 230317269568STaniya Das [GCC_QSPI_CNOC_PERIPH_AHB_CLK] = &gcc_qspi_cnoc_periph_ahb_clk.clkr, 230417269568STaniya Das [GCC_QSPI_CORE_CLK] = &gcc_qspi_core_clk.clkr, 230517269568STaniya Das [GCC_QSPI_CORE_CLK_SRC] = &gcc_qspi_core_clk_src.clkr, 230617269568STaniya Das [GCC_QUPV3_WRAP0_CORE_2X_CLK] = &gcc_qupv3_wrap0_core_2x_clk.clkr, 230717269568STaniya Das [GCC_QUPV3_WRAP0_CORE_CLK] = &gcc_qupv3_wrap0_core_clk.clkr, 230817269568STaniya Das [GCC_QUPV3_WRAP0_S0_CLK] = &gcc_qupv3_wrap0_s0_clk.clkr, 230917269568STaniya Das [GCC_QUPV3_WRAP0_S0_CLK_SRC] = &gcc_qupv3_wrap0_s0_clk_src.clkr, 231017269568STaniya Das [GCC_QUPV3_WRAP0_S1_CLK] = &gcc_qupv3_wrap0_s1_clk.clkr, 231117269568STaniya Das [GCC_QUPV3_WRAP0_S1_CLK_SRC] = &gcc_qupv3_wrap0_s1_clk_src.clkr, 231217269568STaniya Das [GCC_QUPV3_WRAP0_S2_CLK] = &gcc_qupv3_wrap0_s2_clk.clkr, 231317269568STaniya Das [GCC_QUPV3_WRAP0_S2_CLK_SRC] = &gcc_qupv3_wrap0_s2_clk_src.clkr, 231417269568STaniya Das [GCC_QUPV3_WRAP0_S3_CLK] = &gcc_qupv3_wrap0_s3_clk.clkr, 231517269568STaniya Das [GCC_QUPV3_WRAP0_S3_CLK_SRC] = &gcc_qupv3_wrap0_s3_clk_src.clkr, 231617269568STaniya Das [GCC_QUPV3_WRAP0_S4_CLK] = &gcc_qupv3_wrap0_s4_clk.clkr, 231717269568STaniya Das [GCC_QUPV3_WRAP0_S4_CLK_SRC] = &gcc_qupv3_wrap0_s4_clk_src.clkr, 231817269568STaniya Das [GCC_QUPV3_WRAP0_S5_CLK] = &gcc_qupv3_wrap0_s5_clk.clkr, 231917269568STaniya Das [GCC_QUPV3_WRAP0_S5_CLK_SRC] = &gcc_qupv3_wrap0_s5_clk_src.clkr, 232017269568STaniya Das [GCC_QUPV3_WRAP1_CORE_2X_CLK] = &gcc_qupv3_wrap1_core_2x_clk.clkr, 232117269568STaniya Das [GCC_QUPV3_WRAP1_CORE_CLK] = &gcc_qupv3_wrap1_core_clk.clkr, 232217269568STaniya Das [GCC_QUPV3_WRAP1_S0_CLK] = &gcc_qupv3_wrap1_s0_clk.clkr, 232317269568STaniya Das [GCC_QUPV3_WRAP1_S0_CLK_SRC] = &gcc_qupv3_wrap1_s0_clk_src.clkr, 232417269568STaniya Das [GCC_QUPV3_WRAP1_S1_CLK] = &gcc_qupv3_wrap1_s1_clk.clkr, 232517269568STaniya Das [GCC_QUPV3_WRAP1_S1_CLK_SRC] = &gcc_qupv3_wrap1_s1_clk_src.clkr, 232617269568STaniya Das [GCC_QUPV3_WRAP1_S2_CLK] = &gcc_qupv3_wrap1_s2_clk.clkr, 232717269568STaniya Das [GCC_QUPV3_WRAP1_S2_CLK_SRC] = &gcc_qupv3_wrap1_s2_clk_src.clkr, 232817269568STaniya Das [GCC_QUPV3_WRAP1_S3_CLK] = &gcc_qupv3_wrap1_s3_clk.clkr, 232917269568STaniya Das [GCC_QUPV3_WRAP1_S3_CLK_SRC] = &gcc_qupv3_wrap1_s3_clk_src.clkr, 233017269568STaniya Das [GCC_QUPV3_WRAP1_S4_CLK] = &gcc_qupv3_wrap1_s4_clk.clkr, 233117269568STaniya Das [GCC_QUPV3_WRAP1_S4_CLK_SRC] = &gcc_qupv3_wrap1_s4_clk_src.clkr, 233217269568STaniya Das [GCC_QUPV3_WRAP1_S5_CLK] = &gcc_qupv3_wrap1_s5_clk.clkr, 233317269568STaniya Das [GCC_QUPV3_WRAP1_S5_CLK_SRC] = &gcc_qupv3_wrap1_s5_clk_src.clkr, 233417269568STaniya Das [GCC_QUPV3_WRAP_0_M_AHB_CLK] = &gcc_qupv3_wrap_0_m_ahb_clk.clkr, 233517269568STaniya Das [GCC_QUPV3_WRAP_0_S_AHB_CLK] = &gcc_qupv3_wrap_0_s_ahb_clk.clkr, 233617269568STaniya Das [GCC_QUPV3_WRAP_1_M_AHB_CLK] = &gcc_qupv3_wrap_1_m_ahb_clk.clkr, 233717269568STaniya Das [GCC_QUPV3_WRAP_1_S_AHB_CLK] = &gcc_qupv3_wrap_1_s_ahb_clk.clkr, 233817269568STaniya Das [GCC_SDCC1_AHB_CLK] = &gcc_sdcc1_ahb_clk.clkr, 233917269568STaniya Das [GCC_SDCC1_APPS_CLK] = &gcc_sdcc1_apps_clk.clkr, 234017269568STaniya Das [GCC_SDCC1_APPS_CLK_SRC] = &gcc_sdcc1_apps_clk_src.clkr, 234117269568STaniya Das [GCC_SDCC1_ICE_CORE_CLK] = &gcc_sdcc1_ice_core_clk.clkr, 234217269568STaniya Das [GCC_SDCC1_ICE_CORE_CLK_SRC] = &gcc_sdcc1_ice_core_clk_src.clkr, 234317269568STaniya Das [GCC_SDCC2_AHB_CLK] = &gcc_sdcc2_ahb_clk.clkr, 234417269568STaniya Das [GCC_SDCC2_APPS_CLK] = &gcc_sdcc2_apps_clk.clkr, 234517269568STaniya Das [GCC_SDCC2_APPS_CLK_SRC] = &gcc_sdcc2_apps_clk_src.clkr, 234617269568STaniya Das [GCC_SYS_NOC_CPUSS_AHB_CLK] = &gcc_sys_noc_cpuss_ahb_clk.clkr, 234717269568STaniya Das [GCC_UFS_MEM_CLKREF_CLK] = &gcc_ufs_mem_clkref_clk.clkr, 234817269568STaniya Das [GCC_UFS_PHY_AHB_CLK] = &gcc_ufs_phy_ahb_clk.clkr, 234917269568STaniya Das [GCC_UFS_PHY_AXI_CLK] = &gcc_ufs_phy_axi_clk.clkr, 235017269568STaniya Das [GCC_UFS_PHY_AXI_CLK_SRC] = &gcc_ufs_phy_axi_clk_src.clkr, 235117269568STaniya Das [GCC_UFS_PHY_ICE_CORE_CLK] = &gcc_ufs_phy_ice_core_clk.clkr, 235217269568STaniya Das [GCC_UFS_PHY_ICE_CORE_CLK_SRC] = &gcc_ufs_phy_ice_core_clk_src.clkr, 235317269568STaniya Das [GCC_UFS_PHY_PHY_AUX_CLK] = &gcc_ufs_phy_phy_aux_clk.clkr, 235417269568STaniya Das [GCC_UFS_PHY_PHY_AUX_CLK_SRC] = &gcc_ufs_phy_phy_aux_clk_src.clkr, 235517269568STaniya Das [GCC_UFS_PHY_RX_SYMBOL_0_CLK] = &gcc_ufs_phy_rx_symbol_0_clk.clkr, 235617269568STaniya Das [GCC_UFS_PHY_TX_SYMBOL_0_CLK] = &gcc_ufs_phy_tx_symbol_0_clk.clkr, 235717269568STaniya Das [GCC_UFS_PHY_UNIPRO_CORE_CLK] = &gcc_ufs_phy_unipro_core_clk.clkr, 235817269568STaniya Das [GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC] = 235917269568STaniya Das &gcc_ufs_phy_unipro_core_clk_src.clkr, 236017269568STaniya Das [GCC_USB30_PRIM_MASTER_CLK] = &gcc_usb30_prim_master_clk.clkr, 236117269568STaniya Das [GCC_USB30_PRIM_MASTER_CLK_SRC] = &gcc_usb30_prim_master_clk_src.clkr, 236217269568STaniya Das [GCC_USB30_PRIM_MOCK_UTMI_CLK] = &gcc_usb30_prim_mock_utmi_clk.clkr, 236317269568STaniya Das [GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC] = 236417269568STaniya Das &gcc_usb30_prim_mock_utmi_clk_src.clkr, 236517269568STaniya Das [GCC_USB30_PRIM_SLEEP_CLK] = &gcc_usb30_prim_sleep_clk.clkr, 236617269568STaniya Das [GCC_USB3_PRIM_CLKREF_CLK] = &gcc_usb3_prim_clkref_clk.clkr, 236717269568STaniya Das [GCC_USB3_PRIM_PHY_AUX_CLK] = &gcc_usb3_prim_phy_aux_clk.clkr, 236817269568STaniya Das [GCC_USB3_PRIM_PHY_AUX_CLK_SRC] = &gcc_usb3_prim_phy_aux_clk_src.clkr, 236917269568STaniya Das [GCC_USB3_PRIM_PHY_COM_AUX_CLK] = &gcc_usb3_prim_phy_com_aux_clk.clkr, 237017269568STaniya Das [GCC_USB3_PRIM_PHY_PIPE_CLK] = &gcc_usb3_prim_phy_pipe_clk.clkr, 237117269568STaniya Das [GCC_USB_PHY_CFG_AHB2PHY_CLK] = &gcc_usb_phy_cfg_ahb2phy_clk.clkr, 237217269568STaniya Das [GCC_VIDEO_AXI_CLK] = &gcc_video_axi_clk.clkr, 237317269568STaniya Das [GCC_VIDEO_GPLL0_DIV_CLK_SRC] = &gcc_video_gpll0_div_clk_src.clkr, 237417269568STaniya Das [GCC_VIDEO_THROTTLE_AXI_CLK] = &gcc_video_throttle_axi_clk.clkr, 237517269568STaniya Das [GPLL0] = &gpll0.clkr, 237617269568STaniya Das [GPLL0_OUT_EVEN] = &gpll0_out_even.clkr, 237717269568STaniya Das [GPLL6] = &gpll6.clkr, 237817269568STaniya Das [GPLL7] = &gpll7.clkr, 237917269568STaniya Das [GPLL4] = &gpll4.clkr, 238017269568STaniya Das [GPLL1] = &gpll1.clkr, 2381253a0af5STaniya Das [GCC_MSS_CFG_AHB_CLK] = &gcc_mss_cfg_ahb_clk.clkr, 2382253a0af5STaniya Das [GCC_MSS_MFAB_AXIS_CLK] = &gcc_mss_mfab_axis_clk.clkr, 2383253a0af5STaniya Das [GCC_MSS_NAV_AXI_CLK] = &gcc_mss_nav_axi_clk.clkr, 2384253a0af5STaniya Das [GCC_MSS_Q6_MEMNOC_AXI_CLK] = &gcc_mss_q6_memnoc_axi_clk.clkr, 2385253a0af5STaniya Das [GCC_MSS_SNOC_AXI_CLK] = &gcc_mss_snoc_axi_clk.clkr, 2386bd4bb225STaniya Das [GCC_SEC_CTRL_CLK_SRC] = &gcc_sec_ctrl_clk_src.clkr, 238747110b6aSTaniya Das [GCC_LPASS_CFG_NOC_SWAY_CLK] = &gcc_lpass_cfg_noc_sway_clk.clkr, 238817269568STaniya Das }; 238917269568STaniya Das 239017269568STaniya Das static const struct qcom_reset_map gcc_sc7180_resets[] = { 239117269568STaniya Das [GCC_QUSB2PHY_PRIM_BCR] = { 0x26000 }, 239217269568STaniya Das [GCC_QUSB2PHY_SEC_BCR] = { 0x26004 }, 239317269568STaniya Das [GCC_UFS_PHY_BCR] = { 0x77000 }, 239417269568STaniya Das [GCC_USB30_PRIM_BCR] = { 0xf000 }, 239517269568STaniya Das [GCC_USB3_PHY_PRIM_BCR] = { 0x50000 }, 239617269568STaniya Das [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 }, 239717269568STaniya Das [GCC_USB3_PHY_SEC_BCR] = { 0x5000c }, 239817269568STaniya Das [GCC_USB3_DP_PHY_PRIM_BCR] = { 0x50008 }, 239917269568STaniya Das [GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 }, 240017269568STaniya Das [GCC_USB3_DP_PHY_SEC_BCR] = { 0x50014 }, 240117269568STaniya Das [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, 240217269568STaniya Das }; 240317269568STaniya Das 240417269568STaniya Das static struct clk_rcg_dfs_data gcc_dfs_clocks[] = { 240517269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s0_clk_src), 240617269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s1_clk_src), 240717269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s2_clk_src), 240817269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s3_clk_src), 240917269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s4_clk_src), 241017269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap0_s5_clk_src), 241117269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s0_clk_src), 241217269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s1_clk_src), 241317269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s2_clk_src), 241417269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s3_clk_src), 241517269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s4_clk_src), 241617269568STaniya Das DEFINE_RCG_DFS(gcc_qupv3_wrap1_s5_clk_src), 241717269568STaniya Das }; 241817269568STaniya Das 241917269568STaniya Das static const struct regmap_config gcc_sc7180_regmap_config = { 242017269568STaniya Das .reg_bits = 32, 242117269568STaniya Das .reg_stride = 4, 242217269568STaniya Das .val_bits = 32, 242317269568STaniya Das .max_register = 0x18208c, 242417269568STaniya Das .fast_io = true, 242517269568STaniya Das }; 242617269568STaniya Das 242717269568STaniya Das static const struct qcom_cc_desc gcc_sc7180_desc = { 242817269568STaniya Das .config = &gcc_sc7180_regmap_config, 242917269568STaniya Das .clk_hws = gcc_sc7180_hws, 243017269568STaniya Das .num_clk_hws = ARRAY_SIZE(gcc_sc7180_hws), 243117269568STaniya Das .clks = gcc_sc7180_clocks, 243217269568STaniya Das .num_clks = ARRAY_SIZE(gcc_sc7180_clocks), 243317269568STaniya Das .resets = gcc_sc7180_resets, 243417269568STaniya Das .num_resets = ARRAY_SIZE(gcc_sc7180_resets), 243517269568STaniya Das .gdscs = gcc_sc7180_gdscs, 243617269568STaniya Das .num_gdscs = ARRAY_SIZE(gcc_sc7180_gdscs), 243717269568STaniya Das }; 243817269568STaniya Das 243917269568STaniya Das static const struct of_device_id gcc_sc7180_match_table[] = { 244017269568STaniya Das { .compatible = "qcom,gcc-sc7180" }, 244117269568STaniya Das { } 244217269568STaniya Das }; 244317269568STaniya Das MODULE_DEVICE_TABLE(of, gcc_sc7180_match_table); 244417269568STaniya Das 244517269568STaniya Das static int gcc_sc7180_probe(struct platform_device *pdev) 244617269568STaniya Das { 244717269568STaniya Das struct regmap *regmap; 244817269568STaniya Das int ret; 244917269568STaniya Das 245017269568STaniya Das regmap = qcom_cc_map(pdev, &gcc_sc7180_desc); 245117269568STaniya Das if (IS_ERR(regmap)) 245217269568STaniya Das return PTR_ERR(regmap); 245317269568STaniya Das 245417269568STaniya Das /* 245517269568STaniya Das * Disable the GPLL0 active input to MM blocks, NPU 245617269568STaniya Das * and GPU via MISC registers. 245717269568STaniya Das */ 245817269568STaniya Das regmap_update_bits(regmap, 0x09ffc, 0x3, 0x3); 245917269568STaniya Das regmap_update_bits(regmap, 0x4d110, 0x3, 0x3); 246017269568STaniya Das regmap_update_bits(regmap, 0x71028, 0x3, 0x3); 246117269568STaniya Das 246217269568STaniya Das /* 246317269568STaniya Das * Keep the clocks always-ON 246498829137STaniya Das * GCC_CPUSS_GNOC_CLK, GCC_VIDEO_AHB_CLK, GCC_CAMERA_AHB_CLK, 246598829137STaniya Das * GCC_DISP_AHB_CLK, GCC_GPU_CFG_AHB_CLK 246617269568STaniya Das */ 246717269568STaniya Das regmap_update_bits(regmap, 0x48004, BIT(0), BIT(0)); 246817269568STaniya Das regmap_update_bits(regmap, 0x0b004, BIT(0), BIT(0)); 246998829137STaniya Das regmap_update_bits(regmap, 0x0b008, BIT(0), BIT(0)); 247017269568STaniya Das regmap_update_bits(regmap, 0x0b00c, BIT(0), BIT(0)); 2471d79dfa19STaniya Das regmap_update_bits(regmap, 0x0b02c, BIT(0), BIT(0)); 2472d79dfa19STaniya Das regmap_update_bits(regmap, 0x0b028, BIT(0), BIT(0)); 2473d79dfa19STaniya Das regmap_update_bits(regmap, 0x0b030, BIT(0), BIT(0)); 247417269568STaniya Das regmap_update_bits(regmap, 0x71004, BIT(0), BIT(0)); 247517269568STaniya Das 247617269568STaniya Das ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, 247717269568STaniya Das ARRAY_SIZE(gcc_dfs_clocks)); 247817269568STaniya Das if (ret) 247917269568STaniya Das return ret; 248017269568STaniya Das 248117269568STaniya Das return qcom_cc_really_probe(pdev, &gcc_sc7180_desc, regmap); 248217269568STaniya Das } 248317269568STaniya Das 248417269568STaniya Das static struct platform_driver gcc_sc7180_driver = { 248517269568STaniya Das .probe = gcc_sc7180_probe, 248617269568STaniya Das .driver = { 248717269568STaniya Das .name = "gcc-sc7180", 248817269568STaniya Das .of_match_table = gcc_sc7180_match_table, 248917269568STaniya Das }, 249017269568STaniya Das }; 249117269568STaniya Das 249217269568STaniya Das static int __init gcc_sc7180_init(void) 249317269568STaniya Das { 249417269568STaniya Das return platform_driver_register(&gcc_sc7180_driver); 249517269568STaniya Das } 249617269568STaniya Das core_initcall(gcc_sc7180_init); 249717269568STaniya Das 249817269568STaniya Das static void __exit gcc_sc7180_exit(void) 249917269568STaniya Das { 250017269568STaniya Das platform_driver_unregister(&gcc_sc7180_driver); 250117269568STaniya Das } 250217269568STaniya Das module_exit(gcc_sc7180_exit); 250317269568STaniya Das 250417269568STaniya Das MODULE_DESCRIPTION("QTI GCC SC7180 Driver"); 250517269568STaniya Das MODULE_LICENSE("GPL v2"); 2506