Skip to content

Commit c9b86db

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: rpmh: Update the XO clock source for SC7280
The bi_tcxo clock source for SC7280 requires a div 4 to derive 19.2MHz from the xo_board. Thus update the same. Fixes: fff2b9a ("clk: qcom: rpmh: Add support for RPMH clocks on SC7280") Signed-off-by: Taniya Das <tdas@codeaurora.org> Link: https://lore.kernel.org/r/1615400283-20100-1-git-send-email-tdas@codeaurora.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent a38fd87 commit c9b86db

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/clk/qcom/clk-rpmh.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,12 @@ static const struct clk_rpmh_desc clk_rpmh_sm8350 = {
510510
.num_clks = ARRAY_SIZE(sm8350_rpmh_clocks),
511511
};
512512

513+
/* Resource name must match resource id present in cmd-db */
514+
DEFINE_CLK_RPMH_ARC(sc7280, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 4);
515+
513516
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,
517+
[RPMH_CXO_CLK] = &sc7280_bi_tcxo.hw,
518+
[RPMH_CXO_CLK_A] = &sc7280_bi_tcxo_ao.hw,
516519
[RPMH_LN_BB_CLK2] = &sdm845_ln_bb_clk2.hw,
517520
[RPMH_LN_BB_CLK2_A] = &sdm845_ln_bb_clk2_ao.hw,
518521
[RPMH_RF_CLK1] = &sdm845_rf_clk1.hw,

0 commit comments

Comments
 (0)