diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 20:51:58 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 20:51:58 -0500 |
commit | 77676ec7e0cfc0cef088f401ae0873babeb9d177 (patch) | |
tree | 04d99714c88f1aff1666a1c45f881b3fd7ffec27 | |
parent | de23a40d47a06c2f7eb8ea6c02e2417c03fab668 (diff) |
Added via_fp_set_primary_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.h | 16 |
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 e4e780fed3e2..35b378be6ccf 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -324,6 +324,22 @@ via_fp_set_primary_power_seq_type(void __iomem *regs, bool ctrl_type) } /* + * Sets KM400 or later chipset's FP primary software controlled + * back light. + */ +static inline void +via_fp_set_primary_soft_back_light(void __iomem *regs, bool soft_on) +{ + /* 3X5.91[1] - FP Primary Software Back Light On + * 0: Off + * 1: On */ + svga_wcrt_mask(regs, 0x91, + soft_on ? BIT(1) : 0x00, BIT(1)); + DRM_DEBUG_KMS("FP Primary Software Controlled Back Light: " + "%s\n", soft_on ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |