@@ -334,13 +334,14 @@ static const struct clk_ops clk_rpmh_bcm_ops = {
334
334
.recalc_rate = clk_rpmh_bcm_recalc_rate ,
335
335
};
336
336
337
- /* Resource name must match resource id present in cmd-db. */
337
+ /* Resource name must match resource id present in cmd-db */
338
338
DEFINE_CLK_RPMH_ARC (sdm845 , bi_tcxo , bi_tcxo_ao , "xo.lvl" , 0x3 , 2 );
339
339
DEFINE_CLK_RPMH_VRM (sdm845 , ln_bb_clk2 , ln_bb_clk2_ao , "lnbclka2" , 2 );
340
340
DEFINE_CLK_RPMH_VRM (sdm845 , ln_bb_clk3 , ln_bb_clk3_ao , "lnbclka3" , 2 );
341
341
DEFINE_CLK_RPMH_VRM (sdm845 , rf_clk1 , rf_clk1_ao , "rfclka1" , 1 );
342
342
DEFINE_CLK_RPMH_VRM (sdm845 , rf_clk2 , rf_clk2_ao , "rfclka2" , 1 );
343
343
DEFINE_CLK_RPMH_VRM (sdm845 , rf_clk3 , rf_clk3_ao , "rfclka3" , 1 );
344
+ DEFINE_CLK_RPMH_VRM (sm8150 , rf_clk3 , rf_clk3_ao , "rfclka3" , 1 );
344
345
DEFINE_CLK_RPMH_BCM (sdm845 , ipa , "IP0" );
345
346
346
347
static struct clk_hw * sdm845_rpmh_clocks [] = {
@@ -364,26 +365,19 @@ static const struct clk_rpmh_desc clk_rpmh_sdm845 = {
364
365
.num_clks = ARRAY_SIZE (sdm845_rpmh_clocks ),
365
366
};
366
367
367
- DEFINE_CLK_RPMH_ARC (sm8150 , bi_tcxo , bi_tcxo_ao , "xo.lvl" , 0x3 , 2 );
368
- DEFINE_CLK_RPMH_VRM (sm8150 , ln_bb_clk2 , ln_bb_clk2_ao , "lnbclka2" , 2 );
369
- DEFINE_CLK_RPMH_VRM (sm8150 , ln_bb_clk3 , ln_bb_clk3_ao , "lnbclka3" , 2 );
370
- DEFINE_CLK_RPMH_VRM (sm8150 , rf_clk1 , rf_clk1_ao , "rfclka1" , 1 );
371
- DEFINE_CLK_RPMH_VRM (sm8150 , rf_clk2 , rf_clk2_ao , "rfclka2" , 1 );
372
- DEFINE_CLK_RPMH_VRM (sm8150 , rf_clk3 , rf_clk3_ao , "rfclka3" , 1 );
373
-
374
368
static struct clk_hw * sm8150_rpmh_clocks [] = {
375
- [RPMH_CXO_CLK ] = & sm8150_bi_tcxo .hw ,
376
- [RPMH_CXO_CLK_A ] = & sm8150_bi_tcxo_ao .hw ,
377
- [RPMH_LN_BB_CLK2 ] = & sm8150_ln_bb_clk2 .hw ,
378
- [RPMH_LN_BB_CLK2_A ] = & sm8150_ln_bb_clk2_ao .hw ,
379
- [RPMH_LN_BB_CLK3 ] = & sm8150_ln_bb_clk3 .hw ,
380
- [RPMH_LN_BB_CLK3_A ] = & sm8150_ln_bb_clk3_ao .hw ,
381
- [RPMH_RF_CLK1 ] = & sm8150_rf_clk1 .hw ,
382
- [RPMH_RF_CLK1_A ] = & sm8150_rf_clk1_ao .hw ,
383
- [RPMH_RF_CLK2 ] = & sm8150_rf_clk2 .hw ,
384
- [RPMH_RF_CLK2_A ] = & sm8150_rf_clk2_ao .hw ,
385
- [RPMH_RF_CLK3 ] = & sm8150_rf_clk3 .hw ,
386
- [RPMH_RF_CLK3_A ] = & sm8150_rf_clk3_ao .hw ,
369
+ [RPMH_CXO_CLK ] = & sdm845_bi_tcxo .hw ,
370
+ [RPMH_CXO_CLK_A ] = & sdm845_bi_tcxo_ao .hw ,
371
+ [RPMH_LN_BB_CLK2 ] = & sdm845_ln_bb_clk2 .hw ,
372
+ [RPMH_LN_BB_CLK2_A ] = & sdm845_ln_bb_clk2_ao .hw ,
373
+ [RPMH_LN_BB_CLK3 ] = & sdm845_ln_bb_clk3 .hw ,
374
+ [RPMH_LN_BB_CLK3_A ] = & sdm845_ln_bb_clk3_ao .hw ,
375
+ [RPMH_RF_CLK1 ] = & sdm845_rf_clk1 .hw ,
376
+ [RPMH_RF_CLK1_A ] = & sdm845_rf_clk1_ao .hw ,
377
+ [RPMH_RF_CLK2 ] = & sdm845_rf_clk2 .hw ,
378
+ [RPMH_RF_CLK2_A ] = & sdm845_rf_clk2_ao .hw ,
379
+ [RPMH_RF_CLK3 ] = & sdm845_rf_clk3 .hw ,
380
+ [RPMH_RF_CLK3_A ] = & sdm845_rf_clk3_ao .hw ,
387
381
};
388
382
389
383
static const struct clk_rpmh_desc clk_rpmh_sm8150 = {
0 commit comments