summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-07-12 16:52:22 +0200
committerThierry Reding <treding@nvidia.com>2016-07-14 14:57:04 +0200
commit64ea25c3bc86c05c7da6c683b86663f4c90158d6 (patch)
tree3eab0f0db18c90a2384db61acc43c200b6f27f5c /drivers/gpu/drm/tegra
parentf8c79120aa1d9eedb36cdadbd23489056a9f7b90 (diff)
downloadlinux-64ea25c3bc86c05c7da6c683b86663f4c90158d6.tar.bz2
drm/tegra: sor: Reject HDMI 2.0 modes
Enabling HDMI 2.0 modes requires extra programming and will not work with the current driver, so reject all those modes. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/sor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index cb7e06062174..43e934e8fbec 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -1372,6 +1372,10 @@ static enum drm_mode_status
tegra_sor_connector_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{
+ /* HDMI 2.0 modes are not yet supported */
+ if (mode->clock > 340000)
+ return MODE_NOCLOCK;
+
return MODE_OK;
}