summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/gpucc-sc7280.c
diff options
context:
space:
mode:
authorTaniya Das <quic_tdas@quicinc.com>2024-05-31 12:51:40 +0300
committerBjorn Andersson <andersson@kernel.org>2024-06-01 01:52:47 +0300
commit7f10197853006c45e51f17e5f6b2da8d98b60784 (patch)
treeb8105ce34ac935739f0cb71f97c40ed59ab0cdf4 /drivers/clk/qcom/gpucc-sc7280.c
parenta8fe85d40ffe5ec0fd2f557932ffee902be35b38 (diff)
downloadlinux-7f10197853006c45e51f17e5f6b2da8d98b60784.tar.xz
clk: qcom: sc7280: Update the transition delay for GDSC
Add support to update the GDSC transition delay values to avoid the GDSC FSM state stuck issues without which it could lead to GDSC power on/off failures. Signed-off-by: Taniya Das <quic_tdas@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240531095142.9688-2-quic_tdas@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/gpucc-sc7280.c')
-rw-r--r--drivers/clk/qcom/gpucc-sc7280.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gpucc-sc7280.c b/drivers/clk/qcom/gpucc-sc7280.c
index 35b394feb68d..ebda57eac979 100644
--- a/drivers/clk/qcom/gpucc-sc7280.c
+++ b/drivers/clk/qcom/gpucc-sc7280.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/clk-provider.h>
@@ -379,6 +380,9 @@ static struct clk_branch gpu_cc_sleep_clk = {
static struct gdsc cx_gdsc = {
.gdscr = 0x106c,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
.gds_hw_ctrl = 0x1540,
.pd = {
.name = "cx_gdsc",
@@ -389,6 +393,9 @@ static struct gdsc cx_gdsc = {
static struct gdsc gx_gdsc = {
.gdscr = 0x100c,
+ .en_rest_wait_val = 0x2,
+ .en_few_wait_val = 0x2,
+ .clk_dis_wait_val = 0x2,
.clamp_io_ctrl = 0x1508,
.pd = {
.name = "gx_gdsc",