Skip to content

Commit 6e89ef8

Browse files
Devi Priyaandersson
authored andcommitted
clk: qcom: gcc-ipq9574: Add support for gpll0_out_aux clock
Add support for gpll0_out_aux clock which acts as the parent for certain networking subsystem (nss) clocks. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com> Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com> Link: https://lore.kernel.org/r/20250313110359.242491-3-quic_mmanikan@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 0139f7d commit 6e89ef8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/clk/qcom/gcc-ipq9574.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ static struct clk_alpha_pll_postdiv gpll0 = {
108108
},
109109
};
110110

111+
static struct clk_alpha_pll_postdiv gpll0_out_aux = {
112+
.offset = 0x20000,
113+
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
114+
.width = 4,
115+
.clkr.hw.init = &(const struct clk_init_data) {
116+
.name = "gpll0_out_aux",
117+
.parent_hws = (const struct clk_hw *[]) {
118+
&gpll0_main.clkr.hw
119+
},
120+
.num_parents = 1,
121+
.ops = &clk_alpha_pll_postdiv_ro_ops,
122+
},
123+
};
124+
111125
static struct clk_alpha_pll gpll4_main = {
112126
.offset = 0x22000,
113127
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT_EVO],
@@ -3896,6 +3910,7 @@ static struct clk_regmap *gcc_ipq9574_clks[] = {
38963910
[GCC_PCIE1_PIPE_CLK] = &gcc_pcie1_pipe_clk.clkr,
38973911
[GCC_PCIE2_PIPE_CLK] = &gcc_pcie2_pipe_clk.clkr,
38983912
[GCC_PCIE3_PIPE_CLK] = &gcc_pcie3_pipe_clk.clkr,
3913+
[GPLL0_OUT_AUX] = &gpll0_out_aux.clkr,
38993914
};
39003915

39013916
static const struct qcom_reset_map gcc_ipq9574_resets[] = {

0 commit comments

Comments
 (0)