drm/exynos/mixer: enable support for 1024x768 and 1280x1024 modes
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 29 Sep 2017 10:05:41 +0000 (12:05 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:06 +0000 (14:56 +0900)
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>
drivers/gpu/drm/exynos/exynos_mixer.c

index e9122db..714d72f 100644 (file)
@@ -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;
 }