drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies
authorMaxime Ripard <maxime@cerno.tech>
Thu, 25 Feb 2021 14:35:02 +0000 (15:35 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 21 Apr 2021 13:13:56 +0000 (14:13 +0100)
commit878f069f14b435f0f7ed89eaccbf137390df285f
tree94872c6441882a32b4328f3d3d4d93d9fc0a43c7
parente259821935a603369be12ddcf425a9c56d8d2943
drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies

In order to reach the frequencies needed to output at 594MHz, the
firmware needs to be configured with the appropriate parameters in the
config.txt file (enable_hdmi_4kp60 and force_turbo).

Let's detect it at bind time, warn the user if we can't, and filter out
the relevant modes.

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