blob: ca13e92995a4d02d0d8da48ffeda3b74b6ed81fc [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>
Stefan Reinauer138be832010-02-27 01:50:21 +00008#include "i82801dx.h"
Ronald G. Minnich182615d2004-08-24 16:20:46 +00009
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,
Stefan Reinauer138be832010-02-27 01:50:21 +000033 .enable = i82801dx_enable,
Ronald G. Minnich182615d2004-08-24 16:20:46 +000034};
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,
Uwe Hermanna29ec062007-11-04 03:21:37 +000039 .device = PCI_DEVICE_ID_INTEL_82801DBM_EHCI,
Ronald G. Minnich182615d2004-08-24 16:20:46 +000040};