Skip to content

Commit 2cc88de

Browse files
lumagandersson
authored andcommitted
clk: qcom: rpmh: add support for SAR2130P
Define clocks as supported by the RPMh on the SAR2130P platform. The msm-5.10 kernel declares just the CXO clock, the RF_CLK1 clock was added following recommendation from Taniya Das. Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Taniya Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent aec8c0e commit 2cc88de

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,18 @@ DEFINE_CLK_RPMH_BCM(ipa, "IP0");
389389
DEFINE_CLK_RPMH_BCM(pka, "PKA0");
390390
DEFINE_CLK_RPMH_BCM(qpic_clk, "QP0");
391391

392+
static struct clk_hw *sar2130p_rpmh_clocks[] = {
393+
[RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div1.hw,
394+
[RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div1_ao.hw,
395+
[RPMH_RF_CLK1] = &clk_rpmh_rf_clk1_a.hw,
396+
[RPMH_RF_CLK1_A] = &clk_rpmh_rf_clk1_a_ao.hw,
397+
};
398+
399+
static const struct clk_rpmh_desc clk_rpmh_sar2130p = {
400+
.clks = sar2130p_rpmh_clocks,
401+
.num_clks = ARRAY_SIZE(sar2130p_rpmh_clocks),
402+
};
403+
392404
static struct clk_hw *sdm845_rpmh_clocks[] = {
393405
[RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw,
394406
[RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw,
@@ -880,6 +892,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
880892
static const struct of_device_id clk_rpmh_match_table[] = {
881893
{ .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000},
882894
{ .compatible = "qcom,sa8775p-rpmh-clk", .data = &clk_rpmh_sa8775p},
895+
{ .compatible = "qcom,sar2130p-rpmh-clk", .data = &clk_rpmh_sar2130p},
883896
{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
884897
{ .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x},
885898
{ .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp},

0 commit comments

Comments
 (0)