]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: csc: Add support for the new MMIO layout
authorSamuel Holland <samuel@sholland.org>
Sun, 24 Apr 2022 16:26:28 +0000 (11:26 -0500)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 26 Apr 2022 12:25:15 +0000 (14:25 +0200)
commitfca64f93debd793d62a4604e6f3a084a67379a7a
treec3300ae729917d759a9b63d70b0485591411a503
parentf3e4b34ab680b6ea9bf7c16c8c1995f109214cb5
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
drivers/gpu/drm/sun4i/sun8i_csc.c
drivers/gpu/drm/sun4i/sun8i_csc.h
drivers/gpu/drm/sun4i/sun8i_mixer.c
drivers/gpu/drm/sun4i/sun8i_mixer.h