summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_connectors.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-12-09 03:13:05 (GMT)
committerDave Airlie <airlied@redhat.com>2010-12-21 03:30:59 (GMT)
commit7a868e18a4907dc8f1f05d99bcb9fd3fa8881ee4 (patch)
treeeb45aab3241d1a79ed19930c2945ba93c5e01787 /drivers/gpu/drm/radeon/radeon_connectors.c
parent000fa7cf46479238f7b9f2d7763e41af5268b16a (diff)
downloadlinux-7a868e18a4907dc8f1f05d99bcb9fd3fa8881ee4.tar.xz
drm/radeon/kms: use LCD physical size from vbios tables if available
Some systems have the LCD width and height in mm available in the LCD info table. Use this info if there is no EDID to provide it. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_connectors.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index 3bef9f6..f3ba066 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -472,6 +472,9 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
if (mode) {
ret = 1;
drm_mode_probed_add(connector, mode);
+ /* add the width/height from vbios tables if available */
+ connector->display_info.width_mm = mode->width_mm;
+ connector->display_info.height_mm = mode->height_mm;
/* add scaled modes */
radeon_add_common_modes(encoder, connector);
}