diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-06-28 23:51:44 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-06-28 23:51:44 -0500 |
commit | 9ebf2e9c03be56eb3f55e479e49e21a6c4684e00 (patch) | |
tree | 7a22d0c3269b9120b8a3b091dfef80b70de4cabd | |
parent | 3fa6dc3d27049eac0dc40769ff9f0e287af622fa (diff) |
Added via_dvp1_set_display_source
This is an inline function.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | drivers/gpu/drm/via/crtc_hw.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/crtc_hw.h b/drivers/gpu/drm/via/crtc_hw.h index da666e387402..23f0e0999c48 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -146,6 +146,20 @@ via_dvp1_set_io_pad_state(void __iomem *regs, u8 io_pad_state) } /* + * Sets the display source of DVP1 (Digital Video Port 1) interface. + */ +static inline void +via_dvp1_set_display_source(void __iomem *regs, u8 display_source) +{ + /* 3X5.9B[4] - DVP1 Data Source Selection + * 0: Primary Display + * 1: Secondary Display */ + svga_wcrt_mask(regs, 0x9B, display_source << 4, BIT(4)); + DRM_DEBUG_KMS("DVP1 Display Source: IGA%d\n", + (display_source & 0x01) + 1); +} + +/* * Sets analog (VGA) DAC output state. */ static inline void |