drm/amdgpu/psp: convert ucode id to psp ucode id
Convert ucode id to the corresponding psp ucode id. Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -891,6 +891,12 @@ static int psp_get_fw_type(struct amdgpu_firmware_info *ucode,
|
|||||||
case AMDGPU_UCODE_ID_DMCU_INTV:
|
case AMDGPU_UCODE_ID_DMCU_INTV:
|
||||||
*type = GFX_FW_TYPE_DMCU_ISR;
|
*type = GFX_FW_TYPE_DMCU_ISR;
|
||||||
break;
|
break;
|
||||||
|
case AMDGPU_UCODE_ID_VCN0_RAM:
|
||||||
|
*type = GFX_FW_TYPE_VCN0_RAM;
|
||||||
|
break;
|
||||||
|
case AMDGPU_UCODE_ID_VCN1_RAM:
|
||||||
|
*type = GFX_FW_TYPE_VCN1_RAM;
|
||||||
|
break;
|
||||||
case AMDGPU_UCODE_ID_MAXIMUM:
|
case AMDGPU_UCODE_ID_MAXIMUM:
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user