summaryrefslogtreecommitdiff
path: root/src/device/pci_device.c
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2016-03-31 20:04:23 +0200
committerMartin Roth <martinroth@google.com>2017-02-04 23:01:37 +0100
commita5c2ac6256d0dae112b24c422d1270919acb6321 (patch)
tree4f887ff68858467e2bb03d316e85b696d758e8d9 /src/device/pci_device.c
parent8a06cc7ec8094325b9f710870f646d2a5cb9eb22 (diff)
x86/acpi: Add VFCT table
Add VFCT table to provide PCI Optiom Rom for AMD graphic devices. Useful for GNU Linux payloads and embedded dual GPU systems. Tested on Lenovo T500 with AMD RV635 as secondary gpu. Original Change-Id: I3b4a587c71e7165338cad3aca77ed5afa085a63c Signed-off-by: Patrick Rudolph <siro@das-labor.org> Change-Id: I4dc00005270240c048272b2e4f52ae46ba1c9422 Reviewed-on: https://review.coreboot.org/18192 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/device/pci_device.c')
-rw-r--r--src/device/pci_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 06294d00c7..b2e3c9ac64 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -735,6 +735,9 @@ struct device_operations default_pci_ops_dev = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
+ .write_acpi_tables = pci_rom_write_acpi_tables,
+#endif
.init = pci_dev_init,
.scan_bus = 0,
.enable = 0,