OSDN Git Service

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)
commitb2da819209b6d60df4e409ecaeb184bf3670bdee
treec3300ae729917d759a9b63d70b0485591411a503
parentc3779dab242f09c0a50753e32028d56070bf6f2f
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