soc/amd: move acpi_add_fsp_tables implementation to common FSP code
Since the acpi_add_fsp_tables implementation is identical for all SoCs, factor it out and move it to the common AMD FSP code. Also guard the acpi_add_fsp_tables call in soc_acpi_write_tables with if (CONFIG(PLATFORM_USES_FSP2_0)) to properly handle the FSP dependency. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I8917a346f586e77b3b3278c73aed8cf61f3c9e6a Reviewed-on: https://review.coreboot.org/c/coreboot/+/80225 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -66,7 +66,8 @@ unsigned long soc_acpi_write_tables(const struct device *device, unsigned long c
|
||||
/* IVRS */
|
||||
current = acpi_add_ivrs_table(current, rsdp);
|
||||
|
||||
current = acpi_add_fsp_tables(current, rsdp);
|
||||
if (CONFIG(PLATFORM_USES_FSP2_0))
|
||||
current = acpi_add_fsp_tables(current, rsdp);
|
||||
|
||||
return current;
|
||||
}
|
||||
|
Reference in New Issue
Block a user