drm/amdgpu: update rev id register for VI
authorFlora Cui <Flora.Cui@amd.com>
Fri, 20 Nov 2015 03:40:53 +0000 (11:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Dec 2015 16:13:41 +0000 (11:13 -0500)
Change-Id: I2ae9bb4a929f7c0c8783e0be563ae04be77596e2
Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vi.c

index bf5bd931b8ca3b882bcd6d705997dc358632cdbd..30b408f1d5c0aeb74351c20708e59a63214b971a 100644 (file)
@@ -1386,15 +1386,12 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
 
 static uint32_t vi_get_rev_id(struct amdgpu_device *adev)
 {
-       if (adev->asic_type == CHIP_TOPAZ)
-               return (RREG32(mmPCIE_EFUSE4) & PCIE_EFUSE4__STRAP_BIF_ATI_REV_ID_MASK)
-                       >> PCIE_EFUSE4__STRAP_BIF_ATI_REV_ID__SHIFT;
-       else if (adev->flags & AMD_IS_APU)
+       if (adev->flags & AMD_IS_APU)
                return (RREG32_SMC(ATI_REV_ID_FUSE_MACRO__ADDRESS) & ATI_REV_ID_FUSE_MACRO__MASK)
                        >> ATI_REV_ID_FUSE_MACRO__SHIFT;
        else
-               return (RREG32(mmCC_DRM_ID_STRAPS) & CC_DRM_ID_STRAPS__ATI_REV_ID_MASK)
-                       >> CC_DRM_ID_STRAPS__ATI_REV_ID__SHIFT;
+               return (RREG32(mmPCIE_EFUSE4) & PCIE_EFUSE4__STRAP_BIF_ATI_REV_ID_MASK)
+                       >> PCIE_EFUSE4__STRAP_BIF_ATI_REV_ID__SHIFT;
 }
 
 static const struct amdgpu_asic_funcs vi_asic_funcs =