aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/qcom
diff options
context:
space:
mode:
authorBjorn Andersson <quic_bjorande@quicinc.com>2024-01-25 13:05:09 -0800
committerBjorn Andersson <andersson@kernel.org>2024-01-30 14:48:06 -0600
commitdeebc79b28d6e9ec4d5086bbf1766b65aadcb531 (patch)
tree4dd3eef4e4e8880c7976f9f6e4b37c88d2a4d3a1 /drivers/clk/qcom
parentclk: qcom: gdsc: Enable supply reglator in GPU GX handler (diff)
downloadwireguard-linux-deebc79b28d6e9ec4d5086bbf1766b65aadcb531.tar.xz
wireguard-linux-deebc79b28d6e9ec4d5086bbf1766b65aadcb531.zip
clk: qcom: gpucc-sc8280xp: Add external supply for GX gdsc
On SA8295P and SA8540P the GFX rail is powered by a dedicated external regulator, instead of the rpmh-controlled "gfx.lvl". Define the "vdd-gfx" as the supply regulator for the GDSC, to cause the gdsc logic to look for, and control, this external power supply. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Link: https://lore.kernel.org/r/20240125-sa8295p-gpu-v4-3-7011c2a63037@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r--drivers/clk/qcom/gpucc-sc8280xp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gpucc-sc8280xp.c b/drivers/clk/qcom/gpucc-sc8280xp.c
index 8e147ee294ee..e2b3bc000c71 100644
--- a/drivers/clk/qcom/gpucc-sc8280xp.c
+++ b/drivers/clk/qcom/gpucc-sc8280xp.c
@@ -399,6 +399,7 @@ static struct gdsc gx_gdsc = {
},
.pwrsts = PWRSTS_OFF_ON,
.flags = CLAMP_IO | RETAIN_FF_ENABLE,
+ .supply = "vdd-gfx",
};
static struct gdsc *gpu_cc_sc8280xp_gdscs[] = {