summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-07-01 12:54:23 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:43:44 +1000
commit0dc0d4df2feafe9644f4958133443297400b271f (patch)
tree00650d663c45c746e480ffff42c135c10df400fa /sys
parentc9d02cc2716c94054bd49e6ccf387194c77a26c1 (diff)
drm/radeon: fix hdmi mode enable on RS600/RS690/RS740, from 3.8.13
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/radeon/r600_hdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/r600_hdmi.c b/sys/dev/pci/drm/radeon/r600_hdmi.c
index 75cd441c415..22cee16760b 100644
--- a/sys/dev/pci/drm/radeon/r600_hdmi.c
+++ b/sys/dev/pci/drm/radeon/r600_hdmi.c
@@ -489,7 +489,7 @@ void r600_hdmi_enable(struct drm_encoder *encoder)
offset = dig->afmt->offset;
/* Older chipsets require setting HDMI and routing manually */
- if (rdev->family >= CHIP_R600 && !ASIC_IS_DCE3(rdev)) {
+ if (ASIC_IS_DCE2(rdev) && !ASIC_IS_DCE3(rdev)) {
hdmi = HDMI0_ERROR_ACK | HDMI0_ENABLE;
switch (radeon_encoder->encoder_id) {
case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1:
@@ -557,7 +557,7 @@ void r600_hdmi_disable(struct drm_encoder *encoder)
radeon_irq_kms_disable_afmt(rdev, dig->afmt->id);
/* Older chipsets not handled by AtomBIOS */
- if (rdev->family >= CHIP_R600 && !ASIC_IS_DCE3(rdev)) {
+ if (ASIC_IS_DCE2(rdev) && !ASIC_IS_DCE3(rdev)) {
switch (radeon_encoder->encoder_id) {
case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1:
WREG32_P(AVIVO_TMDSA_CNTL, 0,