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

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: Add support for QDU1000 and QRU1000 RPMh clocks

Add support for RMPh clocks for QDU1000 and QRU1000 SoCs.

Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221026190441.4002212-5-quic_molvera@quicinc.com

authored by

Melody Olvera and committed by
Bjorn Andersson
05e5c125 70d9f589

+13
+13
drivers/clk/qcom/clk-rpmh.c
··· 644 644 .num_clks = ARRAY_SIZE(sdx65_rpmh_clocks), 645 645 }; 646 646 647 + DEFINE_CLK_RPMH_ARC(qdu1000, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 1); 648 + 649 + static struct clk_hw *qdu1000_rpmh_clocks[] = { 650 + [RPMH_CXO_CLK] = &qdu1000_bi_tcxo.hw, 651 + [RPMH_CXO_CLK_A] = &qdu1000_bi_tcxo_ao.hw, 652 + }; 653 + 654 + static const struct clk_rpmh_desc clk_rpmh_qdu1000 = { 655 + .clks = qdu1000_rpmh_clocks, 656 + .num_clks = ARRAY_SIZE(qdu1000_rpmh_clocks), 657 + }; 658 + 647 659 static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, 648 660 void *data) 649 661 { ··· 739 727 } 740 728 741 729 static const struct of_device_id clk_rpmh_match_table[] = { 730 + { .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000}, 742 731 { .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180}, 743 732 { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x}, 744 733 { .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp},