drm/vc4: hdmi: Define colorspace matrices
authorMaxime Ripard <maxime@cerno.tech>
Thu, 20 Jan 2022 15:16:18 +0000 (16:16 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Jan 2022 09:03:11 +0000 (10:03 +0100)
commit2034fc12dd258931f06f5e320d87ea8776e01bc6
tree2176bceb98705c54f56efa8301e742eb6ce1c591
parentb718d8478e1c0bd9c2deb1579eb2953caeea5e8c
drm/vc4: hdmi: Define colorspace matrices

The current CSC setup code for the BCM2711 uses a sequence of register
writes to configure the CSC depending on whether we output using a full
or limited range.

However, with the upcoming introduction of the YUV output, we're going
to add new matrices to perform the conversions, so we should switch to
something a bit more flexible that takes the matrix as an argument and
programs the CSC accordingly.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220120151625.594595-10-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c