summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-02-10 17:17:46 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-02-10 17:17:46 +0100
commitd853a0bd57599165e18eea18b0d3abf467331cf0 (patch)
tree2b3c868716908e826e4302dfaf0884c8bc84189d
parent098fb4efc843772a3f1e5695742dd1ca02e27960 (diff)
video: tegra: fb: colibri_t20: hack avoid 24 Hz mode
Hack to avoid 24 Hz mode in X resulting in no display at all. This has been encountered using e.g. a Samsung SyncMaster F2380 if connected by HDMI. root@colibri-t20:~# xrandr Screen 0: minimum 256 x 128, current 1920 x 1080, maximum 2048 x 2048 LVDS-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1920x1080 60.0*+ HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm 1920x1080 60.0 + 24.0* 1680x1050 59.9 1280x1024 75.0 60.0 1440x900 75.0 59.9 1280x960 60.0 1280x800 59.9 1152x864 75.0 1280x720 60.0 50.0 1024x768 75.0 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 720x576 50.0 720x480 59.9 640x480 75.0 72.8 66.7 59.9 720x400 70.1 This is really just enabling the same hack from Apalis/Colibri T30 which is now relevant on the Colibri T20 as well due to the modedb changes: 3a6fc5303b9e798295caa01d2cfe75b05fdccf55
-rw-r--r--drivers/video/tegra/fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index af6289c5fbdd..b7aa066751fc 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -74,11 +74,13 @@ static int tegra_fb_check_var(struct fb_var_screeninfo *var,
fb_var_to_videomode(&mode, var);
-#if defined(CONFIG_MACH_APALIS_T30) || defined(CONFIG_MACH_COLIBRI_T30)
+#if defined(CONFIG_MACH_APALIS_T30) || defined(CONFIG_MACH_COLIBRI_T20) || \
+defined(CONFIG_MACH_COLIBRI_T30)
/* Hack: avoid 24 Hz mode in X resulting in no display at all */
if (mode.refresh < 50)
return -EINVAL;
-#endif /* CONFIG_MACH_APALIS_T30 | CONFIG_MACH_COLIBRI_T30 */
+#endif /* CONFIG_MACH_APALIS_T30 | CONFIG_MACH_COLIBRI_T20 |
+ CONFIG_MACH_COLIBRI_T30 */
/* Apply mode filter for HDMI only -LVDS supports only fix mode */
if (ops && ops->mode_filter) {