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