summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/data_fabric/data_fabric_helper.c4
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
};