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

clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller

The Qualcomm SC8280XP platform exposes 5 clocks through the RPMh clock
controller. Add these, and the relates active-only variants, to the RPMh
clock controller driver.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220223044516.3776637-2-bjorn.andersson@linaro.org

+18
+18
drivers/clk/qcom/clk-rpmh.c
··· 512 512 .num_clks = ARRAY_SIZE(sm8350_rpmh_clocks), 513 513 }; 514 514 515 + DEFINE_CLK_RPMH_VRM(sc8280xp, ln_bb_clk3, ln_bb_clk3_ao, "lnbclka3", 2); 516 + 517 + static struct clk_hw *sc8280xp_rpmh_clocks[] = { 518 + [RPMH_CXO_CLK] = &sdm845_bi_tcxo.hw, 519 + [RPMH_CXO_CLK_A] = &sdm845_bi_tcxo_ao.hw, 520 + [RPMH_LN_BB_CLK3] = &sc8280xp_ln_bb_clk3.hw, 521 + [RPMH_LN_BB_CLK3_A] = &sc8280xp_ln_bb_clk3_ao.hw, 522 + [RPMH_IPA_CLK] = &sdm845_ipa.hw, 523 + [RPMH_PKA_CLK] = &sm8350_pka.hw, 524 + [RPMH_HWKM_CLK] = &sm8350_hwkm.hw, 525 + }; 526 + 527 + static const struct clk_rpmh_desc clk_rpmh_sc8280xp = { 528 + .clks = sc8280xp_rpmh_clocks, 529 + .num_clks = ARRAY_SIZE(sc8280xp_rpmh_clocks), 530 + }; 531 + 515 532 /* Resource name must match resource id present in cmd-db */ 516 533 DEFINE_CLK_RPMH_ARC(sc7280, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 4); 517 534 ··· 708 691 static const struct of_device_id clk_rpmh_match_table[] = { 709 692 { .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180}, 710 693 { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x}, 694 + { .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp}, 711 695 { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, 712 696 { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55}, 713 697 { .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65},