Tim Wawrzynczak | c5316ec | 2020-05-29 15:20:56 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
| 6 | |
| 7 | static const unsigned short pci_device_ids[] = { |
Edward O'Callaghan | b656e9b | 2020-08-28 19:28:01 +1000 | [diff] [blame] | 8 | PCI_DEVICE_ID_INTEL_CML_DTT, |
Tim Wawrzynczak | c5316ec | 2020-05-29 15:20:56 -0600 | [diff] [blame] | 9 | PCI_DEVICE_ID_INTEL_TGL_DTT, |
Tim Wawrzynczak | 0c0bcd4 | 2020-07-13 16:07:12 -0600 | [diff] [blame] | 10 | PCI_DEVICE_ID_INTEL_JSL_DTT, |
Tim Wawrzynczak | c5316ec | 2020-05-29 15:20:56 -0600 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | static struct device_operations dptf_dev_ops = { |
| 14 | .read_resources = pci_dev_read_resources, |
| 15 | .set_resources = pci_dev_set_resources, |
| 16 | .enable_resources = pci_dev_enable_resources, |
| 17 | .scan_bus = scan_generic_bus, |
| 18 | .ops_pci = &pci_dev_ops_pci, |
| 19 | }; |
| 20 | |
| 21 | static const struct pci_driver pch_dptf __pci_driver = { |
| 22 | .ops = &dptf_dev_ops, |
| 23 | .vendor = PCI_VENDOR_ID_INTEL, |
| 24 | .devices = pci_device_ids, |
| 25 | }; |