summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/uvd_v2_2.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-04-16 22:11:22 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-08-27 12:47:55 -0400
commit856754c3a23a622d26a82b29fab6429481705511 (patch)
treedb28167b75af368213784b89c35804f62d6bf16c /drivers/gpu/drm/radeon/uvd_v2_2.c
parent4a956a70a8d4cc5268a60f6718de58892fa1275e (diff)
drm/radeon: add UVD support for older asics v4
v2: cleanup R600 support v3: rebased on current drm-fixes-3.12 v4: rebased on drm-next-3.14 Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/uvd_v2_2.c')
-rw-r--r--drivers/gpu/drm/radeon/uvd_v2_2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/uvd_v2_2.c b/drivers/gpu/drm/radeon/uvd_v2_2.c
index 8bfdadd56598..89193519f8a1 100644
--- a/drivers/gpu/drm/radeon/uvd_v2_2.c
+++ b/drivers/gpu/drm/radeon/uvd_v2_2.c
@@ -72,6 +72,10 @@ int uvd_v2_2_resume(struct radeon_device *rdev)
uint32_t chip_id, size;
int r;
+ /* RV770 uses V1.0 MC */
+ if (rdev->family == CHIP_RV770)
+ return uvd_v1_0_resume(rdev);
+
r = radeon_uvd_resume(rdev);
if (r)
return r;