drm/radeon/kms: add quirk for VGA without DDC on rv730 XFX card.
authorDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 23:06:00 +0000 (09:06 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 23:06:00 +0000 (09:06 +1000)
Reported on irc by nirbheek.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index fa82ca74324e45be7fece1a947ea1ead50a5a77d..2dcda6115874065b40a3e56240c6a42db01b0e0f 100644 (file)
@@ -287,6 +287,15 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
                        *connector_type = DRM_MODE_CONNECTOR_DVID;
        }
 
+       /* XFX Pine Group device rv730 reports no VGA DDC lines
+        * even though they are wired up to record 0x93
+        */
+       if ((dev->pdev->device == 0x9498) &&
+           (dev->pdev->subsystem_vendor == 0x1682) &&
+           (dev->pdev->subsystem_device == 0x2452)) {
+               struct radeon_device *rdev = dev->dev_private;
+               *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93);
+       }
        return true;
 }