]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 16 Dec 2020 09:11:48 +0000 (10:11 +0100)
commit62cf4fe8da52f15ac61d13949ae91c4921b07a84
tree852c334914243135f53492c25a9c77fcca36a0cf
parenteb9f8c7900a28ece96c6f852f676cf6578bd410e
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215154243.540115-8-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