summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2017-07-06 23:17:20 -0500
committerKevin Brace <kevinbrace@gmx.com>2017-07-06 23:17:20 -0500
commit1010e0fc75cd1bc152de0a9b01d0e4d8f83d67f4 (patch)
treec01751361bb542bcbe30264733c0e93b21177dec
parent83e048f7a0e05fd6877732c8561baee9eeefacbb (diff)
Added via_fp_set_secondary_soft_back_light
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 0e7850e317ec..9e411cc42201 100644
--- a/drivers/gpu/drm/via/crtc_hw.h
+++ b/drivers/gpu/drm/via/crtc_hw.h
@@ -454,6 +454,23 @@ via_fp_set_secondary_power_seq_type(void __iomem *regs,
}
/*
+ * Sets CX700 / VX700 or later chipset's FP secondary
+ * software controlled back light.
+ */
+static inline void
+via_fp_set_secondary_soft_back_light(void __iomem *regs,
+ bool soft_on)
+{
+ /* 3X5.D3[1] - FP Secondary Software Back Light On
+ * 0: Off
+ * 1: On */
+ svga_wcrt_mask(regs, 0xD3,
+ soft_on ? BIT(1) : 0x00, BIT(1));
+ DRM_DEBUG_KMS("FP Secondary Software Controlled Back Light: "
+ "%s\n", soft_on ? "On" : "Off");
+}
+
+/*
* Sets FPDP (Flat Panel Display Port) Low I/O pad state.
*/
static inline void