drm/vc4: hdmi: Define colorspace matrices
authorMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jan 2021 10:30:21 +0000 (11:30 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:35 +0000 (16:04 +0000)
commited528e54313e8cd23c740c374d1508ef767ce06f
tree869c95847a9f9a28b776beb9656d283ada926131
parent539133bc9d0bd8927e3442d3082e70610429aca0
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>
drivers/gpu/drm/vc4/vc4_hdmi.c