From 7456f4b9461dcaf438968b0cc80cbb496da9d94e Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Mon, 27 Jul 2020 12:18:48 -0700 Subject: [PATCH] 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 --- msm/sde/sde_hw_dsc_1_2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_hw_dsc_1_2.c b/msm/sde/sde_hw_dsc_1_2.c index 29c41ba42e..316b6b6cc6 100644 --- a/msm/sde/sde_hw_dsc_1_2.c +++ b/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);