drm/vc4: hdmi: Rework hdmi_enable_4kp60 detection code
authorMaxime Ripard <maxime@cerno.tech>
Thu, 24 Mar 2022 10:57:57 +0000 (11:57 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Sat, 5 Nov 2022 12:31:07 +0000 (12:31 +0000)
commit2c2a2550a0c08e1ba28205da4e428bfd26c3c7b0
treef28f5473dd1cb656639da60e544cbe23a56a50c7
parentea73c7e4e8fdaf389dc39c3d293d9a8c644d2025
drm/vc4: hdmi: Rework hdmi_enable_4kp60 detection code

In order to support higher HDMI frequencies, users have to set the
hdmi_enable_4kp60 parameter in their config.txt file.

This will have the side-effect of raising the maximum of the core clock,
tied to the HVS, and managed by the HVS driver.

However, we are querying this in the HDMI driver by poking into the HVS
structure to get our struct clk handle.

Let's make this part of the HVS bind implementation to have all the core
clock related setup in the same place.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h
drivers/gpu/drm/vc4/vc4_hvs.c