]> 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)
commit108b5ac0f4aee50fcbb2e0ccff54e934b03b4e24
treec3300ae729917d759a9b63d70b0485591411a503
parentb5c983fcd6653ac71223e0a85e2cc68147413e17
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