diff options
-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 0e7850e317ec..9e411cc42201 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -454,6 +454,23 @@ via_fp_set_secondary_power_seq_type(void __iomem *regs, } /* + * Sets CX700 / VX700 or later chipset's FP secondary + * software controlled back light. + */ +static inline void +via_fp_set_secondary_soft_back_light(void __iomem *regs, + bool soft_on) +{ + /* 3X5.D3[1] - FP Secondary Software Back Light On + * 0: Off + * 1: On */ + svga_wcrt_mask(regs, 0xD3, + soft_on ? BIT(1) : 0x00, BIT(1)); + DRM_DEBUG_KMS("FP Secondary Software Controlled Back Light: " + "%s\n", soft_on ? "On" : "Off"); +} + +/* * Sets FPDP (Flat Panel Display Port) Low I/O pad state. */ static inline void |