clk: qcom: gpucc: Add support for GX GDSC for SC7180
authorTaniya Das <tdas@codeaurora.org>
Mon, 10 Feb 2020 04:01:06 +0000 (09:31 +0530)
committerStephen Boyd <sboyd@kernel.org>
Wed, 12 Feb 2020 23:24:52 +0000 (15:24 -0800)
commit1a6151128c847c473da1c7e7022ef78d3e2d6689
tree61eb9d6885fe3b3bb7e407bbb4c5261d8bd39e50
parent04ac0ad7e8edc7f1a7b3e219db245060fcaf59a4
clk: qcom: gpucc: Add support for GX GDSC for SC7180

Most of the time the CPU should not be touching the GX domain on the
GPU except for a very special use case when the CPU needs to force the
GX headswitch off. Add the GX domain for that use case.  As part of
this add a dummy enable function for the GX gdsc to simulate success
so that the pm_runtime reference counting is correct.  This matches
what was done in sdm845 in commit 85a3d920d30a ("clk: qcom: Add a
dummy enable function for GX gdsc").

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lkml.kernel.org/r/1581307266-26989-2-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gpucc-sc7180.c