Commit 04a69d20 authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher

drm/amdgpu: add psp_v13 support for yellow carp

This patch adds psp_v13 support for yellow carp.
Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1b386938
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
MODULE_FIRMWARE("amdgpu/aldebaran_sos.bin"); MODULE_FIRMWARE("amdgpu/aldebaran_sos.bin");
MODULE_FIRMWARE("amdgpu/aldebaran_ta.bin"); MODULE_FIRMWARE("amdgpu/aldebaran_ta.bin");
MODULE_FIRMWARE("amdgpu/yellow_carp_asd.bin");
MODULE_FIRMWARE("amdgpu/yellow_carp_toc.bin");
static int psp_v13_0_init_microcode(struct psp_context *psp) static int psp_v13_0_init_microcode(struct psp_context *psp)
{ {
...@@ -42,17 +44,34 @@ static int psp_v13_0_init_microcode(struct psp_context *psp) ...@@ -42,17 +44,34 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)
case CHIP_ALDEBARAN: case CHIP_ALDEBARAN:
chip_name = "aldebaran"; chip_name = "aldebaran";
break; break;
case CHIP_YELLOW_CARP:
chip_name = "yellow_carp";
break;
default:
BUG();
}
switch (adev->asic_type) {
case CHIP_ALDEBARAN:
err = psp_init_sos_microcode(psp, chip_name);
if (err)
return err;
err = psp_init_ta_microcode(&adev->psp, chip_name);
if (err)
return err;
break;
case CHIP_YELLOW_CARP:
err = psp_init_asd_microcode(psp, chip_name);
if (err)
return err;
err = psp_init_toc_microcode(psp, chip_name);
if (err)
return err;
break;
default: default:
BUG(); BUG();
} }
err = psp_init_sos_microcode(psp, chip_name); return 0;
if (err)
return err;
err = psp_init_ta_microcode(&adev->psp, chip_name);
return err;
} }
static bool psp_v13_0_is_sos_alive(struct psp_context *psp) static bool psp_v13_0_is_sos_alive(struct psp_context *psp)
......
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