From 6fc34a0613fd196a9d485f5a9cfe30281d3770bb Mon Sep 17 00:00:00 2001 From: Shashank Babu Chinta Venkata Date: Tue, 24 Aug 2021 14:26:56 -0700 Subject: [PATCH] disp: msm: dsi: remove vote on refgen when PHY is turned off Remove vote on refgen during display off usecase. Change-Id: I4d618569c4e03c1b6dca637179053ee812b1d5d9 Signed-off-by: Shashank Babu Chinta Venkata --- msm/dsi/dsi_phy_hw_v4_0.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/msm/dsi/dsi_phy_hw_v4_0.c b/msm/dsi/dsi_phy_hw_v4_0.c index 961123d8..7d6b4099 100644 --- a/msm/dsi/dsi_phy_hw_v4_0.c +++ b/msm/dsi/dsi_phy_hw_v4_0.c @@ -525,6 +525,12 @@ void dsi_phy_hw_v4_0_disable(struct dsi_phy_hw *phy, dsi_phy_hw_v4_0_config_lpcdrx(phy, cfg, false); + /* Turn off REFGEN Vote */ + DSI_W32(phy, DSIPHY_CMN_GLBL_DIGTOP_SPARE10, 0x0); + wmb(); + /* Delay to ensure HW removes vote before PHY shut down */ + udelay(2); + data = DSI_R32(phy, DSIPHY_CMN_CTRL_0); /* disable all lanes and splitlink clk lane*/ data &= ~0x9F;