@@ -391,6 +391,24 @@ static const struct clk_rpmh_desc clk_rpmh_sm8150 = {
391
391
.num_clks = ARRAY_SIZE (sm8150_rpmh_clocks ),
392
392
};
393
393
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
+
394
412
static struct clk_hw * of_clk_rpmh_hw_get (struct of_phandle_args * clkspec ,
395
413
void * data )
396
414
{
@@ -471,6 +489,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
471
489
static const struct of_device_id clk_rpmh_match_table [] = {
472
490
{ .compatible = "qcom,sdm845-rpmh-clk" , .data = & clk_rpmh_sdm845 },
473
491
{ .compatible = "qcom,sm8150-rpmh-clk" , .data = & clk_rpmh_sm8150 },
492
+ { .compatible = "qcom,sc7180-rpmh-clk" , .data = & clk_rpmh_sc7180 },
474
493
{ }
475
494
};
476
495
MODULE_DEVICE_TABLE (of , clk_rpmh_match_table );
0 commit comments