Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: atari: Fix VGA modes

The pixclock values in the vga and vga70 modes are wrong, as they should
use the 25.175 MHz clock instead of the 32 MHz clock.
Swap the left and right margins to match f25.{right,left} (struct
pixel_clock declares them in a different order), and update the hsync
lengths to match what the driver programs by default.
Correct the (wrong) floating-point vrefresh value for the vga mode.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Geert Uytterhoeven and committed by
Helge Deller
39101f13 f0b38ea5

+2 -2
+2 -2
drivers/video/fbdev/atafb.c
··· 494 494 495 495 { 496 496 /* 640x480, 31 kHz, 60 Hz (VGA) */ 497 - "vga", 63.5, 640, 480, 32000, 18, 42, 31, 11, 96, 3, 497 + "vga", 60, 640, 480, 39721, 42, 18, 31, 11, 100, 3, 498 498 0, FB_VMODE_NONINTERLACED 499 499 }, { 500 500 /* 640x400, 31 kHz, 70 Hz (VGA) */ 501 - "vga70", 70, 640, 400, 32000, 18, 42, 31, 11, 96, 3, 501 + "vga70", 70, 640, 400, 39721, 42, 18, 31, 11, 100, 3, 502 502 FB_SYNC_VERT_HIGH_ACT | FB_SYNC_COMP_HIGH_ACT, FB_VMODE_NONINTERLACED 503 503 }, 504 504