blob: 03ff797205a9d90a06340eabb662a932f2110a06 [file] [log] [blame]
Ronald G. Minnich182615d2004-08-24 16:20:46 +00001//2003 Copywright Tyan
2
3#include <console/console.h>
4#include <device/device.h>
5#include <device/pci.h>
6#include <device/pci_ids.h>
7#include <device/pci_ops.h>
8#include "i82801dbm.h"
9
10static void usb2_init(struct device *dev)
11{
Ronald G. Minnich182615d2004-08-24 16:20:46 +000012
Ronald G. Minniche6552bc2004-08-25 15:40:47 +000013
14#if 0
15 uint32_t cmd;
Ronald G. Minnich182615d2004-08-24 16:20:46 +000016 printk_debug("USB: Setting up controller.. ");
17 cmd = pci_read_config32(dev, PCI_COMMAND);
18 pci_write_config32(dev, PCI_COMMAND,
19 cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
20 PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE);
21
22
23 printk_debug("done.\n");
24#endif
25}
26
27static struct device_operations usb2_ops = {
28 .read_resources = pci_dev_read_resources,
29 .set_resources = pci_dev_set_resources,
30 .enable_resources = pci_dev_enable_resources,
31 .init = usb2_init,
32 .scan_bus = 0,
33 .enable = i82801dbm_enable,
34};
35
Stefan Reinauerf1cf1f72007-10-24 09:08:58 +000036static const struct pci_driver usb2_driver __pci_driver = {
Ronald G. Minnich182615d2004-08-24 16:20:46 +000037 .ops = &usb2_ops,
38 .vendor = PCI_VENDOR_ID_INTEL,
39 .device = PCI_DEVICE_ID_INTEL_82801ER_1D7,
40};