]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/rockchip: vop: rk3328: fix overlay abnormal
authorMark yao <mark.yao@rock-chips.com>
Wed, 26 Jul 2017 06:19:39 +0000 (14:19 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 31 Jul 2017 00:44:18 +0000 (08:44 +0800)
commit9dd2aca46a13cc7177625f0dc3aaf5b7ebc6fe74
treeee999a4f11b9e0e53fedb5b6115bbc6438d45d74
parentb218dec7bb9d43253b885d403eb239b4a996ea37
drm/rockchip: vop: rk3328: fix overlay abnormal

It's a hardware bug, all window's overlay channel reset
value is same, hardware overlay would be die.

so we must initial difference id for each overlay channel.

The Channel register is supported on all vop will full design.
Following is the details for this register
VOP_WIN0_CTRL2
  bit[7:4] win_rid_win0_cbr
       axi read id of win0 cbr channel
  bit[3:0] win_rid_win0_yrgb
       axi read id of win0 yrgb channel

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1501049980-6239-1-git-send-email-mark.yao@rock-chips.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c