diff options
| author | Huang Rui <ray.huang@amd.com> | 2020-08-27 17:46:19 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-05 22:14:02 +0300 |
| commit | 026570e633105023a9b8ea2d296df5abd2bf1134 (patch) | |
| tree | bd153c20572ee17dff03bf43c0e098da723b3875 | |
| parent | 1f9dab43c2cc19e69e368541ab8959859676e543 (diff) | |
| download | linux-026570e633105023a9b8ea2d296df5abd2bf1134.tar.xz | |
drm/amdgpu: add nv common ip block support for van gogh
This patch adds common ip support for van gogh.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 1ce741a0c6a7..622bcbb56e17 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -443,6 +443,9 @@ legacy_init: case CHIP_NAVY_FLOUNDER: sienna_cichlid_reg_base_init(adev); break; + case CHIP_VANGOGH: + vangogh_reg_base_init(adev); + break; default: return -EINVAL; } @@ -823,6 +826,11 @@ static int nv_common_early_init(void *handle) adev->external_rev_id = adev->rev_id + 0x32; break; + case CHIP_VANGOGH: + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0x01; + break; default: /* FIXME: not supported yet */ return -EINVAL; |
