video: meson: Add fallback to default timings for QHD/UHD monitors
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 25 Nov 2020 19:13:55 +0000 (20:13 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
commit92164d3cfaa515fcee0bad4423d98a955aca76ac
tree83493224b725fd7915a1b46bb2d6ab98c9676248
parentef72fb0c7333f55fd9d1eb9f1004d940fad48b38
video: meson: Add fallback to default timings for QHD/UHD monitors

The HDMI driver currently supports only up to 1920x1200 resolutions
and QHD/UHD monitors might not specify detailed timings in EDID other
than those for their maximum resolution, even though they work with
lower resolutions like full HD. In such cases display_read_timings()
will fail breaking the video output driver initialization.

As a workaround fallback to full HD timings is added for QHD or UHD
monitors. The default timing will only be used when "hdmimode"
environment variable is set to "1080p60hz", otherwise the driver
switches to CVBS mode as before, when display timings are
unsupported/could not be read.

The proper solution would be to implement support for 2K/4K HDMI
modes, which are also not supported yet by driver in the kernel.

Change-Id: I407228392a6b1b6e8b0c55a6962235111df0c69c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/video/meson/meson_vpu.c