diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2016-11-20 23:56:59 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2016-11-22 18:30:16 +0100 |
commit | 8bf3f7aef3fcb2d531b5114329e8f0a23f84eeb1 (patch) | |
tree | e35029a8284a40bff06566f7cd58824fbab6147b /src/southbridge/via | |
parent | 1de93a2947125d89a4d4fcf5e3572892f257900f (diff) |
via/k8t890: Compose a list of PCI IDs
Change-Id: Ic474e17b70d64b63356a0ba7dd1649e5a6ff3a30
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/17549
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/southbridge/via')
-rw-r--r-- | src/southbridge/via/k8t890/pcie.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/src/southbridge/via/k8t890/pcie.c b/src/southbridge/via/k8t890/pcie.c index cc39f57970..d93fd17516 100644 --- a/src/southbridge/via/k8t890/pcie.c +++ b/src/southbridge/via/k8t890/pcie.c @@ -147,26 +147,16 @@ static const struct pci_driver northbridge_driver __pci_driver = { .device = PCI_DEVICE_ID_VIA_K8T890CE_PEG, }; -static const struct pci_driver pcie_drvd3f0 __pci_driver = { - .ops = &pcie_ops, - .vendor = PCI_VENDOR_ID_VIA, - .device = PCI_DEVICE_ID_VIA_K8T890CE_PEX0, -}; - -static const struct pci_driver pcie_drvd3f1 __pci_driver = { - .ops = &pcie_ops, - .vendor = PCI_VENDOR_ID_VIA, - .device = PCI_DEVICE_ID_VIA_K8T890CE_PEX1, +static const unsigned short pci_device_ids[] = { + PCI_DEVICE_ID_VIA_K8T890CE_PEX0, + PCI_DEVICE_ID_VIA_K8T890CE_PEX1, + PCI_DEVICE_ID_VIA_K8T890CE_PEX2, + PCI_DEVICE_ID_VIA_K8T890CE_PEX3, + 0, }; -static const struct pci_driver pcie_drvd3f2 __pci_driver = { - .ops = &pcie_ops, - .vendor = PCI_VENDOR_ID_VIA, - .device = PCI_DEVICE_ID_VIA_K8T890CE_PEX2, -}; - -static const struct pci_driver pcie_drvd3f3 __pci_driver = { - .ops = &pcie_ops, - .vendor = PCI_VENDOR_ID_VIA, - .device = PCI_DEVICE_ID_VIA_K8T890CE_PEX3, +static const struct pci_driver pex_driver __pci_driver = { + .ops = &pcie_ops, + .vendor = PCI_VENDOR_ID_VIA, + .devices = pci_device_ids, }; |