diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-07 17:40:15 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-07 17:40:15 -0500 |
commit | e8eb50ee77ca9295a845c1a995897a67dd4fe737 (patch) | |
tree | 4308e2ec2f05d0c2e36b55047196044782187ac6 | |
parent | ff311da0f99217bf67e9fbca7fe729de3467555c (diff) |
Added via_lvds1_set_power
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | drivers/gpu/drm/via/crtc_hw.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/crtc_hw.h b/drivers/gpu/drm/via/crtc_hw.h index 9224df168681..20e341f55f4f 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -648,6 +648,21 @@ via_fpdp_high_set_display_source(void __iomem *regs, u8 display_source) } /* + * Sets CX700 / VX700 or later chipset's LVDS1 power state. + */ +static inline void +via_lvds1_set_power(void __iomem *regs, bool power_state) +{ + /* 3X5.D2[7] - Power Down (Active High) for Channel 1 LVDS + * 0: Power on + * 1: Power off */ + svga_wcrt_mask(regs, 0xD2, + power_state ? 0x00 : BIT(7), BIT(7)); + DRM_DEBUG_KMS("LVDS1 Power State: %s\n", + power_state ? "On" : "Off"); +} + +/* * Sets CX700 or later single chipset's LVDS1 power sequence type. */ static inline void |