diff options
-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 35b378be6ccf..5e2b692777f6 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -340,6 +340,22 @@ via_fp_set_primary_soft_back_light(void __iomem *regs, bool soft_on) } /* + * Sets KM400 or later chipset's FP primary software controlled + * VEE. + */ +static inline void +via_fp_set_primary_soft_vee(void __iomem *regs, bool soft_on) +{ + /* 3X5.91[2] - FP Primary Software VEE On + * 0: Off + * 1: On */ + svga_wcrt_mask(regs, 0x91, + soft_on ? BIT(2) : 0x00, BIT(2)); + DRM_DEBUG_KMS("FP Primary Software Controlled VEE: %s\n", + soft_on ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |