Commit 4e13b063 authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher

drm/amdgpu: convert code name to ip version for athub

Use IP version rather than codename for athub.
Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7367540b
...@@ -68,12 +68,13 @@ int athub_v1_0_set_clockgating(struct amdgpu_device *adev, ...@@ -68,12 +68,13 @@ int athub_v1_0_set_clockgating(struct amdgpu_device *adev,
if (amdgpu_sriov_vf(adev)) if (amdgpu_sriov_vf(adev))
return 0; return 0;
switch (adev->asic_type) { switch (adev->ip_versions[ATHUB_HWIP][0]) {
case CHIP_VEGA10: case IP_VERSION(9, 0, 0):
case CHIP_VEGA12: case IP_VERSION(9, 1, 0):
case CHIP_VEGA20: case IP_VERSION(9, 2, 0):
case CHIP_RAVEN: case IP_VERSION(9, 3, 0):
case CHIP_RENOIR: case IP_VERSION(9, 4, 0):
case IP_VERSION(1, 5, 0):
athub_update_medium_grain_clock_gating(adev, athub_update_medium_grain_clock_gating(adev,
state == AMD_CG_STATE_GATE); state == AMD_CG_STATE_GATE);
athub_update_medium_grain_light_sleep(adev, athub_update_medium_grain_light_sleep(adev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment