diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 22:12:35 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-06 22:12:35 -0500 |
commit | 9790653fb663878c7d0d86aab24a3a5ee0444f3a (patch) | |
tree | 50424b8519d38eb56eefd25a0f07c156d355e4fe | |
parent | 69888e5b0301de2234f38d5266233e85a3e1e0bc (diff) |
Added via_fp_set_primary_hard_power
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 8786840fdf49..cb2fae3eea7d 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -420,6 +420,22 @@ via_fp_set_primary_direct_display_period(void __iomem *regs, bool direct_on) } /* + * Sets KM400 or later chipset's FP primary hardware controlled + * power sequence. + */ +static inline void +via_fp_set_primary_hard_power(void __iomem *regs, bool power_state) +{ + /* 3X5.6A[3] - FP Primary Hardware Controlled Power Sequence + * 0: Hardware Controlled Power Off + * 1: Hardware Controlled Power On */ + svga_wcrt_mask(regs, 0x6A, + power_state ? BIT(3) : 0x00, BIT(3)); + DRM_DEBUG_KMS("FP Primary Hardware Controlled Power " + "Sequence: %s\n", power_state ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |