summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i/sun8i_csc.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-04-24 19:26:28 +0300
committerMaxime Ripard <maxime@cerno.tech>2022-04-26 15:25:15 +0300
commitb2da819209b6d60df4e409ecaeb184bf3670bdee (patch)
treec3300ae729917d759a9b63d70b0485591411a503 /drivers/gpu/drm/sun4i/sun8i_csc.h
parentc3779dab242f09c0a50753e32028d56070bf6f2f (diff)
downloadlinux-b2da819209b6d60df4e409ecaeb184bf3670bdee.tar.xz
drm/sun4i: csc: Add support for the new MMIO layout
D1 changes the MMIO offsets for the CSC blocks in the first mixer. The mixers' ccsc property is used as an index into the ccsc_base array. Use an enumeration to describe this index, and add the new set of offsets. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220424162633.12369-11-samuel@sholland.org
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun8i_csc.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun8i_csc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun8i_csc.h b/drivers/gpu/drm/sun4i/sun8i_csc.h
index 022cafa6c06c..828b86fd0cab 100644
--- a/drivers/gpu/drm/sun4i/sun8i_csc.h
+++ b/drivers/gpu/drm/sun4i/sun8i_csc.h
@@ -13,6 +13,7 @@ struct sun8i_mixer;
/* VI channel CSC units offsets */
#define CCSC00_OFFSET 0xAA050
#define CCSC01_OFFSET 0xFA050
+#define CCSC01_D1_OFFSET 0xFA000
#define CCSC10_OFFSET 0xA0000
#define CCSC11_OFFSET 0xF0000