summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_display.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-08 07:07:28 +1000
committerDave Airlie <airlied@redhat.com>2009-12-08 10:22:31 +1000
commit746c1aa4d100f7441423050f34be79f401fbf7d4 (patch)
tree23e021bb2e9250fd03e88875b1715039f1d3da8a /drivers/gpu/drm/radeon/radeon_display.c
parentd904ef9b00a4473af16766e99f17bdbb5f0fde65 (diff)
downloadblackbird-obmc-linux-746c1aa4d100f7441423050f34be79f401fbf7d4.tar.gz
blackbird-obmc-linux-746c1aa4d100f7441423050f34be79f401fbf7d4.zip
drm/radeon/kms: initial radeon displayport porting
This is enough to retrieve EDID and DPCP. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 62b02372cb09..a1c2804b694d 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -337,6 +337,13 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector)
{
int ret = 0;
+ if (radeon_connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+ struct radeon_connector_atom_dig *dig = radeon_connector->con_priv;
+ if (dig->dp_i2c_bus) {
+ radeon_connector->edid = drm_get_edid(&radeon_connector->base, &dig->dp_i2c_bus->adapter);
+ DRM_INFO("got edid %p from DP\n", radeon_connector->edid);
+ }
+ }
if (!radeon_connector->ddc_bus)
return -1;
if (!radeon_connector->edid) {
OpenPOWER on IntegriCloud