drm/meson: add mode selection limits against specific SoC revisions
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 28 Apr 2020 09:21:47 +0000 (11:21 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 5 May 2020 08:19:33 +0000 (10:19 +0200)
commit8976eeee8de05f11eb424882a57084880b677525
tree63a24393215556a222de6e3e09621c699b636187
parente7f12054a1b9cbf6b4923427dec5eeb32f7ac388
drm/meson: add mode selection limits against specific SoC revisions

The Amlogic S805X/Y uses the same die as the S905X, but with more
limited graphics capabilities.

This adds a soc version detection adding specific limitations on the HDMI
mode selections.

Here, we limit to HDMI 1.2a max HDMI PHY clock frequency.

Changes sinces v1:
- Moved frequency check in the vclk code, and also checks DMT modes

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
[narmstrong: fixed commit message with HDMI 1.2a instead of HDMI 1.3a]
Link: https://patchwork.freedesktop.org/patch/msgid/20200428092147.13698-1-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_drv.c
drivers/gpu/drm/meson/meson_drv.h
drivers/gpu/drm/meson/meson_dw_hdmi.c
drivers/gpu/drm/meson/meson_vclk.c
drivers/gpu/drm/meson/meson_vclk.h