Lakka-LibreELEC/projects/NXP/devices/iMX8/patches/linux/0011-MLK-24520-drm-bridge-cdns-increase-maximum-width-fro.patch

49 lines
1.8 KiB
Diff

From 11b66e4bdb8ba6dc4e6981ecef69534c3d6d8df8 Mon Sep 17 00:00:00 2001
From: "Oliver F. Brown" <oliver.brown@nxp.com>
Date: Thu, 23 Jul 2020 18:24:23 -0500
Subject: [PATCH 11/49] MLK-24520: drm: bridge: cdns: increase maximum width
from 4096 to 5120.
This patch increases the maximum width to 5120.
Signed-off-by: Oliver F. Brown <oliver.brown@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
---
drivers/gpu/drm/bridge/cadence/cdns-dp-core.c | 4 ++--
drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dp-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dp-core.c
index cb4897c664f0..0f2a38d19a57 100644
--- a/drivers/gpu/drm/bridge/cadence/cdns-dp-core.c
+++ b/drivers/gpu/drm/bridge/cadence/cdns-dp-core.c
@@ -270,8 +270,8 @@ cdns_dp_bridge_mode_valid(struct drm_bridge *bridge,
if (mode->clock > 594000)
return MODE_CLOCK_HIGH;
- /* 4096x2160 is not supported now */
- if (mode->hdisplay > 3840)
+ /* 5120 x 2160 is the maximum supported resulution */
+ if (mode->hdisplay > 5120)
return MODE_BAD_HVALUE;
if (mode->vdisplay > 2160)
diff --git a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
index 2796252adf68..442df6284c49 100644
--- a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
+++ b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
@@ -375,8 +375,8 @@ cdns_hdmi_bridge_mode_valid(struct drm_bridge *bridge,
if (mode->clock > 594000)
return MODE_CLOCK_HIGH;
- /* 4096x2160 is not supported */
- if (mode->hdisplay > 3840 || mode->vdisplay > 2160)
+ /* 5120 x 2160 is the maximum supported resolution */
+ if (mode->hdisplay > 5120 || mode->vdisplay > 2160)
return MODE_BAD_HVALUE;
mhdp->valid_mode = mode;
--
2.29.2