Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: apss-ipq-pll: add support for IPQ5018

IPQ5018 APSS PLL is of type Stromer. Reuse Stromer Plus PLL offsets,
add configuration values and the compatible.

Co-developed-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230925102826.405446-3-quic_gokulsri@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Gokul Sriram Palanisamy and committed by
Bjorn Andersson
50492f92 4d45d56e

+21
+21
drivers/clk/qcom/apss-ipq-pll.c
··· 73 73 }, 74 74 }; 75 75 76 + static const struct alpha_pll_config ipq5018_pll_config = { 77 + .l = 0x32, 78 + .config_ctl_val = 0x4001075b, 79 + .config_ctl_hi_val = 0x304, 80 + .main_output_mask = BIT(0), 81 + .aux_output_mask = BIT(1), 82 + .early_output_mask = BIT(3), 83 + .alpha_en_mask = BIT(24), 84 + .status_val = 0x3, 85 + .status_mask = GENMASK(10, 8), 86 + .lock_det = BIT(2), 87 + .test_ctl_hi_val = 0x00400003, 88 + }; 89 + 76 90 static const struct alpha_pll_config ipq5332_pll_config = { 77 91 .l = 0x2d, 78 92 .config_ctl_val = 0x4001075b, ··· 141 127 int pll_type; 142 128 struct clk_alpha_pll *pll; 143 129 const struct alpha_pll_config *pll_config; 130 + }; 131 + 132 + static const struct apss_pll_data ipq5018_pll_data = { 133 + .pll_type = CLK_ALPHA_PLL_TYPE_STROMER_PLUS, 134 + .pll = &ipq_pll_stromer_plus, 135 + .pll_config = &ipq5018_pll_config, 144 136 }; 145 137 146 138 static struct apss_pll_data ipq5332_pll_data = { ··· 215 195 } 216 196 217 197 static const struct of_device_id apss_ipq_pll_match_table[] = { 198 + { .compatible = "qcom,ipq5018-a53pll", .data = &ipq5018_pll_data }, 218 199 { .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data }, 219 200 { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data }, 220 201 { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data },