diff options
author | Aaron Liu <aaron.liu@amd.com> | 2020-11-04 08:21:55 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-04 23:03:06 +0300 |
commit | e79907216b7466e49db6b525f2de7a69756554f2 (patch) | |
tree | 075cd75f59e756feb0ad3df7e88e77ed60713dcd /drivers/gpu/drm/amd/amdgpu/nv.c | |
parent | cdf9979be9769f96693a70b037f6e14115e99b68 (diff) | |
download | linux-e79907216b7466e49db6b525f2de7a69756554f2.tar.xz |
drm/amdgpu: add nv common ip block support for yellow carp
This patch adds common ip support for yellow carp.
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
-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 27ba0408a2aa..91ad7536781a 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -782,6 +782,9 @@ legacy_init: case CHIP_BEIGE_GOBY: beige_goby_reg_base_init(adev); break; + case CHIP_YELLOW_CARP: + yellow_carp_reg_base_init(adev); + break; default: return -EINVAL; } @@ -1309,6 +1312,11 @@ static int nv_common_early_init(void *handle) AMD_PG_SUPPORT_MMHUB; adev->external_rev_id = adev->rev_id + 0x46; break; + case CHIP_YELLOW_CARP: + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0x01; + break; default: /* FIXME: not supported yet */ return -EINVAL; |