diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-04 13:47:36 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-04 13:47:36 -0500 |
commit | e55ba9e19483aade454436338c2f9d63e8a338ea (patch) | |
tree | a0cf593351e8f4184e1921c87b9fd0eebc8ea7d2 | |
parent | b6b5325157aab6cb173762435dd49059230698e4 (diff) |
Added via_dvp1_set_data_drive_strength
This is an inline function.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | drivers/gpu/drm/via/crtc_hw.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/crtc_hw.h b/drivers/gpu/drm/via/crtc_hw.h index bd8fbd28907c..e649d5061e5e 100644 --- a/drivers/gpu/drm/via/crtc_hw.h +++ b/drivers/gpu/drm/via/crtc_hw.h @@ -202,6 +202,24 @@ via_dvp1_set_clock_drive_strength(void __iomem *regs, } /* + * Sets DVP1 (Digital Video Port 1) data I/O pads drive strength. + */ +static inline void +via_dvp1_set_data_drive_strength(void __iomem *regs, + u8 data_drive_strength) +{ + /* 3C5.65[1:0] - DVP1 Data Pads Driving Select [1:0} + * 00: lowest + * 01: low + * 10: high + * 11: highest */ + svga_wseq_mask(regs, 0x65, + data_drive_strength, BIT(1) | BIT(0)); + DRM_DEBUG_KMS("DVP1 Data I/O Pads Drive Strength: %lu\n", + data_drive_strength & (BIT(1) | BIT(0))); +} + +/* * Sets the display source of DVP1 (Digital Video Port 1) interface. */ static inline void |