diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-11-11 09:45:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-15 00:52:23 -0500 |
commit | 0ad83f6882c41df1a7fa387086029e162038c1f2 (patch) | |
tree | 8353d05a17b1ed5a8348e0e7e6981f5e8015741a /drivers/video/modedb.c | |
parent | e4105119aca9b86b163fa07428df1f615034a03d (diff) |
fbdev: when parsing E-EDID blocks, also use SVD entries
Add parsing of E-EDID SVD entries. In this first version only a few
CEA/EIA-861E modes are implemented, more can be added as needed.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/modedb.c')
-rw-r--r-- | drivers/video/modedb.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index 0a4dbdc1693a..9a0ae6ca5427 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c | |||
@@ -278,6 +278,49 @@ static const struct fb_videomode modedb[] = { | |||
278 | }; | 278 | }; |
279 | 279 | ||
280 | #ifdef CONFIG_FB_MODE_HELPERS | 280 | #ifdef CONFIG_FB_MODE_HELPERS |
281 | const struct fb_videomode cea_modes[64] = { | ||
282 | /* #1: 640x480p@59.94/60Hz */ | ||
283 | [1] = { | ||
284 | NULL, 60, 640, 480, 39722, 48, 16, 33, 10, 96, 2, 0, FB_VMODE_NONINTERLACED, 0, | ||
285 | }, | ||
286 | /* #3: 720x480p@59.94/60Hz */ | ||
287 | [3] = { | ||
288 | NULL, 60, 720, 480, 37037, 60, 16, 30, 9, 62, 6, 0, FB_VMODE_NONINTERLACED, 0, | ||
289 | }, | ||
290 | /* #5: 1920x1080i@59.94/60Hz */ | ||
291 | [5] = { | ||
292 | NULL, 60, 1920, 1080, 13763, 148, 88, 15, 2, 44, 5, 0, FB_VMODE_INTERLACED, 0, | ||
293 | }, | ||
294 | /* #7: 720(1440)x480iH@59.94/60Hz */ | ||
295 | [7] = { | ||
296 | NULL, 60, 1440, 480, 18554/*37108*/, 114, 38, 15, 4, 124, 3, 0, FB_VMODE_INTERLACED, 0, | ||
297 | }, | ||
298 | /* #9: 720(1440)x240pH@59.94/60Hz */ | ||
299 | [9] = { | ||
300 | NULL, 60, 1440, 240, 18554, 114, 38, 16, 4, 124, 3, 0, FB_VMODE_NONINTERLACED, 0, | ||
301 | }, | ||
302 | /* #18: 720x576pH@50Hz */ | ||
303 | [18] = { | ||
304 | NULL, 50, 720, 576, 37037, 68, 12, 39, 5, 64, 5, 0, FB_VMODE_NONINTERLACED, 0, | ||
305 | }, | ||
306 | /* #19: 1280x720p@50Hz */ | ||
307 | [19] = { | ||
308 | NULL, 50, 1280, 720, 13468, 220, 440, 20, 5, 40, 5, 0, FB_VMODE_NONINTERLACED, 0, | ||
309 | }, | ||
310 | /* #20: 1920x1080i@50Hz */ | ||
311 | [20] = { | ||
312 | NULL, 50, 1920, 1080, 13480, 148, 528, 15, 5, 528, 5, 0, FB_VMODE_INTERLACED, 0, | ||
313 | }, | ||
314 | /* #32: 1920x1080p@23.98/24Hz */ | ||
315 | [32] = { | ||
316 | NULL, 24, 1920, 1080, 13468, 148, 638, 36, 4, 44, 5, 0, FB_VMODE_NONINTERLACED, 0, | ||
317 | }, | ||
318 | /* #35: (2880)x480p4x@59.94/60Hz */ | ||
319 | [35] = { | ||
320 | NULL, 50, 2880, 480, 11100, 240, 64, 30, 9, 248, 6, 0, FB_VMODE_NONINTERLACED, 0, | ||
321 | }, | ||
322 | }; | ||
323 | |||
281 | const struct fb_videomode vesa_modes[] = { | 324 | const struct fb_videomode vesa_modes[] = { |
282 | /* 0 640x350-85 VESA */ | 325 | /* 0 640x350-85 VESA */ |
283 | { NULL, 85, 640, 350, 31746, 96, 32, 60, 32, 64, 3, | 326 | { NULL, 85, 640, 350, 31746, 96, 32, 60, 32, 64, 3, |