Skip to content

Commit

Permalink
clk: qcom: gpucc-sa8775p: Update wait_val fields for GPU GDSC's
Browse files Browse the repository at this point in the history
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 <quic_tdas@quicinc.com>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240612-sa8775p-v2-gcc-gpucc-fixes-v2-6-adcc756a23df@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
  • Loading branch information
Taniya Das authored and Bjorn Andersson committed Jun 23, 2024
1 parent dff68b2 commit 2116819
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/clk/qcom/gpucc-sa8775p.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ static struct clk_regmap *gpu_cc_sa8775p_clocks[] = {

static struct gdsc cx_gdsc = {
.gdscr = 0x9108,
.en_rest_wait_val = 0x2,
.en_few_wait_val = 0x2,
.clk_dis_wait_val = 0xf,
.gds_hw_ctrl = 0x953c,
.pd = {
.name = "cx_gdsc",
Expand All @@ -533,6 +536,9 @@ static struct gdsc cx_gdsc = {

static struct gdsc gx_gdsc = {
.gdscr = 0x905c,
.en_rest_wait_val = 0x2,
.en_few_wait_val = 0x2,
.clk_dis_wait_val = 0xf,
.pd = {
.name = "gx_gdsc",
.power_on = gdsc_gx_do_nothing_enable,
Expand Down

0 comments on commit 2116819

Please sign in to comment.