aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-05-20 04:34:14 -0400
committerDave Airlie <airlied@redhat.com>2011-05-20 06:02:19 -0400
commit96b3bef8c1d20b3f0087a26313296bf476930380 (patch)
tree8c5d469fcd8c4f2d07383c7c3b05c8275d8b033a /drivers
parent351fc4d660ff134fc33b920e1a3a97de4923dd91 (diff)
drm/radeon/kms: DCE4.1 DIG encoders are fully routeable just like DCE3.2
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/radeon_encoders.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c
index 99477480b98b..b2e0b586e784 100644
--- a/drivers/gpu/drm/radeon/radeon_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_encoders.c
@@ -931,10 +931,10 @@ atombios_dig_transmitter_setup(struct drm_encoder *encoder, int action, uint8_t
931 else 931 else
932 args.v3.ucLaneNum = 4; 932 args.v3.ucLaneNum = 4;
933 933
934 if (dig->linkb) { 934 if (dig->linkb)
935 args.v3.acConfig.ucLinkSel = 1; 935 args.v3.acConfig.ucLinkSel = 1;
936 if (dig->dig_encoder & 1)
936 args.v3.acConfig.ucEncoderSel = 1; 937 args.v3.acConfig.ucEncoderSel = 1;
937 }
938 938
939 /* Select the PLL for the PHY 939 /* Select the PLL for the PHY
940 * DP PHY should be clocked from external src if there is 940 * DP PHY should be clocked from external src if there is
@@ -1601,12 +1601,9 @@ static int radeon_atom_pick_dig_encoder(struct drm_encoder *encoder)
1601 /* DCE4/5 */ 1601 /* DCE4/5 */
1602 if (ASIC_IS_DCE4(rdev)) { 1602 if (ASIC_IS_DCE4(rdev)) {
1603 dig = radeon_encoder->enc_priv; 1603 dig = radeon_encoder->enc_priv;
1604 if (ASIC_IS_DCE41(rdev)) { 1604 if (ASIC_IS_DCE41(rdev))
1605 if (dig->linkb) 1605 return radeon_crtc->crtc_id;
1606 return 1; 1606 else {
1607 else
1608 return 0;
1609 } else {
1610 switch (radeon_encoder->encoder_id) { 1607 switch (radeon_encoder->encoder_id) {
1611 case ENCODER_OBJECT_ID_INTERNAL_UNIPHY: 1608 case ENCODER_OBJECT_ID_INTERNAL_UNIPHY:
1612 if (dig->linkb) 1609 if (dig->linkb)