18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2018, The Linux Foundation. All rights reserved.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/kernel.h>
78c2ecf20Sopenharmony_ci#include <linux/platform_device.h>
88c2ecf20Sopenharmony_ci#include <linux/module.h>
98c2ecf20Sopenharmony_ci#include <linux/of.h>
108c2ecf20Sopenharmony_ci#include <linux/clk-provider.h>
118c2ecf20Sopenharmony_ci#include <linux/regmap.h>
128c2ecf20Sopenharmony_ci#include <linux/reset-controller.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <dt-bindings/clock/qcom,gcc-qcs404.h>
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#include "clk-alpha-pll.h"
178c2ecf20Sopenharmony_ci#include "clk-branch.h"
188c2ecf20Sopenharmony_ci#include "clk-pll.h"
198c2ecf20Sopenharmony_ci#include "clk-rcg.h"
208c2ecf20Sopenharmony_ci#include "clk-regmap.h"
218c2ecf20Sopenharmony_ci#include "common.h"
228c2ecf20Sopenharmony_ci#include "reset.h"
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_cienum {
258c2ecf20Sopenharmony_ci	P_CORE_BI_PLL_TEST_SE,
268c2ecf20Sopenharmony_ci	P_DSI0_PHY_PLL_OUT_BYTECLK,
278c2ecf20Sopenharmony_ci	P_DSI0_PHY_PLL_OUT_DSICLK,
288c2ecf20Sopenharmony_ci	P_GPLL0_OUT_MAIN,
298c2ecf20Sopenharmony_ci	P_GPLL1_OUT_MAIN,
308c2ecf20Sopenharmony_ci	P_GPLL3_OUT_MAIN,
318c2ecf20Sopenharmony_ci	P_GPLL4_OUT_MAIN,
328c2ecf20Sopenharmony_ci	P_GPLL6_OUT_AUX,
338c2ecf20Sopenharmony_ci	P_HDMI_PHY_PLL_CLK,
348c2ecf20Sopenharmony_ci	P_PCIE_0_PIPE_CLK,
358c2ecf20Sopenharmony_ci	P_SLEEP_CLK,
368c2ecf20Sopenharmony_ci	P_XO,
378c2ecf20Sopenharmony_ci};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_0[] = {
408c2ecf20Sopenharmony_ci	{ P_XO, 0 },
418c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
428c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
438c2ecf20Sopenharmony_ci};
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_0[] = {
468c2ecf20Sopenharmony_ci	"cxo",
478c2ecf20Sopenharmony_ci	"gpll0_out_main",
488c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
498c2ecf20Sopenharmony_ci};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_ao_0[] = {
528c2ecf20Sopenharmony_ci	"cxo",
538c2ecf20Sopenharmony_ci	"gpll0_ao_out_main",
548c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
558c2ecf20Sopenharmony_ci};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_1[] = {
588c2ecf20Sopenharmony_ci	{ P_XO, 0 },
598c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
608c2ecf20Sopenharmony_ci};
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_1[] = {
638c2ecf20Sopenharmony_ci	"cxo",
648c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
658c2ecf20Sopenharmony_ci};
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_2[] = {
688c2ecf20Sopenharmony_ci	{ P_XO, 0 },
698c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
708c2ecf20Sopenharmony_ci	{ P_GPLL6_OUT_AUX, 2 },
718c2ecf20Sopenharmony_ci	{ P_SLEEP_CLK, 6 },
728c2ecf20Sopenharmony_ci};
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_2[] = {
758c2ecf20Sopenharmony_ci	"cxo",
768c2ecf20Sopenharmony_ci	"gpll0_out_main",
778c2ecf20Sopenharmony_ci	"gpll6_out_aux",
788c2ecf20Sopenharmony_ci	"sleep_clk",
798c2ecf20Sopenharmony_ci};
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_3[] = {
828c2ecf20Sopenharmony_ci	{ P_XO, 0 },
838c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
848c2ecf20Sopenharmony_ci	{ P_GPLL6_OUT_AUX, 2 },
858c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
868c2ecf20Sopenharmony_ci};
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_3[] = {
898c2ecf20Sopenharmony_ci	"cxo",
908c2ecf20Sopenharmony_ci	"gpll0_out_main",
918c2ecf20Sopenharmony_ci	"gpll6_out_aux",
928c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
938c2ecf20Sopenharmony_ci};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_4[] = {
968c2ecf20Sopenharmony_ci	{ P_XO, 0 },
978c2ecf20Sopenharmony_ci	{ P_GPLL1_OUT_MAIN, 1 },
988c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
998c2ecf20Sopenharmony_ci};
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_4[] = {
1028c2ecf20Sopenharmony_ci	"cxo",
1038c2ecf20Sopenharmony_ci	"gpll1_out_main",
1048c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1058c2ecf20Sopenharmony_ci};
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_5[] = {
1088c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1098c2ecf20Sopenharmony_ci	{ P_DSI0_PHY_PLL_OUT_BYTECLK, 1 },
1108c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1118c2ecf20Sopenharmony_ci};
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_5[] = {
1148c2ecf20Sopenharmony_ci	"cxo",
1158c2ecf20Sopenharmony_ci	"dsi0pllbyte",
1168c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1178c2ecf20Sopenharmony_ci};
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_6[] = {
1208c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1218c2ecf20Sopenharmony_ci	{ P_DSI0_PHY_PLL_OUT_BYTECLK, 2 },
1228c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1238c2ecf20Sopenharmony_ci};
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_6[] = {
1268c2ecf20Sopenharmony_ci	"cxo",
1278c2ecf20Sopenharmony_ci	"dsi0pllbyte",
1288c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1298c2ecf20Sopenharmony_ci};
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_7[] = {
1328c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1338c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
1348c2ecf20Sopenharmony_ci	{ P_GPLL3_OUT_MAIN, 2 },
1358c2ecf20Sopenharmony_ci	{ P_GPLL6_OUT_AUX, 3 },
1368c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1378c2ecf20Sopenharmony_ci};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_7[] = {
1408c2ecf20Sopenharmony_ci	"cxo",
1418c2ecf20Sopenharmony_ci	"gpll0_out_main",
1428c2ecf20Sopenharmony_ci	"gpll3_out_main",
1438c2ecf20Sopenharmony_ci	"gpll6_out_aux",
1448c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1458c2ecf20Sopenharmony_ci};
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_8[] = {
1488c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1498c2ecf20Sopenharmony_ci	{ P_HDMI_PHY_PLL_CLK, 1 },
1508c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1518c2ecf20Sopenharmony_ci};
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_8[] = {
1548c2ecf20Sopenharmony_ci	"cxo",
1558c2ecf20Sopenharmony_ci	"hdmi_phy_pll_clk",
1568c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1578c2ecf20Sopenharmony_ci};
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_9[] = {
1608c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1618c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
1628c2ecf20Sopenharmony_ci	{ P_DSI0_PHY_PLL_OUT_DSICLK, 2 },
1638c2ecf20Sopenharmony_ci	{ P_GPLL6_OUT_AUX, 3 },
1648c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1658c2ecf20Sopenharmony_ci};
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_9[] = {
1688c2ecf20Sopenharmony_ci	"cxo",
1698c2ecf20Sopenharmony_ci	"gpll0_out_main",
1708c2ecf20Sopenharmony_ci	"dsi0pll",
1718c2ecf20Sopenharmony_ci	"gpll6_out_aux",
1728c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1738c2ecf20Sopenharmony_ci};
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_10[] = {
1768c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1778c2ecf20Sopenharmony_ci	{ P_SLEEP_CLK, 1 },
1788c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1798c2ecf20Sopenharmony_ci};
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_10[] = {
1828c2ecf20Sopenharmony_ci	"cxo",
1838c2ecf20Sopenharmony_ci	"sleep_clk",
1848c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1858c2ecf20Sopenharmony_ci};
1868c2ecf20Sopenharmony_ci
1878c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_11[] = {
1888c2ecf20Sopenharmony_ci	{ P_XO, 0 },
1898c2ecf20Sopenharmony_ci	{ P_PCIE_0_PIPE_CLK, 1 },
1908c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
1918c2ecf20Sopenharmony_ci};
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_11[] = {
1948c2ecf20Sopenharmony_ci	"cxo",
1958c2ecf20Sopenharmony_ci	"pcie_0_pipe_clk",
1968c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
1978c2ecf20Sopenharmony_ci};
1988c2ecf20Sopenharmony_ci
1998c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_12[] = {
2008c2ecf20Sopenharmony_ci	{ P_XO, 0 },
2018c2ecf20Sopenharmony_ci	{ P_DSI0_PHY_PLL_OUT_DSICLK, 1 },
2028c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
2038c2ecf20Sopenharmony_ci};
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_12[] = {
2068c2ecf20Sopenharmony_ci	"cxo",
2078c2ecf20Sopenharmony_ci	"dsi0pll",
2088c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
2098c2ecf20Sopenharmony_ci};
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_13[] = {
2128c2ecf20Sopenharmony_ci	{ P_XO, 0 },
2138c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
2148c2ecf20Sopenharmony_ci	{ P_GPLL4_OUT_MAIN, 2 },
2158c2ecf20Sopenharmony_ci	{ P_GPLL6_OUT_AUX, 3 },
2168c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
2178c2ecf20Sopenharmony_ci};
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_13[] = {
2208c2ecf20Sopenharmony_ci	"cxo",
2218c2ecf20Sopenharmony_ci	"gpll0_out_main",
2228c2ecf20Sopenharmony_ci	"gpll4_out_main",
2238c2ecf20Sopenharmony_ci	"gpll6_out_aux",
2248c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
2258c2ecf20Sopenharmony_ci};
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_14[] = {
2288c2ecf20Sopenharmony_ci	{ P_XO, 0 },
2298c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
2308c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
2318c2ecf20Sopenharmony_ci};
2328c2ecf20Sopenharmony_ci
2338c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_14[] = {
2348c2ecf20Sopenharmony_ci	"cxo",
2358c2ecf20Sopenharmony_ci	"gpll0_out_main",
2368c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
2378c2ecf20Sopenharmony_ci};
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_15[] = {
2408c2ecf20Sopenharmony_ci	{ P_XO, 0 },
2418c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
2428c2ecf20Sopenharmony_ci};
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_15[] = {
2458c2ecf20Sopenharmony_ci	"cxo",
2468c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
2478c2ecf20Sopenharmony_ci};
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_cistatic const struct parent_map gcc_parent_map_16[] = {
2508c2ecf20Sopenharmony_ci	{ P_XO, 0 },
2518c2ecf20Sopenharmony_ci	{ P_GPLL0_OUT_MAIN, 1 },
2528c2ecf20Sopenharmony_ci	{ P_CORE_BI_PLL_TEST_SE, 7 },
2538c2ecf20Sopenharmony_ci};
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_cistatic const char * const gcc_parent_names_16[] = {
2568c2ecf20Sopenharmony_ci	"cxo",
2578c2ecf20Sopenharmony_ci	"gpll0_out_main",
2588c2ecf20Sopenharmony_ci	"core_bi_pll_test_se",
2598c2ecf20Sopenharmony_ci};
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_cistatic struct clk_fixed_factor cxo = {
2628c2ecf20Sopenharmony_ci	.mult = 1,
2638c2ecf20Sopenharmony_ci	.div = 1,
2648c2ecf20Sopenharmony_ci	.hw.init = &(struct clk_init_data){
2658c2ecf20Sopenharmony_ci		.name = "cxo",
2668c2ecf20Sopenharmony_ci		.parent_names = (const char *[]){ "xo-board" },
2678c2ecf20Sopenharmony_ci		.num_parents = 1,
2688c2ecf20Sopenharmony_ci		.ops = &clk_fixed_factor_ops,
2698c2ecf20Sopenharmony_ci	},
2708c2ecf20Sopenharmony_ci};
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll0_sleep_clk_src = {
2738c2ecf20Sopenharmony_ci	.offset = 0x21000,
2748c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
2758c2ecf20Sopenharmony_ci	.clkr = {
2768c2ecf20Sopenharmony_ci		.enable_reg = 0x45008,
2778c2ecf20Sopenharmony_ci		.enable_mask = BIT(23),
2788c2ecf20Sopenharmony_ci		.enable_is_inverted = true,
2798c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
2808c2ecf20Sopenharmony_ci			.name = "gpll0_sleep_clk_src",
2818c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){ "cxo" },
2828c2ecf20Sopenharmony_ci			.num_parents = 1,
2838c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_ops,
2848c2ecf20Sopenharmony_ci		},
2858c2ecf20Sopenharmony_ci	},
2868c2ecf20Sopenharmony_ci};
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll0_out_main = {
2898c2ecf20Sopenharmony_ci	.offset = 0x21000,
2908c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
2918c2ecf20Sopenharmony_ci	.flags = SUPPORTS_FSM_MODE,
2928c2ecf20Sopenharmony_ci	.clkr = {
2938c2ecf20Sopenharmony_ci		.enable_reg = 0x45000,
2948c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
2958c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
2968c2ecf20Sopenharmony_ci			.name = "gpll0_out_main",
2978c2ecf20Sopenharmony_ci			.parent_names = (const char *[])
2988c2ecf20Sopenharmony_ci					{ "cxo" },
2998c2ecf20Sopenharmony_ci			.num_parents = 1,
3008c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_ops,
3018c2ecf20Sopenharmony_ci		},
3028c2ecf20Sopenharmony_ci	},
3038c2ecf20Sopenharmony_ci};
3048c2ecf20Sopenharmony_ci
3058c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll0_ao_out_main = {
3068c2ecf20Sopenharmony_ci	.offset = 0x21000,
3078c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
3088c2ecf20Sopenharmony_ci	.flags = SUPPORTS_FSM_MODE,
3098c2ecf20Sopenharmony_ci	.clkr = {
3108c2ecf20Sopenharmony_ci		.enable_reg = 0x45000,
3118c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
3128c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
3138c2ecf20Sopenharmony_ci			.name = "gpll0_ao_out_main",
3148c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){ "cxo" },
3158c2ecf20Sopenharmony_ci			.num_parents = 1,
3168c2ecf20Sopenharmony_ci			.flags = CLK_IS_CRITICAL,
3178c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_fixed_ops,
3188c2ecf20Sopenharmony_ci		},
3198c2ecf20Sopenharmony_ci	},
3208c2ecf20Sopenharmony_ci};
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll1_out_main = {
3238c2ecf20Sopenharmony_ci	.offset = 0x20000,
3248c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
3258c2ecf20Sopenharmony_ci	.clkr = {
3268c2ecf20Sopenharmony_ci		.enable_reg = 0x45000,
3278c2ecf20Sopenharmony_ci		.enable_mask = BIT(1),
3288c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
3298c2ecf20Sopenharmony_ci			.name = "gpll1_out_main",
3308c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){ "cxo" },
3318c2ecf20Sopenharmony_ci			.num_parents = 1,
3328c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_ops,
3338c2ecf20Sopenharmony_ci		},
3348c2ecf20Sopenharmony_ci	},
3358c2ecf20Sopenharmony_ci};
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_ci/* 930MHz configuration */
3388c2ecf20Sopenharmony_cistatic const struct alpha_pll_config gpll3_config = {
3398c2ecf20Sopenharmony_ci	.l = 48,
3408c2ecf20Sopenharmony_ci	.alpha = 0x0,
3418c2ecf20Sopenharmony_ci	.alpha_en_mask = BIT(24),
3428c2ecf20Sopenharmony_ci	.post_div_mask = 0xf << 8,
3438c2ecf20Sopenharmony_ci	.post_div_val = 0x1 << 8,
3448c2ecf20Sopenharmony_ci	.vco_mask = 0x3 << 20,
3458c2ecf20Sopenharmony_ci	.main_output_mask = 0x1,
3468c2ecf20Sopenharmony_ci	.config_ctl_val = 0x4001055b,
3478c2ecf20Sopenharmony_ci};
3488c2ecf20Sopenharmony_ci
3498c2ecf20Sopenharmony_cistatic const struct pll_vco gpll3_vco[] = {
3508c2ecf20Sopenharmony_ci	{ 700000000, 1400000000, 0 },
3518c2ecf20Sopenharmony_ci};
3528c2ecf20Sopenharmony_ci
3538c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll3_out_main = {
3548c2ecf20Sopenharmony_ci	.offset = 0x22000,
3558c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
3568c2ecf20Sopenharmony_ci	.vco_table = gpll3_vco,
3578c2ecf20Sopenharmony_ci	.num_vco = ARRAY_SIZE(gpll3_vco),
3588c2ecf20Sopenharmony_ci	.clkr = {
3598c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
3608c2ecf20Sopenharmony_ci			.name = "gpll3_out_main",
3618c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){ "cxo" },
3628c2ecf20Sopenharmony_ci			.num_parents = 1,
3638c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_ops,
3648c2ecf20Sopenharmony_ci		},
3658c2ecf20Sopenharmony_ci	},
3668c2ecf20Sopenharmony_ci};
3678c2ecf20Sopenharmony_ci
3688c2ecf20Sopenharmony_cistatic struct clk_alpha_pll gpll4_out_main = {
3698c2ecf20Sopenharmony_ci	.offset = 0x24000,
3708c2ecf20Sopenharmony_ci	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
3718c2ecf20Sopenharmony_ci	.clkr = {
3728c2ecf20Sopenharmony_ci		.enable_reg = 0x45000,
3738c2ecf20Sopenharmony_ci		.enable_mask = BIT(5),
3748c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
3758c2ecf20Sopenharmony_ci			.name = "gpll4_out_main",
3768c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){ "cxo" },
3778c2ecf20Sopenharmony_ci			.num_parents = 1,
3788c2ecf20Sopenharmony_ci			.ops = &clk_alpha_pll_ops,
3798c2ecf20Sopenharmony_ci		},
3808c2ecf20Sopenharmony_ci	},
3818c2ecf20Sopenharmony_ci};
3828c2ecf20Sopenharmony_ci
3838c2ecf20Sopenharmony_cistatic struct clk_pll gpll6 = {
3848c2ecf20Sopenharmony_ci	.l_reg = 0x37004,
3858c2ecf20Sopenharmony_ci	.m_reg = 0x37008,
3868c2ecf20Sopenharmony_ci	.n_reg = 0x3700C,
3878c2ecf20Sopenharmony_ci	.config_reg = 0x37014,
3888c2ecf20Sopenharmony_ci	.mode_reg = 0x37000,
3898c2ecf20Sopenharmony_ci	.status_reg = 0x3701C,
3908c2ecf20Sopenharmony_ci	.status_bit = 17,
3918c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
3928c2ecf20Sopenharmony_ci		.name = "gpll6",
3938c2ecf20Sopenharmony_ci		.parent_names = (const char *[]){ "cxo" },
3948c2ecf20Sopenharmony_ci		.num_parents = 1,
3958c2ecf20Sopenharmony_ci		.ops = &clk_pll_ops,
3968c2ecf20Sopenharmony_ci	},
3978c2ecf20Sopenharmony_ci};
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_cistatic struct clk_regmap gpll6_out_aux = {
4008c2ecf20Sopenharmony_ci	.enable_reg = 0x45000,
4018c2ecf20Sopenharmony_ci	.enable_mask = BIT(7),
4028c2ecf20Sopenharmony_ci	.hw.init = &(struct clk_init_data){
4038c2ecf20Sopenharmony_ci		.name = "gpll6_out_aux",
4048c2ecf20Sopenharmony_ci		.parent_names = (const char *[]){ "gpll6" },
4058c2ecf20Sopenharmony_ci		.num_parents = 1,
4068c2ecf20Sopenharmony_ci		.ops = &clk_pll_vote_ops,
4078c2ecf20Sopenharmony_ci	},
4088c2ecf20Sopenharmony_ci};
4098c2ecf20Sopenharmony_ci
4108c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_apss_ahb_clk_src[] = {
4118c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
4128c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
4138c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
4148c2ecf20Sopenharmony_ci	F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
4158c2ecf20Sopenharmony_ci	{ }
4168c2ecf20Sopenharmony_ci};
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_cistatic struct clk_rcg2 apss_ahb_clk_src = {
4198c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x46000,
4208c2ecf20Sopenharmony_ci	.mnd_width = 0,
4218c2ecf20Sopenharmony_ci	.hid_width = 5,
4228c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
4238c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_apss_ahb_clk_src,
4248c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
4258c2ecf20Sopenharmony_ci		.name = "apss_ahb_clk_src",
4268c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_ao_0,
4278c2ecf20Sopenharmony_ci		.num_parents = 3,
4288c2ecf20Sopenharmony_ci		.flags = CLK_IS_CRITICAL,
4298c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
4308c2ecf20Sopenharmony_ci	},
4318c2ecf20Sopenharmony_ci};
4328c2ecf20Sopenharmony_ci
4338c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_blsp1_qup0_i2c_apps_clk_src[] = {
4348c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
4358c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
4368c2ecf20Sopenharmony_ci	{ }
4378c2ecf20Sopenharmony_ci};
4388c2ecf20Sopenharmony_ci
4398c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup0_i2c_apps_clk_src = {
4408c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x602c,
4418c2ecf20Sopenharmony_ci	.mnd_width = 0,
4428c2ecf20Sopenharmony_ci	.hid_width = 5,
4438c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
4448c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
4458c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
4468c2ecf20Sopenharmony_ci		.name = "blsp1_qup0_i2c_apps_clk_src",
4478c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
4488c2ecf20Sopenharmony_ci		.num_parents = 3,
4498c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
4508c2ecf20Sopenharmony_ci	},
4518c2ecf20Sopenharmony_ci};
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_blsp1_qup0_spi_apps_clk_src[] = {
4548c2ecf20Sopenharmony_ci	F(960000, P_XO, 10, 1, 2),
4558c2ecf20Sopenharmony_ci	F(4800000, P_XO, 4, 0, 0),
4568c2ecf20Sopenharmony_ci	F(9600000, P_XO, 2, 0, 0),
4578c2ecf20Sopenharmony_ci	F(16000000, P_GPLL0_OUT_MAIN, 10, 1, 5),
4588c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
4598c2ecf20Sopenharmony_ci	F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
4608c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
4618c2ecf20Sopenharmony_ci	{ }
4628c2ecf20Sopenharmony_ci};
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup0_spi_apps_clk_src = {
4658c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x6034,
4668c2ecf20Sopenharmony_ci	.mnd_width = 8,
4678c2ecf20Sopenharmony_ci	.hid_width = 5,
4688c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
4698c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src,
4708c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
4718c2ecf20Sopenharmony_ci		.name = "blsp1_qup0_spi_apps_clk_src",
4728c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
4738c2ecf20Sopenharmony_ci		.num_parents = 3,
4748c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
4758c2ecf20Sopenharmony_ci	},
4768c2ecf20Sopenharmony_ci};
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = {
4798c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x200c,
4808c2ecf20Sopenharmony_ci	.mnd_width = 0,
4818c2ecf20Sopenharmony_ci	.hid_width = 5,
4828c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
4838c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
4848c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
4858c2ecf20Sopenharmony_ci		.name = "blsp1_qup1_i2c_apps_clk_src",
4868c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
4878c2ecf20Sopenharmony_ci		.num_parents = 3,
4888c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
4898c2ecf20Sopenharmony_ci	},
4908c2ecf20Sopenharmony_ci};
4918c2ecf20Sopenharmony_ci
4928c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] = {
4938c2ecf20Sopenharmony_ci	F(960000,   P_XO, 10, 1, 2),
4948c2ecf20Sopenharmony_ci	F(4800000,  P_XO, 4, 0, 0),
4958c2ecf20Sopenharmony_ci	F(9600000,  P_XO, 2, 0, 0),
4968c2ecf20Sopenharmony_ci	F(10480000, P_GPLL0_OUT_MAIN, 1, 3, 229),
4978c2ecf20Sopenharmony_ci	F(16000000, P_GPLL0_OUT_MAIN, 10, 1, 5),
4988c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
4998c2ecf20Sopenharmony_ci	F(20961000, P_GPLL0_OUT_MAIN, 1, 6, 229),
5008c2ecf20Sopenharmony_ci	{ }
5018c2ecf20Sopenharmony_ci};
5028c2ecf20Sopenharmony_ci
5038c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup1_spi_apps_clk_src = {
5048c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x2024,
5058c2ecf20Sopenharmony_ci	.mnd_width = 8,
5068c2ecf20Sopenharmony_ci	.hid_width = 5,
5078c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5088c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
5098c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5108c2ecf20Sopenharmony_ci		.name = "blsp1_qup1_spi_apps_clk_src",
5118c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5128c2ecf20Sopenharmony_ci		.num_parents = 3,
5138c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5148c2ecf20Sopenharmony_ci	},
5158c2ecf20Sopenharmony_ci};
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src = {
5188c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3000,
5198c2ecf20Sopenharmony_ci	.mnd_width = 0,
5208c2ecf20Sopenharmony_ci	.hid_width = 5,
5218c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5228c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
5238c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5248c2ecf20Sopenharmony_ci		.name = "blsp1_qup2_i2c_apps_clk_src",
5258c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5268c2ecf20Sopenharmony_ci		.num_parents = 3,
5278c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5288c2ecf20Sopenharmony_ci	},
5298c2ecf20Sopenharmony_ci};
5308c2ecf20Sopenharmony_ci
5318c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_blsp1_qup2_spi_apps_clk_src[] = {
5328c2ecf20Sopenharmony_ci	F(960000,   P_XO, 10, 1, 2),
5338c2ecf20Sopenharmony_ci	F(4800000,  P_XO, 4, 0, 0),
5348c2ecf20Sopenharmony_ci	F(9600000,  P_XO, 2, 0, 0),
5358c2ecf20Sopenharmony_ci	F(15000000, P_GPLL0_OUT_MAIN, 1,  3, 160),
5368c2ecf20Sopenharmony_ci	F(16000000, P_GPLL0_OUT_MAIN, 10, 1, 5),
5378c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
5388c2ecf20Sopenharmony_ci	F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
5398c2ecf20Sopenharmony_ci	F(30000000, P_GPLL0_OUT_MAIN, 1,  3, 80),
5408c2ecf20Sopenharmony_ci	{ }
5418c2ecf20Sopenharmony_ci};
5428c2ecf20Sopenharmony_ci
5438c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup2_spi_apps_clk_src = {
5448c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3014,
5458c2ecf20Sopenharmony_ci	.mnd_width = 8,
5468c2ecf20Sopenharmony_ci	.hid_width = 5,
5478c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5488c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup2_spi_apps_clk_src,
5498c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5508c2ecf20Sopenharmony_ci		.name = "blsp1_qup2_spi_apps_clk_src",
5518c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5528c2ecf20Sopenharmony_ci		.num_parents = 3,
5538c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5548c2ecf20Sopenharmony_ci	},
5558c2ecf20Sopenharmony_ci};
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src = {
5588c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4000,
5598c2ecf20Sopenharmony_ci	.mnd_width = 0,
5608c2ecf20Sopenharmony_ci	.hid_width = 5,
5618c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5628c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
5638c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5648c2ecf20Sopenharmony_ci		.name = "blsp1_qup3_i2c_apps_clk_src",
5658c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5668c2ecf20Sopenharmony_ci		.num_parents = 3,
5678c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5688c2ecf20Sopenharmony_ci	},
5698c2ecf20Sopenharmony_ci};
5708c2ecf20Sopenharmony_ci
5718c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup3_spi_apps_clk_src = {
5728c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4024,
5738c2ecf20Sopenharmony_ci	.mnd_width = 8,
5748c2ecf20Sopenharmony_ci	.hid_width = 5,
5758c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5768c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src,
5778c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5788c2ecf20Sopenharmony_ci		.name = "blsp1_qup3_spi_apps_clk_src",
5798c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5808c2ecf20Sopenharmony_ci		.num_parents = 3,
5818c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5828c2ecf20Sopenharmony_ci	},
5838c2ecf20Sopenharmony_ci};
5848c2ecf20Sopenharmony_ci
5858c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src = {
5868c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x5000,
5878c2ecf20Sopenharmony_ci	.mnd_width = 0,
5888c2ecf20Sopenharmony_ci	.hid_width = 5,
5898c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
5908c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
5918c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
5928c2ecf20Sopenharmony_ci		.name = "blsp1_qup4_i2c_apps_clk_src",
5938c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
5948c2ecf20Sopenharmony_ci		.num_parents = 3,
5958c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
5968c2ecf20Sopenharmony_ci	},
5978c2ecf20Sopenharmony_ci};
5988c2ecf20Sopenharmony_ci
5998c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_qup4_spi_apps_clk_src = {
6008c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x5024,
6018c2ecf20Sopenharmony_ci	.mnd_width = 8,
6028c2ecf20Sopenharmony_ci	.hid_width = 5,
6038c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6048c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src,
6058c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6068c2ecf20Sopenharmony_ci		.name = "blsp1_qup4_spi_apps_clk_src",
6078c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6088c2ecf20Sopenharmony_ci		.num_parents = 3,
6098c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
6108c2ecf20Sopenharmony_ci	},
6118c2ecf20Sopenharmony_ci};
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_blsp1_uart0_apps_clk_src[] = {
6148c2ecf20Sopenharmony_ci	F(3686400, P_GPLL0_OUT_MAIN, 1, 72, 15625),
6158c2ecf20Sopenharmony_ci	F(7372800, P_GPLL0_OUT_MAIN, 1, 144, 15625),
6168c2ecf20Sopenharmony_ci	F(14745600, P_GPLL0_OUT_MAIN, 1, 288, 15625),
6178c2ecf20Sopenharmony_ci	F(16000000, P_GPLL0_OUT_MAIN, 10, 1, 5),
6188c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
6198c2ecf20Sopenharmony_ci	F(24000000, P_GPLL0_OUT_MAIN, 1, 3, 100),
6208c2ecf20Sopenharmony_ci	F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
6218c2ecf20Sopenharmony_ci	F(32000000, P_GPLL0_OUT_MAIN, 1, 1, 25),
6228c2ecf20Sopenharmony_ci	F(40000000, P_GPLL0_OUT_MAIN, 1, 1, 20),
6238c2ecf20Sopenharmony_ci	F(46400000, P_GPLL0_OUT_MAIN, 1, 29, 500),
6248c2ecf20Sopenharmony_ci	F(48000000, P_GPLL0_OUT_MAIN, 1, 3, 50),
6258c2ecf20Sopenharmony_ci	F(51200000, P_GPLL0_OUT_MAIN, 1, 8, 125),
6268c2ecf20Sopenharmony_ci	F(56000000, P_GPLL0_OUT_MAIN, 1, 7, 100),
6278c2ecf20Sopenharmony_ci	F(58982400, P_GPLL0_OUT_MAIN, 1, 1152, 15625),
6288c2ecf20Sopenharmony_ci	F(60000000, P_GPLL0_OUT_MAIN, 1, 3, 40),
6298c2ecf20Sopenharmony_ci	F(64000000, P_GPLL0_OUT_MAIN, 1, 2, 25),
6308c2ecf20Sopenharmony_ci	{ }
6318c2ecf20Sopenharmony_ci};
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_uart0_apps_clk_src = {
6348c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x600c,
6358c2ecf20Sopenharmony_ci	.mnd_width = 16,
6368c2ecf20Sopenharmony_ci	.hid_width = 5,
6378c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6388c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_uart0_apps_clk_src,
6398c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6408c2ecf20Sopenharmony_ci		.name = "blsp1_uart0_apps_clk_src",
6418c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6428c2ecf20Sopenharmony_ci		.num_parents = 3,
6438c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
6448c2ecf20Sopenharmony_ci	},
6458c2ecf20Sopenharmony_ci};
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_uart1_apps_clk_src = {
6488c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x2044,
6498c2ecf20Sopenharmony_ci	.mnd_width = 16,
6508c2ecf20Sopenharmony_ci	.hid_width = 5,
6518c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6528c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_uart0_apps_clk_src,
6538c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6548c2ecf20Sopenharmony_ci		.name = "blsp1_uart1_apps_clk_src",
6558c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6568c2ecf20Sopenharmony_ci		.num_parents = 3,
6578c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
6588c2ecf20Sopenharmony_ci	},
6598c2ecf20Sopenharmony_ci};
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_uart2_apps_clk_src = {
6628c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3034,
6638c2ecf20Sopenharmony_ci	.mnd_width = 16,
6648c2ecf20Sopenharmony_ci	.hid_width = 5,
6658c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6668c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_uart0_apps_clk_src,
6678c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6688c2ecf20Sopenharmony_ci		.name = "blsp1_uart2_apps_clk_src",
6698c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6708c2ecf20Sopenharmony_ci		.num_parents = 3,
6718c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
6728c2ecf20Sopenharmony_ci	},
6738c2ecf20Sopenharmony_ci};
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp1_uart3_apps_clk_src = {
6768c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4014,
6778c2ecf20Sopenharmony_ci	.mnd_width = 16,
6788c2ecf20Sopenharmony_ci	.hid_width = 5,
6798c2ecf20Sopenharmony_ci	.cfg_off = 0x20,
6808c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6818c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_uart0_apps_clk_src,
6828c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6838c2ecf20Sopenharmony_ci		.name = "blsp1_uart3_apps_clk_src",
6848c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6858c2ecf20Sopenharmony_ci		.num_parents = 3,
6868c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
6878c2ecf20Sopenharmony_ci	},
6888c2ecf20Sopenharmony_ci};
6898c2ecf20Sopenharmony_ci
6908c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp2_qup0_i2c_apps_clk_src = {
6918c2ecf20Sopenharmony_ci	.cmd_rcgr = 0xc00c,
6928c2ecf20Sopenharmony_ci	.mnd_width = 0,
6938c2ecf20Sopenharmony_ci	.hid_width = 5,
6948c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
6958c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
6968c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
6978c2ecf20Sopenharmony_ci		.name = "blsp2_qup0_i2c_apps_clk_src",
6988c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
6998c2ecf20Sopenharmony_ci		.num_parents = 3,
7008c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
7018c2ecf20Sopenharmony_ci	},
7028c2ecf20Sopenharmony_ci};
7038c2ecf20Sopenharmony_ci
7048c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp2_qup0_spi_apps_clk_src = {
7058c2ecf20Sopenharmony_ci	.cmd_rcgr = 0xc024,
7068c2ecf20Sopenharmony_ci	.mnd_width = 8,
7078c2ecf20Sopenharmony_ci	.hid_width = 5,
7088c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
7098c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src,
7108c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
7118c2ecf20Sopenharmony_ci		.name = "blsp2_qup0_spi_apps_clk_src",
7128c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
7138c2ecf20Sopenharmony_ci		.num_parents = 3,
7148c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
7158c2ecf20Sopenharmony_ci	},
7168c2ecf20Sopenharmony_ci};
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_cistatic struct clk_rcg2 blsp2_uart0_apps_clk_src = {
7198c2ecf20Sopenharmony_ci	.cmd_rcgr = 0xc044,
7208c2ecf20Sopenharmony_ci	.mnd_width = 16,
7218c2ecf20Sopenharmony_ci	.hid_width = 5,
7228c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
7238c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_blsp1_uart0_apps_clk_src,
7248c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
7258c2ecf20Sopenharmony_ci		.name = "blsp2_uart0_apps_clk_src",
7268c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
7278c2ecf20Sopenharmony_ci		.num_parents = 3,
7288c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
7298c2ecf20Sopenharmony_ci	},
7308c2ecf20Sopenharmony_ci};
7318c2ecf20Sopenharmony_ci
7328c2ecf20Sopenharmony_cistatic struct clk_rcg2 byte0_clk_src = {
7338c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d044,
7348c2ecf20Sopenharmony_ci	.mnd_width = 0,
7358c2ecf20Sopenharmony_ci	.hid_width = 5,
7368c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_5,
7378c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
7388c2ecf20Sopenharmony_ci		.name = "byte0_clk_src",
7398c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_5,
7408c2ecf20Sopenharmony_ci		.num_parents = 4,
7418c2ecf20Sopenharmony_ci		.flags = CLK_SET_RATE_PARENT,
7428c2ecf20Sopenharmony_ci		.ops = &clk_byte2_ops,
7438c2ecf20Sopenharmony_ci	},
7448c2ecf20Sopenharmony_ci};
7458c2ecf20Sopenharmony_ci
7468c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_emac_clk_src[] = {
7478c2ecf20Sopenharmony_ci	F(5000000,   P_GPLL1_OUT_MAIN, 2, 1, 50),
7488c2ecf20Sopenharmony_ci	F(50000000,  P_GPLL1_OUT_MAIN, 10, 0, 0),
7498c2ecf20Sopenharmony_ci	F(125000000, P_GPLL1_OUT_MAIN, 4, 0, 0),
7508c2ecf20Sopenharmony_ci	F(250000000, P_GPLL1_OUT_MAIN, 2, 0, 0),
7518c2ecf20Sopenharmony_ci	{ }
7528c2ecf20Sopenharmony_ci};
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_cistatic struct clk_rcg2 emac_clk_src = {
7558c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4e01c,
7568c2ecf20Sopenharmony_ci	.mnd_width = 8,
7578c2ecf20Sopenharmony_ci	.hid_width = 5,
7588c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_4,
7598c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_emac_clk_src,
7608c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
7618c2ecf20Sopenharmony_ci		.name = "emac_clk_src",
7628c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_4,
7638c2ecf20Sopenharmony_ci		.num_parents = 3,
7648c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
7658c2ecf20Sopenharmony_ci	},
7668c2ecf20Sopenharmony_ci};
7678c2ecf20Sopenharmony_ci
7688c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_emac_ptp_clk_src[] = {
7698c2ecf20Sopenharmony_ci	F(50000000,  P_GPLL1_OUT_MAIN, 10, 0, 0),
7708c2ecf20Sopenharmony_ci	F(125000000, P_GPLL1_OUT_MAIN, 4, 0, 0),
7718c2ecf20Sopenharmony_ci	F(250000000, P_GPLL1_OUT_MAIN, 2, 0, 0),
7728c2ecf20Sopenharmony_ci	{ }
7738c2ecf20Sopenharmony_ci};
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_cistatic struct clk_rcg2 emac_ptp_clk_src = {
7768c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4e014,
7778c2ecf20Sopenharmony_ci	.mnd_width = 0,
7788c2ecf20Sopenharmony_ci	.hid_width = 5,
7798c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_4,
7808c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_emac_ptp_clk_src,
7818c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
7828c2ecf20Sopenharmony_ci		.name = "emac_ptp_clk_src",
7838c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_4,
7848c2ecf20Sopenharmony_ci		.num_parents = 3,
7858c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
7868c2ecf20Sopenharmony_ci	},
7878c2ecf20Sopenharmony_ci};
7888c2ecf20Sopenharmony_ci
7898c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_esc0_clk_src[] = {
7908c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
7918c2ecf20Sopenharmony_ci	{ }
7928c2ecf20Sopenharmony_ci};
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_cistatic struct clk_rcg2 esc0_clk_src = {
7958c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d05c,
7968c2ecf20Sopenharmony_ci	.mnd_width = 0,
7978c2ecf20Sopenharmony_ci	.hid_width = 5,
7988c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_6,
7998c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
8008c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8018c2ecf20Sopenharmony_ci		.name = "esc0_clk_src",
8028c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_6,
8038c2ecf20Sopenharmony_ci		.num_parents = 4,
8048c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
8058c2ecf20Sopenharmony_ci	},
8068c2ecf20Sopenharmony_ci};
8078c2ecf20Sopenharmony_ci
8088c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gfx3d_clk_src[] = {
8098c2ecf20Sopenharmony_ci	F(19200000,  P_XO, 1, 0, 0),
8108c2ecf20Sopenharmony_ci	F(50000000,  P_GPLL0_OUT_MAIN, 16, 0, 0),
8118c2ecf20Sopenharmony_ci	F(80000000,  P_GPLL0_OUT_MAIN, 10, 0, 0),
8128c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
8138c2ecf20Sopenharmony_ci	F(160000000, P_GPLL0_OUT_MAIN, 5, 0, 0),
8148c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
8158c2ecf20Sopenharmony_ci	F(228571429, P_GPLL0_OUT_MAIN, 3.5, 0, 0),
8168c2ecf20Sopenharmony_ci	F(240000000, P_GPLL6_OUT_AUX,  4.5, 0, 0),
8178c2ecf20Sopenharmony_ci	F(266666667, P_GPLL0_OUT_MAIN, 3, 0, 0),
8188c2ecf20Sopenharmony_ci	F(270000000, P_GPLL6_OUT_AUX,  4, 0, 0),
8198c2ecf20Sopenharmony_ci	F(320000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0),
8208c2ecf20Sopenharmony_ci	F(400000000, P_GPLL0_OUT_MAIN, 2, 0, 0),
8218c2ecf20Sopenharmony_ci	F(484800000, P_GPLL3_OUT_MAIN, 1, 0, 0),
8228c2ecf20Sopenharmony_ci	F(523200000, P_GPLL3_OUT_MAIN, 1, 0, 0),
8238c2ecf20Sopenharmony_ci	F(550000000, P_GPLL3_OUT_MAIN, 1, 0, 0),
8248c2ecf20Sopenharmony_ci	F(598000000, P_GPLL3_OUT_MAIN, 1, 0, 0),
8258c2ecf20Sopenharmony_ci	{ }
8268c2ecf20Sopenharmony_ci};
8278c2ecf20Sopenharmony_ci
8288c2ecf20Sopenharmony_cistatic struct clk_rcg2 gfx3d_clk_src = {
8298c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x59000,
8308c2ecf20Sopenharmony_ci	.mnd_width = 0,
8318c2ecf20Sopenharmony_ci	.hid_width = 5,
8328c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_7,
8338c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_gfx3d_clk_src,
8348c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8358c2ecf20Sopenharmony_ci		.name = "gfx3d_clk_src",
8368c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_7,
8378c2ecf20Sopenharmony_ci		.num_parents = 6,
8388c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
8398c2ecf20Sopenharmony_ci	},
8408c2ecf20Sopenharmony_ci};
8418c2ecf20Sopenharmony_ci
8428c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_gp1_clk_src[] = {
8438c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
8448c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
8458c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
8468c2ecf20Sopenharmony_ci	{ }
8478c2ecf20Sopenharmony_ci};
8488c2ecf20Sopenharmony_ci
8498c2ecf20Sopenharmony_cistatic struct clk_rcg2 gp1_clk_src = {
8508c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x8004,
8518c2ecf20Sopenharmony_ci	.mnd_width = 8,
8528c2ecf20Sopenharmony_ci	.hid_width = 5,
8538c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_2,
8548c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_gp1_clk_src,
8558c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8568c2ecf20Sopenharmony_ci		.name = "gp1_clk_src",
8578c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_2,
8588c2ecf20Sopenharmony_ci		.num_parents = 4,
8598c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
8608c2ecf20Sopenharmony_ci	},
8618c2ecf20Sopenharmony_ci};
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_cistatic struct clk_rcg2 gp2_clk_src = {
8648c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x9004,
8658c2ecf20Sopenharmony_ci	.mnd_width = 8,
8668c2ecf20Sopenharmony_ci	.hid_width = 5,
8678c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_2,
8688c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_gp1_clk_src,
8698c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8708c2ecf20Sopenharmony_ci		.name = "gp2_clk_src",
8718c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_2,
8728c2ecf20Sopenharmony_ci		.num_parents = 4,
8738c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
8748c2ecf20Sopenharmony_ci	},
8758c2ecf20Sopenharmony_ci};
8768c2ecf20Sopenharmony_ci
8778c2ecf20Sopenharmony_cistatic struct clk_rcg2 gp3_clk_src = {
8788c2ecf20Sopenharmony_ci	.cmd_rcgr = 0xa004,
8798c2ecf20Sopenharmony_ci	.mnd_width = 8,
8808c2ecf20Sopenharmony_ci	.hid_width = 5,
8818c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_2,
8828c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_gp1_clk_src,
8838c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8848c2ecf20Sopenharmony_ci		.name = "gp3_clk_src",
8858c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_2,
8868c2ecf20Sopenharmony_ci		.num_parents = 4,
8878c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
8888c2ecf20Sopenharmony_ci	},
8898c2ecf20Sopenharmony_ci};
8908c2ecf20Sopenharmony_ci
8918c2ecf20Sopenharmony_cistatic struct clk_rcg2 hdmi_app_clk_src = {
8928c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d0e4,
8938c2ecf20Sopenharmony_ci	.mnd_width = 0,
8948c2ecf20Sopenharmony_ci	.hid_width = 5,
8958c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_1,
8968c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
8978c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
8988c2ecf20Sopenharmony_ci		.name = "hdmi_app_clk_src",
8998c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_1,
9008c2ecf20Sopenharmony_ci		.num_parents = 2,
9018c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
9028c2ecf20Sopenharmony_ci	},
9038c2ecf20Sopenharmony_ci};
9048c2ecf20Sopenharmony_ci
9058c2ecf20Sopenharmony_cistatic struct clk_rcg2 hdmi_pclk_clk_src = {
9068c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d0dc,
9078c2ecf20Sopenharmony_ci	.mnd_width = 0,
9088c2ecf20Sopenharmony_ci	.hid_width = 5,
9098c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_8,
9108c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
9118c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
9128c2ecf20Sopenharmony_ci		.name = "hdmi_pclk_clk_src",
9138c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_8,
9148c2ecf20Sopenharmony_ci		.num_parents = 3,
9158c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
9168c2ecf20Sopenharmony_ci	},
9178c2ecf20Sopenharmony_ci};
9188c2ecf20Sopenharmony_ci
9198c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_mdp_clk_src[] = {
9208c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
9218c2ecf20Sopenharmony_ci	F(80000000, P_GPLL0_OUT_MAIN, 10, 0, 0),
9228c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
9238c2ecf20Sopenharmony_ci	F(145454545, P_GPLL0_OUT_MAIN, 5.5, 0, 0),
9248c2ecf20Sopenharmony_ci	F(160000000, P_GPLL0_OUT_MAIN, 5, 0, 0),
9258c2ecf20Sopenharmony_ci	F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
9268c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
9278c2ecf20Sopenharmony_ci	F(266666667, P_GPLL0_OUT_MAIN, 3, 0, 0),
9288c2ecf20Sopenharmony_ci	F(320000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0),
9298c2ecf20Sopenharmony_ci	{ }
9308c2ecf20Sopenharmony_ci};
9318c2ecf20Sopenharmony_ci
9328c2ecf20Sopenharmony_cistatic struct clk_rcg2 mdp_clk_src = {
9338c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d014,
9348c2ecf20Sopenharmony_ci	.mnd_width = 0,
9358c2ecf20Sopenharmony_ci	.hid_width = 5,
9368c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_9,
9378c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_mdp_clk_src,
9388c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
9398c2ecf20Sopenharmony_ci		.name = "mdp_clk_src",
9408c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_9,
9418c2ecf20Sopenharmony_ci		.num_parents = 5,
9428c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
9438c2ecf20Sopenharmony_ci	},
9448c2ecf20Sopenharmony_ci};
9458c2ecf20Sopenharmony_ci
9468c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_pcie_0_aux_clk_src[] = {
9478c2ecf20Sopenharmony_ci	F(1200000, P_XO, 16, 0, 0),
9488c2ecf20Sopenharmony_ci	{ }
9498c2ecf20Sopenharmony_ci};
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_cistatic struct clk_rcg2 pcie_0_aux_clk_src = {
9528c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3e024,
9538c2ecf20Sopenharmony_ci	.mnd_width = 16,
9548c2ecf20Sopenharmony_ci	.hid_width = 5,
9558c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_10,
9568c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_pcie_0_aux_clk_src,
9578c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
9588c2ecf20Sopenharmony_ci		.name = "pcie_0_aux_clk_src",
9598c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_10,
9608c2ecf20Sopenharmony_ci		.num_parents = 3,
9618c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
9628c2ecf20Sopenharmony_ci	},
9638c2ecf20Sopenharmony_ci};
9648c2ecf20Sopenharmony_ci
9658c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_pcie_0_pipe_clk_src[] = {
9668c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
9678c2ecf20Sopenharmony_ci	F(125000000, P_PCIE_0_PIPE_CLK, 2, 0, 0),
9688c2ecf20Sopenharmony_ci	F(250000000, P_PCIE_0_PIPE_CLK, 1, 0, 0),
9698c2ecf20Sopenharmony_ci	{ }
9708c2ecf20Sopenharmony_ci};
9718c2ecf20Sopenharmony_ci
9728c2ecf20Sopenharmony_cistatic struct clk_rcg2 pcie_0_pipe_clk_src = {
9738c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3e01c,
9748c2ecf20Sopenharmony_ci	.mnd_width = 0,
9758c2ecf20Sopenharmony_ci	.hid_width = 5,
9768c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_11,
9778c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_pcie_0_pipe_clk_src,
9788c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
9798c2ecf20Sopenharmony_ci		.name = "pcie_0_pipe_clk_src",
9808c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_11,
9818c2ecf20Sopenharmony_ci		.num_parents = 3,
9828c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
9838c2ecf20Sopenharmony_ci	},
9848c2ecf20Sopenharmony_ci};
9858c2ecf20Sopenharmony_ci
9868c2ecf20Sopenharmony_cistatic struct clk_rcg2 pclk0_clk_src = {
9878c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d000,
9888c2ecf20Sopenharmony_ci	.mnd_width = 8,
9898c2ecf20Sopenharmony_ci	.hid_width = 5,
9908c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_12,
9918c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
9928c2ecf20Sopenharmony_ci		.name = "pclk0_clk_src",
9938c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_12,
9948c2ecf20Sopenharmony_ci		.num_parents = 4,
9958c2ecf20Sopenharmony_ci		.flags = CLK_SET_RATE_PARENT,
9968c2ecf20Sopenharmony_ci		.ops = &clk_pixel_ops,
9978c2ecf20Sopenharmony_ci	},
9988c2ecf20Sopenharmony_ci};
9998c2ecf20Sopenharmony_ci
10008c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_pdm2_clk_src[] = {
10018c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
10028c2ecf20Sopenharmony_ci	F(64000000, P_GPLL0_OUT_MAIN, 12.5, 0, 0),
10038c2ecf20Sopenharmony_ci	{ }
10048c2ecf20Sopenharmony_ci};
10058c2ecf20Sopenharmony_ci
10068c2ecf20Sopenharmony_cistatic struct clk_rcg2 pdm2_clk_src = {
10078c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x44010,
10088c2ecf20Sopenharmony_ci	.mnd_width = 0,
10098c2ecf20Sopenharmony_ci	.hid_width = 5,
10108c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
10118c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_pdm2_clk_src,
10128c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
10138c2ecf20Sopenharmony_ci		.name = "pdm2_clk_src",
10148c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
10158c2ecf20Sopenharmony_ci		.num_parents = 3,
10168c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
10178c2ecf20Sopenharmony_ci	},
10188c2ecf20Sopenharmony_ci};
10198c2ecf20Sopenharmony_ci
10208c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_sdcc1_apps_clk_src[] = {
10218c2ecf20Sopenharmony_ci	F(144000, P_XO, 16, 3, 25),
10228c2ecf20Sopenharmony_ci	F(400000, P_XO, 12, 1, 4),
10238c2ecf20Sopenharmony_ci	F(20000000, P_GPLL0_OUT_MAIN, 10, 1, 4),
10248c2ecf20Sopenharmony_ci	F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
10258c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
10268c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
10278c2ecf20Sopenharmony_ci	F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
10288c2ecf20Sopenharmony_ci	F(192000000, P_GPLL4_OUT_MAIN, 6, 0, 0),
10298c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
10308c2ecf20Sopenharmony_ci	F(384000000, P_GPLL4_OUT_MAIN, 3, 0, 0),
10318c2ecf20Sopenharmony_ci	{ }
10328c2ecf20Sopenharmony_ci};
10338c2ecf20Sopenharmony_ci
10348c2ecf20Sopenharmony_cistatic struct clk_rcg2 sdcc1_apps_clk_src = {
10358c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x42004,
10368c2ecf20Sopenharmony_ci	.mnd_width = 8,
10378c2ecf20Sopenharmony_ci	.hid_width = 5,
10388c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_13,
10398c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_sdcc1_apps_clk_src,
10408c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
10418c2ecf20Sopenharmony_ci		.name = "sdcc1_apps_clk_src",
10428c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_13,
10438c2ecf20Sopenharmony_ci		.num_parents = 5,
10448c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_floor_ops,
10458c2ecf20Sopenharmony_ci	},
10468c2ecf20Sopenharmony_ci};
10478c2ecf20Sopenharmony_ci
10488c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_sdcc1_ice_core_clk_src[] = {
10498c2ecf20Sopenharmony_ci	F(160000000, P_GPLL0_OUT_MAIN, 5, 0, 0),
10508c2ecf20Sopenharmony_ci	F(266666667, P_GPLL0_OUT_MAIN, 3, 0, 0),
10518c2ecf20Sopenharmony_ci	{ }
10528c2ecf20Sopenharmony_ci};
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_cistatic struct clk_rcg2 sdcc1_ice_core_clk_src = {
10558c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x5d000,
10568c2ecf20Sopenharmony_ci	.mnd_width = 8,
10578c2ecf20Sopenharmony_ci	.hid_width = 5,
10588c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_3,
10598c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_sdcc1_ice_core_clk_src,
10608c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
10618c2ecf20Sopenharmony_ci		.name = "sdcc1_ice_core_clk_src",
10628c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_3,
10638c2ecf20Sopenharmony_ci		.num_parents = 4,
10648c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
10658c2ecf20Sopenharmony_ci	},
10668c2ecf20Sopenharmony_ci};
10678c2ecf20Sopenharmony_ci
10688c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_sdcc2_apps_clk_src[] = {
10698c2ecf20Sopenharmony_ci	F(144000, P_XO, 16, 3, 25),
10708c2ecf20Sopenharmony_ci	F(400000, P_XO, 12, 1, 4),
10718c2ecf20Sopenharmony_ci	F(20000000, P_GPLL0_OUT_MAIN, 10, 1, 4),
10728c2ecf20Sopenharmony_ci	F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
10738c2ecf20Sopenharmony_ci	F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
10748c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
10758c2ecf20Sopenharmony_ci	F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
10768c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
10778c2ecf20Sopenharmony_ci	{ }
10788c2ecf20Sopenharmony_ci};
10798c2ecf20Sopenharmony_ci
10808c2ecf20Sopenharmony_cistatic struct clk_rcg2 sdcc2_apps_clk_src = {
10818c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x43004,
10828c2ecf20Sopenharmony_ci	.mnd_width = 8,
10838c2ecf20Sopenharmony_ci	.hid_width = 5,
10848c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_14,
10858c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_sdcc2_apps_clk_src,
10868c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
10878c2ecf20Sopenharmony_ci		.name = "sdcc2_apps_clk_src",
10888c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_14,
10898c2ecf20Sopenharmony_ci		.num_parents = 4,
10908c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_floor_ops,
10918c2ecf20Sopenharmony_ci	},
10928c2ecf20Sopenharmony_ci};
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_cistatic struct clk_rcg2 usb20_mock_utmi_clk_src = {
10958c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x41048,
10968c2ecf20Sopenharmony_ci	.mnd_width = 0,
10978c2ecf20Sopenharmony_ci	.hid_width = 5,
10988c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_1,
10998c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
11008c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11018c2ecf20Sopenharmony_ci		.name = "usb20_mock_utmi_clk_src",
11028c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_1,
11038c2ecf20Sopenharmony_ci		.num_parents = 2,
11048c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11058c2ecf20Sopenharmony_ci	},
11068c2ecf20Sopenharmony_ci};
11078c2ecf20Sopenharmony_ci
11088c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_usb30_master_clk_src[] = {
11098c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
11108c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
11118c2ecf20Sopenharmony_ci	F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
11128c2ecf20Sopenharmony_ci	F(266666667, P_GPLL0_OUT_MAIN, 3, 0, 0),
11138c2ecf20Sopenharmony_ci	{ }
11148c2ecf20Sopenharmony_ci};
11158c2ecf20Sopenharmony_ci
11168c2ecf20Sopenharmony_cistatic struct clk_rcg2 usb30_master_clk_src = {
11178c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x39028,
11188c2ecf20Sopenharmony_ci	.mnd_width = 8,
11198c2ecf20Sopenharmony_ci	.hid_width = 5,
11208c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_0,
11218c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_usb30_master_clk_src,
11228c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11238c2ecf20Sopenharmony_ci		.name = "usb30_master_clk_src",
11248c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_0,
11258c2ecf20Sopenharmony_ci		.num_parents = 3,
11268c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11278c2ecf20Sopenharmony_ci	},
11288c2ecf20Sopenharmony_ci};
11298c2ecf20Sopenharmony_ci
11308c2ecf20Sopenharmony_cistatic struct clk_rcg2 usb30_mock_utmi_clk_src = {
11318c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3901c,
11328c2ecf20Sopenharmony_ci	.mnd_width = 0,
11338c2ecf20Sopenharmony_ci	.hid_width = 5,
11348c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_1,
11358c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
11368c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11378c2ecf20Sopenharmony_ci		.name = "usb30_mock_utmi_clk_src",
11388c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_1,
11398c2ecf20Sopenharmony_ci		.num_parents = 2,
11408c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11418c2ecf20Sopenharmony_ci	},
11428c2ecf20Sopenharmony_ci};
11438c2ecf20Sopenharmony_ci
11448c2ecf20Sopenharmony_cistatic struct clk_rcg2 usb3_phy_aux_clk_src = {
11458c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x3903c,
11468c2ecf20Sopenharmony_ci	.mnd_width = 0,
11478c2ecf20Sopenharmony_ci	.hid_width = 5,
11488c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_1,
11498c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_pcie_0_aux_clk_src,
11508c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11518c2ecf20Sopenharmony_ci		.name = "usb3_phy_aux_clk_src",
11528c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_1,
11538c2ecf20Sopenharmony_ci		.num_parents = 2,
11548c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11558c2ecf20Sopenharmony_ci	},
11568c2ecf20Sopenharmony_ci};
11578c2ecf20Sopenharmony_ci
11588c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_usb_hs_system_clk_src[] = {
11598c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
11608c2ecf20Sopenharmony_ci	F(80000000, P_GPLL0_OUT_MAIN, 10, 0, 0),
11618c2ecf20Sopenharmony_ci	F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
11628c2ecf20Sopenharmony_ci	F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
11638c2ecf20Sopenharmony_ci	F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
11648c2ecf20Sopenharmony_ci	{ }
11658c2ecf20Sopenharmony_ci};
11668c2ecf20Sopenharmony_ci
11678c2ecf20Sopenharmony_cistatic struct clk_rcg2 usb_hs_system_clk_src = {
11688c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x41010,
11698c2ecf20Sopenharmony_ci	.mnd_width = 0,
11708c2ecf20Sopenharmony_ci	.hid_width = 5,
11718c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_3,
11728c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_usb_hs_system_clk_src,
11738c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11748c2ecf20Sopenharmony_ci		.name = "usb_hs_system_clk_src",
11758c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_3,
11768c2ecf20Sopenharmony_ci		.num_parents = 4,
11778c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11788c2ecf20Sopenharmony_ci	},
11798c2ecf20Sopenharmony_ci};
11808c2ecf20Sopenharmony_ci
11818c2ecf20Sopenharmony_cistatic struct clk_rcg2 vsync_clk_src = {
11828c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x4d02c,
11838c2ecf20Sopenharmony_ci	.mnd_width = 0,
11848c2ecf20Sopenharmony_ci	.hid_width = 5,
11858c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_15,
11868c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_esc0_clk_src,
11878c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data){
11888c2ecf20Sopenharmony_ci		.name = "vsync_clk_src",
11898c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_15,
11908c2ecf20Sopenharmony_ci		.num_parents = 3,
11918c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
11928c2ecf20Sopenharmony_ci	},
11938c2ecf20Sopenharmony_ci};
11948c2ecf20Sopenharmony_ci
11958c2ecf20Sopenharmony_cistatic const struct freq_tbl ftbl_cdsp_bimc_clk_src[] = {
11968c2ecf20Sopenharmony_ci	F(19200000, P_XO, 1, 0, 0),
11978c2ecf20Sopenharmony_ci	F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
11988c2ecf20Sopenharmony_ci	F(266666667, P_GPLL0_OUT_MAIN, 3, 0, 0),
11998c2ecf20Sopenharmony_ci	F(320000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0),
12008c2ecf20Sopenharmony_ci	{ }
12018c2ecf20Sopenharmony_ci};
12028c2ecf20Sopenharmony_ci
12038c2ecf20Sopenharmony_cistatic struct clk_rcg2 cdsp_bimc_clk_src = {
12048c2ecf20Sopenharmony_ci	.cmd_rcgr = 0x5e010,
12058c2ecf20Sopenharmony_ci	.mnd_width = 0,
12068c2ecf20Sopenharmony_ci	.hid_width = 5,
12078c2ecf20Sopenharmony_ci	.parent_map = gcc_parent_map_16,
12088c2ecf20Sopenharmony_ci	.freq_tbl = ftbl_cdsp_bimc_clk_src,
12098c2ecf20Sopenharmony_ci	.clkr.hw.init = &(struct clk_init_data) {
12108c2ecf20Sopenharmony_ci		.name = "cdsp_bimc_clk_src",
12118c2ecf20Sopenharmony_ci		.parent_names = gcc_parent_names_16,
12128c2ecf20Sopenharmony_ci		.num_parents = 4,
12138c2ecf20Sopenharmony_ci		.ops = &clk_rcg2_ops,
12148c2ecf20Sopenharmony_ci	},
12158c2ecf20Sopenharmony_ci};
12168c2ecf20Sopenharmony_ci
12178c2ecf20Sopenharmony_cistatic struct clk_branch gcc_apss_ahb_clk = {
12188c2ecf20Sopenharmony_ci	.halt_reg = 0x4601c,
12198c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
12208c2ecf20Sopenharmony_ci	.clkr = {
12218c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
12228c2ecf20Sopenharmony_ci		.enable_mask = BIT(14),
12238c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
12248c2ecf20Sopenharmony_ci			.name = "gcc_apss_ahb_clk",
12258c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
12268c2ecf20Sopenharmony_ci				"apss_ahb_clk_src",
12278c2ecf20Sopenharmony_ci			},
12288c2ecf20Sopenharmony_ci			.num_parents = 1,
12298c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
12308c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
12318c2ecf20Sopenharmony_ci		},
12328c2ecf20Sopenharmony_ci	},
12338c2ecf20Sopenharmony_ci};
12348c2ecf20Sopenharmony_ci
12358c2ecf20Sopenharmony_cistatic struct clk_branch gcc_apss_tcu_clk = {
12368c2ecf20Sopenharmony_ci	.halt_reg = 0x5b004,
12378c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
12388c2ecf20Sopenharmony_ci	.clkr = {
12398c2ecf20Sopenharmony_ci		.enable_reg = 0x4500c,
12408c2ecf20Sopenharmony_ci		.enable_mask = BIT(1),
12418c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
12428c2ecf20Sopenharmony_ci			.name = "gcc_apss_tcu_clk",
12438c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
12448c2ecf20Sopenharmony_ci		},
12458c2ecf20Sopenharmony_ci	},
12468c2ecf20Sopenharmony_ci};
12478c2ecf20Sopenharmony_ci
12488c2ecf20Sopenharmony_cistatic struct clk_branch gcc_bimc_gfx_clk = {
12498c2ecf20Sopenharmony_ci	.halt_reg = 0x59034,
12508c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
12518c2ecf20Sopenharmony_ci	.clkr = {
12528c2ecf20Sopenharmony_ci		.enable_reg = 0x59034,
12538c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
12548c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
12558c2ecf20Sopenharmony_ci			.name = "gcc_bimc_gfx_clk",
12568c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
12578c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
12588c2ecf20Sopenharmony_ci				"gcc_apss_tcu_clk",
12598c2ecf20Sopenharmony_ci			},
12608c2ecf20Sopenharmony_ci
12618c2ecf20Sopenharmony_ci		},
12628c2ecf20Sopenharmony_ci	},
12638c2ecf20Sopenharmony_ci};
12648c2ecf20Sopenharmony_ci
12658c2ecf20Sopenharmony_cistatic struct clk_branch gcc_bimc_gpu_clk = {
12668c2ecf20Sopenharmony_ci	.halt_reg = 0x59030,
12678c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
12688c2ecf20Sopenharmony_ci	.clkr = {
12698c2ecf20Sopenharmony_ci		.enable_reg = 0x59030,
12708c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
12718c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
12728c2ecf20Sopenharmony_ci			.name = "gcc_bimc_gpu_clk",
12738c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
12748c2ecf20Sopenharmony_ci		},
12758c2ecf20Sopenharmony_ci	},
12768c2ecf20Sopenharmony_ci};
12778c2ecf20Sopenharmony_ci
12788c2ecf20Sopenharmony_cistatic struct clk_branch gcc_bimc_cdsp_clk = {
12798c2ecf20Sopenharmony_ci	.halt_reg = 0x31030,
12808c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
12818c2ecf20Sopenharmony_ci	.clkr = {
12828c2ecf20Sopenharmony_ci		.enable_reg = 0x31030,
12838c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
12848c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data) {
12858c2ecf20Sopenharmony_ci			.name = "gcc_bimc_cdsp_clk",
12868c2ecf20Sopenharmony_ci			.parent_names = (const char *[]) {
12878c2ecf20Sopenharmony_ci				"cdsp_bimc_clk_src",
12888c2ecf20Sopenharmony_ci			},
12898c2ecf20Sopenharmony_ci			.num_parents = 1,
12908c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
12918c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
12928c2ecf20Sopenharmony_ci		},
12938c2ecf20Sopenharmony_ci	},
12948c2ecf20Sopenharmony_ci};
12958c2ecf20Sopenharmony_ci
12968c2ecf20Sopenharmony_cistatic struct clk_branch gcc_bimc_mdss_clk = {
12978c2ecf20Sopenharmony_ci	.halt_reg = 0x31038,
12988c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
12998c2ecf20Sopenharmony_ci	.clkr = {
13008c2ecf20Sopenharmony_ci		.enable_reg = 0x31038,
13018c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13028c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13038c2ecf20Sopenharmony_ci			.name = "gcc_bimc_mdss_clk",
13048c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13058c2ecf20Sopenharmony_ci		},
13068c2ecf20Sopenharmony_ci	},
13078c2ecf20Sopenharmony_ci};
13088c2ecf20Sopenharmony_ci
13098c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_ahb_clk = {
13108c2ecf20Sopenharmony_ci	.halt_reg = 0x1008,
13118c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
13128c2ecf20Sopenharmony_ci	.clkr = {
13138c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
13148c2ecf20Sopenharmony_ci		.enable_mask = BIT(10),
13158c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13168c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_ahb_clk",
13178c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13188c2ecf20Sopenharmony_ci		},
13198c2ecf20Sopenharmony_ci	},
13208c2ecf20Sopenharmony_ci};
13218c2ecf20Sopenharmony_ci
13228c2ecf20Sopenharmony_cistatic struct clk_branch gcc_dcc_clk = {
13238c2ecf20Sopenharmony_ci	.halt_reg = 0x77004,
13248c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
13258c2ecf20Sopenharmony_ci	.clkr = {
13268c2ecf20Sopenharmony_ci		.enable_reg = 0x77004,
13278c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13288c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13298c2ecf20Sopenharmony_ci			.name = "gcc_dcc_clk",
13308c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13318c2ecf20Sopenharmony_ci		},
13328c2ecf20Sopenharmony_ci	},
13338c2ecf20Sopenharmony_ci};
13348c2ecf20Sopenharmony_ci
13358c2ecf20Sopenharmony_cistatic struct clk_branch gcc_dcc_xo_clk = {
13368c2ecf20Sopenharmony_ci	.halt_reg = 0x77008,
13378c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
13388c2ecf20Sopenharmony_ci	.clkr = {
13398c2ecf20Sopenharmony_ci		.enable_reg = 0x77008,
13408c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13418c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13428c2ecf20Sopenharmony_ci			.name = "gcc_dcc_xo_clk",
13438c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13448c2ecf20Sopenharmony_ci		},
13458c2ecf20Sopenharmony_ci	},
13468c2ecf20Sopenharmony_ci};
13478c2ecf20Sopenharmony_ci
13488c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup0_i2c_apps_clk = {
13498c2ecf20Sopenharmony_ci	.halt_reg = 0x6028,
13508c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
13518c2ecf20Sopenharmony_ci	.clkr = {
13528c2ecf20Sopenharmony_ci		.enable_reg = 0x6028,
13538c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13548c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13558c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup0_i2c_apps_clk",
13568c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
13578c2ecf20Sopenharmony_ci				"blsp1_qup0_i2c_apps_clk_src",
13588c2ecf20Sopenharmony_ci			},
13598c2ecf20Sopenharmony_ci			.num_parents = 1,
13608c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
13618c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13628c2ecf20Sopenharmony_ci		},
13638c2ecf20Sopenharmony_ci	},
13648c2ecf20Sopenharmony_ci};
13658c2ecf20Sopenharmony_ci
13668c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup0_spi_apps_clk = {
13678c2ecf20Sopenharmony_ci	.halt_reg = 0x6024,
13688c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
13698c2ecf20Sopenharmony_ci	.clkr = {
13708c2ecf20Sopenharmony_ci		.enable_reg = 0x6024,
13718c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13728c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13738c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup0_spi_apps_clk",
13748c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
13758c2ecf20Sopenharmony_ci				"blsp1_qup0_spi_apps_clk_src",
13768c2ecf20Sopenharmony_ci			},
13778c2ecf20Sopenharmony_ci			.num_parents = 1,
13788c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
13798c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13808c2ecf20Sopenharmony_ci		},
13818c2ecf20Sopenharmony_ci	},
13828c2ecf20Sopenharmony_ci};
13838c2ecf20Sopenharmony_ci
13848c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup1_i2c_apps_clk = {
13858c2ecf20Sopenharmony_ci	.halt_reg = 0x2008,
13868c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
13878c2ecf20Sopenharmony_ci	.clkr = {
13888c2ecf20Sopenharmony_ci		.enable_reg = 0x2008,
13898c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
13908c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
13918c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup1_i2c_apps_clk",
13928c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
13938c2ecf20Sopenharmony_ci				"blsp1_qup1_i2c_apps_clk_src",
13948c2ecf20Sopenharmony_ci			},
13958c2ecf20Sopenharmony_ci			.num_parents = 1,
13968c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
13978c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
13988c2ecf20Sopenharmony_ci		},
13998c2ecf20Sopenharmony_ci	},
14008c2ecf20Sopenharmony_ci};
14018c2ecf20Sopenharmony_ci
14028c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup1_spi_apps_clk = {
14038c2ecf20Sopenharmony_ci	.halt_reg = 0x2004,
14048c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14058c2ecf20Sopenharmony_ci	.clkr = {
14068c2ecf20Sopenharmony_ci		.enable_reg = 0x2004,
14078c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14088c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14098c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup1_spi_apps_clk",
14108c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
14118c2ecf20Sopenharmony_ci				"blsp1_qup1_spi_apps_clk_src",
14128c2ecf20Sopenharmony_ci			},
14138c2ecf20Sopenharmony_ci			.num_parents = 1,
14148c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
14158c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
14168c2ecf20Sopenharmony_ci		},
14178c2ecf20Sopenharmony_ci	},
14188c2ecf20Sopenharmony_ci};
14198c2ecf20Sopenharmony_ci
14208c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup2_i2c_apps_clk = {
14218c2ecf20Sopenharmony_ci	.halt_reg = 0x3010,
14228c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14238c2ecf20Sopenharmony_ci	.clkr = {
14248c2ecf20Sopenharmony_ci		.enable_reg = 0x3010,
14258c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14268c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14278c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup2_i2c_apps_clk",
14288c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
14298c2ecf20Sopenharmony_ci				"blsp1_qup2_i2c_apps_clk_src",
14308c2ecf20Sopenharmony_ci			},
14318c2ecf20Sopenharmony_ci			.num_parents = 1,
14328c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
14338c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
14348c2ecf20Sopenharmony_ci		},
14358c2ecf20Sopenharmony_ci	},
14368c2ecf20Sopenharmony_ci};
14378c2ecf20Sopenharmony_ci
14388c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup2_spi_apps_clk = {
14398c2ecf20Sopenharmony_ci	.halt_reg = 0x300c,
14408c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14418c2ecf20Sopenharmony_ci	.clkr = {
14428c2ecf20Sopenharmony_ci		.enable_reg = 0x300c,
14438c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14448c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14458c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup2_spi_apps_clk",
14468c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
14478c2ecf20Sopenharmony_ci				"blsp1_qup2_spi_apps_clk_src",
14488c2ecf20Sopenharmony_ci			},
14498c2ecf20Sopenharmony_ci			.num_parents = 1,
14508c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
14518c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
14528c2ecf20Sopenharmony_ci		},
14538c2ecf20Sopenharmony_ci	},
14548c2ecf20Sopenharmony_ci};
14558c2ecf20Sopenharmony_ci
14568c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup3_i2c_apps_clk = {
14578c2ecf20Sopenharmony_ci	.halt_reg = 0x4020,
14588c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14598c2ecf20Sopenharmony_ci	.clkr = {
14608c2ecf20Sopenharmony_ci		.enable_reg = 0x4020,
14618c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14628c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14638c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup3_i2c_apps_clk",
14648c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
14658c2ecf20Sopenharmony_ci				"blsp1_qup3_i2c_apps_clk_src",
14668c2ecf20Sopenharmony_ci			},
14678c2ecf20Sopenharmony_ci			.num_parents = 1,
14688c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
14698c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
14708c2ecf20Sopenharmony_ci		},
14718c2ecf20Sopenharmony_ci	},
14728c2ecf20Sopenharmony_ci};
14738c2ecf20Sopenharmony_ci
14748c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp1_qup3_spi_apps_clk = {
14758c2ecf20Sopenharmony_ci	.halt_reg = 0x401c,
14768c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14778c2ecf20Sopenharmony_ci	.clkr = {
14788c2ecf20Sopenharmony_ci		.enable_reg = 0x401c,
14798c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14808c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14818c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup3_spi_apps_clk",
14828c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
14838c2ecf20Sopenharmony_ci				"blsp1_qup3_spi_apps_clk_src",
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_blsp1_qup4_i2c_apps_clk = {
14938c2ecf20Sopenharmony_ci	.halt_reg = 0x5020,
14948c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
14958c2ecf20Sopenharmony_ci	.clkr = {
14968c2ecf20Sopenharmony_ci		.enable_reg = 0x5020,
14978c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
14988c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
14998c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup4_i2c_apps_clk",
15008c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15018c2ecf20Sopenharmony_ci				"blsp1_qup4_i2c_apps_clk_src",
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_blsp1_qup4_spi_apps_clk = {
15118c2ecf20Sopenharmony_ci	.halt_reg = 0x501c,
15128c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
15138c2ecf20Sopenharmony_ci	.clkr = {
15148c2ecf20Sopenharmony_ci		.enable_reg = 0x501c,
15158c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
15168c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
15178c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_qup4_spi_apps_clk",
15188c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15198c2ecf20Sopenharmony_ci				"blsp1_qup4_spi_apps_clk_src",
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_blsp1_uart0_apps_clk = {
15298c2ecf20Sopenharmony_ci	.halt_reg = 0x6004,
15308c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
15318c2ecf20Sopenharmony_ci	.clkr = {
15328c2ecf20Sopenharmony_ci		.enable_reg = 0x6004,
15338c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
15348c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
15358c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_uart0_apps_clk",
15368c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15378c2ecf20Sopenharmony_ci				"blsp1_uart0_apps_clk_src",
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_blsp1_uart1_apps_clk = {
15478c2ecf20Sopenharmony_ci	.halt_reg = 0x203c,
15488c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
15498c2ecf20Sopenharmony_ci	.clkr = {
15508c2ecf20Sopenharmony_ci		.enable_reg = 0x203c,
15518c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
15528c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
15538c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_uart1_apps_clk",
15548c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15558c2ecf20Sopenharmony_ci				"blsp1_uart1_apps_clk_src",
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_blsp1_uart2_apps_clk = {
15658c2ecf20Sopenharmony_ci	.halt_reg = 0x302c,
15668c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
15678c2ecf20Sopenharmony_ci	.clkr = {
15688c2ecf20Sopenharmony_ci		.enable_reg = 0x302c,
15698c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
15708c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
15718c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_uart2_apps_clk",
15728c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15738c2ecf20Sopenharmony_ci				"blsp1_uart2_apps_clk_src",
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_blsp1_uart3_apps_clk = {
15838c2ecf20Sopenharmony_ci	.halt_reg = 0x400c,
15848c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
15858c2ecf20Sopenharmony_ci	.clkr = {
15868c2ecf20Sopenharmony_ci		.enable_reg = 0x400c,
15878c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
15888c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
15898c2ecf20Sopenharmony_ci			.name = "gcc_blsp1_uart3_apps_clk",
15908c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
15918c2ecf20Sopenharmony_ci				"blsp1_uart3_apps_clk_src",
15928c2ecf20Sopenharmony_ci			},
15938c2ecf20Sopenharmony_ci			.num_parents = 1,
15948c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
15958c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
15968c2ecf20Sopenharmony_ci		},
15978c2ecf20Sopenharmony_ci	},
15988c2ecf20Sopenharmony_ci};
15998c2ecf20Sopenharmony_ci
16008c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp2_ahb_clk = {
16018c2ecf20Sopenharmony_ci	.halt_reg = 0xb008,
16028c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
16038c2ecf20Sopenharmony_ci	.clkr = {
16048c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
16058c2ecf20Sopenharmony_ci		.enable_mask = BIT(20),
16068c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16078c2ecf20Sopenharmony_ci			.name = "gcc_blsp2_ahb_clk",
16088c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16098c2ecf20Sopenharmony_ci		},
16108c2ecf20Sopenharmony_ci	},
16118c2ecf20Sopenharmony_ci};
16128c2ecf20Sopenharmony_ci
16138c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp2_qup0_i2c_apps_clk = {
16148c2ecf20Sopenharmony_ci	.halt_reg = 0xc008,
16158c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
16168c2ecf20Sopenharmony_ci	.clkr = {
16178c2ecf20Sopenharmony_ci		.enable_reg = 0xc008,
16188c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
16198c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16208c2ecf20Sopenharmony_ci			.name = "gcc_blsp2_qup0_i2c_apps_clk",
16218c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
16228c2ecf20Sopenharmony_ci				"blsp2_qup0_i2c_apps_clk_src",
16238c2ecf20Sopenharmony_ci			},
16248c2ecf20Sopenharmony_ci			.num_parents = 1,
16258c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
16268c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16278c2ecf20Sopenharmony_ci		},
16288c2ecf20Sopenharmony_ci	},
16298c2ecf20Sopenharmony_ci};
16308c2ecf20Sopenharmony_ci
16318c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp2_qup0_spi_apps_clk = {
16328c2ecf20Sopenharmony_ci	.halt_reg = 0xc004,
16338c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
16348c2ecf20Sopenharmony_ci	.clkr = {
16358c2ecf20Sopenharmony_ci		.enable_reg = 0xc004,
16368c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
16378c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16388c2ecf20Sopenharmony_ci			.name = "gcc_blsp2_qup0_spi_apps_clk",
16398c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
16408c2ecf20Sopenharmony_ci				"blsp2_qup0_spi_apps_clk_src",
16418c2ecf20Sopenharmony_ci			},
16428c2ecf20Sopenharmony_ci			.num_parents = 1,
16438c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
16448c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16458c2ecf20Sopenharmony_ci		},
16468c2ecf20Sopenharmony_ci	},
16478c2ecf20Sopenharmony_ci};
16488c2ecf20Sopenharmony_ci
16498c2ecf20Sopenharmony_cistatic struct clk_branch gcc_blsp2_uart0_apps_clk = {
16508c2ecf20Sopenharmony_ci	.halt_reg = 0xc03c,
16518c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
16528c2ecf20Sopenharmony_ci	.clkr = {
16538c2ecf20Sopenharmony_ci		.enable_reg = 0xc03c,
16548c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
16558c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16568c2ecf20Sopenharmony_ci			.name = "gcc_blsp2_uart0_apps_clk",
16578c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
16588c2ecf20Sopenharmony_ci				"blsp2_uart0_apps_clk_src",
16598c2ecf20Sopenharmony_ci			},
16608c2ecf20Sopenharmony_ci			.num_parents = 1,
16618c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
16628c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16638c2ecf20Sopenharmony_ci		},
16648c2ecf20Sopenharmony_ci	},
16658c2ecf20Sopenharmony_ci};
16668c2ecf20Sopenharmony_ci
16678c2ecf20Sopenharmony_cistatic struct clk_branch gcc_boot_rom_ahb_clk = {
16688c2ecf20Sopenharmony_ci	.halt_reg = 0x1300c,
16698c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
16708c2ecf20Sopenharmony_ci	.clkr = {
16718c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
16728c2ecf20Sopenharmony_ci		.enable_mask = BIT(7),
16738c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16748c2ecf20Sopenharmony_ci			.name = "gcc_boot_rom_ahb_clk",
16758c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16768c2ecf20Sopenharmony_ci		},
16778c2ecf20Sopenharmony_ci	},
16788c2ecf20Sopenharmony_ci};
16798c2ecf20Sopenharmony_ci
16808c2ecf20Sopenharmony_cistatic struct clk_branch gcc_crypto_ahb_clk = {
16818c2ecf20Sopenharmony_ci	.halt_reg = 0x16024,
16828c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
16838c2ecf20Sopenharmony_ci	.clkr = {
16848c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
16858c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
16868c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
16878c2ecf20Sopenharmony_ci			.name = "gcc_crypto_ahb_clk",
16888c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
16898c2ecf20Sopenharmony_ci		},
16908c2ecf20Sopenharmony_ci	},
16918c2ecf20Sopenharmony_ci};
16928c2ecf20Sopenharmony_ci
16938c2ecf20Sopenharmony_cistatic struct clk_branch gcc_crypto_axi_clk = {
16948c2ecf20Sopenharmony_ci	.halt_reg = 0x16020,
16958c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
16968c2ecf20Sopenharmony_ci	.clkr = {
16978c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
16988c2ecf20Sopenharmony_ci		.enable_mask = BIT(1),
16998c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17008c2ecf20Sopenharmony_ci			.name = "gcc_crypto_axi_clk",
17018c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17028c2ecf20Sopenharmony_ci		},
17038c2ecf20Sopenharmony_ci	},
17048c2ecf20Sopenharmony_ci};
17058c2ecf20Sopenharmony_ci
17068c2ecf20Sopenharmony_cistatic struct clk_branch gcc_crypto_clk = {
17078c2ecf20Sopenharmony_ci	.halt_reg = 0x1601c,
17088c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
17098c2ecf20Sopenharmony_ci	.clkr = {
17108c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
17118c2ecf20Sopenharmony_ci		.enable_mask = BIT(2),
17128c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17138c2ecf20Sopenharmony_ci			.name = "gcc_crypto_clk",
17148c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17158c2ecf20Sopenharmony_ci		},
17168c2ecf20Sopenharmony_ci	},
17178c2ecf20Sopenharmony_ci};
17188c2ecf20Sopenharmony_ci
17198c2ecf20Sopenharmony_cistatic struct clk_branch gcc_eth_axi_clk = {
17208c2ecf20Sopenharmony_ci	.halt_reg = 0x4e010,
17218c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17228c2ecf20Sopenharmony_ci	.clkr = {
17238c2ecf20Sopenharmony_ci		.enable_reg = 0x4e010,
17248c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
17258c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17268c2ecf20Sopenharmony_ci			.name = "gcc_eth_axi_clk",
17278c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17288c2ecf20Sopenharmony_ci		},
17298c2ecf20Sopenharmony_ci	},
17308c2ecf20Sopenharmony_ci};
17318c2ecf20Sopenharmony_ci
17328c2ecf20Sopenharmony_cistatic struct clk_branch gcc_eth_ptp_clk = {
17338c2ecf20Sopenharmony_ci	.halt_reg = 0x4e004,
17348c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17358c2ecf20Sopenharmony_ci	.clkr = {
17368c2ecf20Sopenharmony_ci		.enable_reg = 0x4e004,
17378c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
17388c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17398c2ecf20Sopenharmony_ci			.name = "gcc_eth_ptp_clk",
17408c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
17418c2ecf20Sopenharmony_ci				"emac_ptp_clk_src",
17428c2ecf20Sopenharmony_ci			},
17438c2ecf20Sopenharmony_ci			.num_parents = 1,
17448c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
17458c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17468c2ecf20Sopenharmony_ci		},
17478c2ecf20Sopenharmony_ci	},
17488c2ecf20Sopenharmony_ci};
17498c2ecf20Sopenharmony_ci
17508c2ecf20Sopenharmony_cistatic struct clk_branch gcc_eth_rgmii_clk = {
17518c2ecf20Sopenharmony_ci	.halt_reg = 0x4e008,
17528c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17538c2ecf20Sopenharmony_ci	.clkr = {
17548c2ecf20Sopenharmony_ci		.enable_reg = 0x4e008,
17558c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
17568c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17578c2ecf20Sopenharmony_ci			.name = "gcc_eth_rgmii_clk",
17588c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
17598c2ecf20Sopenharmony_ci				"emac_clk_src",
17608c2ecf20Sopenharmony_ci			},
17618c2ecf20Sopenharmony_ci			.num_parents = 1,
17628c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
17638c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17648c2ecf20Sopenharmony_ci		},
17658c2ecf20Sopenharmony_ci	},
17668c2ecf20Sopenharmony_ci};
17678c2ecf20Sopenharmony_ci
17688c2ecf20Sopenharmony_cistatic struct clk_branch gcc_eth_slave_ahb_clk = {
17698c2ecf20Sopenharmony_ci	.halt_reg = 0x4e00c,
17708c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17718c2ecf20Sopenharmony_ci	.clkr = {
17728c2ecf20Sopenharmony_ci		.enable_reg = 0x4e00c,
17738c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
17748c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17758c2ecf20Sopenharmony_ci			.name = "gcc_eth_slave_ahb_clk",
17768c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17778c2ecf20Sopenharmony_ci		},
17788c2ecf20Sopenharmony_ci	},
17798c2ecf20Sopenharmony_ci};
17808c2ecf20Sopenharmony_ci
17818c2ecf20Sopenharmony_cistatic struct clk_branch gcc_geni_ir_s_clk = {
17828c2ecf20Sopenharmony_ci	.halt_reg = 0xf008,
17838c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17848c2ecf20Sopenharmony_ci	.clkr = {
17858c2ecf20Sopenharmony_ci		.enable_reg = 0xf008,
17868c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
17878c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
17888c2ecf20Sopenharmony_ci			.name = "gcc_geni_ir_s_clk",
17898c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
17908c2ecf20Sopenharmony_ci		},
17918c2ecf20Sopenharmony_ci	},
17928c2ecf20Sopenharmony_ci};
17938c2ecf20Sopenharmony_ci
17948c2ecf20Sopenharmony_cistatic struct clk_branch gcc_geni_ir_h_clk = {
17958c2ecf20Sopenharmony_ci	.halt_reg = 0xf004,
17968c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
17978c2ecf20Sopenharmony_ci	.clkr = {
17988c2ecf20Sopenharmony_ci		.enable_reg = 0xf004,
17998c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
18008c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18018c2ecf20Sopenharmony_ci			.name = "gcc_geni_ir_h_clk",
18028c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18038c2ecf20Sopenharmony_ci		},
18048c2ecf20Sopenharmony_ci	},
18058c2ecf20Sopenharmony_ci};
18068c2ecf20Sopenharmony_ci
18078c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gfx_tcu_clk = {
18088c2ecf20Sopenharmony_ci	.halt_reg = 0x12020,
18098c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
18108c2ecf20Sopenharmony_ci	.clkr = {
18118c2ecf20Sopenharmony_ci		.enable_reg = 0x4500C,
18128c2ecf20Sopenharmony_ci		.enable_mask = BIT(2),
18138c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18148c2ecf20Sopenharmony_ci			.name = "gcc_gfx_tcu_clk",
18158c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18168c2ecf20Sopenharmony_ci		},
18178c2ecf20Sopenharmony_ci	},
18188c2ecf20Sopenharmony_ci};
18198c2ecf20Sopenharmony_ci
18208c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gfx_tbu_clk = {
18218c2ecf20Sopenharmony_ci	.halt_reg = 0x12010,
18228c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
18238c2ecf20Sopenharmony_ci	.clkr = {
18248c2ecf20Sopenharmony_ci		.enable_reg = 0x4500C,
18258c2ecf20Sopenharmony_ci		.enable_mask = BIT(3),
18268c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18278c2ecf20Sopenharmony_ci			.name = "gcc_gfx_tbu_clk",
18288c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18298c2ecf20Sopenharmony_ci		},
18308c2ecf20Sopenharmony_ci	},
18318c2ecf20Sopenharmony_ci};
18328c2ecf20Sopenharmony_ci
18338c2ecf20Sopenharmony_cistatic struct clk_branch gcc_cdsp_tbu_clk = {
18348c2ecf20Sopenharmony_ci	.halt_reg = 0x1203c,
18358c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
18368c2ecf20Sopenharmony_ci	.clkr = {
18378c2ecf20Sopenharmony_ci		.enable_reg = 0x13020,
18388c2ecf20Sopenharmony_ci		.enable_mask = BIT(9),
18398c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data) {
18408c2ecf20Sopenharmony_ci			.name = "gcc_cdsp_tbu_clk",
18418c2ecf20Sopenharmony_ci			.parent_names = (const char *[]) {
18428c2ecf20Sopenharmony_ci				"cdsp_bimc_clk_src",
18438c2ecf20Sopenharmony_ci			},
18448c2ecf20Sopenharmony_ci			.num_parents = 1,
18458c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
18468c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18478c2ecf20Sopenharmony_ci		},
18488c2ecf20Sopenharmony_ci	},
18498c2ecf20Sopenharmony_ci};
18508c2ecf20Sopenharmony_ci
18518c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp1_clk = {
18528c2ecf20Sopenharmony_ci	.halt_reg = 0x8000,
18538c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
18548c2ecf20Sopenharmony_ci	.clkr = {
18558c2ecf20Sopenharmony_ci		.enable_reg = 0x8000,
18568c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
18578c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18588c2ecf20Sopenharmony_ci			.name = "gcc_gp1_clk",
18598c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
18608c2ecf20Sopenharmony_ci				"gp1_clk_src",
18618c2ecf20Sopenharmony_ci			},
18628c2ecf20Sopenharmony_ci			.num_parents = 1,
18638c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
18648c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18658c2ecf20Sopenharmony_ci		},
18668c2ecf20Sopenharmony_ci	},
18678c2ecf20Sopenharmony_ci};
18688c2ecf20Sopenharmony_ci
18698c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp2_clk = {
18708c2ecf20Sopenharmony_ci	.halt_reg = 0x9000,
18718c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
18728c2ecf20Sopenharmony_ci	.clkr = {
18738c2ecf20Sopenharmony_ci		.enable_reg = 0x9000,
18748c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
18758c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18768c2ecf20Sopenharmony_ci			.name = "gcc_gp2_clk",
18778c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
18788c2ecf20Sopenharmony_ci				"gp2_clk_src",
18798c2ecf20Sopenharmony_ci			},
18808c2ecf20Sopenharmony_ci			.num_parents = 1,
18818c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
18828c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
18838c2ecf20Sopenharmony_ci		},
18848c2ecf20Sopenharmony_ci	},
18858c2ecf20Sopenharmony_ci};
18868c2ecf20Sopenharmony_ci
18878c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gp3_clk = {
18888c2ecf20Sopenharmony_ci	.halt_reg = 0xa000,
18898c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
18908c2ecf20Sopenharmony_ci	.clkr = {
18918c2ecf20Sopenharmony_ci		.enable_reg = 0xa000,
18928c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
18938c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
18948c2ecf20Sopenharmony_ci			.name = "gcc_gp3_clk",
18958c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
18968c2ecf20Sopenharmony_ci				"gp3_clk_src",
18978c2ecf20Sopenharmony_ci			},
18988c2ecf20Sopenharmony_ci			.num_parents = 1,
18998c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
19008c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19018c2ecf20Sopenharmony_ci		},
19028c2ecf20Sopenharmony_ci	},
19038c2ecf20Sopenharmony_ci};
19048c2ecf20Sopenharmony_ci
19058c2ecf20Sopenharmony_cistatic struct clk_branch gcc_gtcu_ahb_clk = {
19068c2ecf20Sopenharmony_ci	.halt_reg = 0x12044,
19078c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
19088c2ecf20Sopenharmony_ci	.clkr = {
19098c2ecf20Sopenharmony_ci		.enable_reg = 0x4500c,
19108c2ecf20Sopenharmony_ci		.enable_mask = BIT(13),
19118c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19128c2ecf20Sopenharmony_ci			.name = "gcc_gtcu_ahb_clk",
19138c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19148c2ecf20Sopenharmony_ci		},
19158c2ecf20Sopenharmony_ci	},
19168c2ecf20Sopenharmony_ci};
19178c2ecf20Sopenharmony_ci
19188c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdp_tbu_clk = {
19198c2ecf20Sopenharmony_ci	.halt_reg = 0x1201c,
19208c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
19218c2ecf20Sopenharmony_ci	.clkr = {
19228c2ecf20Sopenharmony_ci		.enable_reg = 0x4500c,
19238c2ecf20Sopenharmony_ci		.enable_mask = BIT(4),
19248c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19258c2ecf20Sopenharmony_ci			.name = "gcc_mdp_tbu_clk",
19268c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19278c2ecf20Sopenharmony_ci		},
19288c2ecf20Sopenharmony_ci	},
19298c2ecf20Sopenharmony_ci};
19308c2ecf20Sopenharmony_ci
19318c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_ahb_clk = {
19328c2ecf20Sopenharmony_ci	.halt_reg = 0x4d07c,
19338c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
19348c2ecf20Sopenharmony_ci	.clkr = {
19358c2ecf20Sopenharmony_ci		.enable_reg = 0x4d07c,
19368c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
19378c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19388c2ecf20Sopenharmony_ci			.name = "gcc_mdss_ahb_clk",
19398c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19408c2ecf20Sopenharmony_ci		},
19418c2ecf20Sopenharmony_ci	},
19428c2ecf20Sopenharmony_ci};
19438c2ecf20Sopenharmony_ci
19448c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_axi_clk = {
19458c2ecf20Sopenharmony_ci	.halt_reg = 0x4d080,
19468c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
19478c2ecf20Sopenharmony_ci	.clkr = {
19488c2ecf20Sopenharmony_ci		.enable_reg = 0x4d080,
19498c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
19508c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19518c2ecf20Sopenharmony_ci			.name = "gcc_mdss_axi_clk",
19528c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19538c2ecf20Sopenharmony_ci		},
19548c2ecf20Sopenharmony_ci	},
19558c2ecf20Sopenharmony_ci};
19568c2ecf20Sopenharmony_ci
19578c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_byte0_clk = {
19588c2ecf20Sopenharmony_ci	.halt_reg = 0x4d094,
19598c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
19608c2ecf20Sopenharmony_ci	.clkr = {
19618c2ecf20Sopenharmony_ci		.enable_reg = 0x4d094,
19628c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
19638c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19648c2ecf20Sopenharmony_ci			.name = "gcc_mdss_byte0_clk",
19658c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
19668c2ecf20Sopenharmony_ci				"byte0_clk_src",
19678c2ecf20Sopenharmony_ci			},
19688c2ecf20Sopenharmony_ci			.num_parents = 1,
19698c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
19708c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19718c2ecf20Sopenharmony_ci		},
19728c2ecf20Sopenharmony_ci	},
19738c2ecf20Sopenharmony_ci};
19748c2ecf20Sopenharmony_ci
19758c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_esc0_clk = {
19768c2ecf20Sopenharmony_ci	.halt_reg = 0x4d098,
19778c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
19788c2ecf20Sopenharmony_ci	.clkr = {
19798c2ecf20Sopenharmony_ci		.enable_reg = 0x4d098,
19808c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
19818c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
19828c2ecf20Sopenharmony_ci			.name = "gcc_mdss_esc0_clk",
19838c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
19848c2ecf20Sopenharmony_ci				"esc0_clk_src",
19858c2ecf20Sopenharmony_ci			},
19868c2ecf20Sopenharmony_ci			.num_parents = 1,
19878c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
19888c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
19898c2ecf20Sopenharmony_ci		},
19908c2ecf20Sopenharmony_ci	},
19918c2ecf20Sopenharmony_ci};
19928c2ecf20Sopenharmony_ci
19938c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_hdmi_app_clk = {
19948c2ecf20Sopenharmony_ci	.halt_reg = 0x4d0d8,
19958c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
19968c2ecf20Sopenharmony_ci	.clkr = {
19978c2ecf20Sopenharmony_ci		.enable_reg = 0x4d0d8,
19988c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
19998c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20008c2ecf20Sopenharmony_ci			.name = "gcc_mdss_hdmi_app_clk",
20018c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
20028c2ecf20Sopenharmony_ci				"hdmi_app_clk_src",
20038c2ecf20Sopenharmony_ci			},
20048c2ecf20Sopenharmony_ci			.num_parents = 1,
20058c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
20068c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20078c2ecf20Sopenharmony_ci		},
20088c2ecf20Sopenharmony_ci	},
20098c2ecf20Sopenharmony_ci};
20108c2ecf20Sopenharmony_ci
20118c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_hdmi_pclk_clk = {
20128c2ecf20Sopenharmony_ci	.halt_reg = 0x4d0d4,
20138c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20148c2ecf20Sopenharmony_ci	.clkr = {
20158c2ecf20Sopenharmony_ci		.enable_reg = 0x4d0d4,
20168c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
20178c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20188c2ecf20Sopenharmony_ci			.name = "gcc_mdss_hdmi_pclk_clk",
20198c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
20208c2ecf20Sopenharmony_ci				"hdmi_pclk_clk_src",
20218c2ecf20Sopenharmony_ci			},
20228c2ecf20Sopenharmony_ci			.num_parents = 1,
20238c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
20248c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20258c2ecf20Sopenharmony_ci		},
20268c2ecf20Sopenharmony_ci	},
20278c2ecf20Sopenharmony_ci};
20288c2ecf20Sopenharmony_ci
20298c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_mdp_clk = {
20308c2ecf20Sopenharmony_ci	.halt_reg = 0x4d088,
20318c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20328c2ecf20Sopenharmony_ci	.clkr = {
20338c2ecf20Sopenharmony_ci		.enable_reg = 0x4d088,
20348c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
20358c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20368c2ecf20Sopenharmony_ci			.name = "gcc_mdss_mdp_clk",
20378c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
20388c2ecf20Sopenharmony_ci				"mdp_clk_src",
20398c2ecf20Sopenharmony_ci			},
20408c2ecf20Sopenharmony_ci			.num_parents = 1,
20418c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
20428c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20438c2ecf20Sopenharmony_ci		},
20448c2ecf20Sopenharmony_ci	},
20458c2ecf20Sopenharmony_ci};
20468c2ecf20Sopenharmony_ci
20478c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_pclk0_clk = {
20488c2ecf20Sopenharmony_ci	.halt_reg = 0x4d084,
20498c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20508c2ecf20Sopenharmony_ci	.clkr = {
20518c2ecf20Sopenharmony_ci		.enable_reg = 0x4d084,
20528c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
20538c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20548c2ecf20Sopenharmony_ci			.name = "gcc_mdss_pclk0_clk",
20558c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
20568c2ecf20Sopenharmony_ci				"pclk0_clk_src",
20578c2ecf20Sopenharmony_ci			},
20588c2ecf20Sopenharmony_ci			.num_parents = 1,
20598c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
20608c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20618c2ecf20Sopenharmony_ci		},
20628c2ecf20Sopenharmony_ci	},
20638c2ecf20Sopenharmony_ci};
20648c2ecf20Sopenharmony_ci
20658c2ecf20Sopenharmony_cistatic struct clk_branch gcc_mdss_vsync_clk = {
20668c2ecf20Sopenharmony_ci	.halt_reg = 0x4d090,
20678c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20688c2ecf20Sopenharmony_ci	.clkr = {
20698c2ecf20Sopenharmony_ci		.enable_reg = 0x4d090,
20708c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
20718c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20728c2ecf20Sopenharmony_ci			.name = "gcc_mdss_vsync_clk",
20738c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
20748c2ecf20Sopenharmony_ci				"vsync_clk_src",
20758c2ecf20Sopenharmony_ci			},
20768c2ecf20Sopenharmony_ci			.num_parents = 1,
20778c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
20788c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20798c2ecf20Sopenharmony_ci		},
20808c2ecf20Sopenharmony_ci	},
20818c2ecf20Sopenharmony_ci};
20828c2ecf20Sopenharmony_ci
20838c2ecf20Sopenharmony_cistatic struct clk_branch gcc_oxili_ahb_clk = {
20848c2ecf20Sopenharmony_ci	.halt_reg = 0x59028,
20858c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20868c2ecf20Sopenharmony_ci	.clkr = {
20878c2ecf20Sopenharmony_ci		.enable_reg = 0x59028,
20888c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
20898c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
20908c2ecf20Sopenharmony_ci			.name = "gcc_oxili_ahb_clk",
20918c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
20928c2ecf20Sopenharmony_ci		},
20938c2ecf20Sopenharmony_ci	},
20948c2ecf20Sopenharmony_ci};
20958c2ecf20Sopenharmony_ci
20968c2ecf20Sopenharmony_cistatic struct clk_branch gcc_oxili_gfx3d_clk = {
20978c2ecf20Sopenharmony_ci	.halt_reg = 0x59020,
20988c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
20998c2ecf20Sopenharmony_ci	.clkr = {
21008c2ecf20Sopenharmony_ci		.enable_reg = 0x59020,
21018c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
21028c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21038c2ecf20Sopenharmony_ci			.name = "gcc_oxili_gfx3d_clk",
21048c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
21058c2ecf20Sopenharmony_ci				"gfx3d_clk_src",
21068c2ecf20Sopenharmony_ci			},
21078c2ecf20Sopenharmony_ci			.num_parents = 1,
21088c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
21098c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21108c2ecf20Sopenharmony_ci		},
21118c2ecf20Sopenharmony_ci	},
21128c2ecf20Sopenharmony_ci};
21138c2ecf20Sopenharmony_ci
21148c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcie_0_aux_clk = {
21158c2ecf20Sopenharmony_ci	.halt_reg = 0x3e014,
21168c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
21178c2ecf20Sopenharmony_ci	.clkr = {
21188c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
21198c2ecf20Sopenharmony_ci		.enable_mask = BIT(27),
21208c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21218c2ecf20Sopenharmony_ci			.name = "gcc_pcie_0_aux_clk",
21228c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
21238c2ecf20Sopenharmony_ci				"pcie_0_aux_clk_src",
21248c2ecf20Sopenharmony_ci			},
21258c2ecf20Sopenharmony_ci			.num_parents = 1,
21268c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
21278c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21288c2ecf20Sopenharmony_ci		},
21298c2ecf20Sopenharmony_ci	},
21308c2ecf20Sopenharmony_ci};
21318c2ecf20Sopenharmony_ci
21328c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcie_0_cfg_ahb_clk = {
21338c2ecf20Sopenharmony_ci	.halt_reg = 0x3e008,
21348c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
21358c2ecf20Sopenharmony_ci	.clkr = {
21368c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
21378c2ecf20Sopenharmony_ci		.enable_mask = BIT(11),
21388c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21398c2ecf20Sopenharmony_ci			.name = "gcc_pcie_0_cfg_ahb_clk",
21408c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21418c2ecf20Sopenharmony_ci		},
21428c2ecf20Sopenharmony_ci	},
21438c2ecf20Sopenharmony_ci};
21448c2ecf20Sopenharmony_ci
21458c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcie_0_mstr_axi_clk = {
21468c2ecf20Sopenharmony_ci	.halt_reg = 0x3e018,
21478c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
21488c2ecf20Sopenharmony_ci	.clkr = {
21498c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
21508c2ecf20Sopenharmony_ci		.enable_mask = BIT(18),
21518c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21528c2ecf20Sopenharmony_ci			.name = "gcc_pcie_0_mstr_axi_clk",
21538c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21548c2ecf20Sopenharmony_ci		},
21558c2ecf20Sopenharmony_ci	},
21568c2ecf20Sopenharmony_ci};
21578c2ecf20Sopenharmony_ci
21588c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcie_0_pipe_clk = {
21598c2ecf20Sopenharmony_ci	.halt_reg = 0x3e00c,
21608c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
21618c2ecf20Sopenharmony_ci	.clkr = {
21628c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
21638c2ecf20Sopenharmony_ci		.enable_mask = BIT(28),
21648c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21658c2ecf20Sopenharmony_ci			.name = "gcc_pcie_0_pipe_clk",
21668c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
21678c2ecf20Sopenharmony_ci				"pcie_0_pipe_clk_src",
21688c2ecf20Sopenharmony_ci			},
21698c2ecf20Sopenharmony_ci			.num_parents = 1,
21708c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
21718c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21728c2ecf20Sopenharmony_ci		},
21738c2ecf20Sopenharmony_ci	},
21748c2ecf20Sopenharmony_ci};
21758c2ecf20Sopenharmony_ci
21768c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcie_0_slv_axi_clk = {
21778c2ecf20Sopenharmony_ci	.halt_reg = 0x3e010,
21788c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
21798c2ecf20Sopenharmony_ci	.clkr = {
21808c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
21818c2ecf20Sopenharmony_ci		.enable_mask = BIT(22),
21828c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21838c2ecf20Sopenharmony_ci			.name = "gcc_pcie_0_slv_axi_clk",
21848c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21858c2ecf20Sopenharmony_ci		},
21868c2ecf20Sopenharmony_ci	},
21878c2ecf20Sopenharmony_ci};
21888c2ecf20Sopenharmony_ci
21898c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcnoc_usb2_clk = {
21908c2ecf20Sopenharmony_ci	.halt_reg = 0x27008,
21918c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
21928c2ecf20Sopenharmony_ci	.clkr = {
21938c2ecf20Sopenharmony_ci		.enable_reg = 0x27008,
21948c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
21958c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
21968c2ecf20Sopenharmony_ci			.name = "gcc_pcnoc_usb2_clk",
21978c2ecf20Sopenharmony_ci			.flags = CLK_IS_CRITICAL,
21988c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
21998c2ecf20Sopenharmony_ci		},
22008c2ecf20Sopenharmony_ci	},
22018c2ecf20Sopenharmony_ci};
22028c2ecf20Sopenharmony_ci
22038c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pcnoc_usb3_clk = {
22048c2ecf20Sopenharmony_ci	.halt_reg = 0x2700c,
22058c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22068c2ecf20Sopenharmony_ci	.clkr = {
22078c2ecf20Sopenharmony_ci		.enable_reg = 0x2700c,
22088c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22098c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22108c2ecf20Sopenharmony_ci			.name = "gcc_pcnoc_usb3_clk",
22118c2ecf20Sopenharmony_ci			.flags = CLK_IS_CRITICAL,
22128c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22138c2ecf20Sopenharmony_ci		},
22148c2ecf20Sopenharmony_ci	},
22158c2ecf20Sopenharmony_ci};
22168c2ecf20Sopenharmony_ci
22178c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pdm2_clk = {
22188c2ecf20Sopenharmony_ci	.halt_reg = 0x4400c,
22198c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22208c2ecf20Sopenharmony_ci	.clkr = {
22218c2ecf20Sopenharmony_ci		.enable_reg = 0x4400c,
22228c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22238c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22248c2ecf20Sopenharmony_ci			.name = "gcc_pdm2_clk",
22258c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
22268c2ecf20Sopenharmony_ci				"pdm2_clk_src",
22278c2ecf20Sopenharmony_ci			},
22288c2ecf20Sopenharmony_ci			.num_parents = 1,
22298c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
22308c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22318c2ecf20Sopenharmony_ci		},
22328c2ecf20Sopenharmony_ci	},
22338c2ecf20Sopenharmony_ci};
22348c2ecf20Sopenharmony_ci
22358c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pdm_ahb_clk = {
22368c2ecf20Sopenharmony_ci	.halt_reg = 0x44004,
22378c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22388c2ecf20Sopenharmony_ci	.clkr = {
22398c2ecf20Sopenharmony_ci		.enable_reg = 0x44004,
22408c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22418c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22428c2ecf20Sopenharmony_ci			.name = "gcc_pdm_ahb_clk",
22438c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22448c2ecf20Sopenharmony_ci		},
22458c2ecf20Sopenharmony_ci	},
22468c2ecf20Sopenharmony_ci};
22478c2ecf20Sopenharmony_ci
22488c2ecf20Sopenharmony_cistatic struct clk_branch gcc_prng_ahb_clk = {
22498c2ecf20Sopenharmony_ci	.halt_reg = 0x13004,
22508c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_VOTED,
22518c2ecf20Sopenharmony_ci	.clkr = {
22528c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
22538c2ecf20Sopenharmony_ci		.enable_mask = BIT(8),
22548c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22558c2ecf20Sopenharmony_ci			.name = "gcc_prng_ahb_clk",
22568c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22578c2ecf20Sopenharmony_ci		},
22588c2ecf20Sopenharmony_ci	},
22598c2ecf20Sopenharmony_ci};
22608c2ecf20Sopenharmony_ci
22618c2ecf20Sopenharmony_ci/* PWM clks do not have XO as parent as src clk is a balance root */
22628c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pwm0_xo512_clk = {
22638c2ecf20Sopenharmony_ci	.halt_reg = 0x44018,
22648c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22658c2ecf20Sopenharmony_ci	.clkr = {
22668c2ecf20Sopenharmony_ci		.enable_reg = 0x44018,
22678c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22688c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22698c2ecf20Sopenharmony_ci			.name = "gcc_pwm0_xo512_clk",
22708c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22718c2ecf20Sopenharmony_ci		},
22728c2ecf20Sopenharmony_ci	},
22738c2ecf20Sopenharmony_ci};
22748c2ecf20Sopenharmony_ci
22758c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pwm1_xo512_clk = {
22768c2ecf20Sopenharmony_ci	.halt_reg = 0x49004,
22778c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22788c2ecf20Sopenharmony_ci	.clkr = {
22798c2ecf20Sopenharmony_ci		.enable_reg = 0x49004,
22808c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22818c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22828c2ecf20Sopenharmony_ci			.name = "gcc_pwm1_xo512_clk",
22838c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22848c2ecf20Sopenharmony_ci		},
22858c2ecf20Sopenharmony_ci	},
22868c2ecf20Sopenharmony_ci};
22878c2ecf20Sopenharmony_ci
22888c2ecf20Sopenharmony_cistatic struct clk_branch gcc_pwm2_xo512_clk = {
22898c2ecf20Sopenharmony_ci	.halt_reg = 0x4a004,
22908c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
22918c2ecf20Sopenharmony_ci	.clkr = {
22928c2ecf20Sopenharmony_ci		.enable_reg = 0x4a004,
22938c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
22948c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
22958c2ecf20Sopenharmony_ci			.name = "gcc_pwm2_xo512_clk",
22968c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
22978c2ecf20Sopenharmony_ci		},
22988c2ecf20Sopenharmony_ci	},
22998c2ecf20Sopenharmony_ci};
23008c2ecf20Sopenharmony_ci
23018c2ecf20Sopenharmony_cistatic struct clk_branch gcc_qdss_dap_clk = {
23028c2ecf20Sopenharmony_ci	.halt_reg = 0x29084,
23038c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
23048c2ecf20Sopenharmony_ci	.clkr = {
23058c2ecf20Sopenharmony_ci		.enable_reg = 0x45004,
23068c2ecf20Sopenharmony_ci		.enable_mask = BIT(21),
23078c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23088c2ecf20Sopenharmony_ci			.name = "gcc_qdss_dap_clk",
23098c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23108c2ecf20Sopenharmony_ci		},
23118c2ecf20Sopenharmony_ci	},
23128c2ecf20Sopenharmony_ci};
23138c2ecf20Sopenharmony_ci
23148c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_ahb_clk = {
23158c2ecf20Sopenharmony_ci	.halt_reg = 0x4201c,
23168c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23178c2ecf20Sopenharmony_ci	.clkr = {
23188c2ecf20Sopenharmony_ci		.enable_reg = 0x4201c,
23198c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23208c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23218c2ecf20Sopenharmony_ci			.name = "gcc_sdcc1_ahb_clk",
23228c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23238c2ecf20Sopenharmony_ci		},
23248c2ecf20Sopenharmony_ci	},
23258c2ecf20Sopenharmony_ci};
23268c2ecf20Sopenharmony_ci
23278c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_apps_clk = {
23288c2ecf20Sopenharmony_ci	.halt_reg = 0x42018,
23298c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23308c2ecf20Sopenharmony_ci	.clkr = {
23318c2ecf20Sopenharmony_ci		.enable_reg = 0x42018,
23328c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23338c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23348c2ecf20Sopenharmony_ci			.name = "gcc_sdcc1_apps_clk",
23358c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
23368c2ecf20Sopenharmony_ci				"sdcc1_apps_clk_src",
23378c2ecf20Sopenharmony_ci			},
23388c2ecf20Sopenharmony_ci			.num_parents = 1,
23398c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
23408c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23418c2ecf20Sopenharmony_ci		},
23428c2ecf20Sopenharmony_ci	},
23438c2ecf20Sopenharmony_ci};
23448c2ecf20Sopenharmony_ci
23458c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc1_ice_core_clk = {
23468c2ecf20Sopenharmony_ci	.halt_reg = 0x5d014,
23478c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23488c2ecf20Sopenharmony_ci	.clkr = {
23498c2ecf20Sopenharmony_ci		.enable_reg = 0x5d014,
23508c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23518c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23528c2ecf20Sopenharmony_ci			.name = "gcc_sdcc1_ice_core_clk",
23538c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
23548c2ecf20Sopenharmony_ci				"sdcc1_ice_core_clk_src",
23558c2ecf20Sopenharmony_ci			},
23568c2ecf20Sopenharmony_ci			.num_parents = 1,
23578c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
23588c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23598c2ecf20Sopenharmony_ci		},
23608c2ecf20Sopenharmony_ci	},
23618c2ecf20Sopenharmony_ci};
23628c2ecf20Sopenharmony_ci
23638c2ecf20Sopenharmony_cistatic struct clk_branch gcc_cdsp_cfg_ahb_clk = {
23648c2ecf20Sopenharmony_ci	.halt_reg = 0x5e004,
23658c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23668c2ecf20Sopenharmony_ci	.clkr = {
23678c2ecf20Sopenharmony_ci		.enable_reg = 0x5e004,
23688c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23698c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data) {
23708c2ecf20Sopenharmony_ci			.name = "gcc_cdsp_cfg_ahb_cbcr",
23718c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23728c2ecf20Sopenharmony_ci		},
23738c2ecf20Sopenharmony_ci	},
23748c2ecf20Sopenharmony_ci};
23758c2ecf20Sopenharmony_ci
23768c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc2_ahb_clk = {
23778c2ecf20Sopenharmony_ci	.halt_reg = 0x4301c,
23788c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23798c2ecf20Sopenharmony_ci	.clkr = {
23808c2ecf20Sopenharmony_ci		.enable_reg = 0x4301c,
23818c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23828c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23838c2ecf20Sopenharmony_ci			.name = "gcc_sdcc2_ahb_clk",
23848c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
23858c2ecf20Sopenharmony_ci		},
23868c2ecf20Sopenharmony_ci	},
23878c2ecf20Sopenharmony_ci};
23888c2ecf20Sopenharmony_ci
23898c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sdcc2_apps_clk = {
23908c2ecf20Sopenharmony_ci	.halt_reg = 0x43018,
23918c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
23928c2ecf20Sopenharmony_ci	.clkr = {
23938c2ecf20Sopenharmony_ci		.enable_reg = 0x43018,
23948c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
23958c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
23968c2ecf20Sopenharmony_ci			.name = "gcc_sdcc2_apps_clk",
23978c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
23988c2ecf20Sopenharmony_ci				"sdcc2_apps_clk_src",
23998c2ecf20Sopenharmony_ci			},
24008c2ecf20Sopenharmony_ci			.num_parents = 1,
24018c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
24028c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24038c2ecf20Sopenharmony_ci		},
24048c2ecf20Sopenharmony_ci	},
24058c2ecf20Sopenharmony_ci};
24068c2ecf20Sopenharmony_ci
24078c2ecf20Sopenharmony_cistatic struct clk_branch gcc_smmu_cfg_clk = {
24088c2ecf20Sopenharmony_ci	.halt_reg = 0x12038,
24098c2ecf20Sopenharmony_ci	.halt_check = BRANCH_VOTED,
24108c2ecf20Sopenharmony_ci	.clkr = {
24118c2ecf20Sopenharmony_ci		.enable_reg = 0x3600C,
24128c2ecf20Sopenharmony_ci		.enable_mask = BIT(12),
24138c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24148c2ecf20Sopenharmony_ci			.name = "gcc_smmu_cfg_clk",
24158c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24168c2ecf20Sopenharmony_ci		},
24178c2ecf20Sopenharmony_ci	},
24188c2ecf20Sopenharmony_ci};
24198c2ecf20Sopenharmony_ci
24208c2ecf20Sopenharmony_cistatic struct clk_branch gcc_sys_noc_usb3_clk = {
24218c2ecf20Sopenharmony_ci	.halt_reg = 0x26014,
24228c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
24238c2ecf20Sopenharmony_ci	.clkr = {
24248c2ecf20Sopenharmony_ci		.enable_reg = 0x26014,
24258c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
24268c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24278c2ecf20Sopenharmony_ci			.name = "gcc_sys_noc_usb3_clk",
24288c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
24298c2ecf20Sopenharmony_ci				"usb30_master_clk_src",
24308c2ecf20Sopenharmony_ci			},
24318c2ecf20Sopenharmony_ci			.num_parents = 1,
24328c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24338c2ecf20Sopenharmony_ci		},
24348c2ecf20Sopenharmony_ci	},
24358c2ecf20Sopenharmony_ci};
24368c2ecf20Sopenharmony_ci
24378c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb_hs_inactivity_timers_clk = {
24388c2ecf20Sopenharmony_ci	.halt_reg = 0x4100C,
24398c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
24408c2ecf20Sopenharmony_ci	.clkr = {
24418c2ecf20Sopenharmony_ci		.enable_reg = 0x4100C,
24428c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
24438c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24448c2ecf20Sopenharmony_ci			.name = "gcc_usb_hs_inactivity_timers_clk",
24458c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24468c2ecf20Sopenharmony_ci		},
24478c2ecf20Sopenharmony_ci	},
24488c2ecf20Sopenharmony_ci};
24498c2ecf20Sopenharmony_ci
24508c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb20_mock_utmi_clk = {
24518c2ecf20Sopenharmony_ci	.halt_reg = 0x41044,
24528c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
24538c2ecf20Sopenharmony_ci	.clkr = {
24548c2ecf20Sopenharmony_ci		.enable_reg = 0x41044,
24558c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
24568c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24578c2ecf20Sopenharmony_ci			.name = "gcc_usb20_mock_utmi_clk",
24588c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
24598c2ecf20Sopenharmony_ci				"usb20_mock_utmi_clk_src",
24608c2ecf20Sopenharmony_ci			},
24618c2ecf20Sopenharmony_ci			.num_parents = 1,
24628c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
24638c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24648c2ecf20Sopenharmony_ci		},
24658c2ecf20Sopenharmony_ci	},
24668c2ecf20Sopenharmony_ci};
24678c2ecf20Sopenharmony_ci
24688c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb2a_phy_sleep_clk = {
24698c2ecf20Sopenharmony_ci	.halt_reg = 0x4102c,
24708c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
24718c2ecf20Sopenharmony_ci	.clkr = {
24728c2ecf20Sopenharmony_ci		.enable_reg = 0x4102c,
24738c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
24748c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24758c2ecf20Sopenharmony_ci			.name = "gcc_usb2a_phy_sleep_clk",
24768c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24778c2ecf20Sopenharmony_ci		},
24788c2ecf20Sopenharmony_ci	},
24798c2ecf20Sopenharmony_ci};
24808c2ecf20Sopenharmony_ci
24818c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_master_clk = {
24828c2ecf20Sopenharmony_ci	.halt_reg = 0x3900c,
24838c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
24848c2ecf20Sopenharmony_ci	.clkr = {
24858c2ecf20Sopenharmony_ci		.enable_reg = 0x3900c,
24868c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
24878c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
24888c2ecf20Sopenharmony_ci			.name = "gcc_usb30_master_clk",
24898c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
24908c2ecf20Sopenharmony_ci				"usb30_master_clk_src",
24918c2ecf20Sopenharmony_ci			},
24928c2ecf20Sopenharmony_ci			.num_parents = 1,
24938c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
24948c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
24958c2ecf20Sopenharmony_ci		},
24968c2ecf20Sopenharmony_ci	},
24978c2ecf20Sopenharmony_ci};
24988c2ecf20Sopenharmony_ci
24998c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_mock_utmi_clk = {
25008c2ecf20Sopenharmony_ci	.halt_reg = 0x39014,
25018c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25028c2ecf20Sopenharmony_ci	.clkr = {
25038c2ecf20Sopenharmony_ci		.enable_reg = 0x39014,
25048c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25058c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25068c2ecf20Sopenharmony_ci			.name = "gcc_usb30_mock_utmi_clk",
25078c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
25088c2ecf20Sopenharmony_ci				"usb30_mock_utmi_clk_src",
25098c2ecf20Sopenharmony_ci			},
25108c2ecf20Sopenharmony_ci			.num_parents = 1,
25118c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
25128c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25138c2ecf20Sopenharmony_ci		},
25148c2ecf20Sopenharmony_ci	},
25158c2ecf20Sopenharmony_ci};
25168c2ecf20Sopenharmony_ci
25178c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb30_sleep_clk = {
25188c2ecf20Sopenharmony_ci	.halt_reg = 0x39010,
25198c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25208c2ecf20Sopenharmony_ci	.clkr = {
25218c2ecf20Sopenharmony_ci		.enable_reg = 0x39010,
25228c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25238c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25248c2ecf20Sopenharmony_ci			.name = "gcc_usb30_sleep_clk",
25258c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25268c2ecf20Sopenharmony_ci		},
25278c2ecf20Sopenharmony_ci	},
25288c2ecf20Sopenharmony_ci};
25298c2ecf20Sopenharmony_ci
25308c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_phy_aux_clk = {
25318c2ecf20Sopenharmony_ci	.halt_reg = 0x39044,
25328c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25338c2ecf20Sopenharmony_ci	.clkr = {
25348c2ecf20Sopenharmony_ci		.enable_reg = 0x39044,
25358c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25368c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25378c2ecf20Sopenharmony_ci			.name = "gcc_usb3_phy_aux_clk",
25388c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
25398c2ecf20Sopenharmony_ci				"usb3_phy_aux_clk_src",
25408c2ecf20Sopenharmony_ci			},
25418c2ecf20Sopenharmony_ci			.num_parents = 1,
25428c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
25438c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25448c2ecf20Sopenharmony_ci		},
25458c2ecf20Sopenharmony_ci	},
25468c2ecf20Sopenharmony_ci};
25478c2ecf20Sopenharmony_ci
25488c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb3_phy_pipe_clk = {
25498c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT_SKIP,
25508c2ecf20Sopenharmony_ci	.clkr = {
25518c2ecf20Sopenharmony_ci		.enable_reg = 0x39018,
25528c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25538c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25548c2ecf20Sopenharmony_ci			.name = "gcc_usb3_phy_pipe_clk",
25558c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25568c2ecf20Sopenharmony_ci		},
25578c2ecf20Sopenharmony_ci	},
25588c2ecf20Sopenharmony_ci};
25598c2ecf20Sopenharmony_ci
25608c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb_hs_phy_cfg_ahb_clk = {
25618c2ecf20Sopenharmony_ci	.halt_reg = 0x41030,
25628c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25638c2ecf20Sopenharmony_ci	.clkr = {
25648c2ecf20Sopenharmony_ci		.enable_reg = 0x41030,
25658c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25668c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25678c2ecf20Sopenharmony_ci			.name = "gcc_usb_hs_phy_cfg_ahb_clk",
25688c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25698c2ecf20Sopenharmony_ci		},
25708c2ecf20Sopenharmony_ci	},
25718c2ecf20Sopenharmony_ci};
25728c2ecf20Sopenharmony_ci
25738c2ecf20Sopenharmony_cistatic struct clk_branch gcc_usb_hs_system_clk = {
25748c2ecf20Sopenharmony_ci	.halt_reg = 0x41004,
25758c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25768c2ecf20Sopenharmony_ci	.clkr = {
25778c2ecf20Sopenharmony_ci		.enable_reg = 0x41004,
25788c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25798c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25808c2ecf20Sopenharmony_ci			.name = "gcc_usb_hs_system_clk",
25818c2ecf20Sopenharmony_ci			.parent_names = (const char *[]){
25828c2ecf20Sopenharmony_ci				"usb_hs_system_clk_src",
25838c2ecf20Sopenharmony_ci			},
25848c2ecf20Sopenharmony_ci			.num_parents = 1,
25858c2ecf20Sopenharmony_ci			.flags = CLK_SET_RATE_PARENT,
25868c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
25878c2ecf20Sopenharmony_ci		},
25888c2ecf20Sopenharmony_ci	},
25898c2ecf20Sopenharmony_ci};
25908c2ecf20Sopenharmony_ci
25918c2ecf20Sopenharmony_cistatic struct clk_branch gcc_wdsp_q6ss_ahbs_clk = {
25928c2ecf20Sopenharmony_ci	.halt_reg = 0x1e004,
25938c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
25948c2ecf20Sopenharmony_ci	.clkr = {
25958c2ecf20Sopenharmony_ci		.enable_reg = 0x1e004,
25968c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
25978c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
25988c2ecf20Sopenharmony_ci			.name = "gcc_wdsp_q6ss_ahbs_clk",
25998c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
26008c2ecf20Sopenharmony_ci		},
26018c2ecf20Sopenharmony_ci	},
26028c2ecf20Sopenharmony_ci};
26038c2ecf20Sopenharmony_ci
26048c2ecf20Sopenharmony_cistatic struct clk_branch gcc_wdsp_q6ss_axim_clk = {
26058c2ecf20Sopenharmony_ci	.halt_reg = 0x1e008,
26068c2ecf20Sopenharmony_ci	.halt_check = BRANCH_HALT,
26078c2ecf20Sopenharmony_ci	.clkr = {
26088c2ecf20Sopenharmony_ci		.enable_reg = 0x1e008,
26098c2ecf20Sopenharmony_ci		.enable_mask = BIT(0),
26108c2ecf20Sopenharmony_ci		.hw.init = &(struct clk_init_data){
26118c2ecf20Sopenharmony_ci			.name = "gcc_wdsp_q6ss_axim_clk",
26128c2ecf20Sopenharmony_ci			.ops = &clk_branch2_ops,
26138c2ecf20Sopenharmony_ci		},
26148c2ecf20Sopenharmony_ci	},
26158c2ecf20Sopenharmony_ci};
26168c2ecf20Sopenharmony_ci
26178c2ecf20Sopenharmony_cistatic struct clk_hw *gcc_qcs404_hws[] = {
26188c2ecf20Sopenharmony_ci	&cxo.hw,
26198c2ecf20Sopenharmony_ci};
26208c2ecf20Sopenharmony_ci
26218c2ecf20Sopenharmony_cistatic struct clk_regmap *gcc_qcs404_clocks[] = {
26228c2ecf20Sopenharmony_ci	[GCC_APSS_AHB_CLK_SRC] = &apss_ahb_clk_src.clkr,
26238c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP0_I2C_APPS_CLK_SRC] = &blsp1_qup0_i2c_apps_clk_src.clkr,
26248c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP0_SPI_APPS_CLK_SRC] = &blsp1_qup0_spi_apps_clk_src.clkr,
26258c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP1_I2C_APPS_CLK_SRC] = &blsp1_qup1_i2c_apps_clk_src.clkr,
26268c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP1_SPI_APPS_CLK_SRC] = &blsp1_qup1_spi_apps_clk_src.clkr,
26278c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP2_I2C_APPS_CLK_SRC] = &blsp1_qup2_i2c_apps_clk_src.clkr,
26288c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP2_SPI_APPS_CLK_SRC] = &blsp1_qup2_spi_apps_clk_src.clkr,
26298c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP3_I2C_APPS_CLK_SRC] = &blsp1_qup3_i2c_apps_clk_src.clkr,
26308c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP3_SPI_APPS_CLK_SRC] = &blsp1_qup3_spi_apps_clk_src.clkr,
26318c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP4_I2C_APPS_CLK_SRC] = &blsp1_qup4_i2c_apps_clk_src.clkr,
26328c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP4_SPI_APPS_CLK_SRC] = &blsp1_qup4_spi_apps_clk_src.clkr,
26338c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART0_APPS_CLK_SRC] = &blsp1_uart0_apps_clk_src.clkr,
26348c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART1_APPS_CLK_SRC] = &blsp1_uart1_apps_clk_src.clkr,
26358c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART2_APPS_CLK_SRC] = &blsp1_uart2_apps_clk_src.clkr,
26368c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART3_APPS_CLK_SRC] = &blsp1_uart3_apps_clk_src.clkr,
26378c2ecf20Sopenharmony_ci	[GCC_BLSP2_QUP0_I2C_APPS_CLK_SRC] = &blsp2_qup0_i2c_apps_clk_src.clkr,
26388c2ecf20Sopenharmony_ci	[GCC_BLSP2_QUP0_SPI_APPS_CLK_SRC] = &blsp2_qup0_spi_apps_clk_src.clkr,
26398c2ecf20Sopenharmony_ci	[GCC_BLSP2_UART0_APPS_CLK_SRC] = &blsp2_uart0_apps_clk_src.clkr,
26408c2ecf20Sopenharmony_ci	[GCC_BYTE0_CLK_SRC] = &byte0_clk_src.clkr,
26418c2ecf20Sopenharmony_ci	[GCC_EMAC_CLK_SRC] = &emac_clk_src.clkr,
26428c2ecf20Sopenharmony_ci	[GCC_EMAC_PTP_CLK_SRC] = &emac_ptp_clk_src.clkr,
26438c2ecf20Sopenharmony_ci	[GCC_ESC0_CLK_SRC] = &esc0_clk_src.clkr,
26448c2ecf20Sopenharmony_ci	[GCC_APSS_AHB_CLK] = &gcc_apss_ahb_clk.clkr,
26458c2ecf20Sopenharmony_ci	[GCC_BIMC_GFX_CLK] = &gcc_bimc_gfx_clk.clkr,
26468c2ecf20Sopenharmony_ci	[GCC_BIMC_CDSP_CLK] = &gcc_bimc_cdsp_clk.clkr,
26478c2ecf20Sopenharmony_ci	[GCC_BIMC_MDSS_CLK] = &gcc_bimc_mdss_clk.clkr,
26488c2ecf20Sopenharmony_ci	[GCC_BLSP1_AHB_CLK] = &gcc_blsp1_ahb_clk.clkr,
26498c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP0_I2C_APPS_CLK] = &gcc_blsp1_qup0_i2c_apps_clk.clkr,
26508c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP0_SPI_APPS_CLK] = &gcc_blsp1_qup0_spi_apps_clk.clkr,
26518c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP1_I2C_APPS_CLK] = &gcc_blsp1_qup1_i2c_apps_clk.clkr,
26528c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP1_SPI_APPS_CLK] = &gcc_blsp1_qup1_spi_apps_clk.clkr,
26538c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP2_I2C_APPS_CLK] = &gcc_blsp1_qup2_i2c_apps_clk.clkr,
26548c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP2_SPI_APPS_CLK] = &gcc_blsp1_qup2_spi_apps_clk.clkr,
26558c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP3_I2C_APPS_CLK] = &gcc_blsp1_qup3_i2c_apps_clk.clkr,
26568c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP3_SPI_APPS_CLK] = &gcc_blsp1_qup3_spi_apps_clk.clkr,
26578c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP4_I2C_APPS_CLK] = &gcc_blsp1_qup4_i2c_apps_clk.clkr,
26588c2ecf20Sopenharmony_ci	[GCC_BLSP1_QUP4_SPI_APPS_CLK] = &gcc_blsp1_qup4_spi_apps_clk.clkr,
26598c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART0_APPS_CLK] = &gcc_blsp1_uart0_apps_clk.clkr,
26608c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART1_APPS_CLK] = &gcc_blsp1_uart1_apps_clk.clkr,
26618c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART2_APPS_CLK] = &gcc_blsp1_uart2_apps_clk.clkr,
26628c2ecf20Sopenharmony_ci	[GCC_BLSP1_UART3_APPS_CLK] = &gcc_blsp1_uart3_apps_clk.clkr,
26638c2ecf20Sopenharmony_ci	[GCC_BLSP2_AHB_CLK] = &gcc_blsp2_ahb_clk.clkr,
26648c2ecf20Sopenharmony_ci	[GCC_BLSP2_QUP0_I2C_APPS_CLK] = &gcc_blsp2_qup0_i2c_apps_clk.clkr,
26658c2ecf20Sopenharmony_ci	[GCC_BLSP2_QUP0_SPI_APPS_CLK] = &gcc_blsp2_qup0_spi_apps_clk.clkr,
26668c2ecf20Sopenharmony_ci	[GCC_BLSP2_UART0_APPS_CLK] = &gcc_blsp2_uart0_apps_clk.clkr,
26678c2ecf20Sopenharmony_ci	[GCC_BOOT_ROM_AHB_CLK] = &gcc_boot_rom_ahb_clk.clkr,
26688c2ecf20Sopenharmony_ci	[GCC_ETH_AXI_CLK] = &gcc_eth_axi_clk.clkr,
26698c2ecf20Sopenharmony_ci	[GCC_ETH_PTP_CLK] = &gcc_eth_ptp_clk.clkr,
26708c2ecf20Sopenharmony_ci	[GCC_ETH_RGMII_CLK] = &gcc_eth_rgmii_clk.clkr,
26718c2ecf20Sopenharmony_ci	[GCC_ETH_SLAVE_AHB_CLK] = &gcc_eth_slave_ahb_clk.clkr,
26728c2ecf20Sopenharmony_ci	[GCC_GENI_IR_S_CLK] = &gcc_geni_ir_s_clk.clkr,
26738c2ecf20Sopenharmony_ci	[GCC_GENI_IR_H_CLK] = &gcc_geni_ir_h_clk.clkr,
26748c2ecf20Sopenharmony_ci	[GCC_GP1_CLK] = &gcc_gp1_clk.clkr,
26758c2ecf20Sopenharmony_ci	[GCC_GP2_CLK] = &gcc_gp2_clk.clkr,
26768c2ecf20Sopenharmony_ci	[GCC_GP3_CLK] = &gcc_gp3_clk.clkr,
26778c2ecf20Sopenharmony_ci	[GCC_MDSS_AHB_CLK] = &gcc_mdss_ahb_clk.clkr,
26788c2ecf20Sopenharmony_ci	[GCC_MDSS_AXI_CLK] = &gcc_mdss_axi_clk.clkr,
26798c2ecf20Sopenharmony_ci	[GCC_MDSS_BYTE0_CLK] = &gcc_mdss_byte0_clk.clkr,
26808c2ecf20Sopenharmony_ci	[GCC_MDSS_ESC0_CLK] = &gcc_mdss_esc0_clk.clkr,
26818c2ecf20Sopenharmony_ci	[GCC_MDSS_HDMI_APP_CLK] = &gcc_mdss_hdmi_app_clk.clkr,
26828c2ecf20Sopenharmony_ci	[GCC_MDSS_HDMI_PCLK_CLK] = &gcc_mdss_hdmi_pclk_clk.clkr,
26838c2ecf20Sopenharmony_ci	[GCC_MDSS_MDP_CLK] = &gcc_mdss_mdp_clk.clkr,
26848c2ecf20Sopenharmony_ci	[GCC_MDSS_PCLK0_CLK] = &gcc_mdss_pclk0_clk.clkr,
26858c2ecf20Sopenharmony_ci	[GCC_MDSS_VSYNC_CLK] = &gcc_mdss_vsync_clk.clkr,
26868c2ecf20Sopenharmony_ci	[GCC_OXILI_AHB_CLK] = &gcc_oxili_ahb_clk.clkr,
26878c2ecf20Sopenharmony_ci	[GCC_OXILI_GFX3D_CLK] = &gcc_oxili_gfx3d_clk.clkr,
26888c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AUX_CLK] = &gcc_pcie_0_aux_clk.clkr,
26898c2ecf20Sopenharmony_ci	[GCC_PCIE_0_CFG_AHB_CLK] = &gcc_pcie_0_cfg_ahb_clk.clkr,
26908c2ecf20Sopenharmony_ci	[GCC_PCIE_0_MSTR_AXI_CLK] = &gcc_pcie_0_mstr_axi_clk.clkr,
26918c2ecf20Sopenharmony_ci	[GCC_PCIE_0_PIPE_CLK] = &gcc_pcie_0_pipe_clk.clkr,
26928c2ecf20Sopenharmony_ci	[GCC_PCIE_0_SLV_AXI_CLK] = &gcc_pcie_0_slv_axi_clk.clkr,
26938c2ecf20Sopenharmony_ci	[GCC_PCNOC_USB2_CLK] = &gcc_pcnoc_usb2_clk.clkr,
26948c2ecf20Sopenharmony_ci	[GCC_PCNOC_USB3_CLK] = &gcc_pcnoc_usb3_clk.clkr,
26958c2ecf20Sopenharmony_ci	[GCC_PDM2_CLK] = &gcc_pdm2_clk.clkr,
26968c2ecf20Sopenharmony_ci	[GCC_PDM_AHB_CLK] = &gcc_pdm_ahb_clk.clkr,
26978c2ecf20Sopenharmony_ci	[GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr,
26988c2ecf20Sopenharmony_ci	[GCC_PWM0_XO512_CLK] = &gcc_pwm0_xo512_clk.clkr,
26998c2ecf20Sopenharmony_ci	[GCC_PWM1_XO512_CLK] = &gcc_pwm1_xo512_clk.clkr,
27008c2ecf20Sopenharmony_ci	[GCC_PWM2_XO512_CLK] = &gcc_pwm2_xo512_clk.clkr,
27018c2ecf20Sopenharmony_ci	[GCC_SDCC1_AHB_CLK] = &gcc_sdcc1_ahb_clk.clkr,
27028c2ecf20Sopenharmony_ci	[GCC_SDCC1_APPS_CLK] = &gcc_sdcc1_apps_clk.clkr,
27038c2ecf20Sopenharmony_ci	[GCC_SDCC1_ICE_CORE_CLK] = &gcc_sdcc1_ice_core_clk.clkr,
27048c2ecf20Sopenharmony_ci	[GCC_CDSP_CFG_AHB_CLK] = &gcc_cdsp_cfg_ahb_clk.clkr,
27058c2ecf20Sopenharmony_ci	[GCC_SDCC2_AHB_CLK] = &gcc_sdcc2_ahb_clk.clkr,
27068c2ecf20Sopenharmony_ci	[GCC_SDCC2_APPS_CLK] = &gcc_sdcc2_apps_clk.clkr,
27078c2ecf20Sopenharmony_ci	[GCC_SYS_NOC_USB3_CLK] = &gcc_sys_noc_usb3_clk.clkr,
27088c2ecf20Sopenharmony_ci	[GCC_USB20_MOCK_UTMI_CLK] = &gcc_usb20_mock_utmi_clk.clkr,
27098c2ecf20Sopenharmony_ci	[GCC_USB2A_PHY_SLEEP_CLK] = &gcc_usb2a_phy_sleep_clk.clkr,
27108c2ecf20Sopenharmony_ci	[GCC_USB30_MASTER_CLK] = &gcc_usb30_master_clk.clkr,
27118c2ecf20Sopenharmony_ci	[GCC_USB30_MOCK_UTMI_CLK] = &gcc_usb30_mock_utmi_clk.clkr,
27128c2ecf20Sopenharmony_ci	[GCC_USB30_SLEEP_CLK] = &gcc_usb30_sleep_clk.clkr,
27138c2ecf20Sopenharmony_ci	[GCC_USB3_PHY_AUX_CLK] = &gcc_usb3_phy_aux_clk.clkr,
27148c2ecf20Sopenharmony_ci	[GCC_USB3_PHY_PIPE_CLK] = &gcc_usb3_phy_pipe_clk.clkr,
27158c2ecf20Sopenharmony_ci	[GCC_USB_HS_PHY_CFG_AHB_CLK] = &gcc_usb_hs_phy_cfg_ahb_clk.clkr,
27168c2ecf20Sopenharmony_ci	[GCC_USB_HS_SYSTEM_CLK] = &gcc_usb_hs_system_clk.clkr,
27178c2ecf20Sopenharmony_ci	[GCC_GFX3D_CLK_SRC] = &gfx3d_clk_src.clkr,
27188c2ecf20Sopenharmony_ci	[GCC_GP1_CLK_SRC] = &gp1_clk_src.clkr,
27198c2ecf20Sopenharmony_ci	[GCC_GP2_CLK_SRC] = &gp2_clk_src.clkr,
27208c2ecf20Sopenharmony_ci	[GCC_GP3_CLK_SRC] = &gp3_clk_src.clkr,
27218c2ecf20Sopenharmony_ci	[GCC_GPLL0_OUT_MAIN] = &gpll0_out_main.clkr,
27228c2ecf20Sopenharmony_ci	[GCC_GPLL0_AO_OUT_MAIN] = &gpll0_ao_out_main.clkr,
27238c2ecf20Sopenharmony_ci	[GCC_GPLL0_SLEEP_CLK_SRC] = &gpll0_sleep_clk_src.clkr,
27248c2ecf20Sopenharmony_ci	[GCC_GPLL1_OUT_MAIN] = &gpll1_out_main.clkr,
27258c2ecf20Sopenharmony_ci	[GCC_GPLL3_OUT_MAIN] = &gpll3_out_main.clkr,
27268c2ecf20Sopenharmony_ci	[GCC_GPLL4_OUT_MAIN] = &gpll4_out_main.clkr,
27278c2ecf20Sopenharmony_ci	[GCC_GPLL6] = &gpll6.clkr,
27288c2ecf20Sopenharmony_ci	[GCC_GPLL6_OUT_AUX] = &gpll6_out_aux,
27298c2ecf20Sopenharmony_ci	[GCC_HDMI_APP_CLK_SRC] = &hdmi_app_clk_src.clkr,
27308c2ecf20Sopenharmony_ci	[GCC_HDMI_PCLK_CLK_SRC] = &hdmi_pclk_clk_src.clkr,
27318c2ecf20Sopenharmony_ci	[GCC_MDP_CLK_SRC] = &mdp_clk_src.clkr,
27328c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AUX_CLK_SRC] = &pcie_0_aux_clk_src.clkr,
27338c2ecf20Sopenharmony_ci	[GCC_PCIE_0_PIPE_CLK_SRC] = &pcie_0_pipe_clk_src.clkr,
27348c2ecf20Sopenharmony_ci	[GCC_PCLK0_CLK_SRC] = &pclk0_clk_src.clkr,
27358c2ecf20Sopenharmony_ci	[GCC_PDM2_CLK_SRC] = &pdm2_clk_src.clkr,
27368c2ecf20Sopenharmony_ci	[GCC_SDCC1_APPS_CLK_SRC] = &sdcc1_apps_clk_src.clkr,
27378c2ecf20Sopenharmony_ci	[GCC_SDCC1_ICE_CORE_CLK_SRC] = &sdcc1_ice_core_clk_src.clkr,
27388c2ecf20Sopenharmony_ci	[GCC_SDCC2_APPS_CLK_SRC] = &sdcc2_apps_clk_src.clkr,
27398c2ecf20Sopenharmony_ci	[GCC_USB20_MOCK_UTMI_CLK_SRC] = &usb20_mock_utmi_clk_src.clkr,
27408c2ecf20Sopenharmony_ci	[GCC_USB30_MASTER_CLK_SRC] = &usb30_master_clk_src.clkr,
27418c2ecf20Sopenharmony_ci	[GCC_USB30_MOCK_UTMI_CLK_SRC] = &usb30_mock_utmi_clk_src.clkr,
27428c2ecf20Sopenharmony_ci	[GCC_USB3_PHY_AUX_CLK_SRC] = &usb3_phy_aux_clk_src.clkr,
27438c2ecf20Sopenharmony_ci	[GCC_USB_HS_SYSTEM_CLK_SRC] = &usb_hs_system_clk_src.clkr,
27448c2ecf20Sopenharmony_ci	[GCC_VSYNC_CLK_SRC] = &vsync_clk_src.clkr,
27458c2ecf20Sopenharmony_ci	[GCC_CDSP_BIMC_CLK_SRC] = &cdsp_bimc_clk_src.clkr,
27468c2ecf20Sopenharmony_ci	[GCC_USB_HS_INACTIVITY_TIMERS_CLK] =
27478c2ecf20Sopenharmony_ci			&gcc_usb_hs_inactivity_timers_clk.clkr,
27488c2ecf20Sopenharmony_ci	[GCC_BIMC_GPU_CLK] = &gcc_bimc_gpu_clk.clkr,
27498c2ecf20Sopenharmony_ci	[GCC_GTCU_AHB_CLK] = &gcc_gtcu_ahb_clk.clkr,
27508c2ecf20Sopenharmony_ci	[GCC_GFX_TCU_CLK] = &gcc_gfx_tcu_clk.clkr,
27518c2ecf20Sopenharmony_ci	[GCC_GFX_TBU_CLK] = &gcc_gfx_tbu_clk.clkr,
27528c2ecf20Sopenharmony_ci	[GCC_SMMU_CFG_CLK] = &gcc_smmu_cfg_clk.clkr,
27538c2ecf20Sopenharmony_ci	[GCC_APSS_TCU_CLK] = &gcc_apss_tcu_clk.clkr,
27548c2ecf20Sopenharmony_ci	[GCC_CDSP_TBU_CLK] = &gcc_cdsp_tbu_clk.clkr,
27558c2ecf20Sopenharmony_ci	[GCC_CRYPTO_AHB_CLK] = &gcc_crypto_ahb_clk.clkr,
27568c2ecf20Sopenharmony_ci	[GCC_CRYPTO_AXI_CLK] = &gcc_crypto_axi_clk.clkr,
27578c2ecf20Sopenharmony_ci	[GCC_CRYPTO_CLK] = &gcc_crypto_clk.clkr,
27588c2ecf20Sopenharmony_ci	[GCC_MDP_TBU_CLK] = &gcc_mdp_tbu_clk.clkr,
27598c2ecf20Sopenharmony_ci	[GCC_QDSS_DAP_CLK] = &gcc_qdss_dap_clk.clkr,
27608c2ecf20Sopenharmony_ci	[GCC_DCC_CLK] = &gcc_dcc_clk.clkr,
27618c2ecf20Sopenharmony_ci	[GCC_DCC_XO_CLK] = &gcc_dcc_xo_clk.clkr,
27628c2ecf20Sopenharmony_ci	[GCC_WCSS_Q6_AHB_CLK] = &gcc_wdsp_q6ss_ahbs_clk.clkr,
27638c2ecf20Sopenharmony_ci	[GCC_WCSS_Q6_AXIM_CLK] =  &gcc_wdsp_q6ss_axim_clk.clkr,
27648c2ecf20Sopenharmony_ci
27658c2ecf20Sopenharmony_ci};
27668c2ecf20Sopenharmony_ci
27678c2ecf20Sopenharmony_cistatic const struct qcom_reset_map gcc_qcs404_resets[] = {
27688c2ecf20Sopenharmony_ci	[GCC_GENI_IR_BCR] = { 0x0F000 },
27698c2ecf20Sopenharmony_ci	[GCC_CDSP_RESTART] = { 0x18000 },
27708c2ecf20Sopenharmony_ci	[GCC_USB_HS_BCR] = { 0x41000 },
27718c2ecf20Sopenharmony_ci	[GCC_USB2_HS_PHY_ONLY_BCR] = { 0x41034 },
27728c2ecf20Sopenharmony_ci	[GCC_QUSB2_PHY_BCR] = { 0x4103c },
27738c2ecf20Sopenharmony_ci	[GCC_USB_HS_PHY_CFG_AHB_BCR] = { 0x0000c, 1 },
27748c2ecf20Sopenharmony_ci	[GCC_USB2A_PHY_BCR] = { 0x0000c, 0 },
27758c2ecf20Sopenharmony_ci	[GCC_USB3_PHY_BCR] = { 0x39004 },
27768c2ecf20Sopenharmony_ci	[GCC_USB_30_BCR] = { 0x39000 },
27778c2ecf20Sopenharmony_ci	[GCC_USB3PHY_PHY_BCR] = { 0x39008 },
27788c2ecf20Sopenharmony_ci	[GCC_PCIE_0_BCR] = { 0x3e000 },
27798c2ecf20Sopenharmony_ci	[GCC_PCIE_0_PHY_BCR] = { 0x3e004 },
27808c2ecf20Sopenharmony_ci	[GCC_PCIE_0_LINK_DOWN_BCR] = { 0x3e038 },
27818c2ecf20Sopenharmony_ci	[GCC_PCIEPHY_0_PHY_BCR] = { 0x3e03c },
27828c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AXI_MASTER_STICKY_ARES] = { 0x3e040, 6},
27838c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AHB_ARES] = { 0x3e040, 5 },
27848c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AXI_SLAVE_ARES] = { 0x3e040, 4 },
27858c2ecf20Sopenharmony_ci	[GCC_PCIE_0_AXI_MASTER_ARES] = { 0x3e040, 3 },
27868c2ecf20Sopenharmony_ci	[GCC_PCIE_0_CORE_STICKY_ARES] = { 0x3e040, 2 },
27878c2ecf20Sopenharmony_ci	[GCC_PCIE_0_SLEEP_ARES] = { 0x3e040, 1 },
27888c2ecf20Sopenharmony_ci	[GCC_PCIE_0_PIPE_ARES] = { 0x3e040, 0 },
27898c2ecf20Sopenharmony_ci	[GCC_EMAC_BCR] = { 0x4e000 },
27908c2ecf20Sopenharmony_ci	[GCC_WDSP_RESTART] = {0x19000},
27918c2ecf20Sopenharmony_ci};
27928c2ecf20Sopenharmony_ci
27938c2ecf20Sopenharmony_cistatic const struct regmap_config gcc_qcs404_regmap_config = {
27948c2ecf20Sopenharmony_ci	.reg_bits	= 32,
27958c2ecf20Sopenharmony_ci	.reg_stride	= 4,
27968c2ecf20Sopenharmony_ci	.val_bits	= 32,
27978c2ecf20Sopenharmony_ci	.max_register	= 0x7f000,
27988c2ecf20Sopenharmony_ci	.fast_io	= true,
27998c2ecf20Sopenharmony_ci};
28008c2ecf20Sopenharmony_ci
28018c2ecf20Sopenharmony_cistatic const struct qcom_cc_desc gcc_qcs404_desc = {
28028c2ecf20Sopenharmony_ci	.config = &gcc_qcs404_regmap_config,
28038c2ecf20Sopenharmony_ci	.clks = gcc_qcs404_clocks,
28048c2ecf20Sopenharmony_ci	.num_clks = ARRAY_SIZE(gcc_qcs404_clocks),
28058c2ecf20Sopenharmony_ci	.resets = gcc_qcs404_resets,
28068c2ecf20Sopenharmony_ci	.num_resets = ARRAY_SIZE(gcc_qcs404_resets),
28078c2ecf20Sopenharmony_ci	.clk_hws = gcc_qcs404_hws,
28088c2ecf20Sopenharmony_ci	.num_clk_hws = ARRAY_SIZE(gcc_qcs404_hws),
28098c2ecf20Sopenharmony_ci};
28108c2ecf20Sopenharmony_ci
28118c2ecf20Sopenharmony_cistatic const struct of_device_id gcc_qcs404_match_table[] = {
28128c2ecf20Sopenharmony_ci	{ .compatible = "qcom,gcc-qcs404" },
28138c2ecf20Sopenharmony_ci	{ }
28148c2ecf20Sopenharmony_ci};
28158c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, gcc_qcs404_match_table);
28168c2ecf20Sopenharmony_ci
28178c2ecf20Sopenharmony_cistatic int gcc_qcs404_probe(struct platform_device *pdev)
28188c2ecf20Sopenharmony_ci{
28198c2ecf20Sopenharmony_ci	struct regmap *regmap;
28208c2ecf20Sopenharmony_ci
28218c2ecf20Sopenharmony_ci	regmap = qcom_cc_map(pdev, &gcc_qcs404_desc);
28228c2ecf20Sopenharmony_ci	if (IS_ERR(regmap))
28238c2ecf20Sopenharmony_ci		return PTR_ERR(regmap);
28248c2ecf20Sopenharmony_ci
28258c2ecf20Sopenharmony_ci	clk_alpha_pll_configure(&gpll3_out_main, regmap, &gpll3_config);
28268c2ecf20Sopenharmony_ci
28278c2ecf20Sopenharmony_ci	return qcom_cc_really_probe(pdev, &gcc_qcs404_desc, regmap);
28288c2ecf20Sopenharmony_ci}
28298c2ecf20Sopenharmony_ci
28308c2ecf20Sopenharmony_cistatic struct platform_driver gcc_qcs404_driver = {
28318c2ecf20Sopenharmony_ci	.probe = gcc_qcs404_probe,
28328c2ecf20Sopenharmony_ci	.driver = {
28338c2ecf20Sopenharmony_ci		.name = "gcc-qcs404",
28348c2ecf20Sopenharmony_ci		.of_match_table = gcc_qcs404_match_table,
28358c2ecf20Sopenharmony_ci	},
28368c2ecf20Sopenharmony_ci};
28378c2ecf20Sopenharmony_ci
28388c2ecf20Sopenharmony_cistatic int __init gcc_qcs404_init(void)
28398c2ecf20Sopenharmony_ci{
28408c2ecf20Sopenharmony_ci	return platform_driver_register(&gcc_qcs404_driver);
28418c2ecf20Sopenharmony_ci}
28428c2ecf20Sopenharmony_cicore_initcall(gcc_qcs404_init);
28438c2ecf20Sopenharmony_ci
28448c2ecf20Sopenharmony_cistatic void __exit gcc_qcs404_exit(void)
28458c2ecf20Sopenharmony_ci{
28468c2ecf20Sopenharmony_ci	platform_driver_unregister(&gcc_qcs404_driver);
28478c2ecf20Sopenharmony_ci}
28488c2ecf20Sopenharmony_cimodule_exit(gcc_qcs404_exit);
28498c2ecf20Sopenharmony_ci
28508c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm GCC QCS404 Driver");
28518c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2");
2852