drm/amd/powerplay: add vangogh ppt into swSMU
authorHuang Rui <ray.huang@amd.com>
Thu, 27 Aug 2020 15:44:54 +0000 (11:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:15:27 +0000 (15:15 -0400)
This patch is to add vangogh ppt funcions into swSMU block.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/Makefile

index ec477a2..fc482ce 100644 (file)
@@ -33,6 +33,7 @@
 #include "navi10_ppt.h"
 #include "sienna_cichlid_ppt.h"
 #include "renoir_ppt.h"
+#include "vangogh_ppt.h"
 #include "amd_pcie.h"
 
 /*
@@ -401,6 +402,9 @@ static int smu_set_funcs(struct amdgpu_device *adev)
        case CHIP_RENOIR:
                renoir_set_ppt_funcs(smu);
                break;
+       case CHIP_VANGOGH:
+               vangogh_set_ppt_funcs(smu);
+               break;
        default:
                return -EINVAL;
        }
index f98d971..0138c98 100644 (file)
@@ -26,6 +26,7 @@
 SMU11_MGR = arcturus_ppt.o \
            navi10_ppt.o \
            sienna_cichlid_ppt.o \
+           vangogh_ppt.o \
            smu_v11_0.o
 
 AMD_SWSMU_SMU11MGR = $(addprefix $(AMD_SWSMU_PATH)/smu11/,$(SMU11_MGR))