mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
drm/rockchip: vop: enable yuv clip when bt1120 output
Avoid image data have 0xff 0x00 0x00 lead to disturb bt1120 EAV and SAV sync signal, so enable yuv clip when bt1120 output. Change-Id: I103615bfecfbf812768b89fb42bfd3859950187b Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -3005,6 +3005,7 @@ static void vop_crtc_atomic_enable(struct drm_crtc *crtc,
|
||||
VOP_CTRL_SET(vop, bt1120_en, 1);
|
||||
yc_swap = is_yc_swap(s->bus_format);
|
||||
VOP_CTRL_SET(vop, bt1120_yc_swap, yc_swap);
|
||||
VOP_CTRL_SET(vop, yuv_clip, 1);
|
||||
}
|
||||
break;
|
||||
case DRM_MODE_CONNECTOR_eDP:
|
||||
|
||||
@@ -193,6 +193,7 @@ struct vop_ctrl {
|
||||
struct vop_reg sw_uv_offset_en;
|
||||
struct vop_reg dsp_out_yuv;
|
||||
struct vop_reg dsp_data_swap;
|
||||
struct vop_reg yuv_clip;
|
||||
struct vop_reg dsp_ccir656_avg;
|
||||
struct vop_reg dsp_black;
|
||||
struct vop_reg dsp_blank;
|
||||
|
||||
@@ -1700,6 +1700,7 @@ static const struct vop_ctrl rv1126_ctrl_data = {
|
||||
.dither_down_mode = VOP_REG(RK3366_LIT_DSP_CTRL2, 0x1, 6),
|
||||
.dither_up_en = VOP_REG(RK3366_LIT_DSP_CTRL2, 0x1, 2),
|
||||
.dsp_data_swap = VOP_REG(RK3366_LIT_DSP_CTRL2, 0x1f, 9),
|
||||
.yuv_clip = VOP_REG(RK3366_LIT_SYS_CTRL2, 0x1, 4),
|
||||
.dsp_ccir656_avg = VOP_REG(RK3366_LIT_SYS_CTRL2, 0x1, 5),
|
||||
.dsp_black = VOP_REG(RK3366_LIT_DSP_CTRL2, 0x1, 15),
|
||||
.dsp_blank = VOP_REG(RK3366_LIT_DSP_CTRL2, 0x1, 14),
|
||||
|
||||
Reference in New Issue
Block a user