diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-03-20 17:18:42 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-21 02:55:58 -0400 |
commit | 1b2681ba271c9f5bb66cb0d8ceeaa215fcd218d8 (patch) | |
tree | 25d808928186895beb23bfbf0351b0d6de1dde9b | |
parent | d09b38d4311d5a1d94407a3f65313a51ce96814f (diff) |
drm/radeon/kms: update duallink checks for DCE6
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_encoders.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 64774ac94449..bd05156edbdb 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -1085,7 +1085,7 @@ static int radeon_dvi_mode_valid(struct drm_connector *connector, | |||
1085 | (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) | 1085 | (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) |
1086 | return MODE_OK; | 1086 | return MODE_OK; |
1087 | else if (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_A) { | 1087 | else if (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_A) { |
1088 | if (0) { | 1088 | if (ASIC_IS_DCE6(rdev)) { |
1089 | /* HDMI 1.3+ supports max clock of 340 Mhz */ | 1089 | /* HDMI 1.3+ supports max clock of 340 Mhz */ |
1090 | if (mode->clock > 340000) | 1090 | if (mode->clock > 340000) |
1091 | return MODE_CLOCK_HIGH; | 1091 | return MODE_CLOCK_HIGH; |
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index 26e92708d114..74670696277d 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c | |||
@@ -307,6 +307,8 @@ void radeon_panel_mode_fixup(struct drm_encoder *encoder, | |||
307 | bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, | 307 | bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, |
308 | u32 pixel_clock) | 308 | u32 pixel_clock) |
309 | { | 309 | { |
310 | struct drm_device *dev = encoder->dev; | ||
311 | struct radeon_device *rdev = dev->dev_private; | ||
310 | struct drm_connector *connector; | 312 | struct drm_connector *connector; |
311 | struct radeon_connector *radeon_connector; | 313 | struct radeon_connector *radeon_connector; |
312 | struct radeon_connector_atom_dig *dig_connector; | 314 | struct radeon_connector_atom_dig *dig_connector; |
@@ -324,7 +326,7 @@ bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, | |||
324 | case DRM_MODE_CONNECTOR_HDMIB: | 326 | case DRM_MODE_CONNECTOR_HDMIB: |
325 | if (radeon_connector->use_digital) { | 327 | if (radeon_connector->use_digital) { |
326 | /* HDMI 1.3 supports up to 340 Mhz over single link */ | 328 | /* HDMI 1.3 supports up to 340 Mhz over single link */ |
327 | if (0 && drm_detect_hdmi_monitor(radeon_connector->edid)) { | 329 | if (ASIC_IS_DCE6(rdev) && drm_detect_hdmi_monitor(radeon_connector->edid)) { |
328 | if (pixel_clock > 340000) | 330 | if (pixel_clock > 340000) |
329 | return true; | 331 | return true; |
330 | else | 332 | else |
@@ -346,7 +348,7 @@ bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, | |||
346 | return false; | 348 | return false; |
347 | else { | 349 | else { |
348 | /* HDMI 1.3 supports up to 340 Mhz over single link */ | 350 | /* HDMI 1.3 supports up to 340 Mhz over single link */ |
349 | if (0 && drm_detect_hdmi_monitor(radeon_connector->edid)) { | 351 | if (ASIC_IS_DCE6(rdev) && drm_detect_hdmi_monitor(radeon_connector->edid)) { |
350 | if (pixel_clock > 340000) | 352 | if (pixel_clock > 340000) |
351 | return true; | 353 | return true; |
352 | else | 354 | else |