From: Huang Rui Date: Thu, 27 Aug 2020 14:46:19 +0000 (-0400) Subject: drm/amdgpu: add nv common ip block support for van gogh X-Git-Tag: accepted/tizen/unified/20230118.172025~8358^2~12^2~429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=026570e633105023a9b8ea2d296df5abd2bf1134;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 1ce741a..622bcbb 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;