drm/amdgpu/soc21: add initial GC 11.5.0 soc21 support

Disable clock gating and power gating on the early bring up phase.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Prike Liang 2022-05-24 16:22:21 +08:00 committed by Alex Deucher
parent 2c8a7ca164
commit 0d1db799e7

View File

@ -688,6 +688,12 @@ static int soc21_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x80;
break;
case IP_VERSION(11, 5, 0):
adev->cg_flags = 0;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x1;
break;
default:
/* FIXME: not supported yet */
return -EINVAL;