From 97e8ef4c708f5c19d6e58d42db01d685829e4ce1 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 2 Aug 2024 02:11:24 +0200 Subject: soc/amd: add PSP SMI handler stub The PSP can send SMIs to the x86 side to have the SMI handler service requests from the PSP. This commit adds an empty PSP SMI handler; the actual implementation is added in later patches to keep the patches relatively small. This patch is a slightly modified version of parts of CB:65523. Test=When selecting SOC_AMD_COMMON_BLOCK_PSP_SMI, Mandolin still builds Signed-off-by: Felix Held Signed-off-by: Ritul Guru Change-Id: I65989ff529d728cd9d2cd60b384295417bef77ad Reviewed-on: https://review.coreboot.org/c/coreboot/+/83739 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/soc/amd/phoenix/smihandler.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/soc/amd/phoenix/smihandler.c') diff --git a/src/soc/amd/phoenix/smihandler.c b/src/soc/amd/phoenix/smihandler.c index a0099cfe94..454dadd719 100644 --- a/src/soc/amd/phoenix/smihandler.c +++ b/src/soc/amd/phoenix/smihandler.c @@ -112,6 +112,7 @@ static void fch_slp_typ_handler(void) static const struct smi_sources_t smi_sources[] = { { .type = SMITYPE_SMI_CMD_PORT, .handler = fch_apmc_smi_handler }, { .type = SMITYPE_SLP_TYP, .handler = fch_slp_typ_handler}, + { .type = SMITYPE_PSP, .handler = psp_smi_handler }, }; void *get_smi_source_handler(int source) -- cgit v1.2.3