diff options
author | Samuel Li <samuel.li@amd.com> | 2015-08-07 14:14:10 -0400 |
---|---|---|
committer | Samuel Li <Samuel.Li@amd.com> | 2015-11-25 15:03:12 -0500 |
commit | a7e0d3937631ab26371717281f43e8d308a1d683 (patch) | |
tree | 79496b12c0cf7993e65d6b4f4ad19ea3910a17b0 | |
parent | 05bf6a650014a5bb2f1fec199ef038ca7aea4f76 (diff) |
drm/amdgpu: fill in vi_common_early_init for stoney
Signed-off-by: Samuel Li <samuel.li@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index c00c9a788b08..fbbd0401fd38 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c @@ -1402,6 +1402,15 @@ static int vi_common_early_init(void *handle) if (amdgpu_smc_load_fw && smc_enabled) adev->firmware.smu_load = true; break; + //stoney: todo + case CHIP_STONEY: + adev->has_uvd = true; + adev->cg_flags = 0; + adev->pg_flags = AMDGPU_PG_SUPPORT_UVD | AMDGPU_PG_SUPPORT_VCE; + adev->external_rev_id = adev->rev_id + 0x1; + if (amdgpu_smc_load_fw && smc_enabled) + adev->firmware.smu_load = true; + break; default: /* FIXME: not supported yet */ return -EINVAL; |