Subrata Banik | 23ccb0d | 2017-04-24 11:28:40 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Google Inc. |
| 5 | * Copyright (C) 2015-2017 Intel Corporation. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include <arch/io.h> |
| 18 | #include <device/device.h> |
| 19 | #include <device/pci.h> |
| 20 | #include <device/pci_ids.h> |
| 21 | #include <intelblocks/xdci.h> |
| 22 | |
| 23 | __attribute__((weak)) void soc_xdci_init(struct device *dev) { /* no-op */ } |
| 24 | |
| 25 | static struct device_operations usb_xdci_ops = { |
| 26 | .read_resources = &pci_dev_read_resources, |
| 27 | .set_resources = &pci_dev_set_resources, |
| 28 | .enable_resources = &pci_dev_enable_resources, |
| 29 | .init = soc_xdci_init, |
| 30 | }; |
| 31 | |
| 32 | static const unsigned short pci_device_ids[] = { |
Aaron Durbin | f27d98f | 2017-05-05 16:52:52 -0500 | [diff] [blame^] | 33 | PCI_DEVICE_ID_INTEL_APL_XDCI, |
Subrata Banik | 23ccb0d | 2017-04-24 11:28:40 +0530 | [diff] [blame] | 34 | PCI_DEVICE_ID_INTEL_GLK_XDCI, |
| 35 | PCI_DEVICE_ID_INTEL_SPT_LP_XDCI, |
| 36 | 0 |
| 37 | }; |
| 38 | |
| 39 | static const struct pci_driver pch_usb_xdci __pci_driver = { |
| 40 | .ops = &usb_xdci_ops, |
| 41 | .vendor = PCI_VENDOR_ID_INTEL, |
| 42 | .devices = pci_device_ids, |
| 43 | }; |