diff options
author | Mark yao <mark.yao@rock-chips.com> | 2017-07-26 14:19:12 +0800 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2017-07-31 08:43:57 +0800 |
commit | 9548e1b49a0cb2eb0cec1cf2560c920fe2954608 (patch) | |
tree | 8f9904575fe6612cd0a46b313316d8a68bad64de /drivers/gpu/drm/rockchip/rockchip_drm_vop.h | |
parent | 60b7ae7fa2f650b9faefff34aa295c28b65bb607 (diff) | |
download | talos-obmc-linux-9548e1b49a0cb2eb0cec1cf2560c920fe2954608.tar.gz talos-obmc-linux-9548e1b49a0cb2eb0cec1cf2560c920fe2954608.zip |
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
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_vop.h')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h index 084d3b25a120..056b9744802a 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h @@ -29,6 +29,7 @@ struct vop_reg { uint32_t shift; uint32_t mask; bool write_mask; + bool relaxed; }; struct vop_ctrl { |