]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: qcom: gdsc: Use PM clocks to control gdsc clocks
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 6 Aug 2015 10:37:52 +0000 (16:07 +0530)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:46 +0000 (09:54 +0000)
commit9ac6498eb4ecbd8202aa6a02291b6b868af21e87
treefbc579c1acfca043f00c4714bd00bbd537c304e5
parentafd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
clk: qcom: gdsc: Use PM clocks to control gdsc clocks

The devices within a gdsc power domain, quite often have additional
clocks to be turned on/off along with the power domain itself.
Once the drivers for these devices are converted to use runtime PM,
it would be possible to remove all clock handling from the drivers if
the gdsc driver can handle it.
Use PM clocks to add support for this. A list of clock ids specified
per gdsc would be the clocks turned on/off on every device start/stop
callbacks.

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