clk: qcom: clk-alpha-pll: Add support for FSM legacy mode

The Lucid PLL could require the FSM legacy mode bit to be set for the
PLL to be operational, thus add support and set the same when the flag
is set.

Change-Id: I3ed4b6c38a1769c5021f17e0115215eab615ab62
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
This commit is contained in:
Chetan C R 2022-04-27 21:56:17 +05:30 committed by Mike Tipton
parent 8fff5a3f7a
commit 3866b02cf8

View File

@ -1848,6 +1848,10 @@ void clk_trion_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
regmap_update_bits(regmap, PLL_MODE(pll), PLL_UPDATE_BYPASS,
PLL_UPDATE_BYPASS);
if (pll->flags & SUPPORTS_FSM_LEGACY_MODE)
regmap_update_bits(regmap, PLL_MODE(pll), PLL_FSM_LEGACY_MODE,
PLL_FSM_LEGACY_MODE);
/* Disable PLL output */
regmap_update_bits(regmap, PLL_MODE(pll), PLL_OUTCTRL, 0);