drm/vc4: hdmi: Create a custom connector state
authorMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 15:42:39 +0000 (16:42 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 16 Dec 2020 09:11:37 +0000 (10:11 +0100)
commitfbe7271e47bebd7600fec171bce9d5bf066275f8
treea12d2d9484c0d8734393685f82127c123a982365
parente55a07751146ef8ebc2c561564437b78f46405d3
drm/vc4: hdmi: Create a custom connector state

When run with a higher bpc than 8, the clock of the HDMI controller needs
to be adjusted. Let's create a connector state that will be used at
atomic_check and atomic_enable to compute and store the clock rate
associated to the state.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215154243.540115-6-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h