soc/amd: move common pci_domain_fill_ssdt implementation to acpi/
Even though it has an 'amd_' prefix, the amd_pci_domain_fill_ssdt implementation doesn't contain any AMD-specific code and can also be used by other SoCs. So factor it out, move the implementation to src/acpi/acpigen_pci_root_resource_producer.c, and rename it to pci_domain_fill_ssdt. When a SoC now assigns pci_domain_fill_ssdt to its domain operation's acpi_fill_ssdt function pointer, the PCI domain resource producer information will be added to the SSDT. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I7bd8568cf0b7051c74adbedfe0e416a0938ccb99 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80464 Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> 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:
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <acpi/acpigen_pci.h>
|
||||
#include <amdblocks/acpi.h>
|
||||
#include <amdblocks/data_fabric.h>
|
||||
#include <amdblocks/fsp.h>
|
||||
@@ -32,7 +33,7 @@ struct device_operations mendocino_pci_domain_ops = {
|
||||
.scan_bus = amd_pci_domain_scan_bus,
|
||||
.init = amd_pci_domain_init,
|
||||
.acpi_name = soc_acpi_name,
|
||||
.acpi_fill_ssdt = amd_pci_domain_fill_ssdt,
|
||||
.acpi_fill_ssdt = pci_domain_fill_ssdt,
|
||||
};
|
||||
|
||||
static void soc_init(void *chip_info)
|
||||
|
Reference in New Issue
Block a user