[Openchrome-devel] drm-openchrome: drivers/gpu/drm

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Mar 29 09:26:28 UTC 2017


 drivers/gpu/drm/via/via_tmds.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

New commits:
commit cff0dce19f2a81f558971db96a5ca99fc5d05589
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sat Mar 25 16:05:37 2017 -0700

    Added viaLVDS1SetPowerSeq
    
    This function was added to via_tmds.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/drivers/gpu/drm/via/via_tmds.c b/drivers/gpu/drm/via/via_tmds.c
index ec8d4149528..28fc8d456ed 100644
--- a/drivers/gpu/drm/via/via_tmds.c
+++ b/drivers/gpu/drm/via/via_tmds.c
@@ -23,8 +23,23 @@
  * Authors:
  *	James Simmons <jsimmons at infradead.org>
  */
+
 #include "via_drv.h"
 
+
+static inline void
+viaLVDS1SetPowerSeq(void __iomem *regs, bool softCtrl)
+{
+    /* Set LVDS1 power sequence type. */
+    /* 3X5.91[0] - LVDS1 Hardware or Software Control Power Sequence
+     *             0: Hardware Control
+     *             1: Software Control */
+    svga_wcrt_mask(regs, 0x91, softCtrl ? BIT(0) : 0, BIT(0));
+
+    DRM_DEBUG("LVDS1 Power Sequence: %s Control\n",
+                softCtrl ? "Software" : "Hardware");
+}
+
 /*
  * Routines for controlling stuff on the TMDS port
  */


More information about the Openchrome-devel mailing list