Skip to content

Commit fff2b9a

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: rpmh: Add support for RPMH clocks on SC7280
Add support for RPMH clocks on SC7280 SoCs. Signed-off-by: Taniya Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 75a8128 commit fff2b9a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/*
3-
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
3+
* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
44
*/
55

66
#include <linux/clk-provider.h>
@@ -510,6 +510,27 @@ static const struct clk_rpmh_desc clk_rpmh_sm8350 = {
510510
.num_clks = ARRAY_SIZE(sm8350_rpmh_clocks),
511511
};
512512

513+
static struct clk_hw *sc7280_rpmh_clocks[] = {
514+
[RPMH_CXO_CLK] = &sdm845_bi_tcxo.hw,
515+
[RPMH_CXO_CLK_A] = &sdm845_bi_tcxo_ao.hw,
516+
[RPMH_LN_BB_CLK2] = &sdm845_ln_bb_clk2.hw,
517+
[RPMH_LN_BB_CLK2_A] = &sdm845_ln_bb_clk2_ao.hw,
518+
[RPMH_RF_CLK1] = &sdm845_rf_clk1.hw,
519+
[RPMH_RF_CLK1_A] = &sdm845_rf_clk1_ao.hw,
520+
[RPMH_RF_CLK3] = &sdm845_rf_clk3.hw,
521+
[RPMH_RF_CLK3_A] = &sdm845_rf_clk3_ao.hw,
522+
[RPMH_RF_CLK4] = &sm8350_rf_clk4.hw,
523+
[RPMH_RF_CLK4_A] = &sm8350_rf_clk4_ao.hw,
524+
[RPMH_IPA_CLK] = &sdm845_ipa.hw,
525+
[RPMH_PKA_CLK] = &sm8350_pka.hw,
526+
[RPMH_HWKM_CLK] = &sm8350_hwkm.hw,
527+
};
528+
529+
static const struct clk_rpmh_desc clk_rpmh_sc7280 = {
530+
.clks = sc7280_rpmh_clocks,
531+
.num_clks = ARRAY_SIZE(sc7280_rpmh_clocks),
532+
};
533+
513534
static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
514535
void *data)
515536
{
@@ -600,6 +621,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
600621
{ .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},
601622
{ .compatible = "qcom,sm8250-rpmh-clk", .data = &clk_rpmh_sm8250},
602623
{ .compatible = "qcom,sm8350-rpmh-clk", .data = &clk_rpmh_sm8350},
624+
{ .compatible = "qcom,sc7280-rpmh-clk", .data = &clk_rpmh_sc7280},
603625
{ }
604626
};
605627
MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);

0 commit comments

Comments
 (0)