Skip to content

Commit d08882c

Browse files
Luo Jieandersson
authored andcommitted
clk: qcom: gcc-ipq5424: Add gpll0_out_aux clock
The clock gpll0_out_aux acts as the parent clock for some of the NSS (Network Subsystem) clocks. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Luo Jie <quic_luoj@quicinc.com> Link: https://lore.kernel.org/r/20251014-qcom_ipq5424_nsscc-v7-6-081f4956be02@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent e2cf3b7 commit d08882c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-ipq5424.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ static struct clk_fixed_factor gpll0_div2 = {
7979
},
8080
};
8181

82+
static struct clk_alpha_pll_postdiv gpll0_out_aux = {
83+
.offset = 0x20000,
84+
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
85+
.width = 4,
86+
.clkr.hw.init = &(const struct clk_init_data) {
87+
.name = "gpll0_out_aux",
88+
.parent_hws = (const struct clk_hw *[]) {
89+
&gpll0.clkr.hw
90+
},
91+
.num_parents = 1,
92+
.ops = &clk_alpha_pll_postdiv_ro_ops,
93+
},
94+
};
95+
8296
static struct clk_alpha_pll gpll2 = {
8397
.offset = 0x21000,
8498
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA],
@@ -2934,6 +2948,7 @@ static struct clk_regmap *gcc_ipq5424_clocks[] = {
29342948
[GPLL2] = &gpll2.clkr,
29352949
[GPLL2_OUT_MAIN] = &gpll2_out_main.clkr,
29362950
[GPLL4] = &gpll4.clkr,
2951+
[GPLL0_OUT_AUX] = &gpll0_out_aux.clkr,
29372952
};
29382953

29392954
static const struct qcom_reset_map gcc_ipq5424_resets[] = {

0 commit comments

Comments
 (0)