Skip to content

Commit 79dfed2

Browse files
Devi Priyaandersson
authored andcommitted
clk: qcom: clk-alpha-pll: Add NSS HUAYRA ALPHA PLL support for ipq9574
Add support for NSS Huayra alpha pll found on ipq9574 SoCs. Programming sequence is the same as that of Huayra type Alpha PLL, so we can re-use the same. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Devi Priya <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 1539860 commit 79dfed2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,17 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = {
267267
[PLL_OFF_OPMODE] = 0x30,
268268
[PLL_OFF_STATUS] = 0x3c,
269269
},
270+
[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA] = {
271+
[PLL_OFF_L_VAL] = 0x04,
272+
[PLL_OFF_ALPHA_VAL] = 0x08,
273+
[PLL_OFF_TEST_CTL] = 0x0c,
274+
[PLL_OFF_TEST_CTL_U] = 0x10,
275+
[PLL_OFF_USER_CTL] = 0x14,
276+
[PLL_OFF_CONFIG_CTL] = 0x18,
277+
[PLL_OFF_CONFIG_CTL_U] = 0x1c,
278+
[PLL_OFF_STATUS] = 0x20,
279+
},
280+
270281
};
271282
EXPORT_SYMBOL_GPL(clk_alpha_pll_regs);
272283

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ enum {
3232
CLK_ALPHA_PLL_TYPE_BRAMMO_EVO,
3333
CLK_ALPHA_PLL_TYPE_STROMER,
3434
CLK_ALPHA_PLL_TYPE_STROMER_PLUS,
35+
CLK_ALPHA_PLL_TYPE_NSS_HUAYRA,
3536
CLK_ALPHA_PLL_TYPE_MAX,
3637
};
3738

0 commit comments

Comments
 (0)