diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:50:55 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 23:50:55 -0500 |
commit | 83a56b58befd72087fe1c9568f5f637e5b933004 (patch) | |
tree | 2ab59c9a762970fd4213b6138e953e725a13872a /drivers | |
parent | ea9544d56d005c4d7ff2a073403b9612c3460480 (diff) |
Added via_fp_set_secondary_hard_power
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 | 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 5f578e458110..9224df168681 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -556,6 +556,22 @@ via_fp_set_secondary_direct_display_period(void __iomem *regs, } /* + * Sets FP secondary hardware controlled power sequence enable. + */ +static inline void +via_fp_set_secondary_hard_power(void __iomem *regs, + bool power_state) +{ + /* 3X5.D4[1] - Secondary Power Hardware Power Sequence Enable + * 0: Off + * 1: On */ + svga_wcrt_mask(regs, 0xD4, + power_state ? BIT(1) : 0x00, BIT(1)); + DRM_DEBUG_KMS("FP Secondary Hardware Controlled Power " + "Sequence: %s\n", power_state ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |