Skip to content

Commit d966ee0

Browse files
Manikanta Mylavarapuandersson
authored andcommitted
clk: qcom: ipq5424: add gcc_xo_clk
The gcc_xo_clk is required for the functionality of the WiFi copy engine block. Therefore, add the gcc_xo_clk in gcc driver. Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com> Link: https://lore.kernel.org/r/20241210064110.130466-3-quic_mmanikan@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent a8b56cb commit d966ee0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/clk/qcom/gcc-ipq5424.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,24 @@ static struct clk_rcg2 gcc_xo_clk_src = {
325325
},
326326
};
327327

328+
static struct clk_branch gcc_xo_clk = {
329+
.halt_reg = 0x34018,
330+
.halt_check = BRANCH_HALT,
331+
.clkr = {
332+
.enable_reg = 0x34018,
333+
.enable_mask = BIT(0),
334+
.hw.init = &(const struct clk_init_data) {
335+
.name = "gcc_xo_clk",
336+
.parent_hws = (const struct clk_hw*[]) {
337+
&gcc_xo_clk_src.clkr.hw,
338+
},
339+
.num_parents = 1,
340+
.flags = CLK_SET_RATE_PARENT,
341+
.ops = &clk_branch2_ops,
342+
},
343+
},
344+
};
345+
328346
static struct clk_fixed_factor gcc_xo_div4_clk_src = {
329347
.mult = 1,
330348
.div = 4,
@@ -2901,6 +2919,7 @@ static struct clk_regmap *gcc_ipq5424_clocks[] = {
29012919
[GCC_QPIC_CLK_SRC] = &gcc_qpic_clk_src.clkr,
29022920
[GCC_QPIC_AHB_CLK] = &gcc_qpic_ahb_clk.clkr,
29032921
[GCC_XO_CLK_SRC] = &gcc_xo_clk_src.clkr,
2922+
[GCC_XO_CLK] = &gcc_xo_clk.clkr,
29042923
[GCC_QDSS_DAP_CLK] = &gcc_qdss_dap_clk.clkr,
29052924
[GCC_QDSS_AT_CLK] = &gcc_qdss_at_clk.clkr,
29062925
[GPLL0] = &gpll0.clkr,

0 commit comments

Comments
 (0)