summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_mode.h
diff options
context:
space:
mode:
authorMarius Gröger <marius.groeger@googlemail.com>2010-09-21 21:30:59 +0200
committerDave Airlie <airlied@redhat.com>2010-10-06 11:46:20 +1000
commit5bccf5e32f010ac4d99e1eafb8669cfb35a0889a (patch)
tree9d1174cc1b0ff129edab3d380ba03d5cfcd2eed2 /drivers/gpu/drm/radeon/radeon_mode.h
parentd0f8a854c340986359a3b0a97e380c71def7a440 (diff)
downloadop-kernel-dev-5bccf5e32f010ac4d99e1eafb8669cfb35a0889a.zip
op-kernel-dev-5bccf5e32f010ac4d99e1eafb8669cfb35a0889a.tar.gz
drm/radeon: add properties to configure the width of the underscan borders
This allows for a more exact fitting on the physical display. The new properties default to zero which corresponds to the previous underscan border width[height] formula: (display_width[display_width] >> 5) + 16. Example to set a horizontal border width of 30 and a vertikal border height of 22: xrandr --output HDMI-0 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 22 Signed-off-by: Marius Gröger <marius.groeger@googlemail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_mode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index 17a6602..8e071bf 100644
--- a/drivers/gpu/drm/radeon/radeon_mode.h
+++ b/drivers/gpu/drm/radeon/radeon_mode.h
@@ -241,6 +241,8 @@ struct radeon_mode_info {
struct drm_property *tmds_pll_property;
/* underscan */
struct drm_property *underscan_property;
+ struct drm_property *underscan_hborder_property;
+ struct drm_property *underscan_vborder_property;
/* hardcoded DFP edid from BIOS */
struct edid *bios_hardcoded_edid;
@@ -370,6 +372,8 @@ struct radeon_encoder {
uint32_t pixel_clock;
enum radeon_rmx_type rmx_type;
enum radeon_underscan_type underscan_type;
+ uint32_t underscan_hborder;
+ uint32_t underscan_vborder;
struct drm_display_mode native_mode;
void *enc_priv;
int audio_polling_active;
OpenPOWER on IntegriCloud