Skip to content

Commit eee2810

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: clk-rpmh: Add support for RPMHCC for SC7180
Add support for clock RPMh driver to vote for ARC and VRM managed clock resources. Signed-off-by: Taniya Das <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 36b355c commit eee2810

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,24 @@ static const struct clk_rpmh_desc clk_rpmh_sm8150 = {
391391
.num_clks = ARRAY_SIZE(sm8150_rpmh_clocks),
392392
};
393393

394+
static struct clk_hw *sc7180_rpmh_clocks[] = {
395+
[RPMH_CXO_CLK] = &sdm845_bi_tcxo.hw,
396+
[RPMH_CXO_CLK_A] = &sdm845_bi_tcxo_ao.hw,
397+
[RPMH_LN_BB_CLK2] = &sdm845_ln_bb_clk2.hw,
398+
[RPMH_LN_BB_CLK2_A] = &sdm845_ln_bb_clk2_ao.hw,
399+
[RPMH_LN_BB_CLK3] = &sdm845_ln_bb_clk3.hw,
400+
[RPMH_LN_BB_CLK3_A] = &sdm845_ln_bb_clk3_ao.hw,
401+
[RPMH_RF_CLK1] = &sdm845_rf_clk1.hw,
402+
[RPMH_RF_CLK1_A] = &sdm845_rf_clk1_ao.hw,
403+
[RPMH_RF_CLK2] = &sdm845_rf_clk2.hw,
404+
[RPMH_RF_CLK2_A] = &sdm845_rf_clk2_ao.hw,
405+
};
406+
407+
static const struct clk_rpmh_desc clk_rpmh_sc7180 = {
408+
.clks = sc7180_rpmh_clocks,
409+
.num_clks = ARRAY_SIZE(sc7180_rpmh_clocks),
410+
};
411+
394412
static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
395413
void *data)
396414
{
@@ -471,6 +489,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
471489
static const struct of_device_id clk_rpmh_match_table[] = {
472490
{ .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
473491
{ .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},
492+
{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
474493
{ }
475494
};
476495
MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);

0 commit comments

Comments
 (0)