]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb9f8c7900a28ece96c6f852f676cf6578bd410e
tree267fda23dfed02718db68cf32b79f0ca4727cbf6
parentab7f51a7403c3f25acd5541651488cbf5e34b358
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