]> 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)
commit5d2b2471b57bf7bed914b5e69e62540d144d1fb4
treee3624b8bed0ca57453fb168f02d5ef02319c80af
parentf8495fac8cce3369b51f7bb6f4ab157b32b97ad1
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