소스 검색

disp: msm: dsi: Skip soft reset during display disable

As per DSI HPG, Soft reset is not required to disable
video mode operation for version 1.3.0 and later. So,
add check to skip it during display disable.

Change-Id: If6d263bdf22f8a6fbef76d78d04bb9d11be05945
Signed-off-by: Ritesh Kumar <[email protected]>
Signed-off-by: Steve Cohen <[email protected]>
Ritesh Kumar 5 년 전
부모
커밋
998dec67d8
3개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      msm/dsi/dsi_ctrl.c
  2. 2 0
      msm/dsi/dsi_ctrl_hw.h
  3. 1 0
      msm/dsi/dsi_ctrl_hw_cmn.c

+ 1 - 1
msm/dsi/dsi_ctrl.c

@@ -3675,7 +3675,7 @@ int dsi_ctrl_set_vid_engine_state(struct dsi_ctrl *dsi_ctrl,
 		dsi_ctrl->hw.ops.video_engine_en(&dsi_ctrl->hw, on);
 
 		/* perform a reset when turning off video engine */
-		if (!on)
+		if (!on && dsi_ctrl->version < DSI_CTRL_VERSION_1_3)
 			dsi_ctrl->hw.ops.soft_reset(&dsi_ctrl->hw);
 	}
 

+ 2 - 0
msm/dsi/dsi_ctrl_hw.h

@@ -31,6 +31,7 @@
 /**
  * enum dsi_ctrl_version - version of the dsi host controller
  * @DSI_CTRL_VERSION_UNKNOWN: Unknown controller version
+ * @DSI_CTRL_VERSION_1_3:     DSI host v1.3 controller
  * @DSI_CTRL_VERSION_1_4:     DSI host v1.4 controller
  * @DSI_CTRL_VERSION_2_0:     DSI host v2.0 controller
  * @DSI_CTRL_VERSION_2_2:     DSI host v2.2 controller
@@ -41,6 +42,7 @@
  */
 enum dsi_ctrl_version {
 	DSI_CTRL_VERSION_UNKNOWN,
+	DSI_CTRL_VERSION_1_3,
 	DSI_CTRL_VERSION_1_4,
 	DSI_CTRL_VERSION_2_0,
 	DSI_CTRL_VERSION_2_2,

+ 1 - 0
msm/dsi/dsi_ctrl_hw_cmn.c

@@ -199,6 +199,7 @@ void dsi_ctrl_hw_cmn_soft_reset(struct dsi_ctrl_hw *ctrl)
 	DSI_W32(ctrl, DSI_CTRL, reg_ctrl);
 	wmb(); /* make sure DSI controller is enabled again */
 	DSI_CTRL_HW_DBG(ctrl, "ctrl soft reset done\n");
+	SDE_EVT32(ctrl->index);
 }
 
 /**