Skip to content

Commit 089aad8

Browse files
Imran Shaikandersson
authored andcommitted
clk: qcom: gcc-qdu1000: Add gcc_ddrss_ecpri_gsi_clk support
Add the gcc_ddrss_ecpri_gsi_clk support as per the latest hardware version of QDU1000 and QRU100 SoCs. Signed-off-by: Imran Shaik <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 06d71fa commit 089aad8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

drivers/clk/qcom/gcc-qdu1000.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,26 @@ static struct clk_branch gcc_ddrss_ecpri_dma_clk = {
11311131
},
11321132
};
11331133

1134+
static struct clk_branch gcc_ddrss_ecpri_gsi_clk = {
1135+
.halt_reg = 0x54298,
1136+
.halt_check = BRANCH_HALT_VOTED,
1137+
.hwcg_reg = 0x54298,
1138+
.hwcg_bit = 1,
1139+
.clkr = {
1140+
.enable_reg = 0x54298,
1141+
.enable_mask = BIT(0),
1142+
.hw.init = &(const struct clk_init_data) {
1143+
.name = "gcc_ddrss_ecpri_gsi_clk",
1144+
.parent_hws = (const struct clk_hw*[]) {
1145+
&gcc_aggre_noc_ecpri_gsi_clk_src.clkr.hw,
1146+
},
1147+
.num_parents = 1,
1148+
.flags = CLK_SET_RATE_PARENT,
1149+
.ops = &clk_branch2_aon_ops,
1150+
},
1151+
},
1152+
};
1153+
11341154
static struct clk_branch gcc_ecpri_ahb_clk = {
11351155
.halt_reg = 0x3a008,
11361156
.halt_check = BRANCH_HALT_VOTED,
@@ -2522,6 +2542,7 @@ static struct clk_regmap *gcc_qdu1000_clocks[] = {
25222542
[GCC_PCIE_0_PHY_AUX_CLK_SRC] = &gcc_pcie_0_phy_aux_clk_src.clkr,
25232543
[GCC_PCIE_0_PIPE_CLK_SRC] = &gcc_pcie_0_pipe_clk_src.clkr,
25242544
[GCC_GPLL1_OUT_EVEN] = &gcc_gpll1_out_even.clkr,
2545+
[GCC_DDRSS_ECPRI_GSI_CLK] = &gcc_ddrss_ecpri_gsi_clk.clkr,
25252546
};
25262547

25272548
static const struct qcom_reset_map gcc_qdu1000_resets[] = {

0 commit comments

Comments
 (0)