[Openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_display.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Fri Jun 10 06:14:05 UTC 2016
configure.ac | 2 +-
src/via_display.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
New commits:
commit 02205c62f6c0154d767ef8b7a6f700344b894287
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jun 10 01:13:15 2016 -0500
Version bumped to 0.4.176
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/configure.ac b/configure.ac
index 5d8dfe0..7bbde22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ(2.57)
AC_INIT([xf86-video-openchrome],
- [0.4.175],
+ [0.4.176],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
[xf86-video-openchrome])
commit c370c3fda473b0160ab4932b7a9b21fe533f5ac4
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jun 10 01:11:23 2016 -0500
Initializing CR47 when mode setting is done
CR47 (3X5.47) was not being initialized previously so it is now
being initialized whenever mode setting is being performed.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_display.c b/src/via_display.c
index 187c910..79163b2 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -599,6 +599,15 @@ viaIGA1Init(ScrnInfoPtr pScrn)
temp = hwp->readCrtc(hwp, 0x33);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"CR33: 0x%02X\n", temp));
+
+ /* For UniChrome Pro and Chrome9. */
+ if ((pVia->Chipset != VIA_CLE266)
+ && (pVia->Chipset != VIA_KM400)) {
+ temp = hwp->readCrtc(hwp, 0x47);
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "CR47: 0x%02X\n", temp));
+ }
+
temp = hwp->readCrtc(hwp, 0x6B);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"CR6B: 0x%02X\n", temp));
@@ -698,6 +707,27 @@ viaIGA1Init(ScrnInfoPtr pScrn)
* 111: Shift to early time by 2 characters */
ViaCrtcMask(hwp, 0x33, 0x00, 0xCF);
+ /* For UniChrome Pro and Chrome9. */
+ if ((pVia->Chipset != VIA_CLE266)
+ && (pVia->Chipset != VIA_KM400)) {
+ /* 3X5.47[7] - IGA1 Timing Plus 2 VCK
+ * 3X5.47[6] - IGA1 Timing Plus 4 VCK
+ * 3X5.47[5] - Peep at the PCI-bus
+ * 0: Disable
+ * 1: Enable
+ * 3X5.47[4] - Reserved
+ * 3X5.47[3] - IGA1 Timing Plus 6 VCK
+ * 3X5.47[2] - DACOFF Backdoor Register
+ * 3X5.47[1] - LCD Simultaneous Mode Backdoor Register for
+ * 8/9 Dot Clocks
+ * 3X5.47[0] - LCD Simultaneous Mode Backdoor Register for
+ * Clock Select and CRTC Register Protect
+ *
+ */
+ ViaCrtcMask(hwp, 0x47, 0x02, 0xEF);
+
+ }
+
/* TV out uses division by 2 mode.
* Other devices like analog (VGA), DVI, flat panel, etc.,
* use normal mode. */
More information about the Openchrome-devel
mailing list