summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaniya Das <quic_tdas@quicinc.com>2024-05-31 15:21:41 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 08:53:56 +0200
commit698f30703f53ff0ec82d18efe917c9a6c2485b86 (patch)
tree6ac30d74f5d69aa18c65a31cafdd237fe5fc0fa0
parent993cace4f39f6f210f8fdace3c60a4b6a0e6f47a (diff)
downloadlinux-698f30703f53ff0ec82d18efe917c9a6c2485b86.tar.gz
linux-698f30703f53ff0ec82d18efe917c9a6c2485b86.tar.bz2
linux-698f30703f53ff0ec82d18efe917c9a6c2485b86.zip
clk: qcom: gcc-sc7280: Update force mem core bit for UFS ICE clock
[ Upstream commit f38467b5a920be1473710428a93c4e54b6f8a0c1 ] Update the force mem core bit for UFS ICE clock to force the core on signal to remain active during halt state of the clk. When retention bit of the clock is set the memories of the subsystem will retain the logic across power states. Fixes: a3cc092196ef ("clk: qcom: Add Global Clock controller (GCC) driver for SC7280") 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-3-quic_tdas@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/clk/qcom/gcc-sc7280.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c
index 2b661df5de26..bc81026292fc 100644
--- a/drivers/clk/qcom/gcc-sc7280.c
+++ b/drivers/clk/qcom/gcc-sc7280.c
@@ -3467,6 +3467,9 @@ static int gcc_sc7280_probe(struct platform_device *pdev)
regmap_update_bits(regmap, 0x71004, BIT(0), BIT(0));
regmap_update_bits(regmap, 0x7100C, BIT(13), BIT(13));
+ /* FORCE_MEM_CORE_ON for ufs phy ice core clocks */
+ qcom_branch_set_force_mem_core(regmap, gcc_ufs_phy_ice_core_clk, true);
+
ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks,
ARRAY_SIZE(gcc_dfs_clocks));
if (ret)