]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
gxfb: set the right registers to tweak the sync polarity
authorJordan Crouse <jordan.crouse@amd.com>
Mon, 28 Apr 2008 09:14:55 +0000 (02:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:35 +0000 (08:58 -0700)
commitf0a0c1f20f837221c0d990a54ae5426acf039036
tree619a01ed5ae72fe6e918e99b5492db2cfce8bbe7
parente9338364e6989ca2707638c7c70ae22975b0bb6c
gxfb: set the right registers to tweak the sync polarity

While running in flatpanel mode it is important to change the FP sync bits (VG
register 0x408) rather then the CRT sync bits (VG register 0x008).  This patch
keeps the CRT sync bits at default when a flatpanel exists.

Note that this also fixes inverted logic; we want CRT_VSYNC_POL to be set (ie,
vsync is normally high) when FB_SYNC_VERT_HIGH_ACT is unset.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/geode/video_gx.c