1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-22 11:57:42 +02:00

m1 patches: add fix-vga-vsync-pulses.patch

This commit is contained in:
Xiangfu 2012-02-23 14:16:52 +08:00
parent b05481fce3
commit 91da747d7f
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,43 @@
Index: rtems/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c
===================================================================
--- rtems.orig/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c 2012-02-23 14:09:03.000000000 +0800
+++ rtems/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c 2012-02-23 14:10:29.547648982 +0800
@@ -98,9 +98,9 @@
MM_WRITE(MM_VGA_HSYNC_START, 656);
MM_WRITE(MM_VGA_HSYNC_END, 752);
MM_WRITE(MM_VGA_HSCAN, 799);
- MM_WRITE(MM_VGA_VSYNC_START, 491);
- MM_WRITE(MM_VGA_VSYNC_END, 493);
- MM_WRITE(MM_VGA_VSCAN, 523);
+ MM_WRITE(MM_VGA_VSYNC_START, 492);
+ MM_WRITE(MM_VGA_VSYNC_END, 494);
+ MM_WRITE(MM_VGA_VSCAN, 524);
MM_WRITE(MM_VGA_CLKSEL, 0);
break;
case 1: // 800x600, pixel clock: 50MHz
@@ -109,9 +109,9 @@
MM_WRITE(MM_VGA_HSYNC_START, 848);
MM_WRITE(MM_VGA_HSYNC_END, 976);
MM_WRITE(MM_VGA_HSCAN, 1040);
- MM_WRITE(MM_VGA_VSYNC_START, 637);
- MM_WRITE(MM_VGA_VSYNC_END, 643);
- MM_WRITE(MM_VGA_VSCAN, 666);
+ MM_WRITE(MM_VGA_VSYNC_START, 636);
+ MM_WRITE(MM_VGA_VSYNC_END, 642);
+ MM_WRITE(MM_VGA_VSCAN, 665);
MM_WRITE(MM_VGA_CLKSEL, 1);
break;
case 2: // 1024x768, pixel clock: 65MHz
@@ -120,9 +120,9 @@
MM_WRITE(MM_VGA_HSYNC_START, 1048);
MM_WRITE(MM_VGA_HSYNC_END, 1184);
MM_WRITE(MM_VGA_HSCAN, 1344);
- MM_WRITE(MM_VGA_VSYNC_START, 771);
- MM_WRITE(MM_VGA_VSYNC_END, 777);
- MM_WRITE(MM_VGA_VSCAN, 806);
+ MM_WRITE(MM_VGA_VSYNC_START, 772);
+ MM_WRITE(MM_VGA_VSYNC_END, 778);
+ MM_WRITE(MM_VGA_VSCAN, 807);
MM_WRITE(MM_VGA_CLKSEL, 2);
break;
}

View File

@ -18,3 +18,4 @@ milkymist-usb-midi.patch
milkymist-midi-opt.patch # - applied 2011-12-06
fix-ftpd-root.patch # - applied 2012-02-02 796bb3f51cc2a1f7789a3371
mem-fixes.patch # - fixed 2012-02-02
fix-the-vga-vsync-pulses.patch