drm/vc4: hdmi: Store pixel frequency in the connector state
authorMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 15:42:40 +0000 (16:42 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 16 Dec 2020 09:11:43 +0000 (10:11 +0100)
commitf623746f74721be7ac1cf10e0f5e731f30d191b0
tree267fda23dfed02718db68cf32b79f0ca4727cbf6
parentfbe7271e47bebd7600fec171bce9d5bf066275f8
drm/vc4: hdmi: Store pixel frequency in the connector state

The pixel rate is for now quite simple to compute, but with more features
(30 and 36 bits output, YUV output, etc.) will depend on a bunch of
connectors properties.

Let's store the rate we have to run the pixel clock at in our custom
connector state, and compute it in atomic_check.

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