aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2012-03-13 09:13:04 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-03-19 18:59:46 -0400
commit084e104bd8e03e1f8e10ae73944de497f4f427b5 (patch)
treee1daafed8227ea34bf7451e5d200d59d60b8c514
parent11e184756aad9b609474fa6644266428810da809 (diff)
fbdev: da8xx:: fix reporting of the display timing info
Timing info is not properly reported by the driver, e.g.: $ fbset -i mode "480x272-35" # D: 7.895 MHz, H: 12.165 kHz, V: 35.158 Hz geometry 480 272 480 544 16 timings 126666 64 64 32 32 41 10 According to the timing values defined for LK043T1DG01 display it should be reported as: mode "480x272-53" # D: 7.895 MHz, H: 15.038 kHz, V: 52.579 Hz geometry 480 272 480 544 16 timings 126666 2 2 2 2 41 10 Initialize additional fb_var_screeninfo fields so fix this problem. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Manjunathappa, Prakash <prakash.pm@ti.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
-rw-r--r--drivers/video/da8xx-fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index dd80386b0ed..8f7e0514370 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -1231,6 +1231,10 @@ static int __devinit fb_probe(struct platform_device *device)
1231 1231
1232 da8xx_fb_var.hsync_len = lcdc_info->hsw; 1232 da8xx_fb_var.hsync_len = lcdc_info->hsw;
1233 da8xx_fb_var.vsync_len = lcdc_info->vsw; 1233 da8xx_fb_var.vsync_len = lcdc_info->vsw;
1234 da8xx_fb_var.right_margin = lcdc_info->hfp;
1235 da8xx_fb_var.left_margin = lcdc_info->hbp;
1236 da8xx_fb_var.lower_margin = lcdc_info->vfp;
1237 da8xx_fb_var.upper_margin = lcdc_info->vbp;
1234 da8xx_fb_var.pixclock = da8xxfb_pixel_clk_period(par); 1238 da8xx_fb_var.pixclock = da8xxfb_pixel_clk_period(par);
1235 1239
1236 /* Initialize fbinfo */ 1240 /* Initialize fbinfo */