[Openchrome-devel] xf86-video-openchrome: 3 commits - configure.ac src/via_display.c src/via_lvds.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Mon Aug 8 06:29:38 UTC 2016


 configure.ac      |    2 +-
 src/via_display.c |    6 ------
 src/via_lvds.c    |   25 +++++++++++++++++++++++++
 3 files changed, 26 insertions(+), 7 deletions(-)

New commits:
commit 7b47fd2a1c3c28a757fdbd709cbb301cddb1866d
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sun Aug 7 23:28:32 2016 -0700

    Version bumped to 0.5.122
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/configure.ac b/configure.ac
index 2b69764..1d79815 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ(2.57)
 AC_INIT([xf86-video-openchrome],
-        [0.5.121],
+        [0.5.122],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
         [xf86-video-openchrome])
 
commit 1311c3521e4d73aaaeffc60f528431b6f2d3f5cf
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sun Aug 7 22:51:03 2016 -0700

    Set DFP Low delay tap for P4M900 family from via_lvds_mode_set
    
    Rather than setting DFP (Digital Flat Panel) delay tap value
    from viaIGA2SetDisplayRegister function inside via_display.c,
    it will now be set from via_lvds_mode_set callback function
    inside via_lvds.c. For now, this is only applicable for
    P4M900 / VN896 / CN896 chipsets.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_display.c b/src/via_display.c
index 779028f..8db908b 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -2154,12 +2154,6 @@ viaIGA2SetDisplayRegister(ScrnInfoPtr pScrn, DisplayModePtr mode)
      * (Power Management Status). */
     ViaSeqMask(hwp, 0x2A, 0x0F, 0x0F);
 
-    /* 3X5.99[3:0] appears to be a register to adjust an LCD panel
-     * (the official name of the register is unknown). */
-    if (pVia->Chipset == VIA_P4M900) {
-        ViaCrtcMask(hwp, 0x99, 0x08, 0x0F);
-    }
-
     /* IGA2 for DFP Low. */
     ViaCrtcMask(hwp, 0x99, 0x10, 0x10);
 
diff --git a/src/via_lvds.c b/src/via_lvds.c
index 7042803..c198cf9 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -909,6 +909,9 @@ via_lvds_mode_set(xf86OutputPtr output, DisplayModePtr mode,
         viaSetLVDSOutput(pScrn);
 
         switch (pVia->Chipset) {
+        case VIA_P4M900:
+            viaDFPLowSetDelayTap(pScrn, 0x08);
+            break;
         case VIA_CX700:
         case VIA_VX800:
         case VIA_VX855:
commit da6ac3e90d9d3a7aa8cf491f798c312522946adc
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sun Aug 7 22:31:41 2016 -0700

    Added viaDFPLowSetDelayTap
    
    viaDFPLowSetDelayTap function sets the delay tap value for
    DFP (Digital Flat Panel) Low interface. This function is located
    inside via_lvds.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_lvds.c b/src/via_lvds.c
index 954837a..7042803 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -153,6 +153,28 @@ viaLVDS2SetDisplaySource(ScrnInfoPtr pScrn, CARD8 displaySource)
                         "Exiting viaLVDS2SetDisplaySource.\n"));
 }
 
+/*
+ * Sets DFP (Digital Flat Panel) Low interface delay tap.
+ */
+static void
+viaDFPLowSetDelayTap(ScrnInfoPtr pScrn, CARD8 delayTap)
+{
+    vgaHWPtr hwp = VGAHWPTR(pScrn);
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered viaDFPLowSetDelayTap.\n"));
+
+    /* Set DFP Low interface delay tap.
+    /* 3X5.99[3:0] - DFP Low Delay Tap */
+    ViaCrtcMask(hwp, 0x99, delayTap, 0x0F);
+    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                "DFP Low Delay Tap: %d\n",
+                (delayTap & 0x0F));
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting viaDFPLowSetDelayTap.\n"));
+}
+
 static void
 ViaLVDSSoftwarePowerFirstSequence(ScrnInfoPtr pScrn, Bool on)
 {


More information about the Openchrome-devel mailing list