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

clk: qcom: rpmhcc: Add sc8180x rpmh clocks

Add clocks provides by RPMH in the Qualcomm SC8180x platform.

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

authored by

Bjorn Andersson and committed by
Stephen Boyd
8a1f7fb1 e6c3cc63

+25
+25
drivers/clk/qcom/clk-rpmh.c
··· 348 348 DEFINE_CLK_RPMH_VRM(sdm845, rf_clk2, rf_clk2_ao, "rfclka2", 1); 349 349 DEFINE_CLK_RPMH_VRM(sdm845, rf_clk3, rf_clk3_ao, "rfclka3", 1); 350 350 DEFINE_CLK_RPMH_VRM(sm8150, rf_clk3, rf_clk3_ao, "rfclka3", 1); 351 + DEFINE_CLK_RPMH_VRM(sc8180x, rf_clk1, rf_clk1_ao, "rfclkd1", 1); 352 + DEFINE_CLK_RPMH_VRM(sc8180x, rf_clk2, rf_clk2_ao, "rfclkd2", 1); 353 + DEFINE_CLK_RPMH_VRM(sc8180x, rf_clk3, rf_clk3_ao, "rfclkd3", 1); 354 + DEFINE_CLK_RPMH_VRM(sc8180x, rf_clk4, rf_clk4_ao, "rfclkd4", 1); 351 355 DEFINE_CLK_RPMH_BCM(sdm845, ipa, "IP0"); 352 356 DEFINE_CLK_RPMH_BCM(sdm845, ce, "CE0"); 353 357 ··· 433 429 static const struct clk_rpmh_desc clk_rpmh_sc7180 = { 434 430 .clks = sc7180_rpmh_clocks, 435 431 .num_clks = ARRAY_SIZE(sc7180_rpmh_clocks), 432 + }; 433 + 434 + static struct clk_hw *sc8180x_rpmh_clocks[] = { 435 + [RPMH_CXO_CLK] = &sdm845_bi_tcxo.hw, 436 + [RPMH_CXO_CLK_A] = &sdm845_bi_tcxo_ao.hw, 437 + [RPMH_LN_BB_CLK2] = &sdm845_ln_bb_clk2.hw, 438 + [RPMH_LN_BB_CLK2_A] = &sdm845_ln_bb_clk2_ao.hw, 439 + [RPMH_LN_BB_CLK3] = &sdm845_ln_bb_clk3.hw, 440 + [RPMH_LN_BB_CLK3_A] = &sdm845_ln_bb_clk3_ao.hw, 441 + [RPMH_RF_CLK1] = &sc8180x_rf_clk1.hw, 442 + [RPMH_RF_CLK1_A] = &sc8180x_rf_clk1_ao.hw, 443 + [RPMH_RF_CLK2] = &sc8180x_rf_clk2.hw, 444 + [RPMH_RF_CLK2_A] = &sc8180x_rf_clk2_ao.hw, 445 + [RPMH_RF_CLK3] = &sc8180x_rf_clk3.hw, 446 + [RPMH_RF_CLK3_A] = &sc8180x_rf_clk3_ao.hw, 447 + }; 448 + 449 + static const struct clk_rpmh_desc clk_rpmh_sc8180x = { 450 + .clks = sc8180x_rpmh_clocks, 451 + .num_clks = ARRAY_SIZE(sc8180x_rpmh_clocks), 436 452 }; 437 453 438 454 DEFINE_CLK_RPMH_VRM(sm8250, ln_bb_clk1, ln_bb_clk1_ao, "lnbclka1", 2); ··· 594 570 595 571 static const struct of_device_id clk_rpmh_match_table[] = { 596 572 { .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180}, 573 + { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x}, 597 574 { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, 598 575 { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55}, 599 576 { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},