clk: qcom: gdsc: add support for collapse-vote registers
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 20 May 2022 10:09:47 +0000 (12:09 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 26 Jun 2022 03:38:02 +0000 (22:38 -0500)
commit77ea2bd72da4f61f59ad2e839babe83849f35dea
treea290ed4e88079efab620d47fbeb1affc4666c8f5
parente73cb8527c597598599119fcd9c7d1752d9e9fd7
clk: qcom: gdsc: add support for collapse-vote registers

Recent Qualcomm platforms have APCS collapse-vote registers that allow
for sharing GDSCs with other masters (e.g. LPASS).

Add support for using such vote registers instead of the control
register when updating the GDSC power state.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220520100948.19622-3-johan+linaro@kernel.org
drivers/clk/qcom/gdsc.c
drivers/clk/qcom/gdsc.h