drm/vc4: hdmi: Use the connector state pixel rate for the PHY
authorMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 15:42:41 +0000 (16:42 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:29 +0000 (19:13 +0000)
commit5a72175d8bcab3324b3f7e029bbd99952ee3ff54
tree3be676537e67abd573095b92b531e6d42bfd38eb
parentcb74b2c481dbeb1fec1d0e2ad453c315596cca79
drm/vc4: hdmi: Use the connector state pixel rate for the PHY

The PHY initialisation parameters are not based on the pixel clock but
the TMDS clock rate which can be the pixel clock in the standard case,
but could be adjusted based on some parameters like the bits per color.

Since the TMDS clock rate is stored in our custom connector state
already, let's reuse it from there instead of computing it again.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h
drivers/gpu/drm/vc4/vc4_hdmi_phy.c