Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: init smuio funcs for smuio v13_0_3

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>

authored by

Hawking Zhang and committed by
Alex Deucher
6b7ec18b 3d2ea552

+6
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
··· 82 82 #include "smuio_v11_0.h" 83 83 #include "smuio_v11_0_6.h" 84 84 #include "smuio_v13_0.h" 85 + #include "smuio_v13_0_3.h" 85 86 #include "smuio_v13_0_6.h" 86 87 87 88 #define FIRMWARE_IP_DISCOVERY "amdgpu/ip_discovery.bin" ··· 2382 2381 break; 2383 2382 case IP_VERSION(13, 0, 2): 2384 2383 adev->smuio.funcs = &smuio_v13_0_funcs; 2384 + break; 2385 + case IP_VERSION(13, 0, 3): 2386 + adev->smuio.funcs = &smuio_v13_0_3_funcs; 2385 2387 break; 2386 2388 case IP_VERSION(13, 0, 6): 2387 2389 case IP_VERSION(13, 0, 8):
+2
drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.h
··· 23 23 #ifndef __SMUIO_V13_0_3_H__ 24 24 #define __SMUIO_V13_0_3_H__ 25 25 26 + #include "soc15_common.h" 27 + 26 28 extern const struct amdgpu_smuio_funcs smuio_v13_0_3_funcs; 27 29 28 30 #endif /* __SMUIO_V13_0_3_H__ */