Commit e11fa1b6 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher

drm/amdgpu: add psp support for raven2

Modified for using raven2_asd.bin to replace raven_asd.bin for raven2
Signed-off-by: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8b47cc9b
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
MODULE_FIRMWARE("amdgpu/raven_asd.bin"); MODULE_FIRMWARE("amdgpu/raven_asd.bin");
MODULE_FIRMWARE("amdgpu/picasso_asd.bin"); MODULE_FIRMWARE("amdgpu/picasso_asd.bin");
MODULE_FIRMWARE("amdgpu/raven2_asd.bin");
static int static int
psp_v10_0_get_fw_type(struct amdgpu_firmware_info *ucode, enum psp_gfx_fw_type *type) psp_v10_0_get_fw_type(struct amdgpu_firmware_info *ucode, enum psp_gfx_fw_type *type)
...@@ -118,7 +119,10 @@ static int psp_v10_0_init_microcode(struct psp_context *psp) ...@@ -118,7 +119,10 @@ static int psp_v10_0_init_microcode(struct psp_context *psp)
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_RAVEN: case CHIP_RAVEN:
chip_name = "raven"; if (adev->rev_id >= 0x8)
chip_name = "raven2";
else
chip_name = "raven";
break; break;
case CHIP_PICASSO: case CHIP_PICASSO:
chip_name = "picasso"; chip_name = "picasso";
......
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