diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-10-13 21:33:55 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-10-16 14:20:35 +0000 |
commit | 045251e4515686ffeff0fa0521cf90eaf32b4d7f (patch) | |
tree | 73b863bb0dcd1d8a7f10f103b60a70677a3e3d7f /src/soc | |
parent | 060b27da6a8c6d9d4e2f203c2dc38c4ce34b594d (diff) |
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>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/common/block/data_fabric/data_fabric_helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c index 0426af882c..7a6e615df3 100644 --- a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c +++ b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c @@ -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) { 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); return NULL; } +#endif struct device_operations amd_data_fabric_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, +#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = data_fabric_acpi_name, .acpi_fill_ssdt = acpi_device_write_pci_dev, +#endif }; |