This patch adds support for the Intel i82810 northbridge and various i82801xx
[coreboot.git] / src / southbridge / intel / i82801xx / i82801xx_usb.c
1 /*
2  * This file is part of the LinuxBIOS project.
3  *
4  * Copyright (C) 2007 Corey Osgood <corey.osgood@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #include <console/console.h>
22 #include <device/device.h>
23 #include <device/pci.h>
24 #include <device/pci_ids.h>
25 #include <device/pci_ops.h>
26 #include "i82801xx.h"
27
28 static void usb_init(struct device *dev)
29 {
30 /* TODO: Any init needed? Some ports have it, others don't */
31 }
32
33 static struct device_operations usb_ops  = {
34         .read_resources   = pci_dev_read_resources,
35         .set_resources    = pci_dev_set_resources,
36         .enable_resources = pci_dev_enable_resources,
37         .init             = usb_init,
38         .scan_bus         = 0,
39         .enable           = i82801xx_enable,
40 };
41
42 /* i82801aa */
43 static struct pci_driver i82801aa_usb_1 __pci_driver = {
44         .ops    = &usb_ops,
45         .vendor = PCI_VENDOR_ID_INTEL,
46         .device = 0x2412,
47 };
48
49 /* i82801ab */
50 static struct pci_driver i82801ab_usb_1 __pci_driver = {
51         .ops    = &usb_ops,
52         .vendor = PCI_VENDOR_ID_INTEL,
53         .device = 0x2422,
54 };
55
56 /* i82801ba */
57 static struct pci_driver i82801ba_usb_1 __pci_driver = {
58         .ops    = &usb_ops,
59         .vendor = PCI_VENDOR_ID_INTEL,
60         .device = 0x2442,
61 };
62
63 static struct pci_driver i82801ba_usb_2 __pci_driver = {
64         .ops    = &usb_ops,
65         .vendor = PCI_VENDOR_ID_INTEL,
66         .device = 0x2444,
67 };
68
69 /* i82801ca */
70 static struct pci_driver i82801ca_usb_1 __pci_driver = {
71         .ops    = &usb_ops,
72         .vendor = PCI_VENDOR_ID_INTEL,
73         .device = 0x2482,
74 };
75
76 static struct pci_driver i82801ca_usb_2 __pci_driver = {
77         .ops    = &usb_ops,
78         .vendor = PCI_VENDOR_ID_INTEL,
79         .device = 0x2484,
80 };
81
82 static struct pci_driver i82801ca_usb_3 __pci_driver = {
83         .ops    = &usb_ops,
84         .vendor = PCI_VENDOR_ID_INTEL,
85         .device = 0x2487,
86 };
87
88 /* i82801db and i82801dbm */
89 static struct pci_driver i82801db_usb_1 __pci_driver = {
90         .ops    = &usb_ops,
91         .vendor = PCI_VENDOR_ID_INTEL,
92         .device = 0x24c2,
93 };
94
95 static struct pci_driver i82801db_usb_2 __pci_driver = {
96         .ops    = &usb_ops,
97         .vendor = PCI_VENDOR_ID_INTEL,
98         .device = 0x24c4,
99 };
100
101 static struct pci_driver i82801db_usb_3 __pci_driver = {
102         .ops    = &usb_ops,
103         .vendor = PCI_VENDOR_ID_INTEL,
104         .device = 0x24c7,
105 };
106
107 /* i82801eb and i82801er */
108 static struct pci_driver i82801ex_usb_1 __pci_driver = {
109         .ops    = &usb_ops,
110         .vendor = PCI_VENDOR_ID_INTEL,
111         .device = 0x24d2,
112 };
113
114 static struct pci_driver i82801ex_usb_2 __pci_driver = {
115         .ops    = &usb_ops,
116         .vendor = PCI_VENDOR_ID_INTEL,
117         .device = 0x24d4,
118 };
119
120 static struct pci_driver i82801ex_usb_3 __pci_driver = {
121         .ops    = &usb_ops,
122         .vendor = PCI_VENDOR_ID_INTEL,
123         .device = 0x24d7,
124 };
125
126 static struct pci_driver i82801ex_usb_4 __pci_driver = {
127         .ops    = &usb_ops,
128         .vendor = PCI_VENDOR_ID_INTEL,
129         .device = 0x24de,
130 };