diff --git a/m1/patches/rtems/fix-the-vga-vsync-pulses.patch b/m1/patches/rtems/fix-the-vga-vsync-pulses.patch new file mode 100644 index 0000000..da17f1e --- /dev/null +++ b/m1/patches/rtems/fix-the-vga-vsync-pulses.patch @@ -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; + } diff --git a/m1/patches/rtems/series b/m1/patches/rtems/series index d4ccf58..eee60c9 100644 --- a/m1/patches/rtems/series +++ b/m1/patches/rtems/series @@ -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