Factor out acpi_add_fsp_tables from the soc_acpi_write_tables function and move the remaining parts of the soc_acpi_write_tables function to the SoC's acpi.c. This aligns the other family 17h/19h SoCs more with Genoa and only leaves the FSP-specific code in agesa_acpi.c which will be made common in a following patch. I decided against also renaming agesa_acpi.c to acpi_fsp.c, since that would have made the diff less readable and the files get deleted in a following patch anyway. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ia87ac0e77c5e673e694703b85a4bab85a34b980e Reviewed-on: https://review.coreboot.org/c/coreboot/+/80224 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
18 lines
420 B
C
18 lines
420 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/* TODO: Make common? */
|
|
|
|
#include <acpi/acpi.h>
|
|
#include <amdblocks/acpi.h>
|
|
#include <FspGuids.h>
|
|
#include <types.h>
|
|
|
|
unsigned long acpi_add_fsp_tables(unsigned long current, acpi_rsdp_t *rsdp)
|
|
{
|
|
/* add ALIB SSDT from HOB */
|
|
current = acpi_align_current(current);
|
|
current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current);
|
|
|
|
return current;
|
|
}
|