Commit 4365d2ed authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher

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

Expand support to get other board types like OAM or CEM.
Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cbad0dd1
...@@ -84,6 +84,12 @@ static enum amdgpu_pkg_type smuio_v13_0_3_get_pkg_type(struct amdgpu_device *ade ...@@ -84,6 +84,12 @@ static enum amdgpu_pkg_type smuio_v13_0_3_get_pkg_type(struct amdgpu_device *ade
* b0100 - b1111 - Reserved * b0100 - b1111 - Reserved
*/ */
switch (data & PKG_TYPE_MASK) { switch (data & PKG_TYPE_MASK) {
case 0x0:
pkg_type = AMDGPU_PKG_TYPE_CEM;
break;
case 0x1:
pkg_type = AMDGPU_PKG_TYPE_OAM;
break;
case 0x2: case 0x2:
pkg_type = AMDGPU_PKG_TYPE_APU; pkg_type = AMDGPU_PKG_TYPE_APU;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment