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