summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2017-07-06 21:48:47 -0500
committerKevin Brace <kevinbrace@gmx.com>2017-07-06 21:48:47 -0500
commitea48c56bf98880cf1f9d4fffbcd64c9f6d08bf4e (patch)
tree8f4ae52327f0435503e0524d773b3c6b9774518b
parent1aef2630bb7e0723310cefd56f9e368bb50036f8 (diff)
Added via_fp_set_primary_soft_vdd
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 9ed671eda016..cbe1e4a1e15f 100644
--- a/drivers/gpu/drm/via/crtc_hw.h
+++ b/drivers/gpu/drm/via/crtc_hw.h
@@ -372,6 +372,22 @@ via_fp_set_primary_soft_data(void __iomem *regs, bool soft_on)
}
/*
+ * Sets KM400 or later chipset's FP primary software controlled
+ * VDD.
+ */
+static inline void
+via_fp_set_primary_soft_vdd(void __iomem *regs, bool soft_on)
+{
+ /* 3X5.91[4] - FP Primary Software VDD On
+ * 0: Off
+ * 1: On */
+ svga_wcrt_mask(regs, 0x91,
+ soft_on ? BIT(4) : 0x00, BIT(4));
+ DRM_DEBUG_KMS("FP Primary Software Controlled VDD: %s\n",
+ soft_on ? "On" : "Off");
+}
+
+/*
* Sets FPDP (Flat Panel Display Port) Low I/O pad state.
*/
static inline void