Commit 13ebe284 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/athub2.0: convert to IP version checking

Use IP versions rather than asic_type to differentiate
IP version specific features.
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4edbbfde
...@@ -77,10 +77,9 @@ int athub_v2_0_set_clockgating(struct amdgpu_device *adev, ...@@ -77,10 +77,9 @@ int athub_v2_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]) {
case CHIP_NAVI10: case IP_VERSION(2, 0, 0):
case CHIP_NAVI14: case IP_VERSION(2, 0, 2):
case CHIP_NAVI12:
athub_v2_0_update_medium_grain_clock_gating(adev, athub_v2_0_update_medium_grain_clock_gating(adev,
state == AMD_CG_STATE_GATE); state == AMD_CG_STATE_GATE);
athub_v2_0_update_medium_grain_light_sleep(adev, athub_v2_0_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