diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-06-06 11:39:20 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-05 08:47:36 -0400 |
commit | 0492262281b82e71c6063e35ef73a33fad93cc6d (patch) | |
tree | db0aa0762df77c2c0ae256c4fe9669f60b27bbd4 /drivers/video/via/hw.c | |
parent | 92746c3c82135b13d7fb1bbdebbabb0faedd8433 (diff) |
viafb: remove 640x480-60 CRT special case
The timing for 640x480-60 was handled different than all others.
This patch changes this by changing the blanking start and end.
The reason for this is that I can't find any reason for the old
behaviour and it was not consistent anyway as the special case for
LCD did not always trigger as the LCD code does not use this
function and it did trigger regardless of whether the display set is
CRT or LCD but only based whether any DVI/LCD device exists.
There are no negative effects observed for CRT or DVI devices.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r-- | drivers/video/via/hw.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index 2050fb81ef6e..c5e7833a5ae5 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c | |||
@@ -1488,20 +1488,6 @@ void viafb_fill_crtc_timing(struct VideoModeTable *video_mode, int bpp_byte, | |||
1488 | } | 1488 | } |
1489 | 1489 | ||
1490 | crt_reg = crt_table[index].crtc; | 1490 | crt_reg = crt_table[index].crtc; |
1491 | |||
1492 | /* Mode 640x480 has border, but LCD/DFP didn't have border. */ | ||
1493 | /* So we would delete border. */ | ||
1494 | if ((viafb_LCD_ON | viafb_DVI_ON) | ||
1495 | && video_mode->crtc[0].crtc.hor_addr == 640 | ||
1496 | && video_mode->crtc[0].crtc.ver_addr == 480 | ||
1497 | && refresh == 60) { | ||
1498 | /* The border is 8 pixels. */ | ||
1499 | crt_reg.hor_blank_start = crt_reg.hor_blank_start - 8; | ||
1500 | |||
1501 | /* Blanking time should add left and right borders. */ | ||
1502 | crt_reg.hor_blank_end = crt_reg.hor_blank_end + 16; | ||
1503 | } | ||
1504 | |||
1505 | crt_reg.hor_blank_end += crt_reg.hor_blank_start; | 1491 | crt_reg.hor_blank_end += crt_reg.hor_blank_start; |
1506 | crt_reg.hor_sync_end += crt_reg.hor_sync_start; | 1492 | crt_reg.hor_sync_end += crt_reg.hor_sync_start; |
1507 | crt_reg.ver_blank_end += crt_reg.ver_blank_start; | 1493 | crt_reg.ver_blank_end += crt_reg.ver_blank_start; |