summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2017-07-06 23:24:02 -0500
committerKevin Brace <kevinbrace@gmx.com>2017-07-06 23:24:02 -0500
commitdd25e5954b8283cc81f659cdbc492c540e2dd2de (patch)
tree73feff102b007f5ac5f2bfb3d83ae2410e64ac0a
parent1010e0fc75cd1bc152de0a9b01d0e4d8f83d67f4 (diff)
Added via_fp_set_secondary_soft_vee
This is an inline function. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--drivers/gpu/drm/via/crtc_hw.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/crtc_hw.h b/drivers/gpu/drm/via/crtc_hw.h
index 9e411cc42201..0241f66f491c 100644
--- a/drivers/gpu/drm/via/crtc_hw.h
+++ b/drivers/gpu/drm/via/crtc_hw.h
@@ -471,6 +471,23 @@ via_fp_set_secondary_soft_back_light(void __iomem *regs,
}
/*
+ * Sets CX700 / VX700 or later chipset's FP secondary software
+ * controlled VEE.
+ */
+static inline void
+via_fp_set_secondary_soft_vee(void __iomem *regs,
+ bool soft_on)
+{
+ /* 3X5.D3[2] - FP Secondary Software VEE On
+ * 0: Off
+ * 1: On */
+ svga_wcrt_mask(regs, 0xD3,
+ soft_on ? BIT(2) : 0x00, BIT(2));
+ DRM_DEBUG_KMS("FP Secondary Software Controlled VEE: %s\n",
+ soft_on ? "On" : "Off");
+}
+
+/*
* Sets FPDP (Flat Panel Display Port) Low I/O pad state.
*/
static inline void