Add Intel/VIA usb-uhci support (#1098)
[openwrt/svn-archive/archive.git] / package / kernel / modules / usb.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 USBMENU:=USB Support
10
11 define KernelPackage/usb-core
12 TITLE:=Support for USB
13 DESCRIPTION:=Kernel support for USB
14 DEPENDS:=@USB_SUPPORT
15 KCONFIG:=$(CONFIG_USB)
16 SUBMENU:=$(USBMENU)
17 AUTOLOAD:=$(call AutoLoad,20,usbcore)
18 endef
19
20 define KernelPackage/usb-core/2.4
21 FILES:=$(MODULES_DIR)/kernel/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
22 endef
23
24 define KernelPackage/usb-core/2.6
25 FILES:=$(MODULES_DIR)/kernel/drivers/usb/core/usbcore.$(LINUX_KMOD_SUFFIX)
26 endef
27 $(eval $(call KernelPackage,usb-core))
28
29
30 define KernelPackage/usb-uhci
31 TITLE:=Support for UHCI controllers
32 DESCRIPTION:=Kernel support for USB UHCI controllers
33 DEPENDS:=kmod-usb-core
34 SUBMENU:=$(USBMENU)
35 endef
36
37 define KernelPackage/usb-uhci/2.4
38 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/uhci.o
39 KCONFIG:=$(CONFIG_USB_UHCI_ALT)
40 AUTOLOAD:=$(call AutoLoad,50,uhci)
41 endef
42
43 define KernelPackage/usb-uhci/2.6
44 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd.ko
45 KCONFIG:=$(CONFIG_USB_UHCI_HCD)
46 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd)
47 endef
48 $(eval $(call KernelPackage,usb-uhci))
49
50 define KernelPackage/usb-uhci-iv
51 TITLE:=Support for Intel/VIA UHCI controllers
52 DESCRIPTION:=Kernel support for Intel/VIA USB UHCI controllers
53 DEPENDS:=kmod-usb-core
54 SUBMENU:=$(USBMENU)
55 endef
56
57 define KernelPackage/usb-uhci-iv/2.4
58 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/usb-uhci.$(LINUX_KMOD_SUFFIX)
59 KCONFIG:=$(CONFIG_USB_UHCI)
60 AUTOLOAD:=$(call AutoLoad,50,usb-uhci)
61 endef
62 $(eval $(call KernelPackage,usb-uhci-iv))
63
64 define KernelPackage/usb-ohci
65 TITLE:=Support for OHCI controllers
66 DESCRIPTION:=Kernel support for USB OHCI controllers
67 DEPENDS:=kmod-usb-core
68 SUBMENU:=$(USBMENU)
69 endef
70
71 define KernelPackage/usb-ohci/2.4
72 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/usb-ohci.o
73 KCONFIG:=$(CONFIG_USB_OHCI)
74 AUTOLOAD:=$(call AutoLoad,50,usb-ohci)
75 endef
76
77 define KernelPackage/usb-ohci/2.6
78 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd.ko
79 KCONFIG:=$(CONFIG_USB_OHCI_HCD)
80 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd)
81 endef
82 $(eval $(call KernelPackage,usb-ohci))
83
84 define KernelPackage/usb2
85 TITLE:=Support for USB2 controllers
86 DESCRIPTION:=Kernel support for USB2 (EHCI) controllers
87 DEPENDS:=kmod-usb-core
88 KCONFIG:=$(CONFIG_USB)
89 SUBMENU:=$(USBMENU)
90 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd.$(LINUX_KMOD_SUFFIX)
91 KCONFIG:=$(CONFIG_USB_EHCI_HCD)
92 AUTOLOAD:=$(call AutoLoad,50,ehci-hcd)
93 endef
94 $(eval $(call KernelPackage,usb2))
95
96
97 define usbdep
98 SUBMENU:=$(USBMENU)
99 DEPENDS:=kmod-usb-core $(1)
100 endef
101
102
103 define KernelPackage/usb-acm
104 $(call usbdep,)
105 TITLE:=Support for modems/isdn controllers
106 DESCRIPTION:=Kernel support for USB ACM devices (modems/isdn controllers)
107 KCONFIG:=$(CONFIG_USB_ACM)
108 endef
109
110 define KernelPackage/usb-acm/2.4
111 FILES:=$(MODULES_DIR)/kernel/drivers/usb/acm.o
112 AUTOLOAD:=$(call AutoLoad,60,acm)
113 endef
114
115 define KernelPackage/usb-acm/2.6
116 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm.ko
117 AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
118 endef
119 $(eval $(call KernelPackage,usb-acm))
120
121
122 define KernelPackage/usb-audio
123 $(call usbdep,+kmod-soundcore)
124 TITLE:=Support for audio devices
125 DESCRIPTION:=Kernel support for USB audio devices
126 KCONFIG:=$(CONFIG_USB_AUDIO)
127 AUTOLOAD:=$(call AutoLoad,60,audio)
128 endef
129
130 define KernelPackage/usb-audio/2.4
131 FILES:=$(MODULES_DIR)/kernel/drivers/usb/audio.o
132 endef
133
134 define KernelPackage/usb-audio/2.6
135 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/audio.ko
136 endef
137 $(eval $(call KernelPackage,usb-audio))
138
139
140 define KernelPackage/usb-printer
141 $(call usbdep,)
142 TITLE:=Support for printers
143 DESCRIPTION:=Kernel support for USB printers
144 KCONFIG:=$(CONFIG_USB_PRINTER)
145 endef
146
147 define KernelPackage/usb-printer/2.4
148 FILES:=$(MODULES_DIR)/kernel/drivers/usb/printer.o
149 AUTOLOAD:=$(call AutoLoad,60,printer)
150 endef
151
152 define KernelPackage/usb-printer/2.6
153 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/usblp.ko
154 AUTOLOAD:=$(call AutoLoad,60,usblp)
155 endef
156 $(eval $(call KernelPackage,usb-printer))
157
158
159 define KernelPackage/usb-serial
160 $(call usbdep,)
161 TITLE:=Support for USB-to-Serial converters
162 DESCRIPTION:=Kernel support for USB-to-Serial converters
163 KCONFIG:=$(CONFIG_USB_SERIAL)
164 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/usbserial.$(LINUX_KMOD_SUFFIX)
165 AUTOLOAD:=$(call AutoLoad,60,usbserial)
166 endef
167 $(eval $(call KernelPackage,usb-serial))
168
169
170 define KernelPackage/usb-serial-belkin
171 TITLE:=Support for Belkin devices
172 DESCRIPTION:=Kernel support for Belkin USB-to-Serial converters
173 DEPENDS:=kmod-usb-serial
174 SUBMENU:=$(USBMENU)
175 KCONFIG:=$(CONFIG_USB_SERIAL_BELKIN)
176 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
177 AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
178 endef
179 $(eval $(call KernelPackage,usb-serial-belkin))
180
181
182 define KernelPackage/usb-serial-ftdi
183 TITLE:=Support for FTDI devices
184 DESCRIPTION:=Kernel support for FTDI USB-to-Serial converters
185 DEPENDS:=kmod-usb-serial
186 SUBMENU:=$(USBMENU)
187 KCONFIG:=$(CONFIG_USB_SERIAL_FTDI_SIO)
188 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.$(LINUX_KMOD_SUFFIX)
189 AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
190 endef
191 $(eval $(call KernelPackage,usb-serial-ftdi))
192
193
194 define KernelPackage/usb-serial-mct
195 TITLE:=Support for Magic Control Tech. devices
196 DESCRIPTION:=Kernel support for Magic Control Technology USB-to-Serial converters
197 DEPENDS:=kmod-usb-serial
198 SUBMENU:=$(USBMENU)
199 KCONFIG:=$(CONFIG_USB_SERIAL_MCT_U232)
200 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.$(LINUX_KMOD_SUFFIX)
201 AUTOLOAD:=$(call AutoLoad,65,mct_u232)
202 endef
203 $(eval $(call KernelPackage,usb-serial-mct))
204
205 define KernelPackage/usb-serial-pl2303
206 TITLE:=Support for Prolific PL2303 devices
207 DESCRIPTION:=Kernel support for Prolific PL2303 USB-to-Serial converters
208 DEPENDS:=kmod-usb-serial
209 SUBMENU:=$(USBMENU)
210 KCONFIG:=$(CONFIG_USB_SERIAL_PL2303)
211 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.$(LINUX_KMOD_SUFFIX)
212 AUTOLOAD:=$(call AutoLoad,65,pl2303)
213 endef
214 $(eval $(call KernelPackage,usb-serial-pl2303))
215
216
217 define KernelPackage/usb-serial-visor
218 TITLE:=Support for Handspring Visor devices
219 DESCRIPTION:=Kernel support for Handspring Visor PDAs
220 DEPENDS:=kmod-usb-serial
221 SUBMENU:=$(USBMENU)
222 KCONFIG:=$(CONFIG_USB_SERIAL_VISOR)
223 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/visor.$(LINUX_KMOD_SUFFIX)
224 AUTOLOAD:=$(call AutoLoad,65,visor)
225 endef
226 $(eval $(call KernelPackage,usb-serial-visor))
227
228
229 define KernelPackage/usb-storage
230 $(call usbdep,)
231 TITLE:=USB Storage support
232 DESCRIPTION:=Kernel support for USB Mass Storage devices
233 KCONFIG:=$(CONFIG_USB_STORAGE)
234 FILES:= \
235 $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
236 $(MODULES_DIR)/kernel/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX) \
237 $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage.$(LINUX_KMOD_SUFFIX)
238 AUTOLOAD:=$(call AutoLoad,60,scsi_mod sd_mod usb-storage)
239 endef
240 $(eval $(call KernelPackage,usb-storage))
241
242
243
244 define KernelPackage/usb-speedtouch
245 $(call usbdep,@LINUX_2_6 kmod-atm)
246 TITLE:=Support for SpeedTouch ADSL modems
247 DESCRIPTION:=Kernel support for SpeedTouch USB ADSL modems
248 KCONFIG:=$(CONFIG_USB_SPEEDTOUCH)
249 FILES:= \
250 $(MODULES_DIR)/kernel/drivers/usb/atm/usbatm.$(LINUX_KMOD_SUFFIX) \
251 $(MODULES_DIR)/kernel/drivers/usb/atm/speedtch.$(LINUX_KMOD_SUFFIX)
252 AUTOLOAD:=$(call AutoLoad,70,usbatm speedtch)
253 endef
254 $(eval $(call KernelPackage,usb-speedtouch))
255
256
257 define KernelPackage/usb-pwc
258 $(call usbdep,+kmod-videodev)
259 TITLE:=Philips WebCam driver
260 DESCRIPTION:=Kernel modules for supporting Philips WebCam USB devices
261 KCONFIG:=$(CONFIG_USB_PWC)
262 AUTOLOAD:=$(call AutoLoad,70,pwc)
263 endef
264
265 define KernelPackage/usb-pwc/2.4
266 FILES:=$(MODULES_DIR)/kernel/drivers/usb/pwc.$(LINUX_KMOD_SUFFIX)
267 endef
268
269 $(eval $(call KernelPackage,usb-pwc))
270
271
272
273