drm/vc4: fkms to query the VPU for HDMI clock limits
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 30 May 2019 12:56:15 +0000 (13:56 +0100)
committerpopcornmix <popcornmix@gmail.com>
Thu, 13 Jun 2019 10:54:31 +0000 (11:54 +0100)
commitc1ac2962fb1e85da0b4234104e8293cb84591988
tree86e939f204b2e2537e4c8e9568ac0a7a0282f614
parentfe73195850f9b0d7efdeb3793ab3b384147df586
drm/vc4: fkms to query the VPU for HDMI clock limits

The VPU has configured clocks for 4k (or not) via config.txt,
and will limit the choice of video modes based on that.
Make fkms query it for these limits too to avoid selecting modes
that can not be handled by the current clock setup.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_firmware_kms.c
include/soc/bcm2835/raspberrypi-firmware.h