From ebf90e3a8823781cab7b24dbaf41a783c31f4b38 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 13 Jul 2024 02:56:28 +0200 Subject: soc/amd: add SoC-specific root_complex.c to SMM The PSP code introduced in a following patch needs both SoC-specific functions get_iohc_info and get_iohc_non_pci_mmio_regs to also be available in SMM, so add those compilation units to the corresponding target. Signed-off-by: Felix Held Change-Id: I4e32084b45f07131c80b642bc73d865fc57688a8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83445 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Matt DeVillier Reviewed-by: Varshit Pandya --- src/soc/amd/cezanne/Makefile.mk | 1 + src/soc/amd/genoa_poc/Makefile.mk | 1 + src/soc/amd/glinda/Makefile.mk | 1 + src/soc/amd/mendocino/Makefile.mk | 1 + src/soc/amd/phoenix/Makefile.mk | 1 + src/soc/amd/picasso/Makefile.mk | 1 + 6 files changed, 6 insertions(+) diff --git a/src/soc/amd/cezanne/Makefile.mk b/src/soc/amd/cezanne/Makefile.mk index 73be4aacb0..d4c7595f7f 100644 --- a/src/soc/amd/cezanne/Makefile.mk +++ b/src/soc/amd/cezanne/Makefile.mk @@ -30,6 +30,7 @@ ramstage-y += root_complex.c ramstage-y += xhci.c smm-y += gpio.c +smm-y += root_complex.c smm-y += smihandler.c smm-$(CONFIG_DEBUG_SMI) += uart.c diff --git a/src/soc/amd/genoa_poc/Makefile.mk b/src/soc/amd/genoa_poc/Makefile.mk index 94cee34960..bde8b1843f 100644 --- a/src/soc/amd/genoa_poc/Makefile.mk +++ b/src/soc/amd/genoa_poc/Makefile.mk @@ -21,6 +21,7 @@ ramstage-y += root_complex.c ramstage-y += smihandler.c ramstage-y += mca.c +smm-y += root_complex.c smm-y += smihandler.c smm-$(CONFIG_DEBUG_SMI) += uart.c diff --git a/src/soc/amd/glinda/Makefile.mk b/src/soc/amd/glinda/Makefile.mk index 1211c45f27..b3c5b82517 100644 --- a/src/soc/amd/glinda/Makefile.mk +++ b/src/soc/amd/glinda/Makefile.mk @@ -34,6 +34,7 @@ ramstage-y += root_complex.c ramstage-y += xhci.c smm-y += gpio.c +smm-y += root_complex.c smm-y += smihandler.c smm-$(CONFIG_DEBUG_SMI) += uart.c diff --git a/src/soc/amd/mendocino/Makefile.mk b/src/soc/amd/mendocino/Makefile.mk index 1b96ff124c..59db564b59 100644 --- a/src/soc/amd/mendocino/Makefile.mk +++ b/src/soc/amd/mendocino/Makefile.mk @@ -33,6 +33,7 @@ ramstage-y += xhci.c ramstage-y += manifest.c smm-y += gpio.c +smm-y += root_complex.c smm-y += smihandler.c smm-$(CONFIG_DEBUG_SMI) += uart.c diff --git a/src/soc/amd/phoenix/Makefile.mk b/src/soc/amd/phoenix/Makefile.mk index 03edd43db5..7e3982dcd1 100644 --- a/src/soc/amd/phoenix/Makefile.mk +++ b/src/soc/amd/phoenix/Makefile.mk @@ -38,6 +38,7 @@ ramstage-y += soc_util.c ramstage-y += xhci.c smm-y += gpio.c +smm-y += root_complex.c smm-y += smihandler.c smm-$(CONFIG_DEBUG_SMI) += uart.c diff --git a/src/soc/amd/picasso/Makefile.mk b/src/soc/amd/picasso/Makefile.mk index 3fcd47f825..b65d1c8651 100644 --- a/src/soc/amd/picasso/Makefile.mk +++ b/src/soc/amd/picasso/Makefile.mk @@ -38,6 +38,7 @@ ifeq ($(CONFIG_DEBUG_SMI),y) smm-y += uart.c endif smm-y += gpio.c +smm-y += root_complex.c CPPFLAGS_common += -I$(src)/soc/amd/picasso/include CPPFLAGS_common += -I$(src)/soc/amd/picasso/acpi -- cgit v1.2.3