summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2018-06-07 00:10:12 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit02fc79de68d7df41e21667b35b845d43b80a79d8 (patch)
tree4d1a60f723ed9eb7034d0da5ed2f4c173e054e18 /drivers
parent0c7c1a1861dba7e5ffd13f6aab33def4cefc76c1 (diff)
MLK-18535-10 drm/imx: lcdif: limit the maximum resolution to '1920x1080'
For now, the higher resolution than '1920x1080' is not supported yet. So limit the 'max_width' and 'max_height' of mode_config to be 1920 and 1080. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/imx/lcdif/lcdif-crtc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/lcdif/lcdif-crtc.c b/drivers/gpu/drm/imx/lcdif/lcdif-crtc.c
index f14ca734923a..74f1284d0f49 100644
--- a/drivers/gpu/drm/imx/lcdif/lcdif-crtc.c
+++ b/drivers/gpu/drm/imx/lcdif/lcdif-crtc.c
@@ -306,6 +306,10 @@ static int lcdif_crtc_bind(struct device *dev, struct device *master,
if (!drm->mode_config.helper_private)
drm->mode_config.helper_private = &lcdif_drm_mode_config_helpers;
+ /* limit the max width and height */
+ drm->mode_config.max_width = 1920;
+ drm->mode_config.max_height = 1080;
+
dev_set_drvdata(dev, lcdif_crtc);
dev_dbg(dev, "%s: lcdif crtc bind end\n", __func__);