diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:40:58 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:40:58 -0500 |
commit | 508159caae82f03d5fa25622ea88a8be8eda1530 (patch) | |
tree | 79aad369cb881cfaff41c01ca329948edffee51b | |
parent | 290ffd0937ae88f3963d70f908a20c4666f62822 (diff) |
Added via_fp_set_secondary_direct_back_light_ctrl
This is an inline function.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | drivers/gpu/drm/via/crtc_hw.h | 17 |
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 20124afbcbae..4becfc8350a8 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -522,6 +522,23 @@ via_fp_set_secondary_soft_vdd(void __iomem *regs, } /* + * Sets CX700 / VX700 or later chipset's FP secondary direct back + * light control. + */ +static inline void +via_fp_set_secondary_direct_back_light_ctrl(void __iomem *regs, + bool direct_on) +{ + /* 3X5.D3[6] - FP Secondary Direct Back Light Control + * 0: On + * 1: Off */ + svga_wcrt_mask(regs, 0xD3, + direct_on ? 0x00 : BIT(6), BIT(6)); + DRM_DEBUG_KMS("FP Secondary Direct Back Light " + "Control: %s\n", direct_on ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |