mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
drm/rockchip: vop: fix background color
Change-Id: Idbd43b4456df80e2243ce09c3bc69d8be6e0af6a Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -1771,9 +1771,18 @@ static void vop_crtc_enable(struct drm_crtc *crtc)
|
||||
s->output_mode == ROCKCHIP_OUT_MODE_YUV420 ? 1 : 0);
|
||||
VOP_CTRL_SET(vop, overlay_mode, is_yuv_output(s->bus_format));
|
||||
VOP_CTRL_SET(vop, dsp_out_yuv, is_yuv_output(s->bus_format));
|
||||
VOP_CTRL_SET(vop, dsp_background,
|
||||
is_yuv_output(s->bus_format) ? 0x20010200 : 0);
|
||||
|
||||
/*
|
||||
* Background color is 10bit depth if vop version >= 3.5
|
||||
*/
|
||||
if (!is_yuv_output(s->bus_format))
|
||||
val = 0;
|
||||
else if (VOP_MAJOR(vop->data->version) == 3 &&
|
||||
VOP_MINOR(vop->data->version) >= 5)
|
||||
val = 0x20010200;
|
||||
else
|
||||
val = 0x801080;
|
||||
VOP_CTRL_SET(vop, dsp_background, val);
|
||||
VOP_CTRL_SET(vop, htotal_pw, (htotal << 16) | hsync_len);
|
||||
val = hact_st << 16;
|
||||
val |= hact_end;
|
||||
|
||||
Reference in New Issue
Block a user