FROMLIST: drm/rockchip: vop: add uv_vir register field for RK3036 VOP
authorYakir Yang <ykk@rock-chips.com>
Mon, 6 Jun 2016 07:58:32 +0000 (15:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 28 Jun 2016 10:40:59 +0000 (18:40 +0800)
The WIN0 of RK3036 VOP could support YUV data format, but driver
forget to add the uv_vir register field for it.

Change-Id: Ie27216d0612d41fec02346ce65412207ed26d4a1
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9157349/)

drivers/gpu/drm/rockchip/rockchip_vop_reg.c

index 9944d64b269df3ffde1d3ecb84a56a1ea76f2676..a3346ba168e46eacbb54b0bc65cbfa93b3e8d27b 100644 (file)
@@ -410,6 +410,7 @@ static const struct vop_win_phy rk3036_win0_data = {
        .yrgb_mst = VOP_REG(RK3036_WIN0_YRGB_MST, 0xffffffff, 0),
        .uv_mst = VOP_REG(RK3036_WIN0_CBR_MST, 0xffffffff, 0),
        .yrgb_vir = VOP_REG(RK3036_WIN0_VIR, 0xffff, 0),
+       .uv_vir = VOP_REG(RK3036_WIN0_VIR, 0x1fff, 16),
 };
 
 static const struct vop_win_phy rk3036_win1_data = {