]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc63c603a9ec9e8effbdf8707a310c60daa351d21
tree63a24393215556a222de6e3e09621c699b636187
parent3f0875b4566ddedaedacd40cfa6b6907e578f67d
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