clk: qcom: gdsc: Add support for ON only state
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 6 Aug 2015 10:37:45 +0000 (16:07 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Sep 2015 22:22:40 +0000 (15:22 -0700)
commit3c53f5e2179874441a1741ec7bcbaa92fcec9c79
treeaeae5905dbba90978553308f31a7f72cbc5ba129
parent014e193ccd197d15b6f7bf6d3d616600091c14ad
clk: qcom: gdsc: Add support for ON only state

Certain devices can have GDSCs' which support ON as the only state.
They can't be power collapsed to either hit RET or OFF.
The clients drivers for these GDSCs' however would expect the state
of the core to be reset following a GDSC disable and re-enable.
To do this assert/deassert reset lines every time the client
driver would request the GDSC to be powered on/off instead.

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