]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
clk: qcom: gdsc: Add support for Memory RET/OFF
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 6 Aug 2015 10:37:44 +0000 (16:07 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Sep 2015 22:22:39 +0000 (15:22 -0700)
commit014e193ccd197d15b6f7bf6d3d616600091c14ad
treec076c667c5deb6b94a0b01427e47d81e659fc195
parent5e5cc241e9c448d1f6e5fdef843ab018a9947d5c
clk: qcom: gdsc: Add support for Memory RET/OFF

Along with the GDSC power switch, there is additional control
to either retain all memory (core and peripheral) within a given
powerdomain or to turn them off while the GDSC is powered down.
Add support for these by modelling a RET state where all
memory is retained and an OFF state where all memory gets turned
off.
The controls provided are granular enough to be able to support
various differnt levels of RET states, like a 'shallow RET' with all memory
retained and a 'deep RET' with some memory retained while some others
are lost. The current patch does not support this and considers
just one RET state where all memory is retained. Futher work, if
needed can support multiple different levels of RET state.

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