ab7eebee312817a9e88fc56dfb4d7cdf017c14bc
[openwrt/svn-archive/archive.git] / package / kernel / modules / usb.mk
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 USB_MENU:=USB Support
9
10 USBNET_DIR:=net/usb
11 USBHID_DIR?=hid/usbhid
12 USBINPUT_DIR?=input/misc
13
14 define KernelPackage/usb-core
15 SUBMENU:=$(USB_MENU)
16 TITLE:=Support for USB
17 DEPENDS:=@USB_SUPPORT +kmod-nls-base
18 KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
19 FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko
20 AUTOLOAD:=$(call AutoLoad,20,usbcore,1)
21 endef
22
23 define KernelPackage/usb-core/description
24 Kernel support for USB
25 endef
26
27 $(eval $(call KernelPackage,usb-core))
28
29
30 define AddDepends/usb
31 SUBMENU:=$(USB_MENU)
32 DEPENDS+=+!TARGET_etrax:kmod-usb-core $(1)
33 endef
34
35
36 define KernelPackage/usb-gadget
37 TITLE:=USB Gadget support
38 KCONFIG:=CONFIG_USB_GADGET
39 FILES:=
40 AUTOLOAD:=
41 DEPENDS:=@USB_GADGET_SUPPORT
42 $(call AddDepends/usb)
43 endef
44
45 define KernelPackage/usb-gadget/description
46 Kernel support for USB Gadget mode.
47 endef
48
49 $(eval $(call KernelPackage,usb-gadget))
50
51
52 define KernelPackage/usb-eth-gadget
53 TITLE:=USB Ethernet Gadget support
54 KCONFIG:= \
55 CONFIG_USB_ETH \
56 CONFIG_USB_ETH_RNDIS=y \
57 CONFIG_USB_ETH_EEM=y
58 DEPENDS:=+kmod-usb-gadget
59 FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
60 AUTOLOAD:=$(call AutoLoad,52,usb-eth-gadget)
61 $(call AddDepends/usb)
62 endef
63
64 define KernelPackage/usb-eth-gadget/description
65 Kernel support for USB Ethernet Gadget.
66 endef
67
68 $(eval $(call KernelPackage,usb-eth-gadget))
69
70
71 define KernelPackage/usb-uhci
72 TITLE:=Support for UHCI controllers
73 KCONFIG:= \
74 CONFIG_USB_UHCI_ALT \
75 CONFIG_USB_UHCI_HCD
76 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
77 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd,1)
78 $(call AddDepends/usb)
79 endef
80
81 define KernelPackage/usb-uhci/description
82 Kernel support for USB UHCI controllers
83 endef
84
85 $(eval $(call KernelPackage,usb-uhci,1))
86
87
88 define KernelPackage/usb-ohci
89 TITLE:=Support for OHCI controllers
90 KCONFIG:= \
91 CONFIG_USB_OHCI \
92 CONFIG_USB_OHCI_HCD \
93 CONFIG_USB_OHCI_AR71XX=y
94 FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
95 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd,1)
96 $(call AddDepends/usb)
97 endef
98
99 define KernelPackage/usb-ohci/description
100 Kernel support for USB OHCI controllers
101 endef
102
103 $(eval $(call KernelPackage,usb-ohci,1))
104
105
106 define KernelPackage/musb-hdrc
107 TITLE:=Support for Mentor Graphics silicon dual role USB
108 KCONFIG:= \
109 CONFIG_USB_MUSB_HDRC \
110 CONFIG_NOP_USB_XCEIV \
111 CONFIG_USB_TUSB6010=y \
112 CONFIG_MUSB_PIO_ONLY=n \
113 CONFIG_USB_MUSB_OTG=y \
114 CONFIG_USB_MUSB_DEBUG=y
115 DEPENDS:=@TARGET_omap24xx
116 FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko $(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko
117 AUTOLOAD:=$(call AutoLoad,54,nop-usb-xceiv musb_hdrc)
118 $(call AddDepends/usb)
119 endef
120
121 define KernelPackage/musb-hdrc/description
122 Kernel support for Mentor Graphics silicon dual role USB device.
123 endef
124
125 $(eval $(call KernelPackage,musb-hdrc))
126
127
128 define KernelPackage/usb-tahvo
129 TITLE:=Support for Tahvo (Nokia n810) USB
130 KCONFIG:= \
131 CONFIG_CBUS_TAHVO_USB \
132 CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=n \
133 CONFIG_USB_OHCI_HCD_OMAP1=y \
134 CONFIG_USB_GADGET_DEBUG_FS=n
135 DEPENDS:=@TARGET_omap24xx +kmod-usb-ohci +kmod-musb-hdrc +kmod-usb-gadget
136 FILES:=$(LINUX_DIR)/drivers/cbus/tahvo-usb.ko
137 AUTOLOAD:=$(call AutoLoad,55,tahvo-usb)
138 $(call AddDepends/usb)
139 endef
140
141 define KernelPackage/usb-tahvo/description
142 Kernel support for Nokia n810 USB OHCI controller.
143 endef
144
145 $(eval $(call KernelPackage,usb-tahvo))
146
147
148 define KernelPackage/usb-isp116x-hcd
149 TITLE:=Support for the ISP116x USB Host Controller
150 DEPENDS:=@TARGET_ppc40x
151 KCONFIG:= \
152 CONFIG_USB_ISP116X_HCD \
153 CONFIG_USB_ISP116X_HCD_OF=y \
154 CONFIG_USB_ISP116X_HCD_PLATFORM=n
155 FILES:=$(LINUX_DIR)/drivers/usb/host/isp116x-hcd.ko
156 AUTOLOAD:=$(call AutoLoad,50,isp116x-hcd)
157 $(call AddDepends/usb)
158 endef
159
160 define KernelPackage/usb-isp116x-hcd/description
161 Kernel support for the ISP116X USB Host Controller
162 endef
163
164 $(eval $(call KernelPackage,usb-isp116x-hcd))
165
166
167 define KernelPackage/usb2
168 TITLE:=Support for USB2 controllers
169 KCONFIG:=CONFIG_USB_EHCI_HCD \
170 CONFIG_USB_EHCI_AR71XX=y \
171 CONFIG_USB_EHCI_FSL=n
172 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko
173 AUTOLOAD:=$(call AutoLoad,40,ehci-hcd,1)
174 $(call AddDepends/usb)
175 endef
176
177 define KernelPackage/usb2/description
178 Kernel support for USB2 (EHCI) controllers
179 endef
180
181 $(eval $(call KernelPackage,usb2))
182
183
184 define KernelPackage/usb-acm
185 TITLE:=Support for modems/isdn controllers
186 KCONFIG:=CONFIG_USB_ACM
187 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
188 AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
189 $(call AddDepends/usb)
190 endef
191
192 define KernelPackage/usb-acm/description
193 Kernel support for USB ACM devices (modems/isdn controllers)
194 endef
195
196 $(eval $(call KernelPackage,usb-acm))
197
198
199 define KernelPackage/usb-audio
200 TITLE:=Support for USB audio devices
201 KCONFIG:= \
202 CONFIG_USB_AUDIO \
203 CONFIG_SND_USB_AUDIO
204 $(call AddDepends/usb)
205 $(call AddDepends/sound)
206 # For Linux 2.6.35+
207 ifneq ($(wildcard $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko),)
208 FILES:= \
209 $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
210 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
211 AUTOLOAD:=$(call AutoLoad,60,snd-usbmidi-lib snd-usb-audio)
212 else
213 FILES:= \
214 $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
215 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
216 AUTOLOAD:=$(call AutoLoad,60,snd-usb-lib snd-usb-audio)
217 endif
218 endef
219
220 define KernelPackage/usb-audio/description
221 Kernel support for USB audio devices
222 endef
223
224 $(eval $(call KernelPackage,usb-audio))
225
226
227 define KernelPackage/usb-printer
228 TITLE:=Support for printers
229 KCONFIG:=CONFIG_USB_PRINTER
230 FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
231 AUTOLOAD:=$(call AutoLoad,60,usblp)
232 $(call AddDepends/usb)
233 endef
234
235 define KernelPackage/usb-printer/description
236 Kernel support for USB printers
237 endef
238
239 $(eval $(call KernelPackage,usb-printer))
240
241
242 define KernelPackage/usb-serial
243 TITLE:=Support for USB-to-Serial converters
244 KCONFIG:=CONFIG_USB_SERIAL
245 FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.ko
246 AUTOLOAD:=$(call AutoLoad,60,usbserial)
247 $(call AddDepends/usb)
248 endef
249
250 define KernelPackage/usb-serial/description
251 Kernel support for USB-to-Serial converters
252 endef
253
254 $(eval $(call KernelPackage,usb-serial))
255
256
257 define AddDepends/usb-serial
258 SUBMENU:=$(USB_MENU)
259 DEPENDS+=kmod-usb-serial $(1)
260 endef
261
262
263 define KernelPackage/usb-serial-airprime
264 TITLE:=Support for Airprime (EVDO)
265 KCONFIG:=CONFIG_USB_SERIAL_AIRPRIME
266 FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.ko
267 AUTOLOAD:=$(call AutoLoad,65,airprime)
268 $(call AddDepends/usb-serial)
269 endef
270
271 define KernelPackage/usb-serial-airprime/description
272 Kernel support for Airprime (EVDO)
273 endef
274
275 $(eval $(call KernelPackage,usb-serial-airprime))
276
277
278 define KernelPackage/usb-serial-belkin
279 TITLE:=Support for Belkin devices
280 KCONFIG:=CONFIG_USB_SERIAL_BELKIN
281 FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.ko
282 AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
283 $(call AddDepends/usb-serial)
284 endef
285
286 define KernelPackage/usb-serial-belkin/description
287 Kernel support for Belkin USB-to-Serial converters
288 endef
289
290 $(eval $(call KernelPackage,usb-serial-belkin))
291
292
293 define KernelPackage/usb-serial-ch341
294 TITLE:=Support for CH341 devices
295 KCONFIG:=CONFIG_USB_SERIAL_CH341
296 FILES:=$(LINUX_DIR)/drivers/usb/serial/ch341.ko
297 AUTOLOAD:=$(call AutoLoad,65,ch341)
298 $(call AddDepends/usb-serial)
299 endef
300
301 define KernelPackage/usb-serial-ch341/description
302 Kernel support for Winchiphead CH341 USB-to-Serial converters
303 endef
304
305 $(eval $(call KernelPackage,usb-serial-ch341))
306
307
308 define KernelPackage/usb-serial-ftdi
309 TITLE:=Support for FTDI devices
310 KCONFIG:=CONFIG_USB_SERIAL_FTDI_SIO
311 FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.ko
312 AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
313 $(call AddDepends/usb-serial)
314 endef
315
316 define KernelPackage/usb-serial-ftdi/description
317 Kernel support for FTDI USB-to-Serial converters
318 endef
319
320 $(eval $(call KernelPackage,usb-serial-ftdi))
321
322
323 define KernelPackage/usb-serial-ipw
324 TITLE:=Support for IPWireless 3G devices
325 KCONFIG:=CONFIG_USB_SERIAL_IPW
326 FILES:=$(LINUX_DIR)/drivers/usb/serial/ipw.$(LINUX_KMOD_SUFFIX)
327 AUTOLOAD:=$(call AutoLoad,65,ipw)
328 $(call AddDepends/usb-serial)
329 endef
330
331 $(eval $(call KernelPackage,usb-serial-ipw))
332
333
334 define KernelPackage/usb-serial-mct
335 TITLE:=Support for Magic Control Tech. devices
336 KCONFIG:=CONFIG_USB_SERIAL_MCT_U232
337 FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.ko
338 AUTOLOAD:=$(call AutoLoad,65,mct_u232)
339 $(call AddDepends/usb-serial)
340 endef
341
342 define KernelPackage/usb-serial-mct/description
343 Kernel support for Magic Control Technology USB-to-Serial converters
344 endef
345
346 $(eval $(call KernelPackage,usb-serial-mct))
347
348
349 define KernelPackage/usb-serial-pl2303
350 TITLE:=Support for Prolific PL2303 devices
351 KCONFIG:=CONFIG_USB_SERIAL_PL2303
352 FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.ko
353 AUTOLOAD:=$(call AutoLoad,65,pl2303)
354 $(call AddDepends/usb-serial)
355 endef
356
357 define KernelPackage/usb-serial-pl2303/description
358 Kernel support for Prolific PL2303 USB-to-Serial converters
359 endef
360
361 $(eval $(call KernelPackage,usb-serial-pl2303))
362
363
364 define KernelPackage/usb-serial-cp210x
365 TITLE:=Support for Silicon Labs cp210x devices
366 KCONFIG:=CONFIG_USB_SERIAL_CP210X
367 FILES:=$(LINUX_DIR)/drivers/usb/serial/cp210x.ko
368 AUTOLOAD:=$(call AutoLoad,65,cp210x)
369 $(call AddDepends/usb-serial)
370 endef
371
372 define KernelPackage/usb-serial-cp210x/description
373 Kernel support for Silicon Labs cp210x USB-to-Serial converters
374 endef
375
376 $(eval $(call KernelPackage,usb-serial-cp210x))
377
378
379 define KernelPackage/usb-serial-ark3116
380 TITLE:=Support for ArkMicroChips ARK3116 devices
381 KCONFIG:=CONFIG_USB_SERIAL_ARK3116
382 FILES:=$(LINUX_DIR)/drivers/usb/serial/ark3116.ko
383 AUTOLOAD:=$(call AutoLoad,65,ark3116)
384 $(call AddDepends/usb-serial)
385 endef
386
387 define KernelPackage/usb-serial-ark3116/description
388 Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters
389 endef
390
391 $(eval $(call KernelPackage,usb-serial-ark3116))
392
393
394 define KernelPackage/usb-serial-oti6858
395 TITLE:=Support for Ours Technology OTI6858 devices
396 KCONFIG:=CONFIG_USB_SERIAL_OTI6858
397 FILES:=$(LINUX_DIR)/drivers/usb/serial/oti6858.ko
398 AUTOLOAD:=$(call AutoLoad,65,oti6858)
399 $(call AddDepends/usb-serial)
400 endef
401
402 define KernelPackage/usb-serial-oti6858/description
403 Kernel support for Ours Technology OTI6858 USB-to-Serial converters
404 endef
405
406 $(eval $(call KernelPackage,usb-serial-oti6858))
407
408
409 define KernelPackage/usb-serial-sierrawireless
410 TITLE:=Support for Sierra Wireless devices
411 KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS
412 FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.ko
413 AUTOLOAD:=$(call AutoLoad,65,sierra)
414 $(call AddDepends/usb-serial)
415 endef
416
417 define KernelPackage/usb-serial-sierrawireless/description
418 Kernel support for Sierra Wireless devices
419 endef
420
421 $(eval $(call KernelPackage,usb-serial-sierrawireless))
422
423
424 define KernelPackage/usb-serial-motorola-phone
425 TITLE:=Support for Motorola usb phone
426 KCONFIG:=CONFIG_USB_SERIAL_MOTOROLA
427 FILES:=$(LINUX_DIR)/drivers/usb/serial/moto_modem.ko
428 AUTOLOAD:=$(call AutoLoad,65,moto_modem)
429 $(call AddDepends/usb-serial)
430 endef
431
432 define KernelPackage/usb-serial-motorola-phone/description
433 Kernel support for Motorola usb phone
434 endef
435
436 $(eval $(call KernelPackage,usb-serial-motorola-phone))
437
438
439 define KernelPackage/usb-serial-visor
440 TITLE:=Support for Handspring Visor devices
441 KCONFIG:=CONFIG_USB_SERIAL_VISOR
442 FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.ko
443 AUTOLOAD:=$(call AutoLoad,65,visor)
444 $(call AddDepends/usb-serial)
445 endef
446
447 define KernelPackage/usb-serial-visor/description
448 Kernel support for Handspring Visor PDAs
449 endef
450
451 $(eval $(call KernelPackage,usb-serial-visor))
452
453
454 define KernelPackage/usb-serial-cypress-m8
455 TITLE:=Support for CypressM8 USB-Serial
456 KCONFIG:=CONFIG_USB_SERIAL_CYPRESS_M8
457 FILES:=$(LINUX_DIR)/drivers/usb/serial/cypress_m8.ko
458 AUTOLOAD:=$(call AutoLoad,65,cypress_m8)
459 $(call AddDepends/usb-serial)
460 endef
461
462 define KernelPackage/usb-serial-cypress-m8/description
463 Kernel support for devices with Cypress M8 USB to Serial chip
464 (for example, the Delorme Earthmate LT-20 GPS)
465 Supported microcontrollers in the CY4601 family are:
466 CY7C63741 CY7C63742 CY7C63743 CY7C64013
467 endef
468
469 $(eval $(call KernelPackage,usb-serial-cypress-m8))
470
471
472 define KernelPackage/usb-serial-keyspan
473 TITLE:=Support for Keyspan USB-to-Serial devices
474 KCONFIG:= \
475 CONFIG_USB_SERIAL_KEYSPAN \
476 CONFIG_USB_SERIAL_KEYSPAN_USA28 \
477 CONFIG_USB_SERIAL_KEYSPAN_USA28X \
478 CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
479 CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
480 CONFIG_USB_SERIAL_KEYSPAN_USA19 \
481 CONFIG_USB_SERIAL_KEYSPAN_USA18X \
482 CONFIG_USB_SERIAL_KEYSPAN_USA19W \
483 CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
484 CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
485 CONFIG_USB_SERIAL_KEYSPAN_MPR \
486 CONFIG_USB_SERIAL_KEYSPAN_USA49W \
487 CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
488 FILES:=$(LINUX_DIR)/drivers/usb/serial/keyspan.ko
489 AUTOLOAD:=$(call AutoLoad,65,keyspan)
490 $(call AddDepends/usb-serial)
491 endef
492
493 define KernelPackage/usb-serial-keyspan/description
494 Kernel support for Keyspan USB-to-Serial devices
495 endef
496
497 $(eval $(call KernelPackage,usb-serial-keyspan))
498
499
500 define KernelPackage/usb-serial-wwan
501 TITLE:=Support for GSM and CDMA modems
502 DEPENDS:= @LINUX_2_6_35||LINUX_2_6_36||LINUX_2_6_37
503 KCONFIG:=CONFIG_USB_SERIAL_WWAN
504 FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko
505 AUTOLOAD:=$(call AutoLoad,61,usb_wwan)
506 $(call AddDepends/usb-serial)
507 endef
508
509 define KernelPackage/usb-serial-wwan/description
510 Kernel support for USB GSM and CDMA modems
511 endef
512
513 $(eval $(call KernelPackage,usb-serial-wwan))
514
515
516 define KernelPackage/usb-serial-option
517 TITLE:=Support for Option HSDPA modems
518 DEPENDS:=+LINUX_2_6_35||LINUX_2_6_36||LINUX_2_6_37:kmod-usb-serial-wwan
519 KCONFIG:=CONFIG_USB_SERIAL_OPTION
520 FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko
521 AUTOLOAD:=$(call AutoLoad,65,option)
522 $(call AddDepends/usb-serial)
523 endef
524
525 define KernelPackage/usb-serial-option/description
526 Kernel support for Option HSDPA modems
527 endef
528
529 $(eval $(call KernelPackage,usb-serial-option))
530
531
532 define KernelPackage/usb-storage
533 TITLE:=USB Storage support
534 DEPENDS:= +!TARGET_x86:kmod-scsi-core
535 KCONFIG:=CONFIG_USB_STORAGE
536 FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
537 AUTOLOAD:=$(call AutoLoad,60,usb-storage,1)
538 $(call AddDepends/usb)
539 endef
540
541 define KernelPackage/usb-storage/description
542 Kernel support for USB Mass Storage devices
543 endef
544
545 $(eval $(call KernelPackage,usb-storage))
546
547
548 define KernelPackage/usb-storage-extras
549 SUBMENU:=$(USB_MENU)
550 TITLE:=Extra drivers for usb-storage
551 DEPENDS:=+kmod-usb-storage
552 KCONFIG:= \
553 CONFIG_USB_STORAGE_ALAUDA \
554 CONFIG_USB_STORAGE_CYPRESS_ATACB \
555 CONFIG_USB_STORAGE_DATAFAB \
556 CONFIG_USB_STORAGE_FREECOM \
557 CONFIG_USB_STORAGE_ISD200 \
558 CONFIG_USB_STORAGE_JUMPSHOT \
559 CONFIG_USB_STORAGE_KARMA \
560 CONFIG_USB_STORAGE_SDDR09 \
561 CONFIG_USB_STORAGE_SDDR55 \
562 CONFIG_USB_STORAGE_USBAT
563 FILES:= \
564 $(LINUX_DIR)/drivers/usb/storage/ums-alauda.ko \
565 $(LINUX_DIR)/drivers/usb/storage/ums-cypress.ko \
566 $(LINUX_DIR)/drivers/usb/storage/ums-datafab.ko \
567 $(LINUX_DIR)/drivers/usb/storage/ums-freecom.ko \
568 $(LINUX_DIR)/drivers/usb/storage/ums-isd200.ko \
569 $(LINUX_DIR)/drivers/usb/storage/ums-jumpshot.ko \
570 $(LINUX_DIR)/drivers/usb/storage/ums-karma.ko \
571 $(LINUX_DIR)/drivers/usb/storage/ums-sddr09.ko \
572 $(LINUX_DIR)/drivers/usb/storage/ums-sddr55.ko \
573 $(LINUX_DIR)/drivers/usb/storage/ums-usbat.ko
574 AUTOLOAD:=$(call AutoLoad,60,ums-alauda ums-cypress ums-datafab \
575 ums-freecom ums-isd200 ums-jumpshot \
576 ums-karma ums-sddr09 ums-sddr55 ums-usbat)
577 endef
578
579 define KernelPackage/usb-storage-extras/description
580 Say Y here if you want to have some more drivers,
581 such as for SmartMedia card readers.
582 endef
583
584 $(eval $(call KernelPackage,usb-storage-extras))
585
586
587 define KernelPackage/usb-video
588 TITLE:=Support for USB video devices
589 KCONFIG:=CONFIG_VIDEO_USBVIDEO
590 FILES:=$(LINUX_DIR)/drivers/media/video/usbvideo/usbvideo.ko
591 AUTOLOAD:=$(call AutoLoad,61,usbvideo)
592 $(call AddDepends/usb)
593 endef
594
595 define KernelPackage/usb-video/description
596 Kernel support for USB video devices
597 endef
598
599 $(eval $(call KernelPackage,usb-video))
600
601
602 define KernelPackage/usb-atm
603 TITLE:=Support for ATM on USB bus
604 DEPENDS:=+kmod-atm
605 KCONFIG:=CONFIG_USB_ATM
606 FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.ko
607 AUTOLOAD:=$(call AutoLoad,60,usbatm)
608 $(call AddDepends/usb)
609 endef
610
611 define KernelPackage/usb-atm/description
612 Kernel support for USB DSL modems
613 endef
614
615 $(eval $(call KernelPackage,usb-atm))
616
617
618 define AddDepends/usb-atm
619 SUBMENU:=$(USB_MENU)
620 DEPENDS+=kmod-usb-atm $(1)
621 endef
622
623
624 define KernelPackage/usb-atm-speedtouch
625 TITLE:=SpeedTouch USB ADSL modems support
626 KCONFIG:=CONFIG_USB_SPEEDTOUCH
627 FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.ko
628 AUTOLOAD:=$(call AutoLoad,70,speedtch)
629 $(call AddDepends/usb-atm)
630 endef
631
632 define KernelPackage/usb-atm-speedtouch/description
633 Kernel support for SpeedTouch USB ADSL modems
634 endef
635
636 $(eval $(call KernelPackage,usb-atm-speedtouch))
637
638
639 define KernelPackage/usb-atm-ueagle
640 TITLE:=Eagle 8051 based USB ADSL modems support
641 FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.ko
642 KCONFIG:=CONFIG_USB_UEAGLEATM
643 AUTOLOAD:=$(call AutoLoad,70,ueagle-atm)
644 $(call AddDepends/usb-atm)
645 endef
646
647 define KernelPackage/usb-atm-ueagle/description
648 Kernel support for Eagle 8051 based USB ADSL modems
649 endef
650
651 $(eval $(call KernelPackage,usb-atm-ueagle))
652
653
654 define KernelPackage/usb-atm-cxacru
655 TITLE:=cxacru
656 FILES:=$(LINUX_DIR)/drivers/usb/atm/cxacru.ko
657 KCONFIG:=CONFIG_USB_CXACRU
658 AUTOLOAD:=$(call AutoLoad,70,cxacru)
659 $(call AddDepends/usb-atm)
660 endef
661
662 define KernelPackage/usb-atm-cxacru/description
663 Kernel support for cxacru based USB ADSL modems
664 endef
665
666 $(eval $(call KernelPackage,usb-atm-cxacru))
667
668
669 define KernelPackage/usb-net
670 TITLE:=Kernel modules for USB-to-Ethernet convertors
671 KCONFIG:=CONFIG_USB_USBNET
672 AUTOLOAD:=$(call AutoLoad,60,usbnet)
673 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko
674 $(call AddDepends/usb)
675 endef
676
677 define KernelPackage/usb-net/description
678 Kernel modules for USB-to-Ethernet convertors
679 endef
680
681 $(eval $(call KernelPackage,usb-net))
682
683
684 define AddDepends/usb-net
685 SUBMENU:=$(USB_MENU)
686 DEPENDS+=kmod-usb-net $(1)
687 endef
688
689
690 define KernelPackage/usb-net-asix
691 TITLE:=Kernel module for USB-to-Ethernet Asix convertors
692 KCONFIG:=CONFIG_USB_NET_AX8817X
693 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
694 AUTOLOAD:=$(call AutoLoad,61,asix)
695 $(call AddDepends/usb-net)
696 endef
697
698 define KernelPackage/usb-net-asix/description
699 Kernel module for USB-to-Ethernet Asix convertors
700 endef
701
702 $(eval $(call KernelPackage,usb-net-asix))
703
704
705 define KernelPackage/usb-net-hso
706 TITLE:=Kernel module for Option USB High Speed Mobile Devices
707 KCONFIG:=CONFIG_USB_HSO
708 FILES:= \
709 $(LINUX_DIR)/drivers/$(USBNET_DIR)/hso.ko
710 AUTOLOAD:=$(call AutoLoad,61,hso)
711 $(call AddDepends/usb-net)
712 $(call AddDepends/rfkill)
713 endef
714
715 define KernelPackage/usb-net-hso/description
716 Kernel module for Option USB High Speed Mobile Devices
717 endef
718
719 $(eval $(call KernelPackage,usb-net-hso))
720
721
722 define KernelPackage/usb-net-kaweth
723 TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
724 KCONFIG:=CONFIG_USB_KAWETH
725 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.ko
726 AUTOLOAD:=$(call AutoLoad,61,kaweth)
727 $(call AddDepends/usb-net)
728 endef
729
730 define KernelPackage/usb-net-kaweth/description
731 Kernel module for USB-to-Ethernet Kaweth convertors
732 endef
733
734 $(eval $(call KernelPackage,usb-net-kaweth))
735
736
737 define KernelPackage/usb-net-pegasus
738 TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
739 KCONFIG:=CONFIG_USB_PEGASUS
740 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.ko
741 AUTOLOAD:=$(call AutoLoad,61,pegasus)
742 $(call AddDepends/usb-net)
743 endef
744
745 define KernelPackage/usb-net-pegasus/description
746 Kernel module for USB-to-Ethernet Pegasus convertors
747 endef
748
749 $(eval $(call KernelPackage,usb-net-pegasus))
750
751
752 define KernelPackage/usb-net-mcs7830
753 TITLE:=Kernel module for USB-to-Ethernet MCS7830 convertors
754 KCONFIG:=CONFIG_USB_NET_MCS7830
755 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/mcs7830.ko
756 AUTOLOAD:=$(call AutoLoad,61,mcs7830)
757 $(call AddDepends/usb-net)
758 endef
759
760 define KernelPackage/usb-net-mcs7830/description
761 Kernel module for USB-to-Ethernet MCS7830 convertors
762 endef
763
764 $(eval $(call KernelPackage,usb-net-mcs7830))
765
766
767 define KernelPackage/usb-net-dm9601-ether
768 TITLE:=Support for DM9601 ethernet connections
769 KCONFIG:=CONFIG_USB_NET_DM9601
770 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/dm9601.ko
771 AUTOLOAD:=$(call AutoLoad,61,dm9601)
772 $(call AddDepends/usb-net)
773 endef
774
775 define KernelPackage/usb-net-dm9601-ether/description
776 Kernel support for USB DM9601 devices
777 endef
778
779 $(eval $(call KernelPackage,usb-net-dm9601-ether))
780
781 define KernelPackage/usb-net-cdc-ether
782 TITLE:=Support for cdc ethernet connections
783 KCONFIG:=CONFIG_USB_NET_CDCETHER
784 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ether.ko
785 AUTOLOAD:=$(call AutoLoad,61,cdc_ether)
786 $(call AddDepends/usb-net)
787 endef
788
789 define KernelPackage/usb-net-cdc-ether/description
790 Kernel support for USB CDC Ethernet devices
791 endef
792
793 $(eval $(call KernelPackage,usb-net-cdc-ether))
794
795
796 define KernelPackage/usb-net-rndis
797 TITLE:=Support for RNDIS connections
798 KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
799 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/rndis_host.ko
800 AUTOLOAD:=$(call AutoLoad,62,rndis_host)
801 $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
802 endef
803
804 define KernelPackage/usb-net-rndis/description
805 Kernel support for RNDIS connections
806 endef
807
808 $(eval $(call KernelPackage,usb-net-rndis))
809
810
811 define KernelPackage/usb-hid
812 TITLE:=Support for USB Human Input Devices
813 KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y
814 FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
815 AUTOLOAD:=$(call AutoLoad,70,usbhid)
816 $(call AddDepends/usb)
817 $(call AddDepends/hid)
818 $(call AddDepends/input,+kmod-input-evdev)
819 endef
820
821
822 define KernelPackage/usb-hid/description
823 Kernel support for USB HID devices such as keyboards and mice
824 endef
825
826 $(eval $(call KernelPackage,usb-hid))
827
828
829 define KernelPackage/usb-yealink
830 TITLE:=USB Yealink VOIP phone
831 KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
832 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
833 AUTOLOAD:=$(call AutoLoad,70,yealink)
834 $(call AddDepends/usb)
835 $(call AddDepends/input,+kmod-input-evdev)
836 endef
837
838 define KernelPackage/usb-yealink/description
839 Kernel support for Yealink VOIP phone
840 endef
841
842 $(eval $(call KernelPackage,usb-yealink))
843
844
845 define KernelPackage/usb-cm109
846 TITLE:=Support for CM109 device
847 KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y
848 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko
849 AUTOLOAD:=$(call AutoLoad,70,cm109)
850 $(call AddDepends/usb)
851 $(call AddDepends/input,+kmod-input-evdev)
852 endef
853
854 define KernelPackage/usb-cm109/description
855 Kernel support for CM109 VOIP phone
856 endef
857
858 $(eval $(call KernelPackage,usb-cm109))
859
860
861 define KernelPackage/usb-test
862 TITLE:=USB Testing Driver
863 DEPENDS:=@DEVEL
864 KCONFIG:=CONFIG_USB_TEST
865 FILES:=$(LINUX_DIR)/drivers/usb/misc/usbtest.ko
866 $(call AddDepends/usb)
867 endef
868
869 define KernelPackage/usb-test/description
870 Kernel support for testing USB Host Controller software.
871 endef
872
873 $(eval $(call KernelPackage,usb-test))
874
875
876 define KernelPackage/usb-phidget
877 TITLE:=USB Phidget Driver
878 KCONFIG:=CONFIG_USB_PHIDGET CONFIG_USB_PHIDGETKIT CONFIG_USB_PHIDGETMOTORCONTROL CONFIG_USB_PHIDGETSERVO
879 FILES:=$(LINUX_DIR)/drivers/usb/misc/phidget*.ko
880 $(call AddDepends/usb)
881 endef
882
883 define KernelPackage/usb-phidget/description
884 Kernel support for USB Phidget devices.
885 endef
886
887 $(eval $(call KernelPackage,usb-phidget))
888