drm/radeon/kms: fix DP setup on TRAVIS bridges
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Oct 2011 20:07:36 +0000 (16:07 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Nov 2011 17:53:22 +0000 (17:53 +0000)
Supposedly both NUTMEG and TRAVIS should use the same
panel mode, but switching the panel mode for TRAVIS
gets things working.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41569

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c

index ff47186b562973e007f17a96e618a37c7e4b5977..a0de48542f71591c8cd47fb00739e34becb37aa2 100644 (file)
@@ -560,9 +560,12 @@ static void radeon_dp_set_panel_mode(struct drm_encoder *encoder,
        if (!ASIC_IS_DCE4(rdev))
                return;
 
-       if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) !=
-           ENCODER_OBJECT_ID_NONE)
+       if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) ==
+           ENCODER_OBJECT_ID_NUTMEG)
                panel_mode = DP_PANEL_MODE_INTERNAL_DP1_MODE;
+       else if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) ==
+                ENCODER_OBJECT_ID_TRAVIS)
+               panel_mode = DP_PANEL_MODE_INTERNAL_DP2_MODE;
        else if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
                u8 tmp = radeon_read_dpcd_reg(radeon_connector, DP_EDP_CONFIGURATION_CAP);
                if (tmp & 1)