diff options
-rw-r--r-- | drivers/video/via/hw.c | 14 | ||||
-rw-r--r-- | drivers/video/via/viamode.c | 2 |
2 files changed, 1 insertions, 15 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; |
diff --git a/drivers/video/via/viamode.c b/drivers/video/via/viamode.c index 58df74e1417e..8a9f4fcb50e9 100644 --- a/drivers/video/via/viamode.c +++ b/drivers/video/via/viamode.c | |||
@@ -281,7 +281,7 @@ static struct crt_mode_table CRTM640x480[] = { | |||
281 | /*r_rate,hsp,vsp */ | 281 | /*r_rate,hsp,vsp */ |
282 | /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */ | 282 | /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */ |
283 | {REFRESH_60, M640X480_R60_HSP, M640X480_R60_VSP, | 283 | {REFRESH_60, M640X480_R60_HSP, M640X480_R60_VSP, |
284 | {800, 640, 648, 144, 656, 96, 525, 480, 480, 45, 490, 2} }, | 284 | {800, 640, 640, 160, 656, 96, 525, 480, 480, 45, 490, 2} }, |
285 | {REFRESH_75, M640X480_R75_HSP, M640X480_R75_VSP, | 285 | {REFRESH_75, M640X480_R75_HSP, M640X480_R75_VSP, |
286 | {840, 640, 640, 200, 656, 64, 500, 480, 480, 20, 481, 3} }, | 286 | {840, 640, 640, 200, 656, 64, 500, 480, 480, 20, 481, 3} }, |
287 | {REFRESH_85, M640X480_R85_HSP, M640X480_R85_VSP, | 287 | {REFRESH_85, M640X480_R85_HSP, M640X480_R85_VSP, |