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 <kabhijit@codeaurora.org>
This commit is contained in:
Abhijit Kulkarni
2020-07-27 12:18:48 -07:00
committed by Gerrit - the friendly Code Review server
szülő 48da17d61b
commit 7456f4b946

Fájl megtekintése

@@ -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);