]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies
authorMaxime Ripard <maxime@cerno.tech>
Fri, 7 May 2021 15:05:12 +0000 (17:05 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 24 May 2021 12:42:40 +0000 (14:42 +0200)
commitc710b8b2082fa478c40df1b1133a13e1ccbfb012
treee3624b8bed0ca57453fb168f02d5ef02319c80af
parent092467a5187541be2d625a37a8c918833c55f787
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-10-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h