]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit388bd06c889cfcbeb7e9296cf7c13285b99107ef
treee15c56efc5abf282cb652ae11a964c4714937755
parent4f294bdfe32777d69ae005ef29c2b05eb55d4411
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