OSDN Git Service

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)
commit86e3a65fdb63ec3351e5368794e7d5c808be5bc3
treee3624b8bed0ca57453fb168f02d5ef02319c80af
parent7d9061e097e859dc33ad5d5f889385875f726808
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