blob: e15e3029560cfd950995be4b4e8b1ce786e1757b [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[] = {
Felix Singer43b7f412022-03-07 04:34:52 +01008 PCI_DID_INTEL_CML_DTT,
9 PCI_DID_INTEL_TGL_DTT,
10 PCI_DID_INTEL_JSL_DTT,
11 PCI_DID_INTEL_ADL_DTT,
Subrata Banik92098172020-09-07 16:20:53 +053012 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,
Felix Singer43b7f412022-03-07 04:34:52 +010025 .vendor = PCI_VID_INTEL,
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060026 .devices = pci_device_ids,
27};