blob: 6b4a19a3dde2be6bd8fe321009c514916a0c62c4 [file] [log] [blame]
Lee Leahyb0005132015-05-12 18:19:47 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Google Inc.
Lee Leahy1d14b3e2015-05-12 18:23:27 -07005 * Copyright (C) 2015 Intel Corporation.
Lee Leahyb0005132015-05-12 18:19:47 -07006 *
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 Leahyb0005132015-05-12 18:19:47 -070015 */
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 Leahyb0005132015-05-12 18:19:47 -070027static 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 Leahy1d14b3e2015-05-12 18:23:27 -070031 .ops_pci = &soc_pci_ops,
Lee Leahyb0005132015-05-12 18:19:47 -070032};
33
34static const unsigned short pci_device_ids[] = {
Lee Leahy1d14b3e2015-05-12 18:23:27 -070035 0x9d2f, /* SunRisePoint LP */
Lee Leahyb0005132015-05-12 18:19:47 -070036 0
37};
38
39static 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};