Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Google Inc. |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 5 | * Copyright (C) 2015 Intel Corporation. |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 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. |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <console/console.h> |
| 18 | #include <delay.h> |
| 19 | #include <device/device.h> |
| 20 | #include <device/pci.h> |
| 21 | #include <device/pci_ids.h> |
| 22 | #include <arch/io.h> |
| 23 | #include <soc/ramstage.h> |
| 24 | #include <soc/xhci.h> |
| 25 | #include <soc/cpu.h> |
| 26 | |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 27 | static struct device_operations usb_xhci_ops = { |
| 28 | .read_resources = &pci_dev_read_resources, |
| 29 | .set_resources = &pci_dev_set_resources, |
| 30 | .enable_resources = &pci_dev_enable_resources, |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 31 | .ops_pci = &soc_pci_ops, |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | static const unsigned short pci_device_ids[] = { |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 35 | 0x9d2f, /* SunRisePoint LP */ |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 36 | 0 |
| 37 | }; |
| 38 | |
| 39 | static const struct pci_driver pch_usb_xhci __pci_driver = { |
| 40 | .ops = &usb_xhci_ops, |
| 41 | .vendor = PCI_VENDOR_ID_INTEL, |
| 42 | .devices = pci_device_ids, |
| 43 | }; |