Skip to content

Commit 2116819

Browse files
Taniya Dasandersson
authored andcommitted
clk: qcom: gpucc-sa8775p: Update wait_val fields for GPU GDSC's
Update wait_val fields as per the default hardware values of the GDSC as otherwise it would lead to GDSC FSM state stuck causing power on/off failures of the GSDC. Fixes: 0afa16a ("clk: qcom: add the GPUCC driver for sa8775p") Signed-off-by: Taniya Das <[email protected]> Acked-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/20240612-sa8775p-v2-gcc-gpucc-fixes-v2-6-adcc756a23df@quicinc.com Signed-off-by: Bjorn Andersson <[email protected]>
1 parent dff68b2 commit 2116819

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/clk/qcom/gpucc-sa8775p.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,9 @@ static struct clk_regmap *gpu_cc_sa8775p_clocks[] = {
523523

524524
static struct gdsc cx_gdsc = {
525525
.gdscr = 0x9108,
526+
.en_rest_wait_val = 0x2,
527+
.en_few_wait_val = 0x2,
528+
.clk_dis_wait_val = 0xf,
526529
.gds_hw_ctrl = 0x953c,
527530
.pd = {
528531
.name = "cx_gdsc",
@@ -533,6 +536,9 @@ static struct gdsc cx_gdsc = {
533536

534537
static struct gdsc gx_gdsc = {
535538
.gdscr = 0x905c,
539+
.en_rest_wait_val = 0x2,
540+
.en_few_wait_val = 0x2,
541+
.clk_dis_wait_val = 0xf,
536542
.pd = {
537543
.name = "gx_gdsc",
538544
.power_on = gdsc_gx_do_nothing_enable,

0 commit comments

Comments
 (0)