Browse Source

disp: msm: sde: reset ICH on partial update

This change programs both the ich_rst_manual_override and the
ich_rst_manual_value in the DSC encoder to override the hw behavior.
This override is needed to ensure the position of ich_reset is not
changed during the PPS session.

Change-Id: Ia7619a97beeea495706b4327c34fc49ef2298583
Signed-off-by: Abhijit Kulkarni <[email protected]>
Abhijit Kulkarni 5 years ago
parent
commit
7456f4b946
1 changed files with 2 additions and 1 deletions
  1. 2 1
      msm/sde/sde_hw_dsc_1_2.c

+ 2 - 1
msm/sde/sde_hw_dsc_1_2.c

@@ -156,7 +156,8 @@ static void sde_hw_dsc_config(struct sde_hw_dsc *hw_dsc,
 
 	data = (dsc->initial_lines & 0xff);
 	data |= ((mode & DSC_MODE_VIDEO) ? 1 : 0) << 9;
-	data |= (ich_reset_override ? 1 : 0) << 10;
+	if (ich_reset_override)
+		data |= 0xC00; // set bit 10 and 11
 	data |= (_dsc_calc_ob_max_addr(hw_dsc, slice_count_per_enc) << 18);
 
 	SDE_REG_WRITE(dsc_c, ENC_DF_CTRL + idx, data);