summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/rockchip_vop_reg.c
diff options
context:
space:
mode:
authorMark Yao <mark.yao@rock-chips.com>2016-04-20 14:18:15 +0800
committerSean Paul <seanpaul@chromium.org>2016-08-23 11:44:29 -0400
commitd49463ec78cfadab29de1df318c525319ab3c919 (patch)
treeb3cd57bc38b4dc8c938c0368d4ecf0e4667b1045 /drivers/gpu/drm/rockchip/rockchip_vop_reg.c
parentb51502add7afc5ac83eacecec1fee148603ddb08 (diff)
downloadlinux-d49463ec78cfadab29de1df318c525319ab3c919.tar.gz
linux-d49463ec78cfadab29de1df318c525319ab3c919.tar.bz2
linux-d49463ec78cfadab29de1df318c525319ab3c919.zip
drm/rockchip: vop: introduce VOP_REG_MASK
Some new vop register support mask, bit[16-31] is mask, bit[0-15] is value, the mask is correspond to the value. Signed-off-by: Mark Yao <mark.yao@rock-chips.com> [seanpaul masked 'v' per tfiga's review comments] Reviewed-by: Mark Yao <mark.yao@rock-chips.com> Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_vop_reg.c')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_vop_reg.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c
index 44caf14b3559..e3f72ba5cb8a 100644
--- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c
+++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c
@@ -23,7 +23,14 @@
#define VOP_REG(off, _mask, s) \
{.offset = off, \
.mask = _mask, \
- .shift = s,}
+ .shift = s, \
+ .write_mask = false,}
+
+#define VOP_REG_MASK(off, _mask, s) \
+ {.offset = off, \
+ .mask = _mask, \
+ .shift = s, \
+ .write_mask = true,}
static const uint32_t formats_win_full[] = {
DRM_FORMAT_XRGB8888,