aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_asic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_asic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index 6d2a5457c2c..dd23dcfbde1 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -700,6 +700,16 @@ int radeon_asic_init(struct radeon_device *rdev)
700 rdev->asic->set_memory_clock = NULL; 700 rdev->asic->set_memory_clock = NULL;
701 } 701 }
702 702
703 /* set the number of crtcs */
704 if (rdev->flags & RADEON_SINGLE_CRTC)
705 rdev->num_crtc = 1;
706 else {
707 if (ASIC_IS_DCE4(rdev))
708 rdev->num_crtc = 6;
709 else
710 rdev->num_crtc = 2;
711 }
712
703 return 0; 713 return 0;
704} 714}
705 715