Browse Source

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 <[email protected]>
Shashank Babu Chinta Venkata 3 years ago
parent
commit
6fc34a0613
1 changed files with 6 additions and 0 deletions
  1. 6 0
      msm/dsi/dsi_phy_hw_v4_0.c

+ 6 - 0
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;