drm/amdgpu/amdgpu_smu: convert to IP version checking
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Sep 2021 20:26:31 +0000 (16:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:22:59 +0000 (15:22 -0400)
commita8967967f6a5543e1f417b5300d3fed4f9bce1de
tree8ae585cbb91e229b5bdd45cc12998ddd32bea0b8
parent7c69d6153e827576f20a954a459667c5af072f7e
drm/amdgpu/amdgpu_smu: convert to IP version checking

Use IP versions rather than asic_type to differentiate
IP version specific features.

v2: rebase
v3: switch some if statements to switch statements
v4: add yellow carp fix (Yifan)
v5: squash in fixes for YC and GS (Alex)

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c