summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun8i_mixer.h
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@siol.net>2018-11-04 19:26:47 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-11-05 10:34:49 +0100
commit218d6a3cfc960b066a321ae55de79e6b8e98263f (patch)
tree6895409ebfe6d0938b10eb4fe09e0c487e370b28 /drivers/gpu/drm/sun4i/sun8i_mixer.h
parentdrm/sun4i: Rework DE2 register defines (diff)
downloadlinux-218d6a3cfc960b066a321ae55de79e6b8e98263f.tar.xz
linux-218d6a3cfc960b066a321ae55de79e6b8e98263f.zip
drm/sun4i: Fix DE2 mixer size
DE2 mixer is always 0x6000 bytes in size on all known SoCs. While at it, introduce a macro for that. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181104182705.18047-11-jernej.skrabec@siol.net
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/sun4i/sun8i_mixer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h
index 025550a1f539..09e0f4428c1e 100644
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.h
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h
@@ -29,6 +29,8 @@
#define SUN8I_MIXER_GLOBAL_DBUFF_ENABLE BIT(0)
+#define DE2_MIXER_UNIT_SIZE 0x6000
+
#define DE2_BLD_BASE 0x1000
#define DE2_CH_BASE 0x2000
#define DE2_CH_SIZE 0x1000