mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
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:
parent
8fff5a3f7a
commit
3866b02cf8
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user