mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
drm/rockchip: vop: Add interlace mode support for RV1126B
Change-Id: Ieffc2d9a2862b854895a77befe8d201fea9ad984 Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
This commit is contained in:
@@ -2626,7 +2626,8 @@ static void vop_plane_atomic_update(struct drm_plane *plane,
|
||||
}
|
||||
if ((vop->version == VOP_VERSION_RK3036 ||
|
||||
vop->version == VOP_VERSION_RK3506 ||
|
||||
vop->version == VOP_VERSION_RK3576_LITE) &&
|
||||
vop->version == VOP_VERSION_RK3576_LITE ||
|
||||
vop->version == VOP_VERSION_RV1126B) &&
|
||||
(adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE))
|
||||
dsp_h = dsp_h / 2;
|
||||
|
||||
@@ -2643,7 +2644,8 @@ static void vop_plane_atomic_update(struct drm_plane *plane,
|
||||
dsp_sty = dest->y1 + mode->crtc_vtotal - mode->crtc_vsync_start;
|
||||
if ((vop->version == VOP_VERSION_RK3036 ||
|
||||
vop->version == VOP_VERSION_RK3506 ||
|
||||
vop->version == VOP_VERSION_RK3576_LITE) &&
|
||||
vop->version == VOP_VERSION_RK3576_LITE ||
|
||||
vop->version == VOP_VERSION_RV1126B) &&
|
||||
(adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE))
|
||||
dsp_sty = dest->y1 / 2 + mode->crtc_vtotal - mode->crtc_vsync_start;
|
||||
dsp_st = dsp_sty << 16 | (dsp_stx & 0xffff);
|
||||
|
||||
@@ -1639,6 +1639,7 @@ static const struct vop_win_phy px30_win23_data = {
|
||||
.csc_mode = VOP_REG(RK3368_WIN2_CTRL0, 0x3, 2),
|
||||
.format = VOP_REG(RK3368_WIN2_CTRL0, 0x3, 5),
|
||||
.rb_swap = VOP_REG(RK3368_WIN2_CTRL0, 0x1, 20),
|
||||
.interlace_read = VOP_REG(RK3368_WIN2_CTRL0, 0x1, 1),
|
||||
.dsp_info = VOP_REG(RK3368_WIN2_DSP_INFO0, 0x0fff0fff, 0),
|
||||
.dsp_st = VOP_REG(RK3368_WIN2_DSP_ST0, 0x1fff1fff, 0),
|
||||
.yrgb_mst = VOP_REG(RK3368_WIN2_MST0, 0xffffffff, 0),
|
||||
|
||||
Reference in New Issue
Block a user