Skip to content

Commit 818a2f8

Browse files
Satya Priya Kakitapalliandersson
authored andcommitted
clk: qcom: gcc-sc8180x: Add GPLL9 support
Add the missing GPLL9 pll and fix the gcc_parents_7 data to use the correct pll hw. Fixes: 4433594 ("clk: qcom: gcc: Add global clock controller driver for SC8180x") Cc: [email protected] Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Satya Priya Kakitapalli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 648b4bd commit 818a2f8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

drivers/clk/qcom/gcc-sc8180x.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,23 @@ static struct clk_alpha_pll gpll7 = {
142142
},
143143
};
144144

145+
static struct clk_alpha_pll gpll9 = {
146+
.offset = 0x1c000,
147+
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_TRION],
148+
.clkr = {
149+
.enable_reg = 0x52000,
150+
.enable_mask = BIT(9),
151+
.hw.init = &(const struct clk_init_data) {
152+
.name = "gpll9",
153+
.parent_data = &(const struct clk_parent_data) {
154+
.fw_name = "bi_tcxo",
155+
},
156+
.num_parents = 1,
157+
.ops = &clk_alpha_pll_fixed_trion_ops,
158+
},
159+
},
160+
};
161+
145162
static const struct parent_map gcc_parent_map_0[] = {
146163
{ P_BI_TCXO, 0 },
147164
{ P_GPLL0_OUT_MAIN, 1 },
@@ -241,7 +258,7 @@ static const struct parent_map gcc_parent_map_7[] = {
241258
static const struct clk_parent_data gcc_parents_7[] = {
242259
{ .fw_name = "bi_tcxo", },
243260
{ .hw = &gpll0.clkr.hw },
244-
{ .name = "gppl9" },
261+
{ .hw = &gpll9.clkr.hw },
245262
{ .hw = &gpll4.clkr.hw },
246263
{ .hw = &gpll0_out_even.clkr.hw },
247264
};
@@ -4552,6 +4569,7 @@ static struct clk_regmap *gcc_sc8180x_clocks[] = {
45524569
[GPLL1] = &gpll1.clkr,
45534570
[GPLL4] = &gpll4.clkr,
45544571
[GPLL7] = &gpll7.clkr,
4572+
[GPLL9] = &gpll9.clkr,
45554573
};
45564574

45574575
static const struct qcom_reset_map gcc_sc8180x_resets[] = {

0 commit comments

Comments
 (0)