]> www.infradead.org Git - users/willy/xarray.git/commitdiff
drm/amdgpu: initialize smuio callbacks for aldebaran
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 16 Oct 2020 15:05:51 +0000 (23:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:52:40 +0000 (22:52 -0400)
initialize smuio v13_0 callbacks for aldebaran

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index cc260822a7904e13fb8f04dfb1c11563f22c4f1c..4bbd99b0cc59257a274ef967df3ba85daaa1efc0 100644 (file)
@@ -73,6 +73,7 @@
 #include "jpeg_v2_5.h"
 #include "smuio_v9_0.h"
 #include "smuio_v11_0.h"
+#include "smuio_v13_0.h"
 #include "dce_virtual.h"
 #include "mxgpu_ai.h"
 #include "amdgpu_smu.h"
@@ -943,6 +944,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
        if (adev->asic_type == CHIP_VEGA20 ||
            adev->asic_type == CHIP_ARCTURUS)
                adev->smuio.funcs = &smuio_v11_0_funcs;
+       else if (adev->asic_type == CHIP_ALDEBARAN)
+               adev->smuio.funcs = &smuio_v13_0_funcs;
        else
                adev->smuio.funcs = &smuio_v9_0_funcs;