Skip to content

Commit 2ded040

Browse files
flamingradianandersson
authored andcommitted
clk: qcom: rpmhcc: add sdm670 clocks
The Snapdragon 670 uses the RPMh mailbox for most of the clocks used in SDM845 but omits two. Add clock data for SDM670 so the driver doesn't fail to resolve a clock. Link: https://android.googlesource.com/kernel/msm/+/443bd8d6e2cf54698234c752e6de97b4b8a528bd%5E%21/#F7 Signed-off-by: Richard Acayan <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c6648a4 commit 2ded040

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,26 @@ static const struct clk_rpmh_desc clk_rpmh_sdm845 = {
378378
.num_clks = ARRAY_SIZE(sdm845_rpmh_clocks),
379379
};
380380

381+
static struct clk_hw *sdm670_rpmh_clocks[] = {
382+
[RPMH_CXO_CLK] = &sdm845_bi_tcxo.hw,
383+
[RPMH_CXO_CLK_A] = &sdm845_bi_tcxo_ao.hw,
384+
[RPMH_LN_BB_CLK2] = &sdm845_ln_bb_clk2.hw,
385+
[RPMH_LN_BB_CLK2_A] = &sdm845_ln_bb_clk2_ao.hw,
386+
[RPMH_LN_BB_CLK3] = &sdm845_ln_bb_clk3.hw,
387+
[RPMH_LN_BB_CLK3_A] = &sdm845_ln_bb_clk3_ao.hw,
388+
[RPMH_RF_CLK1] = &sdm845_rf_clk1.hw,
389+
[RPMH_RF_CLK1_A] = &sdm845_rf_clk1_ao.hw,
390+
[RPMH_RF_CLK2] = &sdm845_rf_clk2.hw,
391+
[RPMH_RF_CLK2_A] = &sdm845_rf_clk2_ao.hw,
392+
[RPMH_IPA_CLK] = &sdm845_ipa.hw,
393+
[RPMH_CE_CLK] = &sdm845_ce.hw,
394+
};
395+
396+
static const struct clk_rpmh_desc clk_rpmh_sdm670 = {
397+
.clks = sdm670_rpmh_clocks,
398+
.num_clks = ARRAY_SIZE(sdm670_rpmh_clocks),
399+
};
400+
381401
DEFINE_CLK_RPMH_VRM(sdx55, rf_clk1, rf_clk1_ao, "rfclkd1", 1);
382402
DEFINE_CLK_RPMH_VRM(sdx55, rf_clk2, rf_clk2_ao, "rfclkd2", 1);
383403
DEFINE_CLK_RPMH_BCM(sdx55, qpic_clk, "QP0");
@@ -711,6 +731,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
711731
{ .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x},
712732
{ .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp},
713733
{ .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
734+
{ .compatible = "qcom,sdm670-rpmh-clk", .data = &clk_rpmh_sdm670},
714735
{ .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55},
715736
{ .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65},
716737
{ .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350},

0 commit comments

Comments
 (0)