From 3ea6b9852edac04c4ae0166047b7186ef0832e7a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 2 May 2011 05:16:19 -0300 Subject: [PATCH] ubb-vga: make lines end in black (and not in overscan) - ubb-vga.c (line): send a 0 word at the end of the line, to avoid overscan (we use PIO to synchronize with CPU timing) - ubb-vga.c (mode_db): updated line length of 640x480 resolutions for correct termination --- ubb-vga/ubb-vga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ubb-vga/ubb-vga.c b/ubb-vga/ubb-vga.c index e0f20e3..ee105a5 100644 --- a/ubb-vga/ubb-vga.c +++ b/ubb-vga/ubb-vga.c @@ -51,8 +51,8 @@ static int bad; static const struct mode mode_db[] = { /* name xres yres clkdiv vfront hsync hback htotal */ /* vsync vback */ -{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.5) }, -{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(27.5) }, +{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.7) }, +{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(24.8) }, { "800x600/54", 800, 600, 8, 2, 32, 14, US(4.81), US(0.79), US(28.7) }, { "800x600/56", 800, 600, 8, 2, 1, 22, US(2.00), US(3.56), US(28.5) }, @@ -324,6 +324,7 @@ static void line(unsigned long line) PDFUNC = CMD; until(mode->line_cycles); + MSC_TXFIFO = 0; if (MSC_STAT & 3) bad++; }