Commit a174d29a authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson

clk: qcom: mmcc-msm8974: use parent_hws/_data instead of parent_names

Convert the clock driver to specify parent data rather than parent
names, to actually bind using 'clock-names' specified in the DTS rather
than global clock names. Use parent_hws where possible to refer parent
clocks directly, skipping the lookup.

Note, the system names for xo clocks were changed from "xo" to
"xo_board" to follow the example of other platforms. This switches the
clocks to use DT-provided "xo_board" clock instead of manually
registered "xo" clock and allows us to drop qcom_cc_register_board_clk()
call from the driver at some point.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221204124508.1415713-9-dmitry.baryshkov@linaro.org
parent 28c6c025
...@@ -52,7 +52,9 @@ static struct clk_pll mmpll0 = { ...@@ -52,7 +52,9 @@ static struct clk_pll mmpll0 = {
.status_bit = 17, .status_bit = 17,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmpll0", .name = "mmpll0",
.parent_names = (const char *[]){ "xo" }, .parent_data = (const struct clk_parent_data[]){
{ .fw_name = "xo", .name = "xo_board" },
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_ops, .ops = &clk_pll_ops,
}, },
...@@ -63,7 +65,9 @@ static struct clk_regmap mmpll0_vote = { ...@@ -63,7 +65,9 @@ static struct clk_regmap mmpll0_vote = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmpll0_vote", .name = "mmpll0_vote",
.parent_names = (const char *[]){ "mmpll0" }, .parent_hws = (const struct clk_hw*[]){
&mmpll0.clkr.hw
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_vote_ops, .ops = &clk_pll_vote_ops,
}, },
...@@ -79,7 +83,9 @@ static struct clk_pll mmpll1 = { ...@@ -79,7 +83,9 @@ static struct clk_pll mmpll1 = {
.status_bit = 17, .status_bit = 17,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmpll1", .name = "mmpll1",
.parent_names = (const char *[]){ "xo" }, .parent_data = (const struct clk_parent_data[]){
{ .fw_name = "xo", .name = "xo_board" },
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_ops, .ops = &clk_pll_ops,
}, },
...@@ -90,7 +96,9 @@ static struct clk_regmap mmpll1_vote = { ...@@ -90,7 +96,9 @@ static struct clk_regmap mmpll1_vote = {
.enable_mask = BIT(1), .enable_mask = BIT(1),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmpll1_vote", .name = "mmpll1_vote",
.parent_names = (const char *[]){ "mmpll1" }, .parent_hws = (const struct clk_hw*[]){
&mmpll1.clkr.hw
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_vote_ops, .ops = &clk_pll_vote_ops,
}, },
...@@ -105,7 +113,9 @@ static struct clk_pll mmpll2 = { ...@@ -105,7 +113,9 @@ static struct clk_pll mmpll2 = {
.status_reg = 0x411c, .status_reg = 0x411c,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmpll2", .name = "mmpll2",
.parent_names = (const char *[]){ "xo" }, .parent_data = (const struct clk_parent_data[]){
{ .fw_name = "xo", .name = "xo_board" },
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_ops, .ops = &clk_pll_ops,
}, },
...@@ -121,7 +131,9 @@ static struct clk_pll mmpll3 = { ...@@ -121,7 +131,9 @@ static struct clk_pll mmpll3 = {
.status_bit = 17, .status_bit = 17,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmpll3", .name = "mmpll3",
.parent_names = (const char *[]){ "xo" }, .parent_data = (const struct clk_parent_data[]){
{ .fw_name = "xo", .name = "xo_board" },
},
.num_parents = 1, .num_parents = 1,
.ops = &clk_pll_ops, .ops = &clk_pll_ops,
}, },
...@@ -134,11 +146,11 @@ static const struct parent_map mmcc_xo_mmpll0_mmpll1_gpll0_map[] = { ...@@ -134,11 +146,11 @@ static const struct parent_map mmcc_xo_mmpll0_mmpll1_gpll0_map[] = {
{ P_GPLL0, 5 } { P_GPLL0, 5 }
}; };
static const char * const mmcc_xo_mmpll0_mmpll1_gpll0[] = { static const struct clk_parent_data mmcc_xo_mmpll0_mmpll1_gpll0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"mmpll0_vote", { .hw = &mmpll0_vote.hw },
"mmpll1_vote", { .hw = &mmpll1_vote.hw },
"mmss_gpll0_vote", { .fw_name = "mmss_gpll0_vote", .name = "mmss_gpll0_vote" },
}; };
static const struct parent_map mmcc_xo_mmpll0_dsi_hdmi_gpll0_map[] = { static const struct parent_map mmcc_xo_mmpll0_dsi_hdmi_gpll0_map[] = {
...@@ -150,13 +162,13 @@ static const struct parent_map mmcc_xo_mmpll0_dsi_hdmi_gpll0_map[] = { ...@@ -150,13 +162,13 @@ static const struct parent_map mmcc_xo_mmpll0_dsi_hdmi_gpll0_map[] = {
{ P_DSI1PLL, 3 } { P_DSI1PLL, 3 }
}; };
static const char * const mmcc_xo_mmpll0_dsi_hdmi_gpll0[] = { static const struct clk_parent_data mmcc_xo_mmpll0_dsi_hdmi_gpll0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"mmpll0_vote", { .hw = &mmpll0_vote.hw },
"hdmipll", { .fw_name = "hdmipll", .name = "hdmipll" },
"mmss_gpll0_vote", { .fw_name = "mmss_gpll0_vote", .name = "mmss_gpll0_vote" },
"dsi0pll", { .fw_name = "dsi0pll", .name = "dsi0pll" },
"dsi1pll", { .fw_name = "dsi1pll", .name = "dsi1pll" },
}; };
static const struct parent_map mmcc_xo_mmpll0_1_3_gpll0_map[] = { static const struct parent_map mmcc_xo_mmpll0_1_3_gpll0_map[] = {
...@@ -167,12 +179,12 @@ static const struct parent_map mmcc_xo_mmpll0_1_3_gpll0_map[] = { ...@@ -167,12 +179,12 @@ static const struct parent_map mmcc_xo_mmpll0_1_3_gpll0_map[] = {
{ P_MMPLL3, 3 } { P_MMPLL3, 3 }
}; };
static const char * const mmcc_xo_mmpll0_1_3_gpll0[] = { static const struct clk_parent_data mmcc_xo_mmpll0_1_3_gpll0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"mmpll0_vote", { .hw = &mmpll0_vote.hw },
"mmpll1_vote", { .hw = &mmpll1_vote.hw },
"mmss_gpll0_vote", { .fw_name = "mmss_gpll0_vote", .name = "mmss_gpll0_vote" },
"mmpll3", { .hw = &mmpll3.clkr.hw },
}; };
static const struct parent_map mmcc_xo_mmpll0_1_gpll1_0_map[] = { static const struct parent_map mmcc_xo_mmpll0_1_gpll1_0_map[] = {
...@@ -183,12 +195,12 @@ static const struct parent_map mmcc_xo_mmpll0_1_gpll1_0_map[] = { ...@@ -183,12 +195,12 @@ static const struct parent_map mmcc_xo_mmpll0_1_gpll1_0_map[] = {
{ P_GPLL1, 4 } { P_GPLL1, 4 }
}; };
static const char * const mmcc_xo_mmpll0_1_gpll1_0[] = { static const struct clk_parent_data mmcc_xo_mmpll0_1_gpll1_0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"mmpll0_vote", { .hw = &mmpll0_vote.hw },
"mmpll1_vote", { .hw = &mmpll1_vote.hw },
"mmss_gpll0_vote", { .fw_name = "mmss_gpll0_vote", .name = "mmss_gpll0_vote" },
"gpll1_vote", { .fw_name = "gpll1_vote", .name = "gpll1_vote" },
}; };
static const struct parent_map mmcc_xo_dsi_hdmi_edp_map[] = { static const struct parent_map mmcc_xo_dsi_hdmi_edp_map[] = {
...@@ -200,13 +212,13 @@ static const struct parent_map mmcc_xo_dsi_hdmi_edp_map[] = { ...@@ -200,13 +212,13 @@ static const struct parent_map mmcc_xo_dsi_hdmi_edp_map[] = {
{ P_DSI1PLL, 2 } { P_DSI1PLL, 2 }
}; };
static const char * const mmcc_xo_dsi_hdmi_edp[] = { static const struct clk_parent_data mmcc_xo_dsi_hdmi_edp[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"edp_link_clk", { .fw_name = "edp_link_clk", .name = "edp_link_clk" },
"hdmipll", { .fw_name = "hdmipll", .name = "hdmipll" },
"edp_vco_div", { .fw_name = "edp_vco_div", .name = "edp_vco_div" },
"dsi0pll", { .fw_name = "dsi0pll", .name = "dsi0pll" },
"dsi1pll", { .fw_name = "dsi1pll", .name = "dsi1pll" },
}; };
static const struct parent_map mmcc_xo_dsi_hdmi_edp_gpll0_map[] = { static const struct parent_map mmcc_xo_dsi_hdmi_edp_gpll0_map[] = {
...@@ -218,13 +230,13 @@ static const struct parent_map mmcc_xo_dsi_hdmi_edp_gpll0_map[] = { ...@@ -218,13 +230,13 @@ static const struct parent_map mmcc_xo_dsi_hdmi_edp_gpll0_map[] = {
{ P_DSI1PLL, 2 } { P_DSI1PLL, 2 }
}; };
static const char * const mmcc_xo_dsi_hdmi_edp_gpll0[] = { static const struct clk_parent_data mmcc_xo_dsi_hdmi_edp_gpll0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"edp_link_clk", { .fw_name = "edp_link_clk", .name = "edp_link_clk" },
"hdmipll", { .fw_name = "hdmipll", .name = "hdmipll" },
"gpll0_vote", { .fw_name = "gpll0_vote", .name = "gpll0_vote" },
"dsi0pll", { .fw_name = "dsi0pll", .name = "dsi0pll" },
"dsi1pll", { .fw_name = "dsi1pll", .name = "dsi1pll" },
}; };
static const struct parent_map mmcc_xo_dsibyte_hdmi_edp_gpll0_map[] = { static const struct parent_map mmcc_xo_dsibyte_hdmi_edp_gpll0_map[] = {
...@@ -236,13 +248,13 @@ static const struct parent_map mmcc_xo_dsibyte_hdmi_edp_gpll0_map[] = { ...@@ -236,13 +248,13 @@ static const struct parent_map mmcc_xo_dsibyte_hdmi_edp_gpll0_map[] = {
{ P_DSI1PLL_BYTE, 2 } { P_DSI1PLL_BYTE, 2 }
}; };
static const char * const mmcc_xo_dsibyte_hdmi_edp_gpll0[] = { static const struct clk_parent_data mmcc_xo_dsibyte_hdmi_edp_gpll0[] = {
"xo", { .fw_name = "xo", .name = "xo_board" },
"edp_link_clk", { .fw_name = "edp_link_clk", .name = "edp_link_clk" },
"hdmipll", { .fw_name = "hdmipll", .name = "hdmipll" },
"gpll0_vote", { .fw_name = "gpll0_vote", .name = "gpll0_vote" },
"dsi0pllbyte", { .fw_name = "dsi0pllbyte", .name = "dsi0pllbyte" },
"dsi1pllbyte", { .fw_name = "dsi1pllbyte", .name = "dsi1pllbyte" },
}; };
static struct clk_rcg2 mmss_ahb_clk_src = { static struct clk_rcg2 mmss_ahb_clk_src = {
...@@ -251,7 +263,7 @@ static struct clk_rcg2 mmss_ahb_clk_src = { ...@@ -251,7 +263,7 @@ static struct clk_rcg2 mmss_ahb_clk_src = {
.parent_map = mmcc_xo_mmpll0_mmpll1_gpll0_map, .parent_map = mmcc_xo_mmpll0_mmpll1_gpll0_map,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmss_ahb_clk_src", .name = "mmss_ahb_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -288,7 +300,7 @@ static struct clk_rcg2 mmss_axi_clk_src = { ...@@ -288,7 +300,7 @@ static struct clk_rcg2 mmss_axi_clk_src = {
.freq_tbl = ftbl_mmss_axi_clk, .freq_tbl = ftbl_mmss_axi_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mmss_axi_clk_src", .name = "mmss_axi_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -312,7 +324,7 @@ static struct clk_rcg2 ocmemnoc_clk_src = { ...@@ -312,7 +324,7 @@ static struct clk_rcg2 ocmemnoc_clk_src = {
.freq_tbl = ftbl_ocmemnoc_clk, .freq_tbl = ftbl_ocmemnoc_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "ocmemnoc_clk_src", .name = "ocmemnoc_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -331,7 +343,7 @@ static struct clk_rcg2 csi0_clk_src = { ...@@ -331,7 +343,7 @@ static struct clk_rcg2 csi0_clk_src = {
.freq_tbl = ftbl_camss_csi0_3_clk, .freq_tbl = ftbl_camss_csi0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi0_clk_src", .name = "csi0_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -344,7 +356,7 @@ static struct clk_rcg2 csi1_clk_src = { ...@@ -344,7 +356,7 @@ static struct clk_rcg2 csi1_clk_src = {
.freq_tbl = ftbl_camss_csi0_3_clk, .freq_tbl = ftbl_camss_csi0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi1_clk_src", .name = "csi1_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -357,7 +369,7 @@ static struct clk_rcg2 csi2_clk_src = { ...@@ -357,7 +369,7 @@ static struct clk_rcg2 csi2_clk_src = {
.freq_tbl = ftbl_camss_csi0_3_clk, .freq_tbl = ftbl_camss_csi0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi2_clk_src", .name = "csi2_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -370,7 +382,7 @@ static struct clk_rcg2 csi3_clk_src = { ...@@ -370,7 +382,7 @@ static struct clk_rcg2 csi3_clk_src = {
.freq_tbl = ftbl_camss_csi0_3_clk, .freq_tbl = ftbl_camss_csi0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi3_clk_src", .name = "csi3_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -417,7 +429,7 @@ static struct clk_rcg2 vfe0_clk_src = { ...@@ -417,7 +429,7 @@ static struct clk_rcg2 vfe0_clk_src = {
.freq_tbl = ftbl_camss_vfe_vfe0_1_clk, .freq_tbl = ftbl_camss_vfe_vfe0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "vfe0_clk_src", .name = "vfe0_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -430,7 +442,7 @@ static struct clk_rcg2 vfe1_clk_src = { ...@@ -430,7 +442,7 @@ static struct clk_rcg2 vfe1_clk_src = {
.freq_tbl = ftbl_camss_vfe_vfe0_1_clk, .freq_tbl = ftbl_camss_vfe_vfe0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "vfe1_clk_src", .name = "vfe1_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -471,7 +483,7 @@ static struct clk_rcg2 mdp_clk_src = { ...@@ -471,7 +483,7 @@ static struct clk_rcg2 mdp_clk_src = {
.freq_tbl = ftbl_mdss_mdp_clk, .freq_tbl = ftbl_mdss_mdp_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mdp_clk_src", .name = "mdp_clk_src",
.parent_names = mmcc_xo_mmpll0_dsi_hdmi_gpll0, .parent_data = mmcc_xo_mmpll0_dsi_hdmi_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_dsi_hdmi_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_dsi_hdmi_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -494,7 +506,7 @@ static struct clk_rcg2 jpeg0_clk_src = { ...@@ -494,7 +506,7 @@ static struct clk_rcg2 jpeg0_clk_src = {
.freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk, .freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "jpeg0_clk_src", .name = "jpeg0_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -507,7 +519,7 @@ static struct clk_rcg2 jpeg1_clk_src = { ...@@ -507,7 +519,7 @@ static struct clk_rcg2 jpeg1_clk_src = {
.freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk, .freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "jpeg1_clk_src", .name = "jpeg1_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -520,7 +532,7 @@ static struct clk_rcg2 jpeg2_clk_src = { ...@@ -520,7 +532,7 @@ static struct clk_rcg2 jpeg2_clk_src = {
.freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk, .freq_tbl = ftbl_camss_jpeg_jpeg0_2_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "jpeg2_clk_src", .name = "jpeg2_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -533,7 +545,7 @@ static struct clk_rcg2 pclk0_clk_src = { ...@@ -533,7 +545,7 @@ static struct clk_rcg2 pclk0_clk_src = {
.parent_map = mmcc_xo_dsi_hdmi_edp_gpll0_map, .parent_map = mmcc_xo_dsi_hdmi_edp_gpll0_map,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "pclk0_clk_src", .name = "pclk0_clk_src",
.parent_names = mmcc_xo_dsi_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsi_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0),
.ops = &clk_pixel_ops, .ops = &clk_pixel_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -547,7 +559,7 @@ static struct clk_rcg2 pclk1_clk_src = { ...@@ -547,7 +559,7 @@ static struct clk_rcg2 pclk1_clk_src = {
.parent_map = mmcc_xo_dsi_hdmi_edp_gpll0_map, .parent_map = mmcc_xo_dsi_hdmi_edp_gpll0_map,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "pclk1_clk_src", .name = "pclk1_clk_src",
.parent_names = mmcc_xo_dsi_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsi_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0),
.ops = &clk_pixel_ops, .ops = &clk_pixel_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -580,7 +592,7 @@ static struct clk_rcg2 vcodec0_clk_src = { ...@@ -580,7 +592,7 @@ static struct clk_rcg2 vcodec0_clk_src = {
.freq_tbl = ftbl_venus0_vcodec0_clk, .freq_tbl = ftbl_venus0_vcodec0_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "vcodec0_clk_src", .name = "vcodec0_clk_src",
.parent_names = mmcc_xo_mmpll0_1_3_gpll0, .parent_data = mmcc_xo_mmpll0_1_3_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_3_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_3_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -598,7 +610,7 @@ static struct clk_rcg2 cci_clk_src = { ...@@ -598,7 +610,7 @@ static struct clk_rcg2 cci_clk_src = {
.freq_tbl = ftbl_camss_cci_cci_clk, .freq_tbl = ftbl_camss_cci_cci_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "cci_clk_src", .name = "cci_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -622,7 +634,7 @@ static struct clk_rcg2 camss_gp0_clk_src = { ...@@ -622,7 +634,7 @@ static struct clk_rcg2 camss_gp0_clk_src = {
.freq_tbl = ftbl_camss_gp0_1_clk, .freq_tbl = ftbl_camss_gp0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "camss_gp0_clk_src", .name = "camss_gp0_clk_src",
.parent_names = mmcc_xo_mmpll0_1_gpll1_0, .parent_data = mmcc_xo_mmpll0_1_gpll1_0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_gpll1_0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_gpll1_0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -636,7 +648,7 @@ static struct clk_rcg2 camss_gp1_clk_src = { ...@@ -636,7 +648,7 @@ static struct clk_rcg2 camss_gp1_clk_src = {
.freq_tbl = ftbl_camss_gp0_1_clk, .freq_tbl = ftbl_camss_gp0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "camss_gp1_clk_src", .name = "camss_gp1_clk_src",
.parent_names = mmcc_xo_mmpll0_1_gpll1_0, .parent_data = mmcc_xo_mmpll0_1_gpll1_0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_gpll1_0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_1_gpll1_0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -671,7 +683,7 @@ static struct clk_rcg2 mclk0_clk_src = { ...@@ -671,7 +683,7 @@ static struct clk_rcg2 mclk0_clk_src = {
.freq_tbl = ftbl_camss_mclk0_3_clk, .freq_tbl = ftbl_camss_mclk0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mclk0_clk_src", .name = "mclk0_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -684,7 +696,7 @@ static struct clk_rcg2 mclk1_clk_src = { ...@@ -684,7 +696,7 @@ static struct clk_rcg2 mclk1_clk_src = {
.freq_tbl = ftbl_camss_mclk0_3_clk, .freq_tbl = ftbl_camss_mclk0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mclk1_clk_src", .name = "mclk1_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -697,7 +709,7 @@ static struct clk_rcg2 mclk2_clk_src = { ...@@ -697,7 +709,7 @@ static struct clk_rcg2 mclk2_clk_src = {
.freq_tbl = ftbl_camss_mclk0_3_clk, .freq_tbl = ftbl_camss_mclk0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mclk2_clk_src", .name = "mclk2_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -710,7 +722,7 @@ static struct clk_rcg2 mclk3_clk_src = { ...@@ -710,7 +722,7 @@ static struct clk_rcg2 mclk3_clk_src = {
.freq_tbl = ftbl_camss_mclk0_3_clk, .freq_tbl = ftbl_camss_mclk0_3_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "mclk3_clk_src", .name = "mclk3_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -729,7 +741,7 @@ static struct clk_rcg2 csi0phytimer_clk_src = { ...@@ -729,7 +741,7 @@ static struct clk_rcg2 csi0phytimer_clk_src = {
.freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk, .freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi0phytimer_clk_src", .name = "csi0phytimer_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -742,7 +754,7 @@ static struct clk_rcg2 csi1phytimer_clk_src = { ...@@ -742,7 +754,7 @@ static struct clk_rcg2 csi1phytimer_clk_src = {
.freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk, .freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi1phytimer_clk_src", .name = "csi1phytimer_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -755,7 +767,7 @@ static struct clk_rcg2 csi2phytimer_clk_src = { ...@@ -755,7 +767,7 @@ static struct clk_rcg2 csi2phytimer_clk_src = {
.freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk, .freq_tbl = ftbl_camss_phy0_2_csi0_2phytimer_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "csi2phytimer_clk_src", .name = "csi2phytimer_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -786,7 +798,7 @@ static struct clk_rcg2 cpp_clk_src = { ...@@ -786,7 +798,7 @@ static struct clk_rcg2 cpp_clk_src = {
.freq_tbl = ftbl_camss_vfe_cpp_clk, .freq_tbl = ftbl_camss_vfe_cpp_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "cpp_clk_src", .name = "cpp_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -804,7 +816,7 @@ static struct clk_rcg2 byte0_clk_src = { ...@@ -804,7 +816,7 @@ static struct clk_rcg2 byte0_clk_src = {
.freq_tbl = byte_freq_tbl, .freq_tbl = byte_freq_tbl,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "byte0_clk_src", .name = "byte0_clk_src",
.parent_names = mmcc_xo_dsibyte_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsibyte_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0),
.ops = &clk_byte2_ops, .ops = &clk_byte2_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -818,7 +830,7 @@ static struct clk_rcg2 byte1_clk_src = { ...@@ -818,7 +830,7 @@ static struct clk_rcg2 byte1_clk_src = {
.freq_tbl = byte_freq_tbl, .freq_tbl = byte_freq_tbl,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "byte1_clk_src", .name = "byte1_clk_src",
.parent_names = mmcc_xo_dsibyte_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsibyte_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0),
.ops = &clk_byte2_ops, .ops = &clk_byte2_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -837,7 +849,7 @@ static struct clk_rcg2 edpaux_clk_src = { ...@@ -837,7 +849,7 @@ static struct clk_rcg2 edpaux_clk_src = {
.freq_tbl = ftbl_mdss_edpaux_clk, .freq_tbl = ftbl_mdss_edpaux_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "edpaux_clk_src", .name = "edpaux_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -856,7 +868,7 @@ static struct clk_rcg2 edplink_clk_src = { ...@@ -856,7 +868,7 @@ static struct clk_rcg2 edplink_clk_src = {
.freq_tbl = ftbl_mdss_edplink_clk, .freq_tbl = ftbl_mdss_edplink_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "edplink_clk_src", .name = "edplink_clk_src",
.parent_names = mmcc_xo_dsi_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsi_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -876,7 +888,7 @@ static struct clk_rcg2 edppixel_clk_src = { ...@@ -876,7 +888,7 @@ static struct clk_rcg2 edppixel_clk_src = {
.freq_tbl = edp_pixel_freq_tbl, .freq_tbl = edp_pixel_freq_tbl,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "edppixel_clk_src", .name = "edppixel_clk_src",
.parent_names = mmcc_xo_dsi_hdmi_edp, .parent_data = mmcc_xo_dsi_hdmi_edp,
.num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp), .num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp),
.ops = &clk_edp_pixel_ops, .ops = &clk_edp_pixel_ops,
}, },
...@@ -894,7 +906,7 @@ static struct clk_rcg2 esc0_clk_src = { ...@@ -894,7 +906,7 @@ static struct clk_rcg2 esc0_clk_src = {
.freq_tbl = ftbl_mdss_esc0_1_clk, .freq_tbl = ftbl_mdss_esc0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "esc0_clk_src", .name = "esc0_clk_src",
.parent_names = mmcc_xo_dsibyte_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsibyte_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -907,7 +919,7 @@ static struct clk_rcg2 esc1_clk_src = { ...@@ -907,7 +919,7 @@ static struct clk_rcg2 esc1_clk_src = {
.freq_tbl = ftbl_mdss_esc0_1_clk, .freq_tbl = ftbl_mdss_esc0_1_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "esc1_clk_src", .name = "esc1_clk_src",
.parent_names = mmcc_xo_dsibyte_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsibyte_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsibyte_hdmi_edp_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -925,7 +937,7 @@ static struct clk_rcg2 extpclk_clk_src = { ...@@ -925,7 +937,7 @@ static struct clk_rcg2 extpclk_clk_src = {
.freq_tbl = extpclk_freq_tbl, .freq_tbl = extpclk_freq_tbl,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "extpclk_clk_src", .name = "extpclk_clk_src",
.parent_names = mmcc_xo_dsi_hdmi_edp_gpll0, .parent_data = mmcc_xo_dsi_hdmi_edp_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_dsi_hdmi_edp_gpll0),
.ops = &clk_byte_ops, .ops = &clk_byte_ops,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -944,7 +956,7 @@ static struct clk_rcg2 hdmi_clk_src = { ...@@ -944,7 +956,7 @@ static struct clk_rcg2 hdmi_clk_src = {
.freq_tbl = ftbl_mdss_hdmi_clk, .freq_tbl = ftbl_mdss_hdmi_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "hdmi_clk_src", .name = "hdmi_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -962,7 +974,7 @@ static struct clk_rcg2 vsync_clk_src = { ...@@ -962,7 +974,7 @@ static struct clk_rcg2 vsync_clk_src = {
.freq_tbl = ftbl_mdss_vsync_clk, .freq_tbl = ftbl_mdss_vsync_clk,
.clkr.hw.init = &(struct clk_init_data){ .clkr.hw.init = &(struct clk_init_data){
.name = "vsync_clk_src", .name = "vsync_clk_src",
.parent_names = mmcc_xo_mmpll0_mmpll1_gpll0, .parent_data = mmcc_xo_mmpll0_mmpll1_gpll0,
.num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0), .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_mmpll1_gpll0),
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_ops,
}, },
...@@ -975,8 +987,8 @@ static struct clk_branch camss_cci_cci_ahb_clk = { ...@@ -975,8 +987,8 @@ static struct clk_branch camss_cci_cci_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_cci_cci_ahb_clk", .name = "camss_cci_cci_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -991,8 +1003,8 @@ static struct clk_branch camss_cci_cci_clk = { ...@@ -991,8 +1003,8 @@ static struct clk_branch camss_cci_cci_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_cci_cci_clk", .name = "camss_cci_cci_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"cci_clk_src", &cci_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1008,8 +1020,8 @@ static struct clk_branch camss_csi0_ahb_clk = { ...@@ -1008,8 +1020,8 @@ static struct clk_branch camss_csi0_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi0_ahb_clk", .name = "camss_csi0_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1024,8 +1036,8 @@ static struct clk_branch camss_csi0_clk = { ...@@ -1024,8 +1036,8 @@ static struct clk_branch camss_csi0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi0_clk", .name = "camss_csi0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi0_clk_src", &csi0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1041,8 +1053,8 @@ static struct clk_branch camss_csi0phy_clk = { ...@@ -1041,8 +1053,8 @@ static struct clk_branch camss_csi0phy_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi0phy_clk", .name = "camss_csi0phy_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi0_clk_src", &csi0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1058,8 +1070,8 @@ static struct clk_branch camss_csi0pix_clk = { ...@@ -1058,8 +1070,8 @@ static struct clk_branch camss_csi0pix_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi0pix_clk", .name = "camss_csi0pix_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi0_clk_src", &csi0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1075,8 +1087,8 @@ static struct clk_branch camss_csi0rdi_clk = { ...@@ -1075,8 +1087,8 @@ static struct clk_branch camss_csi0rdi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi0rdi_clk", .name = "camss_csi0rdi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi0_clk_src", &csi0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1092,8 +1104,8 @@ static struct clk_branch camss_csi1_ahb_clk = { ...@@ -1092,8 +1104,8 @@ static struct clk_branch camss_csi1_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi1_ahb_clk", .name = "camss_csi1_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1108,8 +1120,8 @@ static struct clk_branch camss_csi1_clk = { ...@@ -1108,8 +1120,8 @@ static struct clk_branch camss_csi1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi1_clk", .name = "camss_csi1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi1_clk_src", &csi1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1125,8 +1137,8 @@ static struct clk_branch camss_csi1phy_clk = { ...@@ -1125,8 +1137,8 @@ static struct clk_branch camss_csi1phy_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi1phy_clk", .name = "camss_csi1phy_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi1_clk_src", &csi1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1142,8 +1154,8 @@ static struct clk_branch camss_csi1pix_clk = { ...@@ -1142,8 +1154,8 @@ static struct clk_branch camss_csi1pix_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi1pix_clk", .name = "camss_csi1pix_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi1_clk_src", &csi1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1159,8 +1171,8 @@ static struct clk_branch camss_csi1rdi_clk = { ...@@ -1159,8 +1171,8 @@ static struct clk_branch camss_csi1rdi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi1rdi_clk", .name = "camss_csi1rdi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi1_clk_src", &csi1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1176,8 +1188,8 @@ static struct clk_branch camss_csi2_ahb_clk = { ...@@ -1176,8 +1188,8 @@ static struct clk_branch camss_csi2_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi2_ahb_clk", .name = "camss_csi2_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1192,8 +1204,8 @@ static struct clk_branch camss_csi2_clk = { ...@@ -1192,8 +1204,8 @@ static struct clk_branch camss_csi2_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi2_clk", .name = "camss_csi2_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi2_clk_src", &csi2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1209,8 +1221,8 @@ static struct clk_branch camss_csi2phy_clk = { ...@@ -1209,8 +1221,8 @@ static struct clk_branch camss_csi2phy_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi2phy_clk", .name = "camss_csi2phy_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi2_clk_src", &csi2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1226,8 +1238,8 @@ static struct clk_branch camss_csi2pix_clk = { ...@@ -1226,8 +1238,8 @@ static struct clk_branch camss_csi2pix_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi2pix_clk", .name = "camss_csi2pix_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi2_clk_src", &csi2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1243,8 +1255,8 @@ static struct clk_branch camss_csi2rdi_clk = { ...@@ -1243,8 +1255,8 @@ static struct clk_branch camss_csi2rdi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi2rdi_clk", .name = "camss_csi2rdi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi2_clk_src", &csi2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1260,8 +1272,8 @@ static struct clk_branch camss_csi3_ahb_clk = { ...@@ -1260,8 +1272,8 @@ static struct clk_branch camss_csi3_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi3_ahb_clk", .name = "camss_csi3_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1276,8 +1288,8 @@ static struct clk_branch camss_csi3_clk = { ...@@ -1276,8 +1288,8 @@ static struct clk_branch camss_csi3_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi3_clk", .name = "camss_csi3_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi3_clk_src", &csi3_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1293,8 +1305,8 @@ static struct clk_branch camss_csi3phy_clk = { ...@@ -1293,8 +1305,8 @@ static struct clk_branch camss_csi3phy_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi3phy_clk", .name = "camss_csi3phy_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi3_clk_src", &csi3_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1310,8 +1322,8 @@ static struct clk_branch camss_csi3pix_clk = { ...@@ -1310,8 +1322,8 @@ static struct clk_branch camss_csi3pix_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi3pix_clk", .name = "camss_csi3pix_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi3_clk_src", &csi3_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1327,8 +1339,8 @@ static struct clk_branch camss_csi3rdi_clk = { ...@@ -1327,8 +1339,8 @@ static struct clk_branch camss_csi3rdi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi3rdi_clk", .name = "camss_csi3rdi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi3_clk_src", &csi3_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1344,8 +1356,8 @@ static struct clk_branch camss_csi_vfe0_clk = { ...@@ -1344,8 +1356,8 @@ static struct clk_branch camss_csi_vfe0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi_vfe0_clk", .name = "camss_csi_vfe0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vfe0_clk_src", &vfe0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1361,8 +1373,8 @@ static struct clk_branch camss_csi_vfe1_clk = { ...@@ -1361,8 +1373,8 @@ static struct clk_branch camss_csi_vfe1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_csi_vfe1_clk", .name = "camss_csi_vfe1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vfe1_clk_src", &vfe1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1378,8 +1390,8 @@ static struct clk_branch camss_gp0_clk = { ...@@ -1378,8 +1390,8 @@ static struct clk_branch camss_gp0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_gp0_clk", .name = "camss_gp0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"camss_gp0_clk_src", &camss_gp0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1395,8 +1407,8 @@ static struct clk_branch camss_gp1_clk = { ...@@ -1395,8 +1407,8 @@ static struct clk_branch camss_gp1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_gp1_clk", .name = "camss_gp1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"camss_gp1_clk_src", &camss_gp1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1412,8 +1424,8 @@ static struct clk_branch camss_ispif_ahb_clk = { ...@@ -1412,8 +1424,8 @@ static struct clk_branch camss_ispif_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_ispif_ahb_clk", .name = "camss_ispif_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1428,8 +1440,8 @@ static struct clk_branch camss_jpeg_jpeg0_clk = { ...@@ -1428,8 +1440,8 @@ static struct clk_branch camss_jpeg_jpeg0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg0_clk", .name = "camss_jpeg_jpeg0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"jpeg0_clk_src", &jpeg0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1445,8 +1457,8 @@ static struct clk_branch camss_jpeg_jpeg1_clk = { ...@@ -1445,8 +1457,8 @@ static struct clk_branch camss_jpeg_jpeg1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg1_clk", .name = "camss_jpeg_jpeg1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"jpeg1_clk_src", &jpeg1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1462,8 +1474,8 @@ static struct clk_branch camss_jpeg_jpeg2_clk = { ...@@ -1462,8 +1474,8 @@ static struct clk_branch camss_jpeg_jpeg2_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg2_clk", .name = "camss_jpeg_jpeg2_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"jpeg2_clk_src", &jpeg2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1479,8 +1491,8 @@ static struct clk_branch camss_jpeg_jpeg_ahb_clk = { ...@@ -1479,8 +1491,8 @@ static struct clk_branch camss_jpeg_jpeg_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg_ahb_clk", .name = "camss_jpeg_jpeg_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1495,8 +1507,8 @@ static struct clk_branch camss_jpeg_jpeg_axi_clk = { ...@@ -1495,8 +1507,8 @@ static struct clk_branch camss_jpeg_jpeg_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg_axi_clk", .name = "camss_jpeg_jpeg_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1511,8 +1523,8 @@ static struct clk_branch camss_jpeg_jpeg_ocmemnoc_clk = { ...@@ -1511,8 +1523,8 @@ static struct clk_branch camss_jpeg_jpeg_ocmemnoc_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_jpeg_jpeg_ocmemnoc_clk", .name = "camss_jpeg_jpeg_ocmemnoc_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"ocmemnoc_clk_src", &ocmemnoc_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1528,8 +1540,8 @@ static struct clk_branch camss_mclk0_clk = { ...@@ -1528,8 +1540,8 @@ static struct clk_branch camss_mclk0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_mclk0_clk", .name = "camss_mclk0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mclk0_clk_src", &mclk0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1545,8 +1557,8 @@ static struct clk_branch camss_mclk1_clk = { ...@@ -1545,8 +1557,8 @@ static struct clk_branch camss_mclk1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_mclk1_clk", .name = "camss_mclk1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mclk1_clk_src", &mclk1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1562,8 +1574,8 @@ static struct clk_branch camss_mclk2_clk = { ...@@ -1562,8 +1574,8 @@ static struct clk_branch camss_mclk2_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_mclk2_clk", .name = "camss_mclk2_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mclk2_clk_src", &mclk2_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1579,8 +1591,8 @@ static struct clk_branch camss_mclk3_clk = { ...@@ -1579,8 +1591,8 @@ static struct clk_branch camss_mclk3_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_mclk3_clk", .name = "camss_mclk3_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mclk3_clk_src", &mclk3_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1596,8 +1608,8 @@ static struct clk_branch camss_micro_ahb_clk = { ...@@ -1596,8 +1608,8 @@ static struct clk_branch camss_micro_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_micro_ahb_clk", .name = "camss_micro_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1612,8 +1624,8 @@ static struct clk_branch camss_phy0_csi0phytimer_clk = { ...@@ -1612,8 +1624,8 @@ static struct clk_branch camss_phy0_csi0phytimer_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_phy0_csi0phytimer_clk", .name = "camss_phy0_csi0phytimer_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi0phytimer_clk_src", &csi0phytimer_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1629,8 +1641,8 @@ static struct clk_branch camss_phy1_csi1phytimer_clk = { ...@@ -1629,8 +1641,8 @@ static struct clk_branch camss_phy1_csi1phytimer_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_phy1_csi1phytimer_clk", .name = "camss_phy1_csi1phytimer_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi1phytimer_clk_src", &csi1phytimer_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1646,8 +1658,8 @@ static struct clk_branch camss_phy2_csi2phytimer_clk = { ...@@ -1646,8 +1658,8 @@ static struct clk_branch camss_phy2_csi2phytimer_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_phy2_csi2phytimer_clk", .name = "camss_phy2_csi2phytimer_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"csi2phytimer_clk_src", &csi2phytimer_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1663,8 +1675,8 @@ static struct clk_branch camss_top_ahb_clk = { ...@@ -1663,8 +1675,8 @@ static struct clk_branch camss_top_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_top_ahb_clk", .name = "camss_top_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1679,8 +1691,8 @@ static struct clk_branch camss_vfe_cpp_ahb_clk = { ...@@ -1679,8 +1691,8 @@ static struct clk_branch camss_vfe_cpp_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_cpp_ahb_clk", .name = "camss_vfe_cpp_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1695,8 +1707,8 @@ static struct clk_branch camss_vfe_cpp_clk = { ...@@ -1695,8 +1707,8 @@ static struct clk_branch camss_vfe_cpp_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_cpp_clk", .name = "camss_vfe_cpp_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"cpp_clk_src", &cpp_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1712,8 +1724,8 @@ static struct clk_branch camss_vfe_vfe0_clk = { ...@@ -1712,8 +1724,8 @@ static struct clk_branch camss_vfe_vfe0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_vfe0_clk", .name = "camss_vfe_vfe0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vfe0_clk_src", &vfe0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1729,8 +1741,8 @@ static struct clk_branch camss_vfe_vfe1_clk = { ...@@ -1729,8 +1741,8 @@ static struct clk_branch camss_vfe_vfe1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_vfe1_clk", .name = "camss_vfe_vfe1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vfe1_clk_src", &vfe1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1746,8 +1758,8 @@ static struct clk_branch camss_vfe_vfe_ahb_clk = { ...@@ -1746,8 +1758,8 @@ static struct clk_branch camss_vfe_vfe_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_vfe_ahb_clk", .name = "camss_vfe_vfe_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1762,8 +1774,8 @@ static struct clk_branch camss_vfe_vfe_axi_clk = { ...@@ -1762,8 +1774,8 @@ static struct clk_branch camss_vfe_vfe_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_vfe_axi_clk", .name = "camss_vfe_vfe_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1778,8 +1790,8 @@ static struct clk_branch camss_vfe_vfe_ocmemnoc_clk = { ...@@ -1778,8 +1790,8 @@ static struct clk_branch camss_vfe_vfe_ocmemnoc_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "camss_vfe_vfe_ocmemnoc_clk", .name = "camss_vfe_vfe_ocmemnoc_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"ocmemnoc_clk_src", &ocmemnoc_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1795,8 +1807,8 @@ static struct clk_branch mdss_ahb_clk = { ...@@ -1795,8 +1807,8 @@ static struct clk_branch mdss_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_ahb_clk", .name = "mdss_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1811,8 +1823,8 @@ static struct clk_branch mdss_axi_clk = { ...@@ -1811,8 +1823,8 @@ static struct clk_branch mdss_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_axi_clk", .name = "mdss_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1828,8 +1840,8 @@ static struct clk_branch mdss_byte0_clk = { ...@@ -1828,8 +1840,8 @@ static struct clk_branch mdss_byte0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_byte0_clk", .name = "mdss_byte0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"byte0_clk_src", &byte0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1845,8 +1857,8 @@ static struct clk_branch mdss_byte1_clk = { ...@@ -1845,8 +1857,8 @@ static struct clk_branch mdss_byte1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_byte1_clk", .name = "mdss_byte1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"byte1_clk_src", &byte1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1862,8 +1874,8 @@ static struct clk_branch mdss_edpaux_clk = { ...@@ -1862,8 +1874,8 @@ static struct clk_branch mdss_edpaux_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_edpaux_clk", .name = "mdss_edpaux_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"edpaux_clk_src", &edpaux_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1879,8 +1891,8 @@ static struct clk_branch mdss_edplink_clk = { ...@@ -1879,8 +1891,8 @@ static struct clk_branch mdss_edplink_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_edplink_clk", .name = "mdss_edplink_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"edplink_clk_src", &edplink_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1896,8 +1908,8 @@ static struct clk_branch mdss_edppixel_clk = { ...@@ -1896,8 +1908,8 @@ static struct clk_branch mdss_edppixel_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_edppixel_clk", .name = "mdss_edppixel_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"edppixel_clk_src", &edppixel_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1913,8 +1925,8 @@ static struct clk_branch mdss_esc0_clk = { ...@@ -1913,8 +1925,8 @@ static struct clk_branch mdss_esc0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_esc0_clk", .name = "mdss_esc0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"esc0_clk_src", &esc0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1930,8 +1942,8 @@ static struct clk_branch mdss_esc1_clk = { ...@@ -1930,8 +1942,8 @@ static struct clk_branch mdss_esc1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_esc1_clk", .name = "mdss_esc1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"esc1_clk_src", &esc1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1947,8 +1959,8 @@ static struct clk_branch mdss_extpclk_clk = { ...@@ -1947,8 +1959,8 @@ static struct clk_branch mdss_extpclk_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_extpclk_clk", .name = "mdss_extpclk_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"extpclk_clk_src", &extpclk_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1964,8 +1976,8 @@ static struct clk_branch mdss_hdmi_ahb_clk = { ...@@ -1964,8 +1976,8 @@ static struct clk_branch mdss_hdmi_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_hdmi_ahb_clk", .name = "mdss_hdmi_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -1980,8 +1992,8 @@ static struct clk_branch mdss_hdmi_clk = { ...@@ -1980,8 +1992,8 @@ static struct clk_branch mdss_hdmi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_hdmi_clk", .name = "mdss_hdmi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"hdmi_clk_src", &hdmi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -1997,8 +2009,8 @@ static struct clk_branch mdss_mdp_clk = { ...@@ -1997,8 +2009,8 @@ static struct clk_branch mdss_mdp_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_mdp_clk", .name = "mdss_mdp_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mdp_clk_src", &mdp_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2014,8 +2026,8 @@ static struct clk_branch mdss_mdp_lut_clk = { ...@@ -2014,8 +2026,8 @@ static struct clk_branch mdss_mdp_lut_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_mdp_lut_clk", .name = "mdss_mdp_lut_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mdp_clk_src", &mdp_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2031,8 +2043,8 @@ static struct clk_branch mdss_pclk0_clk = { ...@@ -2031,8 +2043,8 @@ static struct clk_branch mdss_pclk0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_pclk0_clk", .name = "mdss_pclk0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"pclk0_clk_src", &pclk0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2048,8 +2060,8 @@ static struct clk_branch mdss_pclk1_clk = { ...@@ -2048,8 +2060,8 @@ static struct clk_branch mdss_pclk1_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_pclk1_clk", .name = "mdss_pclk1_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"pclk1_clk_src", &pclk1_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2065,8 +2077,8 @@ static struct clk_branch mdss_vsync_clk = { ...@@ -2065,8 +2077,8 @@ static struct clk_branch mdss_vsync_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mdss_vsync_clk", .name = "mdss_vsync_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vsync_clk_src", &vsync_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2082,8 +2094,8 @@ static struct clk_branch mmss_misc_ahb_clk = { ...@@ -2082,8 +2094,8 @@ static struct clk_branch mmss_misc_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmss_misc_ahb_clk", .name = "mmss_misc_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2098,8 +2110,8 @@ static struct clk_branch mmss_mmssnoc_ahb_clk = { ...@@ -2098,8 +2110,8 @@ static struct clk_branch mmss_mmssnoc_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmss_mmssnoc_ahb_clk", .name = "mmss_mmssnoc_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2115,8 +2127,8 @@ static struct clk_branch mmss_mmssnoc_bto_ahb_clk = { ...@@ -2115,8 +2127,8 @@ static struct clk_branch mmss_mmssnoc_bto_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmss_mmssnoc_bto_ahb_clk", .name = "mmss_mmssnoc_bto_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2132,8 +2144,8 @@ static struct clk_branch mmss_mmssnoc_axi_clk = { ...@@ -2132,8 +2144,8 @@ static struct clk_branch mmss_mmssnoc_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmss_mmssnoc_axi_clk", .name = "mmss_mmssnoc_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
...@@ -2149,8 +2161,8 @@ static struct clk_branch mmss_s0_axi_clk = { ...@@ -2149,8 +2161,8 @@ static struct clk_branch mmss_s0_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mmss_s0_axi_clk", .name = "mmss_s0_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2166,8 +2178,8 @@ static struct clk_branch ocmemcx_ahb_clk = { ...@@ -2166,8 +2178,8 @@ static struct clk_branch ocmemcx_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "ocmemcx_ahb_clk", .name = "ocmemcx_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2182,8 +2194,8 @@ static struct clk_branch ocmemcx_ocmemnoc_clk = { ...@@ -2182,8 +2194,8 @@ static struct clk_branch ocmemcx_ocmemnoc_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "ocmemcx_ocmemnoc_clk", .name = "ocmemcx_ocmemnoc_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"ocmemnoc_clk_src", &ocmemnoc_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2199,8 +2211,8 @@ static struct clk_branch oxili_ocmemgx_clk = { ...@@ -2199,8 +2211,8 @@ static struct clk_branch oxili_ocmemgx_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "oxili_ocmemgx_clk", .name = "oxili_ocmemgx_clk",
.parent_names = (const char *[]){ .parent_data = (const struct clk_parent_data[]){
"gfx3d_clk_src", { .fw_name = "gfx3d_clk_src", .name = "gfx3d_clk_src" },
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2216,8 +2228,8 @@ static struct clk_branch ocmemnoc_clk = { ...@@ -2216,8 +2228,8 @@ static struct clk_branch ocmemnoc_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "ocmemnoc_clk", .name = "ocmemnoc_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"ocmemnoc_clk_src", &ocmemnoc_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2233,8 +2245,8 @@ static struct clk_branch oxili_gfx3d_clk = { ...@@ -2233,8 +2245,8 @@ static struct clk_branch oxili_gfx3d_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "oxili_gfx3d_clk", .name = "oxili_gfx3d_clk",
.parent_names = (const char *[]){ .parent_data = (const struct clk_parent_data[]){
"gfx3d_clk_src", { .fw_name = "gfx3d_clk_src", .name = "gfx3d_clk_src" },
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2250,8 +2262,8 @@ static struct clk_branch oxilicx_ahb_clk = { ...@@ -2250,8 +2262,8 @@ static struct clk_branch oxilicx_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "oxilicx_ahb_clk", .name = "oxilicx_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2266,8 +2278,8 @@ static struct clk_branch oxilicx_axi_clk = { ...@@ -2266,8 +2278,8 @@ static struct clk_branch oxilicx_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "oxilicx_axi_clk", .name = "oxilicx_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2282,8 +2294,8 @@ static struct clk_branch venus0_ahb_clk = { ...@@ -2282,8 +2294,8 @@ static struct clk_branch venus0_ahb_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "venus0_ahb_clk", .name = "venus0_ahb_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_ahb_clk_src", &mmss_ahb_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2298,8 +2310,8 @@ static struct clk_branch venus0_axi_clk = { ...@@ -2298,8 +2310,8 @@ static struct clk_branch venus0_axi_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "venus0_axi_clk", .name = "venus0_axi_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"mmss_axi_clk_src", &mmss_axi_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.ops = &clk_branch2_ops, .ops = &clk_branch2_ops,
...@@ -2314,8 +2326,8 @@ static struct clk_branch venus0_ocmemnoc_clk = { ...@@ -2314,8 +2326,8 @@ static struct clk_branch venus0_ocmemnoc_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "venus0_ocmemnoc_clk", .name = "venus0_ocmemnoc_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"ocmemnoc_clk_src", &ocmemnoc_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
...@@ -2331,8 +2343,8 @@ static struct clk_branch venus0_vcodec0_clk = { ...@@ -2331,8 +2343,8 @@ static struct clk_branch venus0_vcodec0_clk = {
.enable_mask = BIT(0), .enable_mask = BIT(0),
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "venus0_vcodec0_clk", .name = "venus0_vcodec0_clk",
.parent_names = (const char *[]){ .parent_hws = (const struct clk_hw*[]){
"vcodec0_clk_src", &vcodec0_clk_src.clkr.hw
}, },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT, .flags = CLK_SET_RATE_PARENT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment