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

drm/amdgpu: Add more smuio v13.0.3 package types

Expand support to get other board types like OAM or CEM.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lijo Lazar and committed by
Alex Deucher
4365d2ed cbad0dd1

+6
+6
drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c
··· 84 84 * b0100 - b1111 - Reserved 85 85 */ 86 86 switch (data & PKG_TYPE_MASK) { 87 + case 0x0: 88 + pkg_type = AMDGPU_PKG_TYPE_CEM; 89 + break; 90 + case 0x1: 91 + pkg_type = AMDGPU_PKG_TYPE_OAM; 92 + break; 87 93 case 0x2: 88 94 pkg_type = AMDGPU_PKG_TYPE_APU; 89 95 break;