mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/rockchip: set rgb overlay mode as default config
Change-Id: I8e1aafe5375862c34fa73aff16565a81bd12145d Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -1008,6 +1008,7 @@ static void vop_crtc_atomic_enable(struct drm_crtc *crtc,
|
||||
VOP_REG_SET(vop, common, pre_dither_down, 0);
|
||||
|
||||
VOP_REG_SET(vop, common, out_mode, s->output_mode);
|
||||
VOP_REG_SET(vop, common, yuv_overlay, 0);
|
||||
|
||||
VOP_REG_SET(vop, modeset, htotal_pw, (htotal << 16) | hsync_len);
|
||||
val = hact_st << 16;
|
||||
|
||||
@@ -76,6 +76,7 @@ struct vop_common {
|
||||
struct vop_reg mmu_en;
|
||||
struct vop_reg out_mode;
|
||||
struct vop_reg standby;
|
||||
struct vop_reg yuv_overlay;
|
||||
};
|
||||
|
||||
struct vop_misc {
|
||||
|
||||
@@ -535,6 +535,7 @@ static const struct vop_misc rk3328_misc = {
|
||||
|
||||
static const struct vop_common rk3328_common = {
|
||||
.standby = VOP_REG_SYNC(RK3328_SYS_CTRL, 0x1, 22),
|
||||
.yuv_overlay = VOP_REG_SYNC(RK3328_SYS_CTRL, 0x1, 16),
|
||||
.dither_down = VOP_REG(RK3328_DSP_CTRL1, 0xf, 1),
|
||||
.dither_up = VOP_REG(RK3328_DSP_CTRL1, 0x1, 6),
|
||||
.dsp_blank = VOP_REG(RK3328_DSP_CTRL0, 0x3, 18),
|
||||
|
||||
Reference in New Issue
Block a user