mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-22 00:38:25 +02:00
m1 patches: add fix-vga-vsync-pulses.patch
This commit is contained in:
parent
b05481fce3
commit
91da747d7f
43
m1/patches/rtems/fix-the-vga-vsync-pulses.patch
Normal file
43
m1/patches/rtems/fix-the-vga-vsync-pulses.patch
Normal 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;
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user