summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2021-08-02 05:15:39 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-05-06 17:36:14 +0300
commit11417a927b1c8c70c5d23b47ac9b563242e9fc78 (patch)
tree198048c30c4d8ba9f37fc96243e42dc299a9fdf7 /drivers/gpu/drm/amd/amdgpu/soc21.c
parent50e9f54de4f82f5355fbae10275c09f4c98e069d (diff)
downloadlinux-11417a927b1c8c70c5d23b47ac9b563242e9fc78.tar.xz
drm/amdgpu: add soc21 common ip block support for GC 11.0.1
Add common soc21 ip block support for GC 11.0.1. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Aaron Liu <aaron.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 9424020c0634..cfe5d12b180b 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -564,6 +564,11 @@ static int soc21_common_early_init(void *handle)
AMD_PG_SUPPORT_MMHUB;
adev->external_rev_id = adev->rev_id + 0x10;
break;
+ case IP_VERSION(11, 0, 1):
+ adev->cg_flags = 0;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x1;
+ break;
default:
/* FIXME: not supported yet */
return -EINVAL;