[2/2] clk: qcom: gcc-sm6125: Set up flags on GPU mem_iface clk

Message ID 20230531-topic-sm61125_gpucc_flag-v1-2-f59dd1350781@linaro.org
State New
Headers
Series (no cover subject) |

Commit Message

Konrad Dybcio May 31, 2023, 7:08 p.m. UTC
  Following the BSP, disable the RETAIN_MEM and RETAIN_PERIPH bits on
gcc_gpu_memnoc_gfx_clk.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/clk/qcom/gcc-sm6125.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/drivers/clk/qcom/gcc-sm6125.c b/drivers/clk/qcom/gcc-sm6125.c
index 40ad062d1bf7..ea1d567c7994 100644
--- a/drivers/clk/qcom/gcc-sm6125.c
+++ b/drivers/clk/qcom/gcc-sm6125.c
@@ -4162,6 +4162,10 @@  static int gcc_sm6125_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
+	/* Set up no PERIPH/MEM retain on the GPU mem_iface clock */
+	qcom_branch_set_force_mem_core(regmap, gcc_gpu_memnoc_gfx_clk, false);
+	qcom_branch_set_force_periph_on(regmap, gcc_gpu_memnoc_gfx_clk, false);
+
 	return qcom_cc_really_probe(pdev, &gcc_sm6125_desc, regmap);
 }