drm/amdgpu: init smuio funcs for smuio v13_0_3
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 23 Nov 2021 14:27:17 +0000 (22:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:48:36 +0000 (09:48 -0400)
Add callbacks for SMUIO 13.0.3

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.h

index 71293db..b602df4 100644 (file)
@@ -82,6 +82,7 @@
 #include "smuio_v11_0.h"
 #include "smuio_v11_0_6.h"
 #include "smuio_v13_0.h"
+#include "smuio_v13_0_3.h"
 #include "smuio_v13_0_6.h"
 
 #define FIRMWARE_IP_DISCOVERY "amdgpu/ip_discovery.bin"
@@ -2382,6 +2383,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(13, 0, 2):
                adev->smuio.funcs = &smuio_v13_0_funcs;
                break;
+       case IP_VERSION(13, 0, 3):
+               adev->smuio.funcs = &smuio_v13_0_3_funcs;
+               break;
        case IP_VERSION(13, 0, 6):
        case IP_VERSION(13, 0, 8):
                adev->smuio.funcs = &smuio_v13_0_6_funcs;
index aec35f7..795f66c 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef __SMUIO_V13_0_3_H__
 #define __SMUIO_V13_0_3_H__
 
+#include "soc15_common.h"
+
 extern const struct amdgpu_smuio_funcs smuio_v13_0_3_funcs;
 
 #endif /* __SMUIO_V13_0_3_H__ */