18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/clk-provider.h> 78c2ecf20Sopenharmony_ci#include <linux/err.h> 88c2ecf20Sopenharmony_ci#include <linux/kernel.h> 98c2ecf20Sopenharmony_ci#include <linux/module.h> 108c2ecf20Sopenharmony_ci#include <linux/of.h> 118c2ecf20Sopenharmony_ci#include <linux/of_device.h> 128c2ecf20Sopenharmony_ci#include <linux/regmap.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <dt-bindings/clock/qcom,gcc-sc7180.h> 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#include "clk-alpha-pll.h" 178c2ecf20Sopenharmony_ci#include "clk-branch.h" 188c2ecf20Sopenharmony_ci#include "clk-rcg.h" 198c2ecf20Sopenharmony_ci#include "clk-regmap.h" 208c2ecf20Sopenharmony_ci#include "common.h" 218c2ecf20Sopenharmony_ci#include "gdsc.h" 228c2ecf20Sopenharmony_ci#include "reset.h" 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_cienum { 258c2ecf20Sopenharmony_ci P_BI_TCXO, 268c2ecf20Sopenharmony_ci P_CORE_BI_PLL_TEST_SE, 278c2ecf20Sopenharmony_ci P_GPLL0_OUT_EVEN, 288c2ecf20Sopenharmony_ci P_GPLL0_OUT_MAIN, 298c2ecf20Sopenharmony_ci P_GPLL1_OUT_MAIN, 308c2ecf20Sopenharmony_ci P_GPLL4_OUT_MAIN, 318c2ecf20Sopenharmony_ci P_GPLL6_OUT_MAIN, 328c2ecf20Sopenharmony_ci P_GPLL7_OUT_MAIN, 338c2ecf20Sopenharmony_ci P_SLEEP_CLK, 348c2ecf20Sopenharmony_ci}; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll0 = { 378c2ecf20Sopenharmony_ci .offset = 0x0, 388c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 398c2ecf20Sopenharmony_ci .clkr = { 408c2ecf20Sopenharmony_ci .enable_reg = 0x52010, 418c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 428c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 438c2ecf20Sopenharmony_ci .name = "gpll0", 448c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 458c2ecf20Sopenharmony_ci .fw_name = "bi_tcxo", 468c2ecf20Sopenharmony_ci .name = "bi_tcxo", 478c2ecf20Sopenharmony_ci }, 488c2ecf20Sopenharmony_ci .num_parents = 1, 498c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_fixed_fabia_ops, 508c2ecf20Sopenharmony_ci }, 518c2ecf20Sopenharmony_ci }, 528c2ecf20Sopenharmony_ci}; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_cistatic const struct clk_div_table post_div_table_gpll0_out_even[] = { 558c2ecf20Sopenharmony_ci { 0x1, 2 }, 568c2ecf20Sopenharmony_ci { } 578c2ecf20Sopenharmony_ci}; 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_cistatic struct clk_alpha_pll_postdiv gpll0_out_even = { 608c2ecf20Sopenharmony_ci .offset = 0x0, 618c2ecf20Sopenharmony_ci .post_div_shift = 8, 628c2ecf20Sopenharmony_ci .post_div_table = post_div_table_gpll0_out_even, 638c2ecf20Sopenharmony_ci .num_post_div = ARRAY_SIZE(post_div_table_gpll0_out_even), 648c2ecf20Sopenharmony_ci .width = 4, 658c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 668c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 678c2ecf20Sopenharmony_ci .name = "gpll0_out_even", 688c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 698c2ecf20Sopenharmony_ci .hw = &gpll0.clkr.hw, 708c2ecf20Sopenharmony_ci }, 718c2ecf20Sopenharmony_ci .num_parents = 1, 728c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_postdiv_fabia_ops, 738c2ecf20Sopenharmony_ci }, 748c2ecf20Sopenharmony_ci}; 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_cistatic struct clk_fixed_factor gcc_pll0_main_div_cdiv = { 778c2ecf20Sopenharmony_ci .mult = 1, 788c2ecf20Sopenharmony_ci .div = 2, 798c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 808c2ecf20Sopenharmony_ci .name = "gcc_pll0_main_div_cdiv", 818c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 828c2ecf20Sopenharmony_ci .hw = &gpll0.clkr.hw, 838c2ecf20Sopenharmony_ci }, 848c2ecf20Sopenharmony_ci .num_parents = 1, 858c2ecf20Sopenharmony_ci .ops = &clk_fixed_factor_ops, 868c2ecf20Sopenharmony_ci }, 878c2ecf20Sopenharmony_ci}; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll1 = { 908c2ecf20Sopenharmony_ci .offset = 0x01000, 918c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 928c2ecf20Sopenharmony_ci .clkr = { 938c2ecf20Sopenharmony_ci .enable_reg = 0x52010, 948c2ecf20Sopenharmony_ci .enable_mask = BIT(1), 958c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 968c2ecf20Sopenharmony_ci .name = "gpll1", 978c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 988c2ecf20Sopenharmony_ci .fw_name = "bi_tcxo", 998c2ecf20Sopenharmony_ci .name = "bi_tcxo", 1008c2ecf20Sopenharmony_ci }, 1018c2ecf20Sopenharmony_ci .num_parents = 1, 1028c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_fixed_fabia_ops, 1038c2ecf20Sopenharmony_ci }, 1048c2ecf20Sopenharmony_ci }, 1058c2ecf20Sopenharmony_ci}; 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll4 = { 1088c2ecf20Sopenharmony_ci .offset = 0x76000, 1098c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 1108c2ecf20Sopenharmony_ci .clkr = { 1118c2ecf20Sopenharmony_ci .enable_reg = 0x52010, 1128c2ecf20Sopenharmony_ci .enable_mask = BIT(4), 1138c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 1148c2ecf20Sopenharmony_ci .name = "gpll4", 1158c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 1168c2ecf20Sopenharmony_ci .fw_name = "bi_tcxo", 1178c2ecf20Sopenharmony_ci .name = "bi_tcxo", 1188c2ecf20Sopenharmony_ci }, 1198c2ecf20Sopenharmony_ci .num_parents = 1, 1208c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_fixed_fabia_ops, 1218c2ecf20Sopenharmony_ci }, 1228c2ecf20Sopenharmony_ci }, 1238c2ecf20Sopenharmony_ci}; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll6 = { 1268c2ecf20Sopenharmony_ci .offset = 0x13000, 1278c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 1288c2ecf20Sopenharmony_ci .clkr = { 1298c2ecf20Sopenharmony_ci .enable_reg = 0x52010, 1308c2ecf20Sopenharmony_ci .enable_mask = BIT(6), 1318c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 1328c2ecf20Sopenharmony_ci .name = "gpll6", 1338c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 1348c2ecf20Sopenharmony_ci .fw_name = "bi_tcxo", 1358c2ecf20Sopenharmony_ci .name = "bi_tcxo", 1368c2ecf20Sopenharmony_ci }, 1378c2ecf20Sopenharmony_ci .num_parents = 1, 1388c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_fixed_fabia_ops, 1398c2ecf20Sopenharmony_ci }, 1408c2ecf20Sopenharmony_ci }, 1418c2ecf20Sopenharmony_ci}; 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll7 = { 1448c2ecf20Sopenharmony_ci .offset = 0x27000, 1458c2ecf20Sopenharmony_ci .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], 1468c2ecf20Sopenharmony_ci .clkr = { 1478c2ecf20Sopenharmony_ci .enable_reg = 0x52010, 1488c2ecf20Sopenharmony_ci .enable_mask = BIT(7), 1498c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 1508c2ecf20Sopenharmony_ci .name = "gpll7", 1518c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 1528c2ecf20Sopenharmony_ci .fw_name = "bi_tcxo", 1538c2ecf20Sopenharmony_ci .name = "bi_tcxo", 1548c2ecf20Sopenharmony_ci }, 1558c2ecf20Sopenharmony_ci .num_parents = 1, 1568c2ecf20Sopenharmony_ci .ops = &clk_alpha_pll_fixed_fabia_ops, 1578c2ecf20Sopenharmony_ci }, 1588c2ecf20Sopenharmony_ci }, 1598c2ecf20Sopenharmony_ci}; 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_0[] = { 1628c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 1638c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 1648c2ecf20Sopenharmony_ci { P_GPLL0_OUT_EVEN, 6 }, 1658c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 1668c2ecf20Sopenharmony_ci}; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_0[] = { 1698c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 1708c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 1718c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 1728c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 1738c2ecf20Sopenharmony_ci}; 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_0_ao[] = { 1768c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo_ao", .name = "bi_tcxo_ao" }, 1778c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 1788c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 1798c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 1808c2ecf20Sopenharmony_ci}; 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_1[] = { 1838c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 1848c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 1858c2ecf20Sopenharmony_ci { P_GPLL6_OUT_MAIN, 2 }, 1868c2ecf20Sopenharmony_ci { P_GPLL0_OUT_EVEN, 6 }, 1878c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 1888c2ecf20Sopenharmony_ci}; 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_1[] = { 1918c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 1928c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 1938c2ecf20Sopenharmony_ci { .hw = &gpll6.clkr.hw }, 1948c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 1958c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 1968c2ecf20Sopenharmony_ci}; 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_2[] = { 1998c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 2008c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 2018c2ecf20Sopenharmony_ci { P_GPLL1_OUT_MAIN, 4 }, 2028c2ecf20Sopenharmony_ci { P_GPLL4_OUT_MAIN, 5 }, 2038c2ecf20Sopenharmony_ci { P_GPLL0_OUT_EVEN, 6 }, 2048c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 2058c2ecf20Sopenharmony_ci}; 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_2[] = { 2088c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 2098c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 2108c2ecf20Sopenharmony_ci { .hw = &gpll1.clkr.hw }, 2118c2ecf20Sopenharmony_ci { .hw = &gpll4.clkr.hw }, 2128c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 2138c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 2148c2ecf20Sopenharmony_ci}; 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_3[] = { 2178c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 2188c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 2198c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 2208c2ecf20Sopenharmony_ci}; 2218c2ecf20Sopenharmony_ci 2228c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_3[] = { 2238c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 2248c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 2258c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 2268c2ecf20Sopenharmony_ci}; 2278c2ecf20Sopenharmony_ci 2288c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_4[] = { 2298c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 2308c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 2318c2ecf20Sopenharmony_ci { P_SLEEP_CLK, 5 }, 2328c2ecf20Sopenharmony_ci { P_GPLL0_OUT_EVEN, 6 }, 2338c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 2348c2ecf20Sopenharmony_ci}; 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_4[] = { 2378c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 2388c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 2398c2ecf20Sopenharmony_ci { .fw_name = "sleep_clk", .name = "sleep_clk" }, 2408c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 2418c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 2428c2ecf20Sopenharmony_ci}; 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_5[] = { 2458c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 2468c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 2478c2ecf20Sopenharmony_ci { P_GPLL7_OUT_MAIN, 3 }, 2488c2ecf20Sopenharmony_ci { P_GPLL0_OUT_EVEN, 6 }, 2498c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 2508c2ecf20Sopenharmony_ci}; 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_5[] = { 2538c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 2548c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 2558c2ecf20Sopenharmony_ci { .hw = &gpll7.clkr.hw }, 2568c2ecf20Sopenharmony_ci { .hw = &gpll0_out_even.clkr.hw }, 2578c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 2588c2ecf20Sopenharmony_ci}; 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_6[] = { 2618c2ecf20Sopenharmony_ci { P_BI_TCXO, 0 }, 2628c2ecf20Sopenharmony_ci { P_GPLL0_OUT_MAIN, 1 }, 2638c2ecf20Sopenharmony_ci { P_SLEEP_CLK, 5 }, 2648c2ecf20Sopenharmony_ci { P_CORE_BI_PLL_TEST_SE, 7 }, 2658c2ecf20Sopenharmony_ci}; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_cistatic const struct clk_parent_data gcc_parent_data_6[] = { 2688c2ecf20Sopenharmony_ci { .fw_name = "bi_tcxo", .name = "bi_tcxo" }, 2698c2ecf20Sopenharmony_ci { .hw = &gpll0.clkr.hw }, 2708c2ecf20Sopenharmony_ci { .fw_name = "sleep_clk", .name = "sleep_clk" }, 2718c2ecf20Sopenharmony_ci { .fw_name = "core_bi_pll_test_se", .name = "core_bi_pll_test_se" }, 2728c2ecf20Sopenharmony_ci}; 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_cpuss_ahb_clk_src[] = { 2758c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 2768c2ecf20Sopenharmony_ci { } 2778c2ecf20Sopenharmony_ci}; 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_cpuss_ahb_clk_src = { 2808c2ecf20Sopenharmony_ci .cmd_rcgr = 0x48014, 2818c2ecf20Sopenharmony_ci .mnd_width = 0, 2828c2ecf20Sopenharmony_ci .hid_width = 5, 2838c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 2848c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_cpuss_ahb_clk_src, 2858c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 2868c2ecf20Sopenharmony_ci .name = "gcc_cpuss_ahb_clk_src", 2878c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0_ao, 2888c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0_ao), 2898c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 2908c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 2918c2ecf20Sopenharmony_ci }, 2928c2ecf20Sopenharmony_ci}; 2938c2ecf20Sopenharmony_ci 2948c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_gp1_clk_src[] = { 2958c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 2968c2ecf20Sopenharmony_ci F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 2978c2ecf20Sopenharmony_ci F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 2988c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 2998c2ecf20Sopenharmony_ci F(200000000, P_GPLL0_OUT_EVEN, 1.5, 0, 0), 3008c2ecf20Sopenharmony_ci { } 3018c2ecf20Sopenharmony_ci}; 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_gp1_clk_src = { 3048c2ecf20Sopenharmony_ci .cmd_rcgr = 0x64004, 3058c2ecf20Sopenharmony_ci .mnd_width = 8, 3068c2ecf20Sopenharmony_ci .hid_width = 5, 3078c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_4, 3088c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_gp1_clk_src, 3098c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 3108c2ecf20Sopenharmony_ci .name = "gcc_gp1_clk_src", 3118c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_4, 3128c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_4), 3138c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 3148c2ecf20Sopenharmony_ci }, 3158c2ecf20Sopenharmony_ci}; 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_gp2_clk_src = { 3188c2ecf20Sopenharmony_ci .cmd_rcgr = 0x65004, 3198c2ecf20Sopenharmony_ci .mnd_width = 8, 3208c2ecf20Sopenharmony_ci .hid_width = 5, 3218c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_4, 3228c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_gp1_clk_src, 3238c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 3248c2ecf20Sopenharmony_ci .name = "gcc_gp2_clk_src", 3258c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_4, 3268c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_4), 3278c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 3288c2ecf20Sopenharmony_ci }, 3298c2ecf20Sopenharmony_ci}; 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_gp3_clk_src = { 3328c2ecf20Sopenharmony_ci .cmd_rcgr = 0x66004, 3338c2ecf20Sopenharmony_ci .mnd_width = 8, 3348c2ecf20Sopenharmony_ci .hid_width = 5, 3358c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_4, 3368c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_gp1_clk_src, 3378c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 3388c2ecf20Sopenharmony_ci .name = "gcc_gp3_clk_src", 3398c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_4, 3408c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_4), 3418c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 3428c2ecf20Sopenharmony_ci }, 3438c2ecf20Sopenharmony_ci}; 3448c2ecf20Sopenharmony_ci 3458c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_pdm2_clk_src[] = { 3468c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 3478c2ecf20Sopenharmony_ci F(60000000, P_GPLL0_OUT_EVEN, 5, 0, 0), 3488c2ecf20Sopenharmony_ci { } 3498c2ecf20Sopenharmony_ci}; 3508c2ecf20Sopenharmony_ci 3518c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_pdm2_clk_src = { 3528c2ecf20Sopenharmony_ci .cmd_rcgr = 0x33010, 3538c2ecf20Sopenharmony_ci .mnd_width = 0, 3548c2ecf20Sopenharmony_ci .hid_width = 5, 3558c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 3568c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_pdm2_clk_src, 3578c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 3588c2ecf20Sopenharmony_ci .name = "gcc_pdm2_clk_src", 3598c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 3608c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 3618c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 3628c2ecf20Sopenharmony_ci }, 3638c2ecf20Sopenharmony_ci}; 3648c2ecf20Sopenharmony_ci 3658c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_qspi_core_clk_src[] = { 3668c2ecf20Sopenharmony_ci F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 3678c2ecf20Sopenharmony_ci F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 3688c2ecf20Sopenharmony_ci F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 3698c2ecf20Sopenharmony_ci { } 3708c2ecf20Sopenharmony_ci}; 3718c2ecf20Sopenharmony_ci 3728c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qspi_core_clk_src = { 3738c2ecf20Sopenharmony_ci .cmd_rcgr = 0x4b00c, 3748c2ecf20Sopenharmony_ci .mnd_width = 0, 3758c2ecf20Sopenharmony_ci .hid_width = 5, 3768c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_2, 3778c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qspi_core_clk_src, 3788c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 3798c2ecf20Sopenharmony_ci .name = "gcc_qspi_core_clk_src", 3808c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_2, 3818c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_2), 3828c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 3838c2ecf20Sopenharmony_ci }, 3848c2ecf20Sopenharmony_ci}; 3858c2ecf20Sopenharmony_ci 3868c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = { 3878c2ecf20Sopenharmony_ci F(7372800, P_GPLL0_OUT_EVEN, 1, 384, 15625), 3888c2ecf20Sopenharmony_ci F(14745600, P_GPLL0_OUT_EVEN, 1, 768, 15625), 3898c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 3908c2ecf20Sopenharmony_ci F(29491200, P_GPLL0_OUT_EVEN, 1, 1536, 15625), 3918c2ecf20Sopenharmony_ci F(32000000, P_GPLL0_OUT_EVEN, 1, 8, 75), 3928c2ecf20Sopenharmony_ci F(48000000, P_GPLL0_OUT_EVEN, 1, 4, 25), 3938c2ecf20Sopenharmony_ci F(51200000, P_GPLL6_OUT_MAIN, 7.5, 0, 0), 3948c2ecf20Sopenharmony_ci F(64000000, P_GPLL0_OUT_EVEN, 1, 16, 75), 3958c2ecf20Sopenharmony_ci F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 3968c2ecf20Sopenharmony_ci F(80000000, P_GPLL0_OUT_EVEN, 1, 4, 15), 3978c2ecf20Sopenharmony_ci F(96000000, P_GPLL0_OUT_EVEN, 1, 8, 25), 3988c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 3998c2ecf20Sopenharmony_ci F(102400000, P_GPLL0_OUT_EVEN, 1, 128, 375), 4008c2ecf20Sopenharmony_ci F(112000000, P_GPLL0_OUT_EVEN, 1, 28, 75), 4018c2ecf20Sopenharmony_ci F(117964800, P_GPLL0_OUT_EVEN, 1, 6144, 15625), 4028c2ecf20Sopenharmony_ci F(120000000, P_GPLL0_OUT_EVEN, 2.5, 0, 0), 4038c2ecf20Sopenharmony_ci F(128000000, P_GPLL6_OUT_MAIN, 3, 0, 0), 4048c2ecf20Sopenharmony_ci { } 4058c2ecf20Sopenharmony_ci}; 4068c2ecf20Sopenharmony_ci 4078c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init = { 4088c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s0_clk_src", 4098c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4108c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4118c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4128c2ecf20Sopenharmony_ci}; 4138c2ecf20Sopenharmony_ci 4148c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src = { 4158c2ecf20Sopenharmony_ci .cmd_rcgr = 0x17034, 4168c2ecf20Sopenharmony_ci .mnd_width = 16, 4178c2ecf20Sopenharmony_ci .hid_width = 5, 4188c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4198c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 4208c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s0_clk_src_init, 4218c2ecf20Sopenharmony_ci}; 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s1_clk_src_init = { 4248c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s1_clk_src", 4258c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4268c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4278c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4288c2ecf20Sopenharmony_ci}; 4298c2ecf20Sopenharmony_ci 4308c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s1_clk_src = { 4318c2ecf20Sopenharmony_ci .cmd_rcgr = 0x17164, 4328c2ecf20Sopenharmony_ci .mnd_width = 16, 4338c2ecf20Sopenharmony_ci .hid_width = 5, 4348c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4358c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 4368c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s1_clk_src_init, 4378c2ecf20Sopenharmony_ci}; 4388c2ecf20Sopenharmony_ci 4398c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s2_clk_src_init = { 4408c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s2_clk_src", 4418c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4428c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4438c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4448c2ecf20Sopenharmony_ci}; 4458c2ecf20Sopenharmony_ci 4468c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s2_clk_src = { 4478c2ecf20Sopenharmony_ci .cmd_rcgr = 0x17294, 4488c2ecf20Sopenharmony_ci .mnd_width = 16, 4498c2ecf20Sopenharmony_ci .hid_width = 5, 4508c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4518c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 4528c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s2_clk_src_init, 4538c2ecf20Sopenharmony_ci}; 4548c2ecf20Sopenharmony_ci 4558c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s3_clk_src_init = { 4568c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s3_clk_src", 4578c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4588c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4598c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4608c2ecf20Sopenharmony_ci}; 4618c2ecf20Sopenharmony_ci 4628c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s3_clk_src = { 4638c2ecf20Sopenharmony_ci .cmd_rcgr = 0x173c4, 4648c2ecf20Sopenharmony_ci .mnd_width = 16, 4658c2ecf20Sopenharmony_ci .hid_width = 5, 4668c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4678c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 4688c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s3_clk_src_init, 4698c2ecf20Sopenharmony_ci}; 4708c2ecf20Sopenharmony_ci 4718c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s4_clk_src_init = { 4728c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s4_clk_src", 4738c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4748c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4758c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4768c2ecf20Sopenharmony_ci}; 4778c2ecf20Sopenharmony_ci 4788c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s4_clk_src = { 4798c2ecf20Sopenharmony_ci .cmd_rcgr = 0x174f4, 4808c2ecf20Sopenharmony_ci .mnd_width = 16, 4818c2ecf20Sopenharmony_ci .hid_width = 5, 4828c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4838c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 4848c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s4_clk_src_init, 4858c2ecf20Sopenharmony_ci}; 4868c2ecf20Sopenharmony_ci 4878c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap0_s5_clk_src_init = { 4888c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s5_clk_src", 4898c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 4908c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 4918c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 4928c2ecf20Sopenharmony_ci}; 4938c2ecf20Sopenharmony_ci 4948c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap0_s5_clk_src = { 4958c2ecf20Sopenharmony_ci .cmd_rcgr = 0x17624, 4968c2ecf20Sopenharmony_ci .mnd_width = 16, 4978c2ecf20Sopenharmony_ci .hid_width = 5, 4988c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 4998c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5008c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap0_s5_clk_src_init, 5018c2ecf20Sopenharmony_ci}; 5028c2ecf20Sopenharmony_ci 5038c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s0_clk_src_init = { 5048c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s0_clk_src", 5058c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5068c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5078c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5088c2ecf20Sopenharmony_ci}; 5098c2ecf20Sopenharmony_ci 5108c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s0_clk_src = { 5118c2ecf20Sopenharmony_ci .cmd_rcgr = 0x18018, 5128c2ecf20Sopenharmony_ci .mnd_width = 16, 5138c2ecf20Sopenharmony_ci .hid_width = 5, 5148c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5158c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5168c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s0_clk_src_init, 5178c2ecf20Sopenharmony_ci}; 5188c2ecf20Sopenharmony_ci 5198c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s1_clk_src_init = { 5208c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s1_clk_src", 5218c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5228c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5238c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5248c2ecf20Sopenharmony_ci}; 5258c2ecf20Sopenharmony_ci 5268c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s1_clk_src = { 5278c2ecf20Sopenharmony_ci .cmd_rcgr = 0x18148, 5288c2ecf20Sopenharmony_ci .mnd_width = 16, 5298c2ecf20Sopenharmony_ci .hid_width = 5, 5308c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5318c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5328c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s1_clk_src_init, 5338c2ecf20Sopenharmony_ci}; 5348c2ecf20Sopenharmony_ci 5358c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s2_clk_src_init = { 5368c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s2_clk_src", 5378c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5388c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5398c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5408c2ecf20Sopenharmony_ci}; 5418c2ecf20Sopenharmony_ci 5428c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s2_clk_src = { 5438c2ecf20Sopenharmony_ci .cmd_rcgr = 0x18278, 5448c2ecf20Sopenharmony_ci .mnd_width = 16, 5458c2ecf20Sopenharmony_ci .hid_width = 5, 5468c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5478c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5488c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s2_clk_src_init, 5498c2ecf20Sopenharmony_ci}; 5508c2ecf20Sopenharmony_ci 5518c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s3_clk_src_init = { 5528c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s3_clk_src", 5538c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5548c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5558c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5568c2ecf20Sopenharmony_ci}; 5578c2ecf20Sopenharmony_ci 5588c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s3_clk_src = { 5598c2ecf20Sopenharmony_ci .cmd_rcgr = 0x183a8, 5608c2ecf20Sopenharmony_ci .mnd_width = 16, 5618c2ecf20Sopenharmony_ci .hid_width = 5, 5628c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5638c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5648c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s3_clk_src_init, 5658c2ecf20Sopenharmony_ci}; 5668c2ecf20Sopenharmony_ci 5678c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s4_clk_src_init = { 5688c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s4_clk_src", 5698c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5708c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5718c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5728c2ecf20Sopenharmony_ci}; 5738c2ecf20Sopenharmony_ci 5748c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s4_clk_src = { 5758c2ecf20Sopenharmony_ci .cmd_rcgr = 0x184d8, 5768c2ecf20Sopenharmony_ci .mnd_width = 16, 5778c2ecf20Sopenharmony_ci .hid_width = 5, 5788c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5798c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5808c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s4_clk_src_init, 5818c2ecf20Sopenharmony_ci}; 5828c2ecf20Sopenharmony_ci 5838c2ecf20Sopenharmony_cistatic struct clk_init_data gcc_qupv3_wrap1_s5_clk_src_init = { 5848c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s5_clk_src", 5858c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 5868c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 5878c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 5888c2ecf20Sopenharmony_ci}; 5898c2ecf20Sopenharmony_ci 5908c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_qupv3_wrap1_s5_clk_src = { 5918c2ecf20Sopenharmony_ci .cmd_rcgr = 0x18608, 5928c2ecf20Sopenharmony_ci .mnd_width = 16, 5938c2ecf20Sopenharmony_ci .hid_width = 5, 5948c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 5958c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_qupv3_wrap0_s0_clk_src, 5968c2ecf20Sopenharmony_ci .clkr.hw.init = &gcc_qupv3_wrap1_s5_clk_src_init, 5978c2ecf20Sopenharmony_ci}; 5988c2ecf20Sopenharmony_ci 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] = { 6018c2ecf20Sopenharmony_ci F(144000, P_BI_TCXO, 16, 3, 25), 6028c2ecf20Sopenharmony_ci F(400000, P_BI_TCXO, 12, 1, 4), 6038c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 6048c2ecf20Sopenharmony_ci F(20000000, P_GPLL0_OUT_EVEN, 5, 1, 3), 6058c2ecf20Sopenharmony_ci F(25000000, P_GPLL0_OUT_EVEN, 6, 1, 2), 6068c2ecf20Sopenharmony_ci F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 6078c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 6088c2ecf20Sopenharmony_ci F(192000000, P_GPLL6_OUT_MAIN, 2, 0, 0), 6098c2ecf20Sopenharmony_ci F(384000000, P_GPLL6_OUT_MAIN, 1, 0, 0), 6108c2ecf20Sopenharmony_ci { } 6118c2ecf20Sopenharmony_ci}; 6128c2ecf20Sopenharmony_ci 6138c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_sdcc1_apps_clk_src = { 6148c2ecf20Sopenharmony_ci .cmd_rcgr = 0x12028, 6158c2ecf20Sopenharmony_ci .mnd_width = 8, 6168c2ecf20Sopenharmony_ci .hid_width = 5, 6178c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_1, 6188c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_sdcc1_apps_clk_src, 6198c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 6208c2ecf20Sopenharmony_ci .name = "gcc_sdcc1_apps_clk_src", 6218c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_1, 6228c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_1), 6238c2ecf20Sopenharmony_ci .ops = &clk_rcg2_floor_ops, 6248c2ecf20Sopenharmony_ci }, 6258c2ecf20Sopenharmony_ci}; 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_sdcc1_ice_core_clk_src[] = { 6288c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 6298c2ecf20Sopenharmony_ci F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 6308c2ecf20Sopenharmony_ci F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 6318c2ecf20Sopenharmony_ci F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 6328c2ecf20Sopenharmony_ci { } 6338c2ecf20Sopenharmony_ci}; 6348c2ecf20Sopenharmony_ci 6358c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = { 6368c2ecf20Sopenharmony_ci .cmd_rcgr = 0x12010, 6378c2ecf20Sopenharmony_ci .mnd_width = 0, 6388c2ecf20Sopenharmony_ci .hid_width = 5, 6398c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 6408c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_sdcc1_ice_core_clk_src, 6418c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 6428c2ecf20Sopenharmony_ci .name = "gcc_sdcc1_ice_core_clk_src", 6438c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 6448c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 6458c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 6468c2ecf20Sopenharmony_ci }, 6478c2ecf20Sopenharmony_ci}; 6488c2ecf20Sopenharmony_ci 6498c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] = { 6508c2ecf20Sopenharmony_ci F(400000, P_BI_TCXO, 12, 1, 4), 6518c2ecf20Sopenharmony_ci F(9600000, P_BI_TCXO, 2, 0, 0), 6528c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 6538c2ecf20Sopenharmony_ci F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 6548c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 6558c2ecf20Sopenharmony_ci F(202000000, P_GPLL7_OUT_MAIN, 4, 0, 0), 6568c2ecf20Sopenharmony_ci { } 6578c2ecf20Sopenharmony_ci}; 6588c2ecf20Sopenharmony_ci 6598c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_sdcc2_apps_clk_src = { 6608c2ecf20Sopenharmony_ci .cmd_rcgr = 0x1400c, 6618c2ecf20Sopenharmony_ci .mnd_width = 8, 6628c2ecf20Sopenharmony_ci .hid_width = 5, 6638c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_5, 6648c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_sdcc2_apps_clk_src, 6658c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 6668c2ecf20Sopenharmony_ci .name = "gcc_sdcc2_apps_clk_src", 6678c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_5, 6688c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_5), 6698c2ecf20Sopenharmony_ci .flags = CLK_OPS_PARENT_ENABLE, 6708c2ecf20Sopenharmony_ci .ops = &clk_rcg2_floor_ops, 6718c2ecf20Sopenharmony_ci }, 6728c2ecf20Sopenharmony_ci}; 6738c2ecf20Sopenharmony_ci 6748c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_ufs_phy_axi_clk_src[] = { 6758c2ecf20Sopenharmony_ci F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0), 6768c2ecf20Sopenharmony_ci F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0), 6778c2ecf20Sopenharmony_ci F(100000000, P_GPLL0_OUT_EVEN, 3, 0, 0), 6788c2ecf20Sopenharmony_ci F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 6798c2ecf20Sopenharmony_ci F(240000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0), 6808c2ecf20Sopenharmony_ci { } 6818c2ecf20Sopenharmony_ci}; 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_ufs_phy_axi_clk_src = { 6848c2ecf20Sopenharmony_ci .cmd_rcgr = 0x77020, 6858c2ecf20Sopenharmony_ci .mnd_width = 8, 6868c2ecf20Sopenharmony_ci .hid_width = 5, 6878c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 6888c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_ufs_phy_axi_clk_src, 6898c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 6908c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_axi_clk_src", 6918c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 6928c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 6938c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 6948c2ecf20Sopenharmony_ci }, 6958c2ecf20Sopenharmony_ci}; 6968c2ecf20Sopenharmony_ci 6978c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_ufs_phy_ice_core_clk_src[] = { 6988c2ecf20Sopenharmony_ci F(37500000, P_GPLL0_OUT_EVEN, 8, 0, 0), 6998c2ecf20Sopenharmony_ci F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 7008c2ecf20Sopenharmony_ci F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 7018c2ecf20Sopenharmony_ci F(300000000, P_GPLL0_OUT_EVEN, 1, 0, 0), 7028c2ecf20Sopenharmony_ci { } 7038c2ecf20Sopenharmony_ci}; 7048c2ecf20Sopenharmony_ci 7058c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_ufs_phy_ice_core_clk_src = { 7068c2ecf20Sopenharmony_ci .cmd_rcgr = 0x77048, 7078c2ecf20Sopenharmony_ci .mnd_width = 0, 7088c2ecf20Sopenharmony_ci .hid_width = 5, 7098c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 7108c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_ufs_phy_ice_core_clk_src, 7118c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 7128c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_ice_core_clk_src", 7138c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 7148c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 7158c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 7168c2ecf20Sopenharmony_ci }, 7178c2ecf20Sopenharmony_ci}; 7188c2ecf20Sopenharmony_ci 7198c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_ufs_phy_phy_aux_clk_src[] = { 7208c2ecf20Sopenharmony_ci F(9600000, P_BI_TCXO, 2, 0, 0), 7218c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 7228c2ecf20Sopenharmony_ci { } 7238c2ecf20Sopenharmony_ci}; 7248c2ecf20Sopenharmony_ci 7258c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_ufs_phy_phy_aux_clk_src = { 7268c2ecf20Sopenharmony_ci .cmd_rcgr = 0x77098, 7278c2ecf20Sopenharmony_ci .mnd_width = 0, 7288c2ecf20Sopenharmony_ci .hid_width = 5, 7298c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_3, 7308c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_ufs_phy_phy_aux_clk_src, 7318c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 7328c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_phy_aux_clk_src", 7338c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_3, 7348c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_3), 7358c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 7368c2ecf20Sopenharmony_ci }, 7378c2ecf20Sopenharmony_ci}; 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_ufs_phy_unipro_core_clk_src[] = { 7408c2ecf20Sopenharmony_ci F(37500000, P_GPLL0_OUT_EVEN, 8, 0, 0), 7418c2ecf20Sopenharmony_ci F(75000000, P_GPLL0_OUT_EVEN, 4, 0, 0), 7428c2ecf20Sopenharmony_ci F(150000000, P_GPLL0_OUT_EVEN, 2, 0, 0), 7438c2ecf20Sopenharmony_ci { } 7448c2ecf20Sopenharmony_ci}; 7458c2ecf20Sopenharmony_ci 7468c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_ufs_phy_unipro_core_clk_src = { 7478c2ecf20Sopenharmony_ci .cmd_rcgr = 0x77060, 7488c2ecf20Sopenharmony_ci .mnd_width = 0, 7498c2ecf20Sopenharmony_ci .hid_width = 5, 7508c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 7518c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_ufs_phy_unipro_core_clk_src, 7528c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 7538c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_unipro_core_clk_src", 7548c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 7558c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 7568c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 7578c2ecf20Sopenharmony_ci }, 7588c2ecf20Sopenharmony_ci}; 7598c2ecf20Sopenharmony_ci 7608c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_usb30_prim_master_clk_src[] = { 7618c2ecf20Sopenharmony_ci F(66666667, P_GPLL0_OUT_EVEN, 4.5, 0, 0), 7628c2ecf20Sopenharmony_ci F(133333333, P_GPLL0_OUT_MAIN, 4.5, 0, 0), 7638c2ecf20Sopenharmony_ci F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0), 7648c2ecf20Sopenharmony_ci F(240000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0), 7658c2ecf20Sopenharmony_ci { } 7668c2ecf20Sopenharmony_ci}; 7678c2ecf20Sopenharmony_ci 7688c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_usb30_prim_master_clk_src = { 7698c2ecf20Sopenharmony_ci .cmd_rcgr = 0xf01c, 7708c2ecf20Sopenharmony_ci .mnd_width = 8, 7718c2ecf20Sopenharmony_ci .hid_width = 5, 7728c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 7738c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_usb30_prim_master_clk_src, 7748c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 7758c2ecf20Sopenharmony_ci .name = "gcc_usb30_prim_master_clk_src", 7768c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 7778c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 7788c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 7798c2ecf20Sopenharmony_ci }, 7808c2ecf20Sopenharmony_ci}; 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_usb30_prim_mock_utmi_clk_src[] = { 7838c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 7848c2ecf20Sopenharmony_ci F(20000000, P_GPLL0_OUT_EVEN, 15, 0, 0), 7858c2ecf20Sopenharmony_ci { } 7868c2ecf20Sopenharmony_ci}; 7878c2ecf20Sopenharmony_ci 7888c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_usb30_prim_mock_utmi_clk_src = { 7898c2ecf20Sopenharmony_ci .cmd_rcgr = 0xf034, 7908c2ecf20Sopenharmony_ci .mnd_width = 0, 7918c2ecf20Sopenharmony_ci .hid_width = 5, 7928c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_0, 7938c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_usb30_prim_mock_utmi_clk_src, 7948c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 7958c2ecf20Sopenharmony_ci .name = "gcc_usb30_prim_mock_utmi_clk_src", 7968c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_0, 7978c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_0), 7988c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 7998c2ecf20Sopenharmony_ci }, 8008c2ecf20Sopenharmony_ci}; 8018c2ecf20Sopenharmony_ci 8028c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_usb3_prim_phy_aux_clk_src[] = { 8038c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 8048c2ecf20Sopenharmony_ci { } 8058c2ecf20Sopenharmony_ci}; 8068c2ecf20Sopenharmony_ci 8078c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_usb3_prim_phy_aux_clk_src = { 8088c2ecf20Sopenharmony_ci .cmd_rcgr = 0xf060, 8098c2ecf20Sopenharmony_ci .mnd_width = 0, 8108c2ecf20Sopenharmony_ci .hid_width = 5, 8118c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_6, 8128c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_usb3_prim_phy_aux_clk_src, 8138c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 8148c2ecf20Sopenharmony_ci .name = "gcc_usb3_prim_phy_aux_clk_src", 8158c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_6, 8168c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_6), 8178c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 8188c2ecf20Sopenharmony_ci }, 8198c2ecf20Sopenharmony_ci}; 8208c2ecf20Sopenharmony_ci 8218c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gcc_sec_ctrl_clk_src[] = { 8228c2ecf20Sopenharmony_ci F(4800000, P_BI_TCXO, 4, 0, 0), 8238c2ecf20Sopenharmony_ci F(19200000, P_BI_TCXO, 1, 0, 0), 8248c2ecf20Sopenharmony_ci { } 8258c2ecf20Sopenharmony_ci}; 8268c2ecf20Sopenharmony_ci 8278c2ecf20Sopenharmony_cistatic struct clk_rcg2 gcc_sec_ctrl_clk_src = { 8288c2ecf20Sopenharmony_ci .cmd_rcgr = 0x3d030, 8298c2ecf20Sopenharmony_ci .mnd_width = 0, 8308c2ecf20Sopenharmony_ci .hid_width = 5, 8318c2ecf20Sopenharmony_ci .parent_map = gcc_parent_map_3, 8328c2ecf20Sopenharmony_ci .freq_tbl = ftbl_gcc_sec_ctrl_clk_src, 8338c2ecf20Sopenharmony_ci .clkr.hw.init = &(struct clk_init_data){ 8348c2ecf20Sopenharmony_ci .name = "gcc_sec_ctrl_clk_src", 8358c2ecf20Sopenharmony_ci .parent_data = gcc_parent_data_3, 8368c2ecf20Sopenharmony_ci .num_parents = ARRAY_SIZE(gcc_parent_data_3), 8378c2ecf20Sopenharmony_ci .ops = &clk_rcg2_ops, 8388c2ecf20Sopenharmony_ci }, 8398c2ecf20Sopenharmony_ci}; 8408c2ecf20Sopenharmony_ci 8418c2ecf20Sopenharmony_cistatic struct clk_branch gcc_aggre_ufs_phy_axi_clk = { 8428c2ecf20Sopenharmony_ci .halt_reg = 0x82024, 8438c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 8448c2ecf20Sopenharmony_ci .hwcg_reg = 0x82024, 8458c2ecf20Sopenharmony_ci .hwcg_bit = 1, 8468c2ecf20Sopenharmony_ci .clkr = { 8478c2ecf20Sopenharmony_ci .enable_reg = 0x82024, 8488c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 8498c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 8508c2ecf20Sopenharmony_ci .name = "gcc_aggre_ufs_phy_axi_clk", 8518c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 8528c2ecf20Sopenharmony_ci .hw = &gcc_ufs_phy_axi_clk_src.clkr.hw, 8538c2ecf20Sopenharmony_ci }, 8548c2ecf20Sopenharmony_ci .num_parents = 1, 8558c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 8568c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 8578c2ecf20Sopenharmony_ci }, 8588c2ecf20Sopenharmony_ci }, 8598c2ecf20Sopenharmony_ci}; 8608c2ecf20Sopenharmony_ci 8618c2ecf20Sopenharmony_cistatic struct clk_branch gcc_aggre_usb3_prim_axi_clk = { 8628c2ecf20Sopenharmony_ci .halt_reg = 0x8201c, 8638c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 8648c2ecf20Sopenharmony_ci .clkr = { 8658c2ecf20Sopenharmony_ci .enable_reg = 0x8201c, 8668c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 8678c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 8688c2ecf20Sopenharmony_ci .name = "gcc_aggre_usb3_prim_axi_clk", 8698c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 8708c2ecf20Sopenharmony_ci .hw = &gcc_usb30_prim_master_clk_src.clkr.hw, 8718c2ecf20Sopenharmony_ci }, 8728c2ecf20Sopenharmony_ci .num_parents = 1, 8738c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 8748c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 8758c2ecf20Sopenharmony_ci }, 8768c2ecf20Sopenharmony_ci }, 8778c2ecf20Sopenharmony_ci}; 8788c2ecf20Sopenharmony_ci 8798c2ecf20Sopenharmony_cistatic struct clk_branch gcc_boot_rom_ahb_clk = { 8808c2ecf20Sopenharmony_ci .halt_reg = 0x38004, 8818c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 8828c2ecf20Sopenharmony_ci .hwcg_reg = 0x38004, 8838c2ecf20Sopenharmony_ci .hwcg_bit = 1, 8848c2ecf20Sopenharmony_ci .clkr = { 8858c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 8868c2ecf20Sopenharmony_ci .enable_mask = BIT(10), 8878c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 8888c2ecf20Sopenharmony_ci .name = "gcc_boot_rom_ahb_clk", 8898c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 8908c2ecf20Sopenharmony_ci }, 8918c2ecf20Sopenharmony_ci }, 8928c2ecf20Sopenharmony_ci}; 8938c2ecf20Sopenharmony_ci 8948c2ecf20Sopenharmony_cistatic struct clk_branch gcc_camera_ahb_clk = { 8958c2ecf20Sopenharmony_ci .halt_reg = 0xb008, 8968c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 8978c2ecf20Sopenharmony_ci .hwcg_reg = 0xb008, 8988c2ecf20Sopenharmony_ci .hwcg_bit = 1, 8998c2ecf20Sopenharmony_ci .clkr = { 9008c2ecf20Sopenharmony_ci .enable_reg = 0xb008, 9018c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 9028c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9038c2ecf20Sopenharmony_ci .name = "gcc_camera_ahb_clk", 9048c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9058c2ecf20Sopenharmony_ci }, 9068c2ecf20Sopenharmony_ci }, 9078c2ecf20Sopenharmony_ci}; 9088c2ecf20Sopenharmony_ci 9098c2ecf20Sopenharmony_cistatic struct clk_branch gcc_camera_hf_axi_clk = { 9108c2ecf20Sopenharmony_ci .halt_reg = 0xb020, 9118c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 9128c2ecf20Sopenharmony_ci .clkr = { 9138c2ecf20Sopenharmony_ci .enable_reg = 0xb020, 9148c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 9158c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9168c2ecf20Sopenharmony_ci .name = "gcc_camera_hf_axi_clk", 9178c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9188c2ecf20Sopenharmony_ci }, 9198c2ecf20Sopenharmony_ci }, 9208c2ecf20Sopenharmony_ci}; 9218c2ecf20Sopenharmony_ci 9228c2ecf20Sopenharmony_cistatic struct clk_branch gcc_camera_throttle_hf_axi_clk = { 9238c2ecf20Sopenharmony_ci .halt_reg = 0xb080, 9248c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 9258c2ecf20Sopenharmony_ci .hwcg_reg = 0xb080, 9268c2ecf20Sopenharmony_ci .hwcg_bit = 1, 9278c2ecf20Sopenharmony_ci .clkr = { 9288c2ecf20Sopenharmony_ci .enable_reg = 0xb080, 9298c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 9308c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9318c2ecf20Sopenharmony_ci .name = "gcc_camera_throttle_hf_axi_clk", 9328c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9338c2ecf20Sopenharmony_ci }, 9348c2ecf20Sopenharmony_ci }, 9358c2ecf20Sopenharmony_ci}; 9368c2ecf20Sopenharmony_ci 9378c2ecf20Sopenharmony_cistatic struct clk_branch gcc_camera_xo_clk = { 9388c2ecf20Sopenharmony_ci .halt_reg = 0xb02c, 9398c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 9408c2ecf20Sopenharmony_ci .clkr = { 9418c2ecf20Sopenharmony_ci .enable_reg = 0xb02c, 9428c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 9438c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9448c2ecf20Sopenharmony_ci .name = "gcc_camera_xo_clk", 9458c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9468c2ecf20Sopenharmony_ci }, 9478c2ecf20Sopenharmony_ci }, 9488c2ecf20Sopenharmony_ci}; 9498c2ecf20Sopenharmony_ci 9508c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ce1_ahb_clk = { 9518c2ecf20Sopenharmony_ci .halt_reg = 0x4100c, 9528c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 9538c2ecf20Sopenharmony_ci .hwcg_reg = 0x4100c, 9548c2ecf20Sopenharmony_ci .hwcg_bit = 1, 9558c2ecf20Sopenharmony_ci .clkr = { 9568c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 9578c2ecf20Sopenharmony_ci .enable_mask = BIT(3), 9588c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9598c2ecf20Sopenharmony_ci .name = "gcc_ce1_ahb_clk", 9608c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9618c2ecf20Sopenharmony_ci }, 9628c2ecf20Sopenharmony_ci }, 9638c2ecf20Sopenharmony_ci}; 9648c2ecf20Sopenharmony_ci 9658c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ce1_axi_clk = { 9668c2ecf20Sopenharmony_ci .halt_reg = 0x41008, 9678c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 9688c2ecf20Sopenharmony_ci .clkr = { 9698c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 9708c2ecf20Sopenharmony_ci .enable_mask = BIT(4), 9718c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9728c2ecf20Sopenharmony_ci .name = "gcc_ce1_axi_clk", 9738c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9748c2ecf20Sopenharmony_ci }, 9758c2ecf20Sopenharmony_ci }, 9768c2ecf20Sopenharmony_ci}; 9778c2ecf20Sopenharmony_ci 9788c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ce1_clk = { 9798c2ecf20Sopenharmony_ci .halt_reg = 0x41004, 9808c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 9818c2ecf20Sopenharmony_ci .clkr = { 9828c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 9838c2ecf20Sopenharmony_ci .enable_mask = BIT(5), 9848c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9858c2ecf20Sopenharmony_ci .name = "gcc_ce1_clk", 9868c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 9878c2ecf20Sopenharmony_ci }, 9888c2ecf20Sopenharmony_ci }, 9898c2ecf20Sopenharmony_ci}; 9908c2ecf20Sopenharmony_ci 9918c2ecf20Sopenharmony_cistatic struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk = { 9928c2ecf20Sopenharmony_ci .halt_reg = 0x502c, 9938c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 9948c2ecf20Sopenharmony_ci .clkr = { 9958c2ecf20Sopenharmony_ci .enable_reg = 0x502c, 9968c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 9978c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 9988c2ecf20Sopenharmony_ci .name = "gcc_cfg_noc_usb3_prim_axi_clk", 9998c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 10008c2ecf20Sopenharmony_ci .hw = &gcc_usb30_prim_master_clk_src.clkr.hw, 10018c2ecf20Sopenharmony_ci }, 10028c2ecf20Sopenharmony_ci .num_parents = 1, 10038c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 10048c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10058c2ecf20Sopenharmony_ci }, 10068c2ecf20Sopenharmony_ci }, 10078c2ecf20Sopenharmony_ci}; 10088c2ecf20Sopenharmony_ci 10098c2ecf20Sopenharmony_ci/* For CPUSS functionality the AHB clock needs to be left enabled */ 10108c2ecf20Sopenharmony_cistatic struct clk_branch gcc_cpuss_ahb_clk = { 10118c2ecf20Sopenharmony_ci .halt_reg = 0x48000, 10128c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 10138c2ecf20Sopenharmony_ci .clkr = { 10148c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 10158c2ecf20Sopenharmony_ci .enable_mask = BIT(21), 10168c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10178c2ecf20Sopenharmony_ci .name = "gcc_cpuss_ahb_clk", 10188c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 10198c2ecf20Sopenharmony_ci .hw = &gcc_cpuss_ahb_clk_src.clkr.hw, 10208c2ecf20Sopenharmony_ci }, 10218c2ecf20Sopenharmony_ci .num_parents = 1, 10228c2ecf20Sopenharmony_ci .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 10238c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10248c2ecf20Sopenharmony_ci }, 10258c2ecf20Sopenharmony_ci }, 10268c2ecf20Sopenharmony_ci}; 10278c2ecf20Sopenharmony_ci 10288c2ecf20Sopenharmony_cistatic struct clk_branch gcc_cpuss_rbcpr_clk = { 10298c2ecf20Sopenharmony_ci .halt_reg = 0x48008, 10308c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 10318c2ecf20Sopenharmony_ci .clkr = { 10328c2ecf20Sopenharmony_ci .enable_reg = 0x48008, 10338c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 10348c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10358c2ecf20Sopenharmony_ci .name = "gcc_cpuss_rbcpr_clk", 10368c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10378c2ecf20Sopenharmony_ci }, 10388c2ecf20Sopenharmony_ci }, 10398c2ecf20Sopenharmony_ci}; 10408c2ecf20Sopenharmony_ci 10418c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ddrss_gpu_axi_clk = { 10428c2ecf20Sopenharmony_ci .halt_reg = 0x4452c, 10438c2ecf20Sopenharmony_ci .halt_check = BRANCH_VOTED, 10448c2ecf20Sopenharmony_ci .clkr = { 10458c2ecf20Sopenharmony_ci .enable_reg = 0x4452c, 10468c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 10478c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10488c2ecf20Sopenharmony_ci .name = "gcc_ddrss_gpu_axi_clk", 10498c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10508c2ecf20Sopenharmony_ci }, 10518c2ecf20Sopenharmony_ci }, 10528c2ecf20Sopenharmony_ci}; 10538c2ecf20Sopenharmony_ci 10548c2ecf20Sopenharmony_cistatic struct clk_branch gcc_disp_gpll0_clk_src = { 10558c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 10568c2ecf20Sopenharmony_ci .clkr = { 10578c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 10588c2ecf20Sopenharmony_ci .enable_mask = BIT(18), 10598c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10608c2ecf20Sopenharmony_ci .name = "gcc_disp_gpll0_clk_src", 10618c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 10628c2ecf20Sopenharmony_ci .hw = &gpll0.clkr.hw, 10638c2ecf20Sopenharmony_ci }, 10648c2ecf20Sopenharmony_ci .num_parents = 1, 10658c2ecf20Sopenharmony_ci .ops = &clk_branch2_aon_ops, 10668c2ecf20Sopenharmony_ci }, 10678c2ecf20Sopenharmony_ci }, 10688c2ecf20Sopenharmony_ci}; 10698c2ecf20Sopenharmony_ci 10708c2ecf20Sopenharmony_cistatic struct clk_branch gcc_disp_gpll0_div_clk_src = { 10718c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 10728c2ecf20Sopenharmony_ci .clkr = { 10738c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 10748c2ecf20Sopenharmony_ci .enable_mask = BIT(19), 10758c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10768c2ecf20Sopenharmony_ci .name = "gcc_disp_gpll0_div_clk_src", 10778c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 10788c2ecf20Sopenharmony_ci .hw = &gcc_pll0_main_div_cdiv.hw, 10798c2ecf20Sopenharmony_ci }, 10808c2ecf20Sopenharmony_ci .num_parents = 1, 10818c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10828c2ecf20Sopenharmony_ci }, 10838c2ecf20Sopenharmony_ci }, 10848c2ecf20Sopenharmony_ci}; 10858c2ecf20Sopenharmony_ci 10868c2ecf20Sopenharmony_cistatic struct clk_branch gcc_disp_hf_axi_clk = { 10878c2ecf20Sopenharmony_ci .halt_reg = 0xb024, 10888c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 10898c2ecf20Sopenharmony_ci .clkr = { 10908c2ecf20Sopenharmony_ci .enable_reg = 0xb024, 10918c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 10928c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 10938c2ecf20Sopenharmony_ci .name = "gcc_disp_hf_axi_clk", 10948c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 10958c2ecf20Sopenharmony_ci }, 10968c2ecf20Sopenharmony_ci }, 10978c2ecf20Sopenharmony_ci}; 10988c2ecf20Sopenharmony_ci 10998c2ecf20Sopenharmony_cistatic struct clk_branch gcc_disp_throttle_hf_axi_clk = { 11008c2ecf20Sopenharmony_ci .halt_reg = 0xb084, 11018c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 11028c2ecf20Sopenharmony_ci .hwcg_reg = 0xb084, 11038c2ecf20Sopenharmony_ci .hwcg_bit = 1, 11048c2ecf20Sopenharmony_ci .clkr = { 11058c2ecf20Sopenharmony_ci .enable_reg = 0xb084, 11068c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 11078c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11088c2ecf20Sopenharmony_ci .name = "gcc_disp_throttle_hf_axi_clk", 11098c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11108c2ecf20Sopenharmony_ci }, 11118c2ecf20Sopenharmony_ci }, 11128c2ecf20Sopenharmony_ci}; 11138c2ecf20Sopenharmony_ci 11148c2ecf20Sopenharmony_cistatic struct clk_branch gcc_disp_xo_clk = { 11158c2ecf20Sopenharmony_ci .halt_reg = 0xb030, 11168c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 11178c2ecf20Sopenharmony_ci .clkr = { 11188c2ecf20Sopenharmony_ci .enable_reg = 0xb030, 11198c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 11208c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11218c2ecf20Sopenharmony_ci .name = "gcc_disp_xo_clk", 11228c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11238c2ecf20Sopenharmony_ci }, 11248c2ecf20Sopenharmony_ci }, 11258c2ecf20Sopenharmony_ci}; 11268c2ecf20Sopenharmony_ci 11278c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp1_clk = { 11288c2ecf20Sopenharmony_ci .halt_reg = 0x64000, 11298c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 11308c2ecf20Sopenharmony_ci .clkr = { 11318c2ecf20Sopenharmony_ci .enable_reg = 0x64000, 11328c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 11338c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11348c2ecf20Sopenharmony_ci .name = "gcc_gp1_clk", 11358c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 11368c2ecf20Sopenharmony_ci .hw = &gcc_gp1_clk_src.clkr.hw, 11378c2ecf20Sopenharmony_ci }, 11388c2ecf20Sopenharmony_ci .num_parents = 1, 11398c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 11408c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11418c2ecf20Sopenharmony_ci }, 11428c2ecf20Sopenharmony_ci }, 11438c2ecf20Sopenharmony_ci}; 11448c2ecf20Sopenharmony_ci 11458c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp2_clk = { 11468c2ecf20Sopenharmony_ci .halt_reg = 0x65000, 11478c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 11488c2ecf20Sopenharmony_ci .clkr = { 11498c2ecf20Sopenharmony_ci .enable_reg = 0x65000, 11508c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 11518c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11528c2ecf20Sopenharmony_ci .name = "gcc_gp2_clk", 11538c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 11548c2ecf20Sopenharmony_ci .hw = &gcc_gp2_clk_src.clkr.hw, 11558c2ecf20Sopenharmony_ci }, 11568c2ecf20Sopenharmony_ci .num_parents = 1, 11578c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 11588c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11598c2ecf20Sopenharmony_ci }, 11608c2ecf20Sopenharmony_ci }, 11618c2ecf20Sopenharmony_ci}; 11628c2ecf20Sopenharmony_ci 11638c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp3_clk = { 11648c2ecf20Sopenharmony_ci .halt_reg = 0x66000, 11658c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 11668c2ecf20Sopenharmony_ci .clkr = { 11678c2ecf20Sopenharmony_ci .enable_reg = 0x66000, 11688c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 11698c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11708c2ecf20Sopenharmony_ci .name = "gcc_gp3_clk", 11718c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 11728c2ecf20Sopenharmony_ci .hw = &gcc_gp3_clk_src.clkr.hw, 11738c2ecf20Sopenharmony_ci }, 11748c2ecf20Sopenharmony_ci .num_parents = 1, 11758c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 11768c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11778c2ecf20Sopenharmony_ci }, 11788c2ecf20Sopenharmony_ci }, 11798c2ecf20Sopenharmony_ci}; 11808c2ecf20Sopenharmony_ci 11818c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gpu_gpll0_clk_src = { 11828c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 11838c2ecf20Sopenharmony_ci .clkr = { 11848c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 11858c2ecf20Sopenharmony_ci .enable_mask = BIT(15), 11868c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 11878c2ecf20Sopenharmony_ci .name = "gcc_gpu_gpll0_clk_src", 11888c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 11898c2ecf20Sopenharmony_ci .hw = &gpll0.clkr.hw, 11908c2ecf20Sopenharmony_ci }, 11918c2ecf20Sopenharmony_ci .num_parents = 1, 11928c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 11938c2ecf20Sopenharmony_ci }, 11948c2ecf20Sopenharmony_ci }, 11958c2ecf20Sopenharmony_ci}; 11968c2ecf20Sopenharmony_ci 11978c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gpu_gpll0_div_clk_src = { 11988c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 11998c2ecf20Sopenharmony_ci .clkr = { 12008c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 12018c2ecf20Sopenharmony_ci .enable_mask = BIT(16), 12028c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12038c2ecf20Sopenharmony_ci .name = "gcc_gpu_gpll0_div_clk_src", 12048c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 12058c2ecf20Sopenharmony_ci .hw = &gcc_pll0_main_div_cdiv.hw, 12068c2ecf20Sopenharmony_ci }, 12078c2ecf20Sopenharmony_ci .num_parents = 1, 12088c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12098c2ecf20Sopenharmony_ci }, 12108c2ecf20Sopenharmony_ci }, 12118c2ecf20Sopenharmony_ci}; 12128c2ecf20Sopenharmony_ci 12138c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gpu_memnoc_gfx_clk = { 12148c2ecf20Sopenharmony_ci .halt_reg = 0x7100c, 12158c2ecf20Sopenharmony_ci .halt_check = BRANCH_VOTED, 12168c2ecf20Sopenharmony_ci .clkr = { 12178c2ecf20Sopenharmony_ci .enable_reg = 0x7100c, 12188c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12198c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12208c2ecf20Sopenharmony_ci .name = "gcc_gpu_memnoc_gfx_clk", 12218c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12228c2ecf20Sopenharmony_ci }, 12238c2ecf20Sopenharmony_ci }, 12248c2ecf20Sopenharmony_ci}; 12258c2ecf20Sopenharmony_ci 12268c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gpu_snoc_dvm_gfx_clk = { 12278c2ecf20Sopenharmony_ci .halt_reg = 0x71018, 12288c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12298c2ecf20Sopenharmony_ci .clkr = { 12308c2ecf20Sopenharmony_ci .enable_reg = 0x71018, 12318c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12328c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12338c2ecf20Sopenharmony_ci .name = "gcc_gpu_snoc_dvm_gfx_clk", 12348c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12358c2ecf20Sopenharmony_ci }, 12368c2ecf20Sopenharmony_ci }, 12378c2ecf20Sopenharmony_ci}; 12388c2ecf20Sopenharmony_ci 12398c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_axi_clk = { 12408c2ecf20Sopenharmony_ci .halt_reg = 0x4d008, 12418c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12428c2ecf20Sopenharmony_ci .clkr = { 12438c2ecf20Sopenharmony_ci .enable_reg = 0x4d008, 12448c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12458c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12468c2ecf20Sopenharmony_ci .name = "gcc_npu_axi_clk", 12478c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12488c2ecf20Sopenharmony_ci }, 12498c2ecf20Sopenharmony_ci }, 12508c2ecf20Sopenharmony_ci}; 12518c2ecf20Sopenharmony_ci 12528c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_bwmon_axi_clk = { 12538c2ecf20Sopenharmony_ci .halt_reg = 0x73008, 12548c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12558c2ecf20Sopenharmony_ci .clkr = { 12568c2ecf20Sopenharmony_ci .enable_reg = 0x73008, 12578c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12588c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12598c2ecf20Sopenharmony_ci .name = "gcc_npu_bwmon_axi_clk", 12608c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12618c2ecf20Sopenharmony_ci }, 12628c2ecf20Sopenharmony_ci }, 12638c2ecf20Sopenharmony_ci}; 12648c2ecf20Sopenharmony_ci 12658c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_bwmon_dma_cfg_ahb_clk = { 12668c2ecf20Sopenharmony_ci .halt_reg = 0x73018, 12678c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12688c2ecf20Sopenharmony_ci .clkr = { 12698c2ecf20Sopenharmony_ci .enable_reg = 0x73018, 12708c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12718c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12728c2ecf20Sopenharmony_ci .name = "gcc_npu_bwmon_dma_cfg_ahb_clk", 12738c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12748c2ecf20Sopenharmony_ci }, 12758c2ecf20Sopenharmony_ci }, 12768c2ecf20Sopenharmony_ci}; 12778c2ecf20Sopenharmony_ci 12788c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_bwmon_dsp_cfg_ahb_clk = { 12798c2ecf20Sopenharmony_ci .halt_reg = 0x7301c, 12808c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12818c2ecf20Sopenharmony_ci .clkr = { 12828c2ecf20Sopenharmony_ci .enable_reg = 0x7301c, 12838c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12848c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 12858c2ecf20Sopenharmony_ci .name = "gcc_npu_bwmon_dsp_cfg_ahb_clk", 12868c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 12878c2ecf20Sopenharmony_ci }, 12888c2ecf20Sopenharmony_ci }, 12898c2ecf20Sopenharmony_ci}; 12908c2ecf20Sopenharmony_ci 12918c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_cfg_ahb_clk = { 12928c2ecf20Sopenharmony_ci .halt_reg = 0x4d004, 12938c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 12948c2ecf20Sopenharmony_ci .hwcg_reg = 0x4d004, 12958c2ecf20Sopenharmony_ci .hwcg_bit = 1, 12968c2ecf20Sopenharmony_ci .clkr = { 12978c2ecf20Sopenharmony_ci .enable_reg = 0x4d004, 12988c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 12998c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13008c2ecf20Sopenharmony_ci .name = "gcc_npu_cfg_ahb_clk", 13018c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13028c2ecf20Sopenharmony_ci }, 13038c2ecf20Sopenharmony_ci }, 13048c2ecf20Sopenharmony_ci}; 13058c2ecf20Sopenharmony_ci 13068c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_dma_clk = { 13078c2ecf20Sopenharmony_ci .halt_reg = 0x4d1a0, 13088c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 13098c2ecf20Sopenharmony_ci .hwcg_reg = 0x4d1a0, 13108c2ecf20Sopenharmony_ci .hwcg_bit = 1, 13118c2ecf20Sopenharmony_ci .clkr = { 13128c2ecf20Sopenharmony_ci .enable_reg = 0x4d1a0, 13138c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 13148c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13158c2ecf20Sopenharmony_ci .name = "gcc_npu_dma_clk", 13168c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13178c2ecf20Sopenharmony_ci }, 13188c2ecf20Sopenharmony_ci }, 13198c2ecf20Sopenharmony_ci}; 13208c2ecf20Sopenharmony_ci 13218c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_gpll0_clk_src = { 13228c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 13238c2ecf20Sopenharmony_ci .clkr = { 13248c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 13258c2ecf20Sopenharmony_ci .enable_mask = BIT(25), 13268c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13278c2ecf20Sopenharmony_ci .name = "gcc_npu_gpll0_clk_src", 13288c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 13298c2ecf20Sopenharmony_ci .hw = &gpll0.clkr.hw, 13308c2ecf20Sopenharmony_ci }, 13318c2ecf20Sopenharmony_ci .num_parents = 1, 13328c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13338c2ecf20Sopenharmony_ci }, 13348c2ecf20Sopenharmony_ci }, 13358c2ecf20Sopenharmony_ci}; 13368c2ecf20Sopenharmony_ci 13378c2ecf20Sopenharmony_cistatic struct clk_branch gcc_npu_gpll0_div_clk_src = { 13388c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 13398c2ecf20Sopenharmony_ci .clkr = { 13408c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 13418c2ecf20Sopenharmony_ci .enable_mask = BIT(26), 13428c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13438c2ecf20Sopenharmony_ci .name = "gcc_npu_gpll0_div_clk_src", 13448c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 13458c2ecf20Sopenharmony_ci .hw = &gcc_pll0_main_div_cdiv.hw, 13468c2ecf20Sopenharmony_ci }, 13478c2ecf20Sopenharmony_ci .num_parents = 1, 13488c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 13498c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13508c2ecf20Sopenharmony_ci }, 13518c2ecf20Sopenharmony_ci }, 13528c2ecf20Sopenharmony_ci}; 13538c2ecf20Sopenharmony_ci 13548c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pdm2_clk = { 13558c2ecf20Sopenharmony_ci .halt_reg = 0x3300c, 13568c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 13578c2ecf20Sopenharmony_ci .clkr = { 13588c2ecf20Sopenharmony_ci .enable_reg = 0x3300c, 13598c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 13608c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13618c2ecf20Sopenharmony_ci .name = "gcc_pdm2_clk", 13628c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 13638c2ecf20Sopenharmony_ci .hw = &gcc_pdm2_clk_src.clkr.hw, 13648c2ecf20Sopenharmony_ci }, 13658c2ecf20Sopenharmony_ci .num_parents = 1, 13668c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 13678c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13688c2ecf20Sopenharmony_ci }, 13698c2ecf20Sopenharmony_ci }, 13708c2ecf20Sopenharmony_ci}; 13718c2ecf20Sopenharmony_ci 13728c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pdm_ahb_clk = { 13738c2ecf20Sopenharmony_ci .halt_reg = 0x33004, 13748c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 13758c2ecf20Sopenharmony_ci .hwcg_reg = 0x33004, 13768c2ecf20Sopenharmony_ci .hwcg_bit = 1, 13778c2ecf20Sopenharmony_ci .clkr = { 13788c2ecf20Sopenharmony_ci .enable_reg = 0x33004, 13798c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 13808c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13818c2ecf20Sopenharmony_ci .name = "gcc_pdm_ahb_clk", 13828c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13838c2ecf20Sopenharmony_ci }, 13848c2ecf20Sopenharmony_ci }, 13858c2ecf20Sopenharmony_ci}; 13868c2ecf20Sopenharmony_ci 13878c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pdm_xo4_clk = { 13888c2ecf20Sopenharmony_ci .halt_reg = 0x33008, 13898c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 13908c2ecf20Sopenharmony_ci .clkr = { 13918c2ecf20Sopenharmony_ci .enable_reg = 0x33008, 13928c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 13938c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 13948c2ecf20Sopenharmony_ci .name = "gcc_pdm_xo4_clk", 13958c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 13968c2ecf20Sopenharmony_ci }, 13978c2ecf20Sopenharmony_ci }, 13988c2ecf20Sopenharmony_ci}; 13998c2ecf20Sopenharmony_ci 14008c2ecf20Sopenharmony_cistatic struct clk_branch gcc_prng_ahb_clk = { 14018c2ecf20Sopenharmony_ci .halt_reg = 0x34004, 14028c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 14038c2ecf20Sopenharmony_ci .hwcg_reg = 0x34004, 14048c2ecf20Sopenharmony_ci .hwcg_bit = 1, 14058c2ecf20Sopenharmony_ci .clkr = { 14068c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 14078c2ecf20Sopenharmony_ci .enable_mask = BIT(13), 14088c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14098c2ecf20Sopenharmony_ci .name = "gcc_prng_ahb_clk", 14108c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14118c2ecf20Sopenharmony_ci }, 14128c2ecf20Sopenharmony_ci }, 14138c2ecf20Sopenharmony_ci}; 14148c2ecf20Sopenharmony_ci 14158c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qspi_cnoc_periph_ahb_clk = { 14168c2ecf20Sopenharmony_ci .halt_reg = 0x4b004, 14178c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 14188c2ecf20Sopenharmony_ci .hwcg_reg = 0x4b004, 14198c2ecf20Sopenharmony_ci .hwcg_bit = 1, 14208c2ecf20Sopenharmony_ci .clkr = { 14218c2ecf20Sopenharmony_ci .enable_reg = 0x4b004, 14228c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 14238c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14248c2ecf20Sopenharmony_ci .name = "gcc_qspi_cnoc_periph_ahb_clk", 14258c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14268c2ecf20Sopenharmony_ci }, 14278c2ecf20Sopenharmony_ci }, 14288c2ecf20Sopenharmony_ci}; 14298c2ecf20Sopenharmony_ci 14308c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qspi_core_clk = { 14318c2ecf20Sopenharmony_ci .halt_reg = 0x4b008, 14328c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 14338c2ecf20Sopenharmony_ci .clkr = { 14348c2ecf20Sopenharmony_ci .enable_reg = 0x4b008, 14358c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 14368c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14378c2ecf20Sopenharmony_ci .name = "gcc_qspi_core_clk", 14388c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 14398c2ecf20Sopenharmony_ci .hw = &gcc_qspi_core_clk_src.clkr.hw, 14408c2ecf20Sopenharmony_ci }, 14418c2ecf20Sopenharmony_ci .num_parents = 1, 14428c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 14438c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14448c2ecf20Sopenharmony_ci }, 14458c2ecf20Sopenharmony_ci }, 14468c2ecf20Sopenharmony_ci}; 14478c2ecf20Sopenharmony_ci 14488c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_core_2x_clk = { 14498c2ecf20Sopenharmony_ci .halt_reg = 0x17014, 14508c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 14518c2ecf20Sopenharmony_ci .clkr = { 14528c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 14538c2ecf20Sopenharmony_ci .enable_mask = BIT(9), 14548c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14558c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_core_2x_clk", 14568c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14578c2ecf20Sopenharmony_ci }, 14588c2ecf20Sopenharmony_ci }, 14598c2ecf20Sopenharmony_ci}; 14608c2ecf20Sopenharmony_ci 14618c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_core_clk = { 14628c2ecf20Sopenharmony_ci .halt_reg = 0x1700c, 14638c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 14648c2ecf20Sopenharmony_ci .clkr = { 14658c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 14668c2ecf20Sopenharmony_ci .enable_mask = BIT(8), 14678c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14688c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_core_clk", 14698c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14708c2ecf20Sopenharmony_ci }, 14718c2ecf20Sopenharmony_ci }, 14728c2ecf20Sopenharmony_ci}; 14738c2ecf20Sopenharmony_ci 14748c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s0_clk = { 14758c2ecf20Sopenharmony_ci .halt_reg = 0x17030, 14768c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 14778c2ecf20Sopenharmony_ci .clkr = { 14788c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 14798c2ecf20Sopenharmony_ci .enable_mask = BIT(10), 14808c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14818c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s0_clk", 14828c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 14838c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s0_clk_src.clkr.hw, 14848c2ecf20Sopenharmony_ci }, 14858c2ecf20Sopenharmony_ci .num_parents = 1, 14868c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 14878c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 14888c2ecf20Sopenharmony_ci }, 14898c2ecf20Sopenharmony_ci }, 14908c2ecf20Sopenharmony_ci}; 14918c2ecf20Sopenharmony_ci 14928c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s1_clk = { 14938c2ecf20Sopenharmony_ci .halt_reg = 0x17160, 14948c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 14958c2ecf20Sopenharmony_ci .clkr = { 14968c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 14978c2ecf20Sopenharmony_ci .enable_mask = BIT(11), 14988c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 14998c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s1_clk", 15008c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 15018c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s1_clk_src.clkr.hw, 15028c2ecf20Sopenharmony_ci }, 15038c2ecf20Sopenharmony_ci .num_parents = 1, 15048c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 15058c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15068c2ecf20Sopenharmony_ci }, 15078c2ecf20Sopenharmony_ci }, 15088c2ecf20Sopenharmony_ci}; 15098c2ecf20Sopenharmony_ci 15108c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s2_clk = { 15118c2ecf20Sopenharmony_ci .halt_reg = 0x17290, 15128c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15138c2ecf20Sopenharmony_ci .clkr = { 15148c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 15158c2ecf20Sopenharmony_ci .enable_mask = BIT(12), 15168c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 15178c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s2_clk", 15188c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 15198c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s2_clk_src.clkr.hw, 15208c2ecf20Sopenharmony_ci }, 15218c2ecf20Sopenharmony_ci .num_parents = 1, 15228c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 15238c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15248c2ecf20Sopenharmony_ci }, 15258c2ecf20Sopenharmony_ci }, 15268c2ecf20Sopenharmony_ci}; 15278c2ecf20Sopenharmony_ci 15288c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s3_clk = { 15298c2ecf20Sopenharmony_ci .halt_reg = 0x173c0, 15308c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15318c2ecf20Sopenharmony_ci .clkr = { 15328c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 15338c2ecf20Sopenharmony_ci .enable_mask = BIT(13), 15348c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 15358c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s3_clk", 15368c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 15378c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s3_clk_src.clkr.hw, 15388c2ecf20Sopenharmony_ci }, 15398c2ecf20Sopenharmony_ci .num_parents = 1, 15408c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 15418c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15428c2ecf20Sopenharmony_ci }, 15438c2ecf20Sopenharmony_ci }, 15448c2ecf20Sopenharmony_ci}; 15458c2ecf20Sopenharmony_ci 15468c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s4_clk = { 15478c2ecf20Sopenharmony_ci .halt_reg = 0x174f0, 15488c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15498c2ecf20Sopenharmony_ci .clkr = { 15508c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 15518c2ecf20Sopenharmony_ci .enable_mask = BIT(14), 15528c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 15538c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s4_clk", 15548c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 15558c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s4_clk_src.clkr.hw, 15568c2ecf20Sopenharmony_ci }, 15578c2ecf20Sopenharmony_ci .num_parents = 1, 15588c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 15598c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15608c2ecf20Sopenharmony_ci }, 15618c2ecf20Sopenharmony_ci }, 15628c2ecf20Sopenharmony_ci}; 15638c2ecf20Sopenharmony_ci 15648c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap0_s5_clk = { 15658c2ecf20Sopenharmony_ci .halt_reg = 0x17620, 15668c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15678c2ecf20Sopenharmony_ci .clkr = { 15688c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 15698c2ecf20Sopenharmony_ci .enable_mask = BIT(15), 15708c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 15718c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap0_s5_clk", 15728c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 15738c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap0_s5_clk_src.clkr.hw, 15748c2ecf20Sopenharmony_ci }, 15758c2ecf20Sopenharmony_ci .num_parents = 1, 15768c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 15778c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15788c2ecf20Sopenharmony_ci }, 15798c2ecf20Sopenharmony_ci }, 15808c2ecf20Sopenharmony_ci}; 15818c2ecf20Sopenharmony_ci 15828c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_core_2x_clk = { 15838c2ecf20Sopenharmony_ci .halt_reg = 0x18004, 15848c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15858c2ecf20Sopenharmony_ci .clkr = { 15868c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 15878c2ecf20Sopenharmony_ci .enable_mask = BIT(18), 15888c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 15898c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_core_2x_clk", 15908c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 15918c2ecf20Sopenharmony_ci }, 15928c2ecf20Sopenharmony_ci }, 15938c2ecf20Sopenharmony_ci}; 15948c2ecf20Sopenharmony_ci 15958c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_core_clk = { 15968c2ecf20Sopenharmony_ci .halt_reg = 0x18008, 15978c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 15988c2ecf20Sopenharmony_ci .clkr = { 15998c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16008c2ecf20Sopenharmony_ci .enable_mask = BIT(19), 16018c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16028c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_core_clk", 16038c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16048c2ecf20Sopenharmony_ci }, 16058c2ecf20Sopenharmony_ci }, 16068c2ecf20Sopenharmony_ci}; 16078c2ecf20Sopenharmony_ci 16088c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s0_clk = { 16098c2ecf20Sopenharmony_ci .halt_reg = 0x18014, 16108c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 16118c2ecf20Sopenharmony_ci .clkr = { 16128c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16138c2ecf20Sopenharmony_ci .enable_mask = BIT(22), 16148c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16158c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s0_clk", 16168c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 16178c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s0_clk_src.clkr.hw, 16188c2ecf20Sopenharmony_ci }, 16198c2ecf20Sopenharmony_ci .num_parents = 1, 16208c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 16218c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16228c2ecf20Sopenharmony_ci }, 16238c2ecf20Sopenharmony_ci }, 16248c2ecf20Sopenharmony_ci}; 16258c2ecf20Sopenharmony_ci 16268c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s1_clk = { 16278c2ecf20Sopenharmony_ci .halt_reg = 0x18144, 16288c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 16298c2ecf20Sopenharmony_ci .clkr = { 16308c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16318c2ecf20Sopenharmony_ci .enable_mask = BIT(23), 16328c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16338c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s1_clk", 16348c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 16358c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s1_clk_src.clkr.hw, 16368c2ecf20Sopenharmony_ci }, 16378c2ecf20Sopenharmony_ci .num_parents = 1, 16388c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 16398c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16408c2ecf20Sopenharmony_ci }, 16418c2ecf20Sopenharmony_ci }, 16428c2ecf20Sopenharmony_ci}; 16438c2ecf20Sopenharmony_ci 16448c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s2_clk = { 16458c2ecf20Sopenharmony_ci .halt_reg = 0x18274, 16468c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 16478c2ecf20Sopenharmony_ci .clkr = { 16488c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16498c2ecf20Sopenharmony_ci .enable_mask = BIT(24), 16508c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16518c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s2_clk", 16528c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 16538c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s2_clk_src.clkr.hw, 16548c2ecf20Sopenharmony_ci }, 16558c2ecf20Sopenharmony_ci .num_parents = 1, 16568c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 16578c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16588c2ecf20Sopenharmony_ci }, 16598c2ecf20Sopenharmony_ci }, 16608c2ecf20Sopenharmony_ci}; 16618c2ecf20Sopenharmony_ci 16628c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s3_clk = { 16638c2ecf20Sopenharmony_ci .halt_reg = 0x183a4, 16648c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 16658c2ecf20Sopenharmony_ci .clkr = { 16668c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16678c2ecf20Sopenharmony_ci .enable_mask = BIT(25), 16688c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16698c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s3_clk", 16708c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 16718c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s3_clk_src.clkr.hw, 16728c2ecf20Sopenharmony_ci }, 16738c2ecf20Sopenharmony_ci .num_parents = 1, 16748c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 16758c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16768c2ecf20Sopenharmony_ci }, 16778c2ecf20Sopenharmony_ci }, 16788c2ecf20Sopenharmony_ci}; 16798c2ecf20Sopenharmony_ci 16808c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s4_clk = { 16818c2ecf20Sopenharmony_ci .halt_reg = 0x184d4, 16828c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 16838c2ecf20Sopenharmony_ci .clkr = { 16848c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 16858c2ecf20Sopenharmony_ci .enable_mask = BIT(26), 16868c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 16878c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s4_clk", 16888c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 16898c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s4_clk_src.clkr.hw, 16908c2ecf20Sopenharmony_ci }, 16918c2ecf20Sopenharmony_ci .num_parents = 1, 16928c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 16938c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 16948c2ecf20Sopenharmony_ci }, 16958c2ecf20Sopenharmony_ci }, 16968c2ecf20Sopenharmony_ci}; 16978c2ecf20Sopenharmony_ci 16988c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap1_s5_clk = { 16998c2ecf20Sopenharmony_ci .halt_reg = 0x18604, 17008c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 17018c2ecf20Sopenharmony_ci .clkr = { 17028c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 17038c2ecf20Sopenharmony_ci .enable_mask = BIT(27), 17048c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17058c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap1_s5_clk", 17068c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 17078c2ecf20Sopenharmony_ci .hw = &gcc_qupv3_wrap1_s5_clk_src.clkr.hw, 17088c2ecf20Sopenharmony_ci }, 17098c2ecf20Sopenharmony_ci .num_parents = 1, 17108c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 17118c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17128c2ecf20Sopenharmony_ci }, 17138c2ecf20Sopenharmony_ci }, 17148c2ecf20Sopenharmony_ci}; 17158c2ecf20Sopenharmony_ci 17168c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap_0_m_ahb_clk = { 17178c2ecf20Sopenharmony_ci .halt_reg = 0x17004, 17188c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 17198c2ecf20Sopenharmony_ci .clkr = { 17208c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 17218c2ecf20Sopenharmony_ci .enable_mask = BIT(6), 17228c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17238c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap_0_m_ahb_clk", 17248c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17258c2ecf20Sopenharmony_ci }, 17268c2ecf20Sopenharmony_ci }, 17278c2ecf20Sopenharmony_ci}; 17288c2ecf20Sopenharmony_ci 17298c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap_0_s_ahb_clk = { 17308c2ecf20Sopenharmony_ci .halt_reg = 0x17008, 17318c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 17328c2ecf20Sopenharmony_ci .hwcg_reg = 0x17008, 17338c2ecf20Sopenharmony_ci .hwcg_bit = 1, 17348c2ecf20Sopenharmony_ci .clkr = { 17358c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 17368c2ecf20Sopenharmony_ci .enable_mask = BIT(7), 17378c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17388c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap_0_s_ahb_clk", 17398c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17408c2ecf20Sopenharmony_ci }, 17418c2ecf20Sopenharmony_ci }, 17428c2ecf20Sopenharmony_ci}; 17438c2ecf20Sopenharmony_ci 17448c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap_1_m_ahb_clk = { 17458c2ecf20Sopenharmony_ci .halt_reg = 0x1800c, 17468c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 17478c2ecf20Sopenharmony_ci .clkr = { 17488c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 17498c2ecf20Sopenharmony_ci .enable_mask = BIT(20), 17508c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17518c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap_1_m_ahb_clk", 17528c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17538c2ecf20Sopenharmony_ci }, 17548c2ecf20Sopenharmony_ci }, 17558c2ecf20Sopenharmony_ci}; 17568c2ecf20Sopenharmony_ci 17578c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qupv3_wrap_1_s_ahb_clk = { 17588c2ecf20Sopenharmony_ci .halt_reg = 0x18010, 17598c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 17608c2ecf20Sopenharmony_ci .hwcg_reg = 0x18010, 17618c2ecf20Sopenharmony_ci .hwcg_bit = 1, 17628c2ecf20Sopenharmony_ci .clkr = { 17638c2ecf20Sopenharmony_ci .enable_reg = 0x52008, 17648c2ecf20Sopenharmony_ci .enable_mask = BIT(21), 17658c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17668c2ecf20Sopenharmony_ci .name = "gcc_qupv3_wrap_1_s_ahb_clk", 17678c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17688c2ecf20Sopenharmony_ci }, 17698c2ecf20Sopenharmony_ci }, 17708c2ecf20Sopenharmony_ci}; 17718c2ecf20Sopenharmony_ci 17728c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_ahb_clk = { 17738c2ecf20Sopenharmony_ci .halt_reg = 0x12008, 17748c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 17758c2ecf20Sopenharmony_ci .clkr = { 17768c2ecf20Sopenharmony_ci .enable_reg = 0x12008, 17778c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 17788c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17798c2ecf20Sopenharmony_ci .name = "gcc_sdcc1_ahb_clk", 17808c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17818c2ecf20Sopenharmony_ci }, 17828c2ecf20Sopenharmony_ci }, 17838c2ecf20Sopenharmony_ci}; 17848c2ecf20Sopenharmony_ci 17858c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_apps_clk = { 17868c2ecf20Sopenharmony_ci .halt_reg = 0x1200c, 17878c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 17888c2ecf20Sopenharmony_ci .clkr = { 17898c2ecf20Sopenharmony_ci .enable_reg = 0x1200c, 17908c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 17918c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 17928c2ecf20Sopenharmony_ci .name = "gcc_sdcc1_apps_clk", 17938c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 17948c2ecf20Sopenharmony_ci .hw = &gcc_sdcc1_apps_clk_src.clkr.hw, 17958c2ecf20Sopenharmony_ci }, 17968c2ecf20Sopenharmony_ci .num_parents = 1, 17978c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 17988c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 17998c2ecf20Sopenharmony_ci }, 18008c2ecf20Sopenharmony_ci }, 18018c2ecf20Sopenharmony_ci}; 18028c2ecf20Sopenharmony_ci 18038c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_ice_core_clk = { 18048c2ecf20Sopenharmony_ci .halt_reg = 0x12040, 18058c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 18068c2ecf20Sopenharmony_ci .clkr = { 18078c2ecf20Sopenharmony_ci .enable_reg = 0x12040, 18088c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18098c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18108c2ecf20Sopenharmony_ci .name = "gcc_sdcc1_ice_core_clk", 18118c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 18128c2ecf20Sopenharmony_ci .hw = &gcc_sdcc1_ice_core_clk_src.clkr.hw, 18138c2ecf20Sopenharmony_ci }, 18148c2ecf20Sopenharmony_ci .num_parents = 1, 18158c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 18168c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18178c2ecf20Sopenharmony_ci }, 18188c2ecf20Sopenharmony_ci }, 18198c2ecf20Sopenharmony_ci}; 18208c2ecf20Sopenharmony_ci 18218c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc2_ahb_clk = { 18228c2ecf20Sopenharmony_ci .halt_reg = 0x14008, 18238c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 18248c2ecf20Sopenharmony_ci .clkr = { 18258c2ecf20Sopenharmony_ci .enable_reg = 0x14008, 18268c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18278c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18288c2ecf20Sopenharmony_ci .name = "gcc_sdcc2_ahb_clk", 18298c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18308c2ecf20Sopenharmony_ci }, 18318c2ecf20Sopenharmony_ci }, 18328c2ecf20Sopenharmony_ci}; 18338c2ecf20Sopenharmony_ci 18348c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc2_apps_clk = { 18358c2ecf20Sopenharmony_ci .halt_reg = 0x14004, 18368c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 18378c2ecf20Sopenharmony_ci .clkr = { 18388c2ecf20Sopenharmony_ci .enable_reg = 0x14004, 18398c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18408c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18418c2ecf20Sopenharmony_ci .name = "gcc_sdcc2_apps_clk", 18428c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 18438c2ecf20Sopenharmony_ci .hw = &gcc_sdcc2_apps_clk_src.clkr.hw, 18448c2ecf20Sopenharmony_ci }, 18458c2ecf20Sopenharmony_ci .num_parents = 1, 18468c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 18478c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18488c2ecf20Sopenharmony_ci }, 18498c2ecf20Sopenharmony_ci }, 18508c2ecf20Sopenharmony_ci}; 18518c2ecf20Sopenharmony_ci 18528c2ecf20Sopenharmony_ci/* For CPUSS functionality the SYS NOC clock needs to be left enabled */ 18538c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sys_noc_cpuss_ahb_clk = { 18548c2ecf20Sopenharmony_ci .halt_reg = 0x4144, 18558c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 18568c2ecf20Sopenharmony_ci .clkr = { 18578c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 18588c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18598c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18608c2ecf20Sopenharmony_ci .name = "gcc_sys_noc_cpuss_ahb_clk", 18618c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 18628c2ecf20Sopenharmony_ci .hw = &gcc_cpuss_ahb_clk_src.clkr.hw, 18638c2ecf20Sopenharmony_ci }, 18648c2ecf20Sopenharmony_ci .num_parents = 1, 18658c2ecf20Sopenharmony_ci .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 18668c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18678c2ecf20Sopenharmony_ci }, 18688c2ecf20Sopenharmony_ci }, 18698c2ecf20Sopenharmony_ci}; 18708c2ecf20Sopenharmony_ci 18718c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_mem_clkref_clk = { 18728c2ecf20Sopenharmony_ci .halt_reg = 0x8c000, 18738c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 18748c2ecf20Sopenharmony_ci .clkr = { 18758c2ecf20Sopenharmony_ci .enable_reg = 0x8c000, 18768c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18778c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18788c2ecf20Sopenharmony_ci .name = "gcc_ufs_mem_clkref_clk", 18798c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18808c2ecf20Sopenharmony_ci }, 18818c2ecf20Sopenharmony_ci }, 18828c2ecf20Sopenharmony_ci}; 18838c2ecf20Sopenharmony_ci 18848c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_ahb_clk = { 18858c2ecf20Sopenharmony_ci .halt_reg = 0x77014, 18868c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 18878c2ecf20Sopenharmony_ci .hwcg_reg = 0x77014, 18888c2ecf20Sopenharmony_ci .hwcg_bit = 1, 18898c2ecf20Sopenharmony_ci .clkr = { 18908c2ecf20Sopenharmony_ci .enable_reg = 0x77014, 18918c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 18928c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 18938c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_ahb_clk", 18948c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 18958c2ecf20Sopenharmony_ci }, 18968c2ecf20Sopenharmony_ci }, 18978c2ecf20Sopenharmony_ci}; 18988c2ecf20Sopenharmony_ci 18998c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_axi_clk = { 19008c2ecf20Sopenharmony_ci .halt_reg = 0x77038, 19018c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 19028c2ecf20Sopenharmony_ci .hwcg_reg = 0x77038, 19038c2ecf20Sopenharmony_ci .hwcg_bit = 1, 19048c2ecf20Sopenharmony_ci .clkr = { 19058c2ecf20Sopenharmony_ci .enable_reg = 0x77038, 19068c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19078c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19088c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_axi_clk", 19098c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 19108c2ecf20Sopenharmony_ci .hw = &gcc_ufs_phy_axi_clk_src.clkr.hw, 19118c2ecf20Sopenharmony_ci }, 19128c2ecf20Sopenharmony_ci .num_parents = 1, 19138c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 19148c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 19158c2ecf20Sopenharmony_ci }, 19168c2ecf20Sopenharmony_ci }, 19178c2ecf20Sopenharmony_ci}; 19188c2ecf20Sopenharmony_ci 19198c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_ice_core_clk = { 19208c2ecf20Sopenharmony_ci .halt_reg = 0x77090, 19218c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 19228c2ecf20Sopenharmony_ci .hwcg_reg = 0x77090, 19238c2ecf20Sopenharmony_ci .hwcg_bit = 1, 19248c2ecf20Sopenharmony_ci .clkr = { 19258c2ecf20Sopenharmony_ci .enable_reg = 0x77090, 19268c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19278c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19288c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_ice_core_clk", 19298c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 19308c2ecf20Sopenharmony_ci .hw = &gcc_ufs_phy_ice_core_clk_src.clkr.hw, 19318c2ecf20Sopenharmony_ci }, 19328c2ecf20Sopenharmony_ci .num_parents = 1, 19338c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 19348c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 19358c2ecf20Sopenharmony_ci }, 19368c2ecf20Sopenharmony_ci }, 19378c2ecf20Sopenharmony_ci}; 19388c2ecf20Sopenharmony_ci 19398c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_phy_aux_clk = { 19408c2ecf20Sopenharmony_ci .halt_reg = 0x77094, 19418c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 19428c2ecf20Sopenharmony_ci .hwcg_reg = 0x77094, 19438c2ecf20Sopenharmony_ci .hwcg_bit = 1, 19448c2ecf20Sopenharmony_ci .clkr = { 19458c2ecf20Sopenharmony_ci .enable_reg = 0x77094, 19468c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19478c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19488c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_phy_aux_clk", 19498c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 19508c2ecf20Sopenharmony_ci .hw = &gcc_ufs_phy_phy_aux_clk_src.clkr.hw, 19518c2ecf20Sopenharmony_ci }, 19528c2ecf20Sopenharmony_ci .num_parents = 1, 19538c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 19548c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 19558c2ecf20Sopenharmony_ci }, 19568c2ecf20Sopenharmony_ci }, 19578c2ecf20Sopenharmony_ci}; 19588c2ecf20Sopenharmony_ci 19598c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_rx_symbol_0_clk = { 19608c2ecf20Sopenharmony_ci .halt_reg = 0x7701c, 19618c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_SKIP, 19628c2ecf20Sopenharmony_ci .clkr = { 19638c2ecf20Sopenharmony_ci .enable_reg = 0x7701c, 19648c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19658c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19668c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_rx_symbol_0_clk", 19678c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 19688c2ecf20Sopenharmony_ci }, 19698c2ecf20Sopenharmony_ci }, 19708c2ecf20Sopenharmony_ci}; 19718c2ecf20Sopenharmony_ci 19728c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_tx_symbol_0_clk = { 19738c2ecf20Sopenharmony_ci .halt_reg = 0x77018, 19748c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_SKIP, 19758c2ecf20Sopenharmony_ci .clkr = { 19768c2ecf20Sopenharmony_ci .enable_reg = 0x77018, 19778c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19788c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19798c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_tx_symbol_0_clk", 19808c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 19818c2ecf20Sopenharmony_ci }, 19828c2ecf20Sopenharmony_ci }, 19838c2ecf20Sopenharmony_ci}; 19848c2ecf20Sopenharmony_ci 19858c2ecf20Sopenharmony_cistatic struct clk_branch gcc_ufs_phy_unipro_core_clk = { 19868c2ecf20Sopenharmony_ci .halt_reg = 0x7708c, 19878c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 19888c2ecf20Sopenharmony_ci .hwcg_reg = 0x7708c, 19898c2ecf20Sopenharmony_ci .hwcg_bit = 1, 19908c2ecf20Sopenharmony_ci .clkr = { 19918c2ecf20Sopenharmony_ci .enable_reg = 0x7708c, 19928c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 19938c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 19948c2ecf20Sopenharmony_ci .name = "gcc_ufs_phy_unipro_core_clk", 19958c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 19968c2ecf20Sopenharmony_ci .hw = &gcc_ufs_phy_unipro_core_clk_src.clkr.hw, 19978c2ecf20Sopenharmony_ci }, 19988c2ecf20Sopenharmony_ci .num_parents = 1, 19998c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 20008c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20018c2ecf20Sopenharmony_ci }, 20028c2ecf20Sopenharmony_ci }, 20038c2ecf20Sopenharmony_ci}; 20048c2ecf20Sopenharmony_ci 20058c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_prim_master_clk = { 20068c2ecf20Sopenharmony_ci .halt_reg = 0xf010, 20078c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20088c2ecf20Sopenharmony_ci .clkr = { 20098c2ecf20Sopenharmony_ci .enable_reg = 0xf010, 20108c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20118c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20128c2ecf20Sopenharmony_ci .name = "gcc_usb30_prim_master_clk", 20138c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 20148c2ecf20Sopenharmony_ci .hw = &gcc_usb30_prim_master_clk_src.clkr.hw, 20158c2ecf20Sopenharmony_ci }, 20168c2ecf20Sopenharmony_ci .num_parents = 1, 20178c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 20188c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20198c2ecf20Sopenharmony_ci }, 20208c2ecf20Sopenharmony_ci }, 20218c2ecf20Sopenharmony_ci}; 20228c2ecf20Sopenharmony_ci 20238c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_prim_mock_utmi_clk = { 20248c2ecf20Sopenharmony_ci .halt_reg = 0xf018, 20258c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20268c2ecf20Sopenharmony_ci .clkr = { 20278c2ecf20Sopenharmony_ci .enable_reg = 0xf018, 20288c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20298c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20308c2ecf20Sopenharmony_ci .name = "gcc_usb30_prim_mock_utmi_clk", 20318c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 20328c2ecf20Sopenharmony_ci .hw = 20338c2ecf20Sopenharmony_ci &gcc_usb30_prim_mock_utmi_clk_src.clkr.hw, 20348c2ecf20Sopenharmony_ci }, 20358c2ecf20Sopenharmony_ci .num_parents = 1, 20368c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 20378c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20388c2ecf20Sopenharmony_ci }, 20398c2ecf20Sopenharmony_ci }, 20408c2ecf20Sopenharmony_ci}; 20418c2ecf20Sopenharmony_ci 20428c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_prim_sleep_clk = { 20438c2ecf20Sopenharmony_ci .halt_reg = 0xf014, 20448c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20458c2ecf20Sopenharmony_ci .clkr = { 20468c2ecf20Sopenharmony_ci .enable_reg = 0xf014, 20478c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20488c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20498c2ecf20Sopenharmony_ci .name = "gcc_usb30_prim_sleep_clk", 20508c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20518c2ecf20Sopenharmony_ci }, 20528c2ecf20Sopenharmony_ci }, 20538c2ecf20Sopenharmony_ci}; 20548c2ecf20Sopenharmony_ci 20558c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_prim_clkref_clk = { 20568c2ecf20Sopenharmony_ci .halt_reg = 0x8c010, 20578c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20588c2ecf20Sopenharmony_ci .clkr = { 20598c2ecf20Sopenharmony_ci .enable_reg = 0x8c010, 20608c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20618c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20628c2ecf20Sopenharmony_ci .name = "gcc_usb3_prim_clkref_clk", 20638c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20648c2ecf20Sopenharmony_ci }, 20658c2ecf20Sopenharmony_ci }, 20668c2ecf20Sopenharmony_ci}; 20678c2ecf20Sopenharmony_ci 20688c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_prim_phy_aux_clk = { 20698c2ecf20Sopenharmony_ci .halt_reg = 0xf050, 20708c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20718c2ecf20Sopenharmony_ci .clkr = { 20728c2ecf20Sopenharmony_ci .enable_reg = 0xf050, 20738c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20748c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20758c2ecf20Sopenharmony_ci .name = "gcc_usb3_prim_phy_aux_clk", 20768c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 20778c2ecf20Sopenharmony_ci .hw = &gcc_usb3_prim_phy_aux_clk_src.clkr.hw, 20788c2ecf20Sopenharmony_ci }, 20798c2ecf20Sopenharmony_ci .num_parents = 1, 20808c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 20818c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 20828c2ecf20Sopenharmony_ci }, 20838c2ecf20Sopenharmony_ci }, 20848c2ecf20Sopenharmony_ci}; 20858c2ecf20Sopenharmony_ci 20868c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_prim_phy_com_aux_clk = { 20878c2ecf20Sopenharmony_ci .halt_reg = 0xf054, 20888c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 20898c2ecf20Sopenharmony_ci .clkr = { 20908c2ecf20Sopenharmony_ci .enable_reg = 0xf054, 20918c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 20928c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 20938c2ecf20Sopenharmony_ci .name = "gcc_usb3_prim_phy_com_aux_clk", 20948c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 20958c2ecf20Sopenharmony_ci .hw = &gcc_usb3_prim_phy_aux_clk_src.clkr.hw, 20968c2ecf20Sopenharmony_ci }, 20978c2ecf20Sopenharmony_ci .num_parents = 1, 20988c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 20998c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21008c2ecf20Sopenharmony_ci }, 21018c2ecf20Sopenharmony_ci }, 21028c2ecf20Sopenharmony_ci}; 21038c2ecf20Sopenharmony_ci 21048c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_prim_phy_pipe_clk = { 21058c2ecf20Sopenharmony_ci .halt_reg = 0xf058, 21068c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_SKIP, 21078c2ecf20Sopenharmony_ci .clkr = { 21088c2ecf20Sopenharmony_ci .enable_reg = 0xf058, 21098c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21108c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21118c2ecf20Sopenharmony_ci .name = "gcc_usb3_prim_phy_pipe_clk", 21128c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21138c2ecf20Sopenharmony_ci }, 21148c2ecf20Sopenharmony_ci }, 21158c2ecf20Sopenharmony_ci}; 21168c2ecf20Sopenharmony_ci 21178c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb_phy_cfg_ahb2phy_clk = { 21188c2ecf20Sopenharmony_ci .halt_reg = 0x6a004, 21198c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 21208c2ecf20Sopenharmony_ci .hwcg_reg = 0x6a004, 21218c2ecf20Sopenharmony_ci .hwcg_bit = 1, 21228c2ecf20Sopenharmony_ci .clkr = { 21238c2ecf20Sopenharmony_ci .enable_reg = 0x6a004, 21248c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21258c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21268c2ecf20Sopenharmony_ci .name = "gcc_usb_phy_cfg_ahb2phy_clk", 21278c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21288c2ecf20Sopenharmony_ci }, 21298c2ecf20Sopenharmony_ci }, 21308c2ecf20Sopenharmony_ci}; 21318c2ecf20Sopenharmony_ci 21328c2ecf20Sopenharmony_cistatic struct clk_branch gcc_video_axi_clk = { 21338c2ecf20Sopenharmony_ci .halt_reg = 0xb01c, 21348c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 21358c2ecf20Sopenharmony_ci .clkr = { 21368c2ecf20Sopenharmony_ci .enable_reg = 0xb01c, 21378c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21388c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21398c2ecf20Sopenharmony_ci .name = "gcc_video_axi_clk", 21408c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21418c2ecf20Sopenharmony_ci }, 21428c2ecf20Sopenharmony_ci }, 21438c2ecf20Sopenharmony_ci}; 21448c2ecf20Sopenharmony_ci 21458c2ecf20Sopenharmony_cistatic struct clk_branch gcc_video_gpll0_div_clk_src = { 21468c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 21478c2ecf20Sopenharmony_ci .clkr = { 21488c2ecf20Sopenharmony_ci .enable_reg = 0x52000, 21498c2ecf20Sopenharmony_ci .enable_mask = BIT(20), 21508c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21518c2ecf20Sopenharmony_ci .name = "gcc_video_gpll0_div_clk_src", 21528c2ecf20Sopenharmony_ci .parent_data = &(const struct clk_parent_data){ 21538c2ecf20Sopenharmony_ci .hw = &gcc_pll0_main_div_cdiv.hw, 21548c2ecf20Sopenharmony_ci }, 21558c2ecf20Sopenharmony_ci .num_parents = 1, 21568c2ecf20Sopenharmony_ci .flags = CLK_SET_RATE_PARENT, 21578c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21588c2ecf20Sopenharmony_ci }, 21598c2ecf20Sopenharmony_ci }, 21608c2ecf20Sopenharmony_ci}; 21618c2ecf20Sopenharmony_ci 21628c2ecf20Sopenharmony_cistatic struct clk_branch gcc_video_throttle_axi_clk = { 21638c2ecf20Sopenharmony_ci .halt_reg = 0xb07c, 21648c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 21658c2ecf20Sopenharmony_ci .hwcg_reg = 0xb07c, 21668c2ecf20Sopenharmony_ci .hwcg_bit = 1, 21678c2ecf20Sopenharmony_ci .clkr = { 21688c2ecf20Sopenharmony_ci .enable_reg = 0xb07c, 21698c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21708c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21718c2ecf20Sopenharmony_ci .name = "gcc_video_throttle_axi_clk", 21728c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21738c2ecf20Sopenharmony_ci }, 21748c2ecf20Sopenharmony_ci }, 21758c2ecf20Sopenharmony_ci}; 21768c2ecf20Sopenharmony_ci 21778c2ecf20Sopenharmony_cistatic struct clk_branch gcc_video_xo_clk = { 21788c2ecf20Sopenharmony_ci .halt_reg = 0xb028, 21798c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 21808c2ecf20Sopenharmony_ci .clkr = { 21818c2ecf20Sopenharmony_ci .enable_reg = 0xb028, 21828c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21838c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21848c2ecf20Sopenharmony_ci .name = "gcc_video_xo_clk", 21858c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21868c2ecf20Sopenharmony_ci }, 21878c2ecf20Sopenharmony_ci }, 21888c2ecf20Sopenharmony_ci}; 21898c2ecf20Sopenharmony_ci 21908c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mss_cfg_ahb_clk = { 21918c2ecf20Sopenharmony_ci .halt_reg = 0x8a000, 21928c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 21938c2ecf20Sopenharmony_ci .clkr = { 21948c2ecf20Sopenharmony_ci .enable_reg = 0x8a000, 21958c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 21968c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 21978c2ecf20Sopenharmony_ci .name = "gcc_mss_cfg_ahb_clk", 21988c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 21998c2ecf20Sopenharmony_ci }, 22008c2ecf20Sopenharmony_ci }, 22018c2ecf20Sopenharmony_ci}; 22028c2ecf20Sopenharmony_ci 22038c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mss_mfab_axis_clk = { 22048c2ecf20Sopenharmony_ci .halt_reg = 0x8a004, 22058c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 22068c2ecf20Sopenharmony_ci .clkr = { 22078c2ecf20Sopenharmony_ci .enable_reg = 0x8a004, 22088c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 22098c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 22108c2ecf20Sopenharmony_ci .name = "gcc_mss_mfab_axis_clk", 22118c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 22128c2ecf20Sopenharmony_ci }, 22138c2ecf20Sopenharmony_ci }, 22148c2ecf20Sopenharmony_ci}; 22158c2ecf20Sopenharmony_ci 22168c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mss_nav_axi_clk = { 22178c2ecf20Sopenharmony_ci .halt_reg = 0x8a00c, 22188c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_VOTED, 22198c2ecf20Sopenharmony_ci .clkr = { 22208c2ecf20Sopenharmony_ci .enable_reg = 0x8a00c, 22218c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 22228c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 22238c2ecf20Sopenharmony_ci .name = "gcc_mss_nav_axi_clk", 22248c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 22258c2ecf20Sopenharmony_ci }, 22268c2ecf20Sopenharmony_ci }, 22278c2ecf20Sopenharmony_ci}; 22288c2ecf20Sopenharmony_ci 22298c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mss_snoc_axi_clk = { 22308c2ecf20Sopenharmony_ci .halt_reg = 0x8a150, 22318c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 22328c2ecf20Sopenharmony_ci .clkr = { 22338c2ecf20Sopenharmony_ci .enable_reg = 0x8a150, 22348c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 22358c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 22368c2ecf20Sopenharmony_ci .name = "gcc_mss_snoc_axi_clk", 22378c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 22388c2ecf20Sopenharmony_ci }, 22398c2ecf20Sopenharmony_ci }, 22408c2ecf20Sopenharmony_ci}; 22418c2ecf20Sopenharmony_ci 22428c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mss_q6_memnoc_axi_clk = { 22438c2ecf20Sopenharmony_ci .halt_reg = 0x8a154, 22448c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT, 22458c2ecf20Sopenharmony_ci .clkr = { 22468c2ecf20Sopenharmony_ci .enable_reg = 0x8a154, 22478c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 22488c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 22498c2ecf20Sopenharmony_ci .name = "gcc_mss_q6_memnoc_axi_clk", 22508c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 22518c2ecf20Sopenharmony_ci }, 22528c2ecf20Sopenharmony_ci }, 22538c2ecf20Sopenharmony_ci}; 22548c2ecf20Sopenharmony_ci 22558c2ecf20Sopenharmony_cistatic struct clk_branch gcc_lpass_cfg_noc_sway_clk = { 22568c2ecf20Sopenharmony_ci .halt_reg = 0x47018, 22578c2ecf20Sopenharmony_ci .halt_check = BRANCH_HALT_DELAY, 22588c2ecf20Sopenharmony_ci .clkr = { 22598c2ecf20Sopenharmony_ci .enable_reg = 0x47018, 22608c2ecf20Sopenharmony_ci .enable_mask = BIT(0), 22618c2ecf20Sopenharmony_ci .hw.init = &(struct clk_init_data){ 22628c2ecf20Sopenharmony_ci .name = "gcc_lpass_cfg_noc_sway_clk", 22638c2ecf20Sopenharmony_ci .ops = &clk_branch2_ops, 22648c2ecf20Sopenharmony_ci }, 22658c2ecf20Sopenharmony_ci }, 22668c2ecf20Sopenharmony_ci}; 22678c2ecf20Sopenharmony_ci 22688c2ecf20Sopenharmony_cistatic struct gdsc ufs_phy_gdsc = { 22698c2ecf20Sopenharmony_ci .gdscr = 0x77004, 22708c2ecf20Sopenharmony_ci .pd = { 22718c2ecf20Sopenharmony_ci .name = "ufs_phy_gdsc", 22728c2ecf20Sopenharmony_ci }, 22738c2ecf20Sopenharmony_ci .pwrsts = PWRSTS_OFF_ON, 22748c2ecf20Sopenharmony_ci}; 22758c2ecf20Sopenharmony_ci 22768c2ecf20Sopenharmony_cistatic struct gdsc usb30_prim_gdsc = { 22778c2ecf20Sopenharmony_ci .gdscr = 0x0f004, 22788c2ecf20Sopenharmony_ci .pd = { 22798c2ecf20Sopenharmony_ci .name = "usb30_prim_gdsc", 22808c2ecf20Sopenharmony_ci }, 22818c2ecf20Sopenharmony_ci .pwrsts = PWRSTS_OFF_ON, 22828c2ecf20Sopenharmony_ci}; 22838c2ecf20Sopenharmony_ci 22848c2ecf20Sopenharmony_cistatic struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { 22858c2ecf20Sopenharmony_ci .gdscr = 0x7d040, 22868c2ecf20Sopenharmony_ci .pd = { 22878c2ecf20Sopenharmony_ci .name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc", 22888c2ecf20Sopenharmony_ci }, 22898c2ecf20Sopenharmony_ci .pwrsts = PWRSTS_OFF_ON, 22908c2ecf20Sopenharmony_ci .flags = VOTABLE, 22918c2ecf20Sopenharmony_ci}; 22928c2ecf20Sopenharmony_ci 22938c2ecf20Sopenharmony_cistatic struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { 22948c2ecf20Sopenharmony_ci .gdscr = 0x7d044, 22958c2ecf20Sopenharmony_ci .pd = { 22968c2ecf20Sopenharmony_ci .name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc", 22978c2ecf20Sopenharmony_ci }, 22988c2ecf20Sopenharmony_ci .pwrsts = PWRSTS_OFF_ON, 22998c2ecf20Sopenharmony_ci .flags = VOTABLE, 23008c2ecf20Sopenharmony_ci}; 23018c2ecf20Sopenharmony_ci 23028c2ecf20Sopenharmony_cistatic struct gdsc *gcc_sc7180_gdscs[] = { 23038c2ecf20Sopenharmony_ci [UFS_PHY_GDSC] = &ufs_phy_gdsc, 23048c2ecf20Sopenharmony_ci [USB30_PRIM_GDSC] = &usb30_prim_gdsc, 23058c2ecf20Sopenharmony_ci [HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC] = 23068c2ecf20Sopenharmony_ci &hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc, 23078c2ecf20Sopenharmony_ci [HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC] = 23088c2ecf20Sopenharmony_ci &hlos1_vote_mmnoc_mmu_tbu_sf_gdsc, 23098c2ecf20Sopenharmony_ci}; 23108c2ecf20Sopenharmony_ci 23118c2ecf20Sopenharmony_ci 23128c2ecf20Sopenharmony_cistatic struct clk_hw *gcc_sc7180_hws[] = { 23138c2ecf20Sopenharmony_ci [GCC_GPLL0_MAIN_DIV_CDIV] = &gcc_pll0_main_div_cdiv.hw, 23148c2ecf20Sopenharmony_ci}; 23158c2ecf20Sopenharmony_ci 23168c2ecf20Sopenharmony_cistatic struct clk_regmap *gcc_sc7180_clocks[] = { 23178c2ecf20Sopenharmony_ci [GCC_AGGRE_UFS_PHY_AXI_CLK] = &gcc_aggre_ufs_phy_axi_clk.clkr, 23188c2ecf20Sopenharmony_ci [GCC_AGGRE_USB3_PRIM_AXI_CLK] = &gcc_aggre_usb3_prim_axi_clk.clkr, 23198c2ecf20Sopenharmony_ci [GCC_BOOT_ROM_AHB_CLK] = &gcc_boot_rom_ahb_clk.clkr, 23208c2ecf20Sopenharmony_ci [GCC_CAMERA_AHB_CLK] = &gcc_camera_ahb_clk.clkr, 23218c2ecf20Sopenharmony_ci [GCC_CAMERA_HF_AXI_CLK] = &gcc_camera_hf_axi_clk.clkr, 23228c2ecf20Sopenharmony_ci [GCC_CAMERA_THROTTLE_HF_AXI_CLK] = &gcc_camera_throttle_hf_axi_clk.clkr, 23238c2ecf20Sopenharmony_ci [GCC_CAMERA_XO_CLK] = &gcc_camera_xo_clk.clkr, 23248c2ecf20Sopenharmony_ci [GCC_CE1_AHB_CLK] = &gcc_ce1_ahb_clk.clkr, 23258c2ecf20Sopenharmony_ci [GCC_CE1_AXI_CLK] = &gcc_ce1_axi_clk.clkr, 23268c2ecf20Sopenharmony_ci [GCC_CE1_CLK] = &gcc_ce1_clk.clkr, 23278c2ecf20Sopenharmony_ci [GCC_CFG_NOC_USB3_PRIM_AXI_CLK] = &gcc_cfg_noc_usb3_prim_axi_clk.clkr, 23288c2ecf20Sopenharmony_ci [GCC_CPUSS_AHB_CLK] = &gcc_cpuss_ahb_clk.clkr, 23298c2ecf20Sopenharmony_ci [GCC_CPUSS_AHB_CLK_SRC] = &gcc_cpuss_ahb_clk_src.clkr, 23308c2ecf20Sopenharmony_ci [GCC_CPUSS_RBCPR_CLK] = &gcc_cpuss_rbcpr_clk.clkr, 23318c2ecf20Sopenharmony_ci [GCC_DDRSS_GPU_AXI_CLK] = &gcc_ddrss_gpu_axi_clk.clkr, 23328c2ecf20Sopenharmony_ci [GCC_DISP_GPLL0_CLK_SRC] = &gcc_disp_gpll0_clk_src.clkr, 23338c2ecf20Sopenharmony_ci [GCC_DISP_GPLL0_DIV_CLK_SRC] = &gcc_disp_gpll0_div_clk_src.clkr, 23348c2ecf20Sopenharmony_ci [GCC_DISP_HF_AXI_CLK] = &gcc_disp_hf_axi_clk.clkr, 23358c2ecf20Sopenharmony_ci [GCC_DISP_THROTTLE_HF_AXI_CLK] = &gcc_disp_throttle_hf_axi_clk.clkr, 23368c2ecf20Sopenharmony_ci [GCC_DISP_XO_CLK] = &gcc_disp_xo_clk.clkr, 23378c2ecf20Sopenharmony_ci [GCC_GP1_CLK] = &gcc_gp1_clk.clkr, 23388c2ecf20Sopenharmony_ci [GCC_GP1_CLK_SRC] = &gcc_gp1_clk_src.clkr, 23398c2ecf20Sopenharmony_ci [GCC_GP2_CLK] = &gcc_gp2_clk.clkr, 23408c2ecf20Sopenharmony_ci [GCC_GP2_CLK_SRC] = &gcc_gp2_clk_src.clkr, 23418c2ecf20Sopenharmony_ci [GCC_GP3_CLK] = &gcc_gp3_clk.clkr, 23428c2ecf20Sopenharmony_ci [GCC_GP3_CLK_SRC] = &gcc_gp3_clk_src.clkr, 23438c2ecf20Sopenharmony_ci [GCC_GPU_GPLL0_CLK_SRC] = &gcc_gpu_gpll0_clk_src.clkr, 23448c2ecf20Sopenharmony_ci [GCC_GPU_GPLL0_DIV_CLK_SRC] = &gcc_gpu_gpll0_div_clk_src.clkr, 23458c2ecf20Sopenharmony_ci [GCC_GPU_MEMNOC_GFX_CLK] = &gcc_gpu_memnoc_gfx_clk.clkr, 23468c2ecf20Sopenharmony_ci [GCC_GPU_SNOC_DVM_GFX_CLK] = &gcc_gpu_snoc_dvm_gfx_clk.clkr, 23478c2ecf20Sopenharmony_ci [GCC_NPU_AXI_CLK] = &gcc_npu_axi_clk.clkr, 23488c2ecf20Sopenharmony_ci [GCC_NPU_BWMON_AXI_CLK] = &gcc_npu_bwmon_axi_clk.clkr, 23498c2ecf20Sopenharmony_ci [GCC_NPU_BWMON_DMA_CFG_AHB_CLK] = &gcc_npu_bwmon_dma_cfg_ahb_clk.clkr, 23508c2ecf20Sopenharmony_ci [GCC_NPU_BWMON_DSP_CFG_AHB_CLK] = &gcc_npu_bwmon_dsp_cfg_ahb_clk.clkr, 23518c2ecf20Sopenharmony_ci [GCC_NPU_CFG_AHB_CLK] = &gcc_npu_cfg_ahb_clk.clkr, 23528c2ecf20Sopenharmony_ci [GCC_NPU_DMA_CLK] = &gcc_npu_dma_clk.clkr, 23538c2ecf20Sopenharmony_ci [GCC_NPU_GPLL0_CLK_SRC] = &gcc_npu_gpll0_clk_src.clkr, 23548c2ecf20Sopenharmony_ci [GCC_NPU_GPLL0_DIV_CLK_SRC] = &gcc_npu_gpll0_div_clk_src.clkr, 23558c2ecf20Sopenharmony_ci [GCC_PDM2_CLK] = &gcc_pdm2_clk.clkr, 23568c2ecf20Sopenharmony_ci [GCC_PDM2_CLK_SRC] = &gcc_pdm2_clk_src.clkr, 23578c2ecf20Sopenharmony_ci [GCC_PDM_AHB_CLK] = &gcc_pdm_ahb_clk.clkr, 23588c2ecf20Sopenharmony_ci [GCC_PDM_XO4_CLK] = &gcc_pdm_xo4_clk.clkr, 23598c2ecf20Sopenharmony_ci [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr, 23608c2ecf20Sopenharmony_ci [GCC_QSPI_CNOC_PERIPH_AHB_CLK] = &gcc_qspi_cnoc_periph_ahb_clk.clkr, 23618c2ecf20Sopenharmony_ci [GCC_QSPI_CORE_CLK] = &gcc_qspi_core_clk.clkr, 23628c2ecf20Sopenharmony_ci [GCC_QSPI_CORE_CLK_SRC] = &gcc_qspi_core_clk_src.clkr, 23638c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_CORE_2X_CLK] = &gcc_qupv3_wrap0_core_2x_clk.clkr, 23648c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_CORE_CLK] = &gcc_qupv3_wrap0_core_clk.clkr, 23658c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S0_CLK] = &gcc_qupv3_wrap0_s0_clk.clkr, 23668c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S0_CLK_SRC] = &gcc_qupv3_wrap0_s0_clk_src.clkr, 23678c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S1_CLK] = &gcc_qupv3_wrap0_s1_clk.clkr, 23688c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S1_CLK_SRC] = &gcc_qupv3_wrap0_s1_clk_src.clkr, 23698c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S2_CLK] = &gcc_qupv3_wrap0_s2_clk.clkr, 23708c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S2_CLK_SRC] = &gcc_qupv3_wrap0_s2_clk_src.clkr, 23718c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S3_CLK] = &gcc_qupv3_wrap0_s3_clk.clkr, 23728c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S3_CLK_SRC] = &gcc_qupv3_wrap0_s3_clk_src.clkr, 23738c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S4_CLK] = &gcc_qupv3_wrap0_s4_clk.clkr, 23748c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S4_CLK_SRC] = &gcc_qupv3_wrap0_s4_clk_src.clkr, 23758c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S5_CLK] = &gcc_qupv3_wrap0_s5_clk.clkr, 23768c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP0_S5_CLK_SRC] = &gcc_qupv3_wrap0_s5_clk_src.clkr, 23778c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_CORE_2X_CLK] = &gcc_qupv3_wrap1_core_2x_clk.clkr, 23788c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_CORE_CLK] = &gcc_qupv3_wrap1_core_clk.clkr, 23798c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S0_CLK] = &gcc_qupv3_wrap1_s0_clk.clkr, 23808c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S0_CLK_SRC] = &gcc_qupv3_wrap1_s0_clk_src.clkr, 23818c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S1_CLK] = &gcc_qupv3_wrap1_s1_clk.clkr, 23828c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S1_CLK_SRC] = &gcc_qupv3_wrap1_s1_clk_src.clkr, 23838c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S2_CLK] = &gcc_qupv3_wrap1_s2_clk.clkr, 23848c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S2_CLK_SRC] = &gcc_qupv3_wrap1_s2_clk_src.clkr, 23858c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S3_CLK] = &gcc_qupv3_wrap1_s3_clk.clkr, 23868c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S3_CLK_SRC] = &gcc_qupv3_wrap1_s3_clk_src.clkr, 23878c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S4_CLK] = &gcc_qupv3_wrap1_s4_clk.clkr, 23888c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S4_CLK_SRC] = &gcc_qupv3_wrap1_s4_clk_src.clkr, 23898c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S5_CLK] = &gcc_qupv3_wrap1_s5_clk.clkr, 23908c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP1_S5_CLK_SRC] = &gcc_qupv3_wrap1_s5_clk_src.clkr, 23918c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP_0_M_AHB_CLK] = &gcc_qupv3_wrap_0_m_ahb_clk.clkr, 23928c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP_0_S_AHB_CLK] = &gcc_qupv3_wrap_0_s_ahb_clk.clkr, 23938c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP_1_M_AHB_CLK] = &gcc_qupv3_wrap_1_m_ahb_clk.clkr, 23948c2ecf20Sopenharmony_ci [GCC_QUPV3_WRAP_1_S_AHB_CLK] = &gcc_qupv3_wrap_1_s_ahb_clk.clkr, 23958c2ecf20Sopenharmony_ci [GCC_SDCC1_AHB_CLK] = &gcc_sdcc1_ahb_clk.clkr, 23968c2ecf20Sopenharmony_ci [GCC_SDCC1_APPS_CLK] = &gcc_sdcc1_apps_clk.clkr, 23978c2ecf20Sopenharmony_ci [GCC_SDCC1_APPS_CLK_SRC] = &gcc_sdcc1_apps_clk_src.clkr, 23988c2ecf20Sopenharmony_ci [GCC_SDCC1_ICE_CORE_CLK] = &gcc_sdcc1_ice_core_clk.clkr, 23998c2ecf20Sopenharmony_ci [GCC_SDCC1_ICE_CORE_CLK_SRC] = &gcc_sdcc1_ice_core_clk_src.clkr, 24008c2ecf20Sopenharmony_ci [GCC_SDCC2_AHB_CLK] = &gcc_sdcc2_ahb_clk.clkr, 24018c2ecf20Sopenharmony_ci [GCC_SDCC2_APPS_CLK] = &gcc_sdcc2_apps_clk.clkr, 24028c2ecf20Sopenharmony_ci [GCC_SDCC2_APPS_CLK_SRC] = &gcc_sdcc2_apps_clk_src.clkr, 24038c2ecf20Sopenharmony_ci [GCC_SYS_NOC_CPUSS_AHB_CLK] = &gcc_sys_noc_cpuss_ahb_clk.clkr, 24048c2ecf20Sopenharmony_ci [GCC_UFS_MEM_CLKREF_CLK] = &gcc_ufs_mem_clkref_clk.clkr, 24058c2ecf20Sopenharmony_ci [GCC_UFS_PHY_AHB_CLK] = &gcc_ufs_phy_ahb_clk.clkr, 24068c2ecf20Sopenharmony_ci [GCC_UFS_PHY_AXI_CLK] = &gcc_ufs_phy_axi_clk.clkr, 24078c2ecf20Sopenharmony_ci [GCC_UFS_PHY_AXI_CLK_SRC] = &gcc_ufs_phy_axi_clk_src.clkr, 24088c2ecf20Sopenharmony_ci [GCC_UFS_PHY_ICE_CORE_CLK] = &gcc_ufs_phy_ice_core_clk.clkr, 24098c2ecf20Sopenharmony_ci [GCC_UFS_PHY_ICE_CORE_CLK_SRC] = &gcc_ufs_phy_ice_core_clk_src.clkr, 24108c2ecf20Sopenharmony_ci [GCC_UFS_PHY_PHY_AUX_CLK] = &gcc_ufs_phy_phy_aux_clk.clkr, 24118c2ecf20Sopenharmony_ci [GCC_UFS_PHY_PHY_AUX_CLK_SRC] = &gcc_ufs_phy_phy_aux_clk_src.clkr, 24128c2ecf20Sopenharmony_ci [GCC_UFS_PHY_RX_SYMBOL_0_CLK] = &gcc_ufs_phy_rx_symbol_0_clk.clkr, 24138c2ecf20Sopenharmony_ci [GCC_UFS_PHY_TX_SYMBOL_0_CLK] = &gcc_ufs_phy_tx_symbol_0_clk.clkr, 24148c2ecf20Sopenharmony_ci [GCC_UFS_PHY_UNIPRO_CORE_CLK] = &gcc_ufs_phy_unipro_core_clk.clkr, 24158c2ecf20Sopenharmony_ci [GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC] = 24168c2ecf20Sopenharmony_ci &gcc_ufs_phy_unipro_core_clk_src.clkr, 24178c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_MASTER_CLK] = &gcc_usb30_prim_master_clk.clkr, 24188c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_MASTER_CLK_SRC] = &gcc_usb30_prim_master_clk_src.clkr, 24198c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_MOCK_UTMI_CLK] = &gcc_usb30_prim_mock_utmi_clk.clkr, 24208c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC] = 24218c2ecf20Sopenharmony_ci &gcc_usb30_prim_mock_utmi_clk_src.clkr, 24228c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_SLEEP_CLK] = &gcc_usb30_prim_sleep_clk.clkr, 24238c2ecf20Sopenharmony_ci [GCC_USB3_PRIM_CLKREF_CLK] = &gcc_usb3_prim_clkref_clk.clkr, 24248c2ecf20Sopenharmony_ci [GCC_USB3_PRIM_PHY_AUX_CLK] = &gcc_usb3_prim_phy_aux_clk.clkr, 24258c2ecf20Sopenharmony_ci [GCC_USB3_PRIM_PHY_AUX_CLK_SRC] = &gcc_usb3_prim_phy_aux_clk_src.clkr, 24268c2ecf20Sopenharmony_ci [GCC_USB3_PRIM_PHY_COM_AUX_CLK] = &gcc_usb3_prim_phy_com_aux_clk.clkr, 24278c2ecf20Sopenharmony_ci [GCC_USB3_PRIM_PHY_PIPE_CLK] = &gcc_usb3_prim_phy_pipe_clk.clkr, 24288c2ecf20Sopenharmony_ci [GCC_USB_PHY_CFG_AHB2PHY_CLK] = &gcc_usb_phy_cfg_ahb2phy_clk.clkr, 24298c2ecf20Sopenharmony_ci [GCC_VIDEO_AXI_CLK] = &gcc_video_axi_clk.clkr, 24308c2ecf20Sopenharmony_ci [GCC_VIDEO_GPLL0_DIV_CLK_SRC] = &gcc_video_gpll0_div_clk_src.clkr, 24318c2ecf20Sopenharmony_ci [GCC_VIDEO_THROTTLE_AXI_CLK] = &gcc_video_throttle_axi_clk.clkr, 24328c2ecf20Sopenharmony_ci [GCC_VIDEO_XO_CLK] = &gcc_video_xo_clk.clkr, 24338c2ecf20Sopenharmony_ci [GPLL0] = &gpll0.clkr, 24348c2ecf20Sopenharmony_ci [GPLL0_OUT_EVEN] = &gpll0_out_even.clkr, 24358c2ecf20Sopenharmony_ci [GPLL6] = &gpll6.clkr, 24368c2ecf20Sopenharmony_ci [GPLL7] = &gpll7.clkr, 24378c2ecf20Sopenharmony_ci [GPLL4] = &gpll4.clkr, 24388c2ecf20Sopenharmony_ci [GPLL1] = &gpll1.clkr, 24398c2ecf20Sopenharmony_ci [GCC_MSS_CFG_AHB_CLK] = &gcc_mss_cfg_ahb_clk.clkr, 24408c2ecf20Sopenharmony_ci [GCC_MSS_MFAB_AXIS_CLK] = &gcc_mss_mfab_axis_clk.clkr, 24418c2ecf20Sopenharmony_ci [GCC_MSS_NAV_AXI_CLK] = &gcc_mss_nav_axi_clk.clkr, 24428c2ecf20Sopenharmony_ci [GCC_MSS_Q6_MEMNOC_AXI_CLK] = &gcc_mss_q6_memnoc_axi_clk.clkr, 24438c2ecf20Sopenharmony_ci [GCC_MSS_SNOC_AXI_CLK] = &gcc_mss_snoc_axi_clk.clkr, 24448c2ecf20Sopenharmony_ci [GCC_SEC_CTRL_CLK_SRC] = &gcc_sec_ctrl_clk_src.clkr, 24458c2ecf20Sopenharmony_ci [GCC_LPASS_CFG_NOC_SWAY_CLK] = &gcc_lpass_cfg_noc_sway_clk.clkr, 24468c2ecf20Sopenharmony_ci}; 24478c2ecf20Sopenharmony_ci 24488c2ecf20Sopenharmony_cistatic const struct qcom_reset_map gcc_sc7180_resets[] = { 24498c2ecf20Sopenharmony_ci [GCC_QUSB2PHY_PRIM_BCR] = { 0x26000 }, 24508c2ecf20Sopenharmony_ci [GCC_QUSB2PHY_SEC_BCR] = { 0x26004 }, 24518c2ecf20Sopenharmony_ci [GCC_UFS_PHY_BCR] = { 0x77000 }, 24528c2ecf20Sopenharmony_ci [GCC_USB30_PRIM_BCR] = { 0xf000 }, 24538c2ecf20Sopenharmony_ci [GCC_USB3_PHY_PRIM_BCR] = { 0x50000 }, 24548c2ecf20Sopenharmony_ci [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 }, 24558c2ecf20Sopenharmony_ci [GCC_USB3_PHY_SEC_BCR] = { 0x5000c }, 24568c2ecf20Sopenharmony_ci [GCC_USB3_DP_PHY_PRIM_BCR] = { 0x50008 }, 24578c2ecf20Sopenharmony_ci [GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 }, 24588c2ecf20Sopenharmony_ci [GCC_USB3_DP_PHY_SEC_BCR] = { 0x50014 }, 24598c2ecf20Sopenharmony_ci [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, 24608c2ecf20Sopenharmony_ci}; 24618c2ecf20Sopenharmony_ci 24628c2ecf20Sopenharmony_cistatic struct clk_rcg_dfs_data gcc_dfs_clocks[] = { 24638c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s0_clk_src), 24648c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s1_clk_src), 24658c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s2_clk_src), 24668c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s3_clk_src), 24678c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s4_clk_src), 24688c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap0_s5_clk_src), 24698c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s0_clk_src), 24708c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s1_clk_src), 24718c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s2_clk_src), 24728c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s3_clk_src), 24738c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s4_clk_src), 24748c2ecf20Sopenharmony_ci DEFINE_RCG_DFS(gcc_qupv3_wrap1_s5_clk_src), 24758c2ecf20Sopenharmony_ci}; 24768c2ecf20Sopenharmony_ci 24778c2ecf20Sopenharmony_cistatic const struct regmap_config gcc_sc7180_regmap_config = { 24788c2ecf20Sopenharmony_ci .reg_bits = 32, 24798c2ecf20Sopenharmony_ci .reg_stride = 4, 24808c2ecf20Sopenharmony_ci .val_bits = 32, 24818c2ecf20Sopenharmony_ci .max_register = 0x18208c, 24828c2ecf20Sopenharmony_ci .fast_io = true, 24838c2ecf20Sopenharmony_ci}; 24848c2ecf20Sopenharmony_ci 24858c2ecf20Sopenharmony_cistatic const struct qcom_cc_desc gcc_sc7180_desc = { 24868c2ecf20Sopenharmony_ci .config = &gcc_sc7180_regmap_config, 24878c2ecf20Sopenharmony_ci .clk_hws = gcc_sc7180_hws, 24888c2ecf20Sopenharmony_ci .num_clk_hws = ARRAY_SIZE(gcc_sc7180_hws), 24898c2ecf20Sopenharmony_ci .clks = gcc_sc7180_clocks, 24908c2ecf20Sopenharmony_ci .num_clks = ARRAY_SIZE(gcc_sc7180_clocks), 24918c2ecf20Sopenharmony_ci .resets = gcc_sc7180_resets, 24928c2ecf20Sopenharmony_ci .num_resets = ARRAY_SIZE(gcc_sc7180_resets), 24938c2ecf20Sopenharmony_ci .gdscs = gcc_sc7180_gdscs, 24948c2ecf20Sopenharmony_ci .num_gdscs = ARRAY_SIZE(gcc_sc7180_gdscs), 24958c2ecf20Sopenharmony_ci}; 24968c2ecf20Sopenharmony_ci 24978c2ecf20Sopenharmony_cistatic const struct of_device_id gcc_sc7180_match_table[] = { 24988c2ecf20Sopenharmony_ci { .compatible = "qcom,gcc-sc7180" }, 24998c2ecf20Sopenharmony_ci { } 25008c2ecf20Sopenharmony_ci}; 25018c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, gcc_sc7180_match_table); 25028c2ecf20Sopenharmony_ci 25038c2ecf20Sopenharmony_cistatic int gcc_sc7180_probe(struct platform_device *pdev) 25048c2ecf20Sopenharmony_ci{ 25058c2ecf20Sopenharmony_ci struct regmap *regmap; 25068c2ecf20Sopenharmony_ci int ret; 25078c2ecf20Sopenharmony_ci 25088c2ecf20Sopenharmony_ci regmap = qcom_cc_map(pdev, &gcc_sc7180_desc); 25098c2ecf20Sopenharmony_ci if (IS_ERR(regmap)) 25108c2ecf20Sopenharmony_ci return PTR_ERR(regmap); 25118c2ecf20Sopenharmony_ci 25128c2ecf20Sopenharmony_ci /* 25138c2ecf20Sopenharmony_ci * Disable the GPLL0 active input to MM blocks, NPU 25148c2ecf20Sopenharmony_ci * and GPU via MISC registers. 25158c2ecf20Sopenharmony_ci */ 25168c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x09ffc, 0x3, 0x3); 25178c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x4d110, 0x3, 0x3); 25188c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x71028, 0x3, 0x3); 25198c2ecf20Sopenharmony_ci 25208c2ecf20Sopenharmony_ci /* 25218c2ecf20Sopenharmony_ci * Keep the clocks always-ON 25228c2ecf20Sopenharmony_ci * GCC_CPUSS_GNOC_CLK, GCC_VIDEO_AHB_CLK, GCC_DISP_AHB_CLK 25238c2ecf20Sopenharmony_ci * GCC_GPU_CFG_AHB_CLK 25248c2ecf20Sopenharmony_ci */ 25258c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x48004, BIT(0), BIT(0)); 25268c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x0b004, BIT(0), BIT(0)); 25278c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x0b00c, BIT(0), BIT(0)); 25288c2ecf20Sopenharmony_ci regmap_update_bits(regmap, 0x71004, BIT(0), BIT(0)); 25298c2ecf20Sopenharmony_ci 25308c2ecf20Sopenharmony_ci ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, 25318c2ecf20Sopenharmony_ci ARRAY_SIZE(gcc_dfs_clocks)); 25328c2ecf20Sopenharmony_ci if (ret) 25338c2ecf20Sopenharmony_ci return ret; 25348c2ecf20Sopenharmony_ci 25358c2ecf20Sopenharmony_ci return qcom_cc_really_probe(pdev, &gcc_sc7180_desc, regmap); 25368c2ecf20Sopenharmony_ci} 25378c2ecf20Sopenharmony_ci 25388c2ecf20Sopenharmony_cistatic struct platform_driver gcc_sc7180_driver = { 25398c2ecf20Sopenharmony_ci .probe = gcc_sc7180_probe, 25408c2ecf20Sopenharmony_ci .driver = { 25418c2ecf20Sopenharmony_ci .name = "gcc-sc7180", 25428c2ecf20Sopenharmony_ci .of_match_table = gcc_sc7180_match_table, 25438c2ecf20Sopenharmony_ci }, 25448c2ecf20Sopenharmony_ci}; 25458c2ecf20Sopenharmony_ci 25468c2ecf20Sopenharmony_cistatic int __init gcc_sc7180_init(void) 25478c2ecf20Sopenharmony_ci{ 25488c2ecf20Sopenharmony_ci return platform_driver_register(&gcc_sc7180_driver); 25498c2ecf20Sopenharmony_ci} 25508c2ecf20Sopenharmony_cicore_initcall(gcc_sc7180_init); 25518c2ecf20Sopenharmony_ci 25528c2ecf20Sopenharmony_cistatic void __exit gcc_sc7180_exit(void) 25538c2ecf20Sopenharmony_ci{ 25548c2ecf20Sopenharmony_ci platform_driver_unregister(&gcc_sc7180_driver); 25558c2ecf20Sopenharmony_ci} 25568c2ecf20Sopenharmony_cimodule_exit(gcc_sc7180_exit); 25578c2ecf20Sopenharmony_ci 25588c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("QTI GCC SC7180 Driver"); 25598c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 2560