drm/rockchip: vop: move write_relaxed flags to vop register
authorMark yao <[email protected]>
Wed, 26 Jul 2017 06:19:12 +0000 (14:19 +0800)
committerMark Yao <[email protected]>
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 <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Reviewed-by: Jeffy Chen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c