drm/rockchip: vop2: set pre_scan_hblank minimum value to 8

pre_scan_hblank minimum value is 8, otherwise the win reset signal
lead to first line data be zero.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ibef722cd65a9f7e276ba1ffda1d75cac2ac8b83a
This commit is contained in:
Sandy Huang
2024-02-23 18:52:01 +08:00
committed by Tao Huang
parent 700e168994
commit ce8f21340f

View File

@@ -8306,7 +8306,11 @@ static void vop3_setup_pipe_dly(struct vop2_video_port *vp, const struct vop2_zp
/* hdisplay must roundup as 2 pixel */
pre_scan_dly = bg_dly + (roundup(hdisplay, 2) >> 1) - 1;
pre_scan_dly = (pre_scan_dly << 16) | hsync_len;
/**
* pre_scan_hblank minimum value is 8, otherwise the win reset signal will
* lead to first line data be zero.
*/
pre_scan_dly = (pre_scan_dly << 16) | (hsync_len < 8 ? 8 : hsync_len);
VOP_MODULE_SET(vop2, vp, bg_dly, bg_dly);
VOP_MODULE_SET(vop2, vp, pre_scan_htiming, pre_scan_dly);