clk: qcom: gdsc: Add support for gdscs with HW control
authorRajendra Nayak <rnayak@codeaurora.org>
Fri, 18 Nov 2016 12:28:26 +0000 (17:58 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 24 Nov 2016 00:41:15 +0000 (16:41 -0800)
commit904bb4f5c7de2f40ff31d43d3547d40910e46640
tree5268fb9049fcf4576592d6e800c83ecd249bc870
parent5e2035b90e7192b48f9615ddfbcc6fef1149ed8a
clk: qcom: gdsc: Add support for gdscs with HW control

Some GDSCs might support a HW control mode, where in the power
domain (gdsc) is brought in and out of low power state (while
unsued) without any SW assistance, saving power.
Such GDSCs can be configured in a HW control mode when powered on
until they are explicitly requested to be powered off by software.

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