From: Aaron Liu Date: Wed, 4 Nov 2020 05:21:55 +0000 (+0800) Subject: drm/amdgpu: add nv common ip block support for yellow carp X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=e79907216b7466e49db6b525f2de7a69756554f2;p=kernel.git 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 Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 27ba0408a2aaa..91ad7536781af 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;