diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:28:50 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:28:50 -0500 |
commit | 1a93d3777b05cbca9d5bb4e18c15da9b0b289758 (patch) | |
tree | 5ff7f7d6ca4315a40dab964b873a380ac77366f2 /drivers | |
parent | dd25e5954b8283cc81f659cdbc492c540e2dd2de (diff) |
Added via_fp_set_secondary_soft_data
This is an inline function.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'drivers')
-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 0241f66f491c..2fbce928b124 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -488,6 +488,23 @@ via_fp_set_secondary_soft_vee(void __iomem *regs, } /* + * Sets CX700 / VX700 or later chipset's FP secondary software + * controlled data. + */ +static inline void +via_fp_set_secondary_soft_data(void __iomem *regs, + bool soft_on) +{ + /* 3X5.D3[3] - FP Secondary Software Data On + * 0: Off + * 1: On */ + svga_wcrt_mask(regs, 0xD3, + soft_on ? BIT(3) : 0x00, BIT(3)); + DRM_DEBUG_KMS("FP Secondary Software Controlled Data: %s\n", + soft_on ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |