aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-06 21:19:11 -0500
committerDave Airlie <airlied@redhat.com>2011-01-06 23:11:17 -0500
commit633b91643f50779897bcab5e50d08a4fe4ba9f13 (patch)
treef1eaa4bb606e3bc1ce583724f5f47daecd98a1c0 /drivers/gpu/drm
parent32171d2297daa2fe90d6ef41c5424ca9ac5bd797 (diff)
drm/radeon/kms: clean up ASIC_IS_DCE41() macro
only fusion asics are dce4.1 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h3
-rw-r--r--drivers/gpu/drm/radeon/radeon_encoders.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 3e635c651900..396e30703e7a 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -1335,7 +1335,8 @@ void r100_pll_errata_after_index(struct radeon_device *rdev);
1335#define ASIC_IS_DCE3(rdev) ((rdev->family >= CHIP_RV620)) 1335#define ASIC_IS_DCE3(rdev) ((rdev->family >= CHIP_RV620))
1336#define ASIC_IS_DCE32(rdev) ((rdev->family >= CHIP_RV730)) 1336#define ASIC_IS_DCE32(rdev) ((rdev->family >= CHIP_RV730))
1337#define ASIC_IS_DCE4(rdev) ((rdev->family >= CHIP_CEDAR)) 1337#define ASIC_IS_DCE4(rdev) ((rdev->family >= CHIP_CEDAR))
1338#define ASIC_IS_DCE41(rdev) ((rdev->family >= CHIP_PALM)) 1338#define ASIC_IS_DCE41(rdev) ((rdev->family >= CHIP_PALM) && \
1339 (rdev->flags & RADEON_IS_IGP))
1339 1340
1340/* 1341/*
1341 * BIOS helpers. 1342 * BIOS helpers.
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c
index 55b84b8e6b29..c83ad890e4d2 100644
--- a/drivers/gpu/drm/radeon/radeon_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_encoders.c
@@ -1329,7 +1329,7 @@ radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode)
1329 switch (mode) { 1329 switch (mode) {
1330 case DRM_MODE_DPMS_ON: 1330 case DRM_MODE_DPMS_ON:
1331 default: 1331 default:
1332 if (ASIC_IS_DCE41(rdev) && (rdev->flags & RADEON_IS_IGP)) 1332 if (ASIC_IS_DCE41(rdev))
1333 action = EXTERNAL_ENCODER_ACTION_V3_ENABLE_OUTPUT; 1333 action = EXTERNAL_ENCODER_ACTION_V3_ENABLE_OUTPUT;
1334 else 1334 else
1335 action = ATOM_ENABLE; 1335 action = ATOM_ENABLE;
@@ -1337,7 +1337,7 @@ radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode)
1337 case DRM_MODE_DPMS_STANDBY: 1337 case DRM_MODE_DPMS_STANDBY:
1338 case DRM_MODE_DPMS_SUSPEND: 1338 case DRM_MODE_DPMS_SUSPEND:
1339 case DRM_MODE_DPMS_OFF: 1339 case DRM_MODE_DPMS_OFF:
1340 if (ASIC_IS_DCE41(rdev) && (rdev->flags & RADEON_IS_IGP)) 1340 if (ASIC_IS_DCE41(rdev))
1341 action = EXTERNAL_ENCODER_ACTION_V3_DISABLE_OUTPUT; 1341 action = EXTERNAL_ENCODER_ACTION_V3_DISABLE_OUTPUT;
1342 else 1342 else
1343 action = ATOM_DISABLE; 1343 action = ATOM_DISABLE;
@@ -1663,7 +1663,7 @@ radeon_atom_encoder_mode_set(struct drm_encoder *encoder,
1663 } 1663 }
1664 1664
1665 if (ext_encoder) { 1665 if (ext_encoder) {
1666 if (ASIC_IS_DCE41(rdev) && (rdev->flags & RADEON_IS_IGP)) { 1666 if (ASIC_IS_DCE41(rdev)) {
1667 atombios_external_encoder_setup(encoder, ext_encoder, 1667 atombios_external_encoder_setup(encoder, ext_encoder,
1668 EXTERNAL_ENCODER_ACTION_V3_ENCODER_INIT); 1668 EXTERNAL_ENCODER_ACTION_V3_ENCODER_INIT);
1669 atombios_external_encoder_setup(encoder, ext_encoder, 1669 atombios_external_encoder_setup(encoder, ext_encoder,