summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2017-07-06 20:57:52 -0500
committerKevin Brace <kevinbrace@gmx.com>2017-07-06 20:57:52 -0500
commit4720cdacf588aa5e6d4691a9a83efd66e85e16a6 (patch)
tree6f4adea4d74fde3999a78bfb01724992a623d1bb
parent77676ec7e0cfc0cef088f401ae0873babeb9d177 (diff)
Added via_fp_set_primary_soft_vee
This is an inline function. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--drivers/gpu/drm/via/crtc_hw.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/crtc_hw.h b/drivers/gpu/drm/via/crtc_hw.h
index 35b378be6ccf..5e2b692777f6 100644
--- a/drivers/gpu/drm/via/crtc_hw.h
+++ b/drivers/gpu/drm/via/crtc_hw.h
@@ -340,6 +340,22 @@ via_fp_set_primary_soft_back_light(void __iomem *regs, bool soft_on)
}
/*
+ * Sets KM400 or later chipset's FP primary software controlled
+ * VEE.
+ */
+static inline void
+via_fp_set_primary_soft_vee(void __iomem *regs, bool soft_on)
+{
+ /* 3X5.91[2] - FP Primary Software VEE On
+ * 0: Off
+ * 1: On */
+ svga_wcrt_mask(regs, 0x91,
+ soft_on ? BIT(2) : 0x00, BIT(2));
+ DRM_DEBUG_KMS("FP Primary Software Controlled VEE: %s\n",
+ soft_on ? "On" : "Off");
+}
+
+/*
* Sets FPDP (Flat Panel Display Port) Low I/O pad state.
*/
static inline void