summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2017-07-06 23:34:05 -0500
committerKevin Brace <kevinbrace@gmx.com>2017-07-06 23:34:05 -0500
commit290ffd0937ae88f3963d70f908a20c4666f62822 (patch)
tree65b037bd28eea21b30c02c35b731cabe7d05b34e
parent1a93d3777b05cbca9d5bb4e18c15da9b0b289758 (diff)
Added via_fp_set_secondary_soft_vdd
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 2fbce928b124..20124afbcbae 100644
--- a/drivers/gpu/drm/via/crtc_hw.h
+++ b/drivers/gpu/drm/via/crtc_hw.h
@@ -505,6 +505,23 @@ via_fp_set_secondary_soft_data(void __iomem *regs,
}
/*
+ * Sets CX700 / VX700 or later chipset's FP secondary software
+ * controlled VDD.
+ */
+static inline void
+via_fp_set_secondary_soft_vdd(void __iomem *regs,
+ bool soft_on)
+{
+ /* 3X5.D3[4] - FP Secondary Software VDD On
+ * 0: Off
+ * 1: On */
+ svga_wcrt_mask(regs, 0xD3,
+ soft_on ? BIT(4) : 0x00, BIT(4));
+ DRM_DEBUG_KMS("FP Secondary Software Controlled VDD: %s\n",
+ soft_on ? "On" : "Off");
+}
+
+/*
* Sets FPDP (Flat Panel Display Port) Low I/O pad state.
*/
static inline void