Skip to content

Commit edc8c81

Browse files
John Clementsalexdeucher
authored andcommitted
drm/amdgpu: Added PSP13 BL loading support for additional drivers
Added BL loading support for soc/intf/dbg drivers Signed-off-by: John Clements <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8abadab commit edc8c81

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/gpu/drm/amd/amdgpu/psp_v13_0.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,21 @@ static int psp_v13_0_bootloader_load_sysdrv(struct psp_context *psp)
162162
return psp_v13_0_bootloader_load_component(psp, &psp->sys, PSP_BL__LOAD_SYSDRV);
163163
}
164164

165+
static int psp_v13_0_bootloader_load_soc_drv(struct psp_context *psp)
166+
{
167+
return psp_v13_0_bootloader_load_component(psp, &psp->soc_drv, PSP_BL__LOAD_SOCDRV);
168+
}
169+
170+
static int psp_v13_0_bootloader_load_intf_drv(struct psp_context *psp)
171+
{
172+
return psp_v13_0_bootloader_load_component(psp, &psp->intf_drv, PSP_BL__LOAD_INTFDRV);
173+
}
174+
175+
static int psp_v13_0_bootloader_load_dbg_drv(struct psp_context *psp)
176+
{
177+
return psp_v13_0_bootloader_load_component(psp, &psp->dbg_drv, PSP_BL__LOAD_DBGDRV);
178+
}
179+
165180
static int psp_v13_0_bootloader_load_sos(struct psp_context *psp)
166181
{
167182
int ret;
@@ -426,6 +441,9 @@ static const struct psp_funcs psp_v13_0_funcs = {
426441
.init_microcode = psp_v13_0_init_microcode,
427442
.bootloader_load_kdb = psp_v13_0_bootloader_load_kdb,
428443
.bootloader_load_sysdrv = psp_v13_0_bootloader_load_sysdrv,
444+
.bootloader_load_soc_drv = psp_v13_0_bootloader_load_soc_drv,
445+
.bootloader_load_intf_drv = psp_v13_0_bootloader_load_intf_drv,
446+
.bootloader_load_dbg_drv = psp_v13_0_bootloader_load_dbg_drv,
429447
.bootloader_load_sos = psp_v13_0_bootloader_load_sos,
430448
.ring_init = psp_v13_0_ring_init,
431449
.ring_create = psp_v13_0_ring_create,

0 commit comments

Comments
 (0)