blob: 58afd744f26ffce07a10165bee26f2c8f92c5536 [file] [log] [blame]
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -06001/* 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
7static const unsigned short pci_device_ids[] = {
Edward O'Callaghanb656e9b2020-08-28 19:28:01 +10008 PCI_DEVICE_ID_INTEL_CML_DTT,
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -06009 PCI_DEVICE_ID_INTEL_TGL_DTT,
Tim Wawrzynczak0c0bcd42020-07-13 16:07:12 -060010 PCI_DEVICE_ID_INTEL_JSL_DTT,
Subrata Banik92098172020-09-07 16:20:53 +053011 PCI_DEVICE_ID_INTEL_ADL_DTT,
12 0
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060013};
14
15static struct device_operations dptf_dev_ops = {
16 .read_resources = pci_dev_read_resources,
17 .set_resources = pci_dev_set_resources,
18 .enable_resources = pci_dev_enable_resources,
19 .scan_bus = scan_generic_bus,
20 .ops_pci = &pci_dev_ops_pci,
21};
22
23static const struct pci_driver pch_dptf __pci_driver = {
24 .ops = &dptf_dev_ops,
25 .vendor = PCI_VENDOR_ID_INTEL,
26 .devices = pci_device_ids,
27};