diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-03-16 12:22:10 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-20 04:45:40 -0400 |
commit | 4c1b2d2da3451f5c8dd59bd7e05bd9729d2aee05 (patch) | |
tree | 016bcb309fecefffa9439a1539f999e6bdc9f99d /drivers/gpu/drm/radeon/radeon_atombios.c | |
parent | e00e8b5e760cbbe9067daeae5454d67c44c8d035 (diff) |
drm/radeon/kms: add connector quirk for Fujitsu D3003-S2 board
vbios lists DVI-I port as VGA and DVI-D.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=47007
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 1f53ae74ada1..73541373bf56 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
@@ -442,6 +442,20 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, | |||
442 | struct radeon_device *rdev = dev->dev_private; | 442 | struct radeon_device *rdev = dev->dev_private; |
443 | *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93); | 443 | *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93); |
444 | } | 444 | } |
445 | |||
446 | /* Fujitsu D3003-S2 board lists DVI-I as DVI-D and VGA */ | ||
447 | if ((dev->pdev->device == 0x9802) && | ||
448 | (dev->pdev->subsystem_vendor == 0x1734) && | ||
449 | (dev->pdev->subsystem_device == 0x11bd)) { | ||
450 | if (*connector_type == DRM_MODE_CONNECTOR_VGA) { | ||
451 | *connector_type = DRM_MODE_CONNECTOR_DVII; | ||
452 | *line_mux = 0x3103; | ||
453 | } else if (*connector_type == DRM_MODE_CONNECTOR_DVID) { | ||
454 | *connector_type = DRM_MODE_CONNECTOR_DVII; | ||
455 | } | ||
456 | } | ||
457 | |||
458 | |||
445 | return true; | 459 | return true; |
446 | } | 460 | } |
447 | 461 | ||