drm/amd/swsmu: support SMU_14_0_2 ppt_funcs
authorLikun Gao <Likun.Gao@amd.com>
Wed, 26 Apr 2023 07:06:18 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 02:39:16 +0000 (22:39 -0400)
Add smu v14_0_2 ppt fucs support.

v2: squash in updates (Alex)

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index dc2a864b0f5124d8d2c9ecd5474a9205824bb2d7..7789b313285c4b478cb5f96b627642796aadc95f 100644 (file)
@@ -45,6 +45,7 @@
 #include "smu_v13_0_6_ppt.h"
 #include "smu_v13_0_7_ppt.h"
 #include "smu_v14_0_0_ppt.h"
+#include "smu_v14_0_2_ppt.h"
 #include "amd_pcie.h"
 
 /*
@@ -715,6 +716,10 @@ static int smu_set_funcs(struct amdgpu_device *adev)
        case IP_VERSION(14, 0, 1):
                smu_v14_0_0_set_ppt_funcs(smu);
                break;
+       case IP_VERSION(14, 0, 2):
+       case IP_VERSION(14, 0, 3):
+               smu_v14_0_2_set_ppt_funcs(smu);
+               break;
        default:
                return -EINVAL;
        }