drm/radeon: radeon-asic updates for Hainan
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Jul 2012 23:04:20 +0000 (19:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2013 16:09:36 +0000 (12:09 -0400)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_asic.c

index 6417132c50cf5bf8df186225cc8233d182188197..44a7a410141e977acd5a7e13549c91b4cf6b40aa 100644 (file)
@@ -2051,9 +2051,12 @@ int radeon_asic_init(struct radeon_device *rdev)
        case CHIP_PITCAIRN:
        case CHIP_VERDE:
        case CHIP_OLAND:
+       case CHIP_HAINAN:
                rdev->asic = &si_asic;
                /* set num crtcs */
-               if (rdev->family == CHIP_OLAND)
+               if (rdev->family == CHIP_HAINAN)
+                       rdev->num_crtc = 0;
+               else if (rdev->family == CHIP_OLAND)
                        rdev->num_crtc = 2;
                else
                        rdev->num_crtc = 6;