Skip to content

Commit 20beb85

Browse files
Devi Priyaandersson
authored andcommitted
clk: qcom: apss-ipq-pll: Add support for IPQ9574
Add the compatible and configuration values for A73 Huayra PLL found on IPQ9574. Co-developed-by: Praveenkumar I <quic_ipkumar@quicinc.com> Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com> Acked-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230406061314.10916-3-quic_devipriy@quicinc.com
1 parent 1703578 commit 20beb85

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

drivers/clk/qcom/apss-ipq-pll.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ static const struct alpha_pll_config ipq8074_pll_config = {
111111
.test_ctl_hi_val = 0x4000,
112112
};
113113

114+
static const struct alpha_pll_config ipq9574_pll_config = {
115+
.l = 0x3b,
116+
.config_ctl_val = 0x200d4828,
117+
.config_ctl_hi_val = 0x6,
118+
.early_output_mask = BIT(3),
119+
.aux2_output_mask = BIT(2),
120+
.aux_output_mask = BIT(1),
121+
.main_output_mask = BIT(0),
122+
.test_ctl_val = 0x0,
123+
.test_ctl_hi_val = 0x4000,
124+
};
125+
114126
struct apss_pll_data {
115127
int pll_type;
116128
struct clk_alpha_pll *pll;
@@ -135,6 +147,12 @@ static struct apss_pll_data ipq6018_pll_data = {
135147
.pll_config = &ipq6018_pll_config,
136148
};
137149

150+
static struct apss_pll_data ipq9574_pll_data = {
151+
.pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA,
152+
.pll = &ipq_pll_huayra,
153+
.pll_config = &ipq9574_pll_config,
154+
};
155+
138156
static const struct regmap_config ipq_pll_regmap_config = {
139157
.reg_bits = 32,
140158
.reg_stride = 4,
@@ -180,6 +198,7 @@ static const struct of_device_id apss_ipq_pll_match_table[] = {
180198
{ .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data },
181199
{ .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data },
182200
{ .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data },
201+
{ .compatible = "qcom,ipq9574-a73pll", .data = &ipq9574_pll_data },
183202
{ }
184203
};
185204
MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table);

0 commit comments

Comments
 (0)