clk: qcom: Add support for alpha pll hwfsm ops
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 29 Sep 2016 08:35:42 +0000 (14:05 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Nov 2016 01:39:15 +0000 (18:39 -0700)
commitfeb65645c1d259402eda6b45bd5c399a66826019
treee15c56efc5abf282cb652ae11a964c4714937755
parenta4315592e8bb89469ca110a89448446e6c72e3ea
clk: qcom: Add support for alpha pll hwfsm ops

Some PLLs can support an HW FSM mode (different from the Votable FSMs,
though its the same bit used to enable Votable FSMs as well as HW FSMs)
which enables the HW to do the bypass/reset/enable-output-ctrl sequence
on its own. So all thats needed from SW is to set the FSM_ENA bit.
PLL_ACTIVE_FLAG is whats used to check if the PLL is active/enabled.

Some of the PLLs which support HW FSM can also need an OFFLINE request
that needs to be toggled across the enable/disable. We use a flag to
identify such cases and handle them.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-alpha-pll.c
drivers/clk/qcom/clk-alpha-pll.h