Ever wondered where those "setting incorrect section attributes for
[coreboot.git] / src / southbridge / intel / i82801dbm / i82801dbm_usb2.c
1 //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
10 static void usb2_init(struct device *dev)
11 {
12
13
14 #if 0  
15   uint32_t cmd;
16         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
27 static 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
36 static const struct pci_driver usb2_driver __pci_driver = {
37         .ops    = &usb2_ops,
38         .vendor = PCI_VENDOR_ID_INTEL,
39         .device = PCI_DEVICE_ID_INTEL_82801ER_1D7,
40 };