mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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 */
|
/* hdisplay must roundup as 2 pixel */
|
||||||
pre_scan_dly = bg_dly + (roundup(hdisplay, 2) >> 1) - 1;
|
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, bg_dly, bg_dly);
|
||||||
VOP_MODULE_SET(vop2, vp, pre_scan_htiming, pre_scan_dly);
|
VOP_MODULE_SET(vop2, vp, pre_scan_htiming, pre_scan_dly);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user