drm/rockchip: vop: move write_relaxed flags to vop register
authorMark yao <mark.yao@rock-chips.com>
Wed, 26 Jul 2017 06:19:12 +0000 (14:19 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 31 Jul 2017 00:43:57 +0000 (08:43 +0800)
commit9548e1b49a0cb2eb0cec1cf2560c920fe2954608
tree8f9904575fe6612cd0a46b313316d8a68bad64de
parent60b7ae7fa2f650b9faefff34aa295c28b65bb607
drm/rockchip: vop: move write_relaxed flags to vop register

Since the drm atomic framework, only a small part of the vop
register needs sync write, Currently seems only following registers
need sync write:
   cfg_done, standby and interrupt related register.

All ctrl registers are using the sync write method that is
inefficient, hardcode the write_relaxed flags to vop registers,
then can only do synchronize write for those actual needed register.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1501049953-5946-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