summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2017-09-29 13:05:41 +0300
committerInki Dae <inki.dae@samsung.com>2017-10-26 03:06:34 +0300
commit0900673e366190328796903a72cf17a9d082c327 (patch)
tree6b0ac2373f59b0d9361a89034c035fd1c1b54039 /drivers/gpu
parent36fd887acbd1ce349eba8283d9e8a9d7932a24ca (diff)
downloadlinux-0900673e366190328796903a72cf17a9d082c327.tar.xz
drm/exynos/mixer: enable support for 1024x768 and 1280x1024 modes
Since HDMI can handle these modes despite of MIXER limitations let's enable them. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_mixer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index e9122db95cb2..714d72fd3bc5 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -1015,6 +1015,9 @@ static int mixer_mode_valid(struct exynos_drm_crtc *crtc,
(w >= 1664 && w <= 1920 && h >= 936 && h <= 1080))
return MODE_OK;
+ if ((w == 1024 && h == 768) || (w == 1280 && h == 1024))
+ return MODE_OK;
+
return MODE_BAD;
}