Skip to content

Commit 0d6fd7f

Browse files
Kathiravan Tandersson
authored andcommitted
clk: qcom: Add STROMER PLUS PLL type for IPQ5332
Add the support for stromer plus pll, which is found on the IPQ5332 SoCs. Programming sequence is same as the stromer pll, so we can re-use the same. Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230307062232.4889-3-quic_kathirav@quicinc.com
1 parent e47a4f5 commit 0d6fd7f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/clk/qcom/clk-alpha-pll.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,17 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = {
216216
[PLL_OFF_TEST_CTL_U] = 0x34,
217217
[PLL_OFF_STATUS] = 0x28,
218218
},
219+
[CLK_ALPHA_PLL_TYPE_STROMER_PLUS] = {
220+
[PLL_OFF_L_VAL] = 0x04,
221+
[PLL_OFF_USER_CTL] = 0x08,
222+
[PLL_OFF_USER_CTL_U] = 0x0c,
223+
[PLL_OFF_CONFIG_CTL] = 0x10,
224+
[PLL_OFF_TEST_CTL] = 0x14,
225+
[PLL_OFF_TEST_CTL_U] = 0x18,
226+
[PLL_OFF_STATUS] = 0x1c,
227+
[PLL_OFF_ALPHA_VAL] = 0x24,
228+
[PLL_OFF_ALPHA_VAL_U] = 0x28,
229+
},
219230
};
220231
EXPORT_SYMBOL_GPL(clk_alpha_pll_regs);
221232

drivers/clk/qcom/clk-alpha-pll.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ enum {
2727
CLK_ALPHA_PLL_TYPE_DEFAULT_EVO,
2828
CLK_ALPHA_PLL_TYPE_BRAMMO_EVO,
2929
CLK_ALPHA_PLL_TYPE_STROMER,
30+
CLK_ALPHA_PLL_TYPE_STROMER_PLUS,
3031
CLK_ALPHA_PLL_TYPE_MAX,
3132
};
3233

0 commit comments

Comments
 (0)