summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-06-24 14:16:50 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-06-24 14:16:50 +0200
commit8174d21e5fe0d086cb5824161c58eb065f412281 (patch)
tree0ecdefadeb1d4018c7b98545600b22b096f71f96
parent1815d04bb84d27fb239e4fad85df6cbf63a03ba9 (diff)
video: tegra: fb: apalis/colibri_t30: 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@apalis-t30:~# 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 58.6*+ 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
-rw-r--r--drivers/video/tegra/fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index f69048f62cc2..cf836dd59ab5 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -143,6 +143,11 @@ static int tegra_fb_set_par(struct fb_info *info)
fb_var_to_videomode(&m, var);
+#if defined(CONFIG_MACH_APALIS_T30) || defined(CONFIG_MACH_COLIBRI_T30)
+ /* Hack: avoid 24 Hz mode in X resulting in no display at all */
+ if (m.refresh < 50) m.refresh = 60;
+#endif /* CONFIG_MACH_APALIS_T30 | CONFIG_MACH_COLIBRI_T30 */
+
/* Load framebuffer info with new mode details*/
old_mode = info->mode;
old_len = info->fix.line_length;