soc/amd/common/data_fabric_helper: add pre-processor guards for ACPI
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Iec6e05bbe9fad7d78002560b78169dc293294af6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78341 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
This commit is contained in:
parent
060b27da6a
commit
045251e451
|
@ -62,6 +62,7 @@ void data_fabric_print_mmio_conf(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
static const char *data_fabric_acpi_name(const struct device *dev)
|
static const char *data_fabric_acpi_name(const struct device *dev)
|
||||||
{
|
{
|
||||||
const char *df_acpi_names[8] = {
|
const char *df_acpi_names[8] = {
|
||||||
|
@ -82,10 +83,13 @@ static const char *data_fabric_acpi_name(const struct device *dev)
|
||||||
printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
|
printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct device_operations amd_data_fabric_ops = {
|
struct device_operations amd_data_fabric_ops = {
|
||||||
.read_resources = noop_read_resources,
|
.read_resources = noop_read_resources,
|
||||||
.set_resources = noop_set_resources,
|
.set_resources = noop_set_resources,
|
||||||
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
.acpi_name = data_fabric_acpi_name,
|
.acpi_name = data_fabric_acpi_name,
|
||||||
.acpi_fill_ssdt = acpi_device_write_pci_dev,
|
.acpi_fill_ssdt = acpi_device_write_pci_dev,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue