kernel: update kmod-* packaging and dependencies for linux 4.9
[openwrt/openwrt.git] / package / kernel / linux / modules / usb.mk
1 #
2 # Copyright (C) 2006-2014 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/common/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-ledtrig-usbport
40 TITLE:=LED trigger for USB ports
41 KCONFIG:=CONFIG_USB_LEDS_TRIGGER_USBPORT
42 DEPENDS:=@!LINUX_3_18
43 FILES:=$(LINUX_DIR)/drivers/usb/core/ledtrig-usbport.ko
44 AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbport)
45 $(call AddDepends/usb)
46 endef
47
48 define KernelPackage/usb-ledtrig-usbport/description
49 This driver allows LEDs to be controlled by USB events. Enabling this
50 trigger allows specifying list of USB ports that should turn on LED
51 when some USB device gets connected.
52 If possible it should be prefered over similar ledtrig-usbdev.
53 endef
54
55 $(eval $(call KernelPackage,usb-ledtrig-usbport))
56
57
58 define KernelPackage/usb-phy-nop
59 TITLE:=Support for USB NOP transceiver
60 KCONFIG:=CONFIG_NOP_USB_XCEIV
61 HIDDEN:=1
62 FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko
63 AUTOLOAD:=$(call AutoLoad,43,phy-generic)
64 $(call AddDepends/usb)
65 endef
66
67 define KernelPackage/usb-phy-nop/description
68 Support for USB NOP transceiver
69 endef
70
71 $(eval $(call KernelPackage,usb-phy-nop))
72
73
74 define KernelPackage/usb-gadget
75 TITLE:=USB Gadget support
76 KCONFIG:=CONFIG_USB_GADGET
77 HIDDEN:=1
78 FILES:=\
79 $(LINUX_DIR)/drivers/usb/gadget/udc/udc-core.ko
80 AUTOLOAD:=$(call AutoLoad,45,udc-core)
81 DEPENDS:=@USB_GADGET_SUPPORT
82 $(call AddDepends/usb)
83 endef
84
85 define KernelPackage/usb-gadget/description
86 Kernel support for USB Gadget mode
87 endef
88
89 $(eval $(call KernelPackage,usb-gadget))
90
91 define KernelPackage/usb-lib-composite
92 TITLE:=USB lib composite
93 KCONFIG:=CONFIG_USB_LIBCOMPOSITE
94 DEPENDS:=+kmod-usb-gadget +kmod-fs-configfs
95 HIDDEN:=1
96 FILES:=$(LINUX_DIR)/drivers/usb/gadget/libcomposite.ko
97 AUTOLOAD:=$(call AutoLoad,50,libcomposite)
98 $(call AddDepends/usb)
99 endef
100
101 define KernelPackage/usb-lib-composite/description
102 Lib Composite
103 endef
104
105 $(eval $(call KernelPackage,usb-lib-composite))
106
107 define KernelPackage/usb-gadget-ehci-debug
108 TITLE:=USB EHCI debug port Gadget support
109 KCONFIG:=\
110 CONFIG_USB_G_DBGP \
111 CONFIG_USB_G_DBGP_SERIAL=y \
112 CONFIG_USB_G_DBGP_PRINTK=n
113 DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite +kmod-usb-gadget-serial
114 FILES:=$(LINUX_DIR)/drivers/usb/gadget/legacy/g_dbgp.ko
115 AUTOLOAD:=$(call AutoLoad,52,g_dbgp)
116 $(call AddDepends/usb)
117 endef
118
119 define KernelPackage/usb-gadget-ehci-debug/description
120 Kernel support for USB EHCI debug port Gadget.
121 endef
122
123 $(eval $(call KernelPackage,usb-gadget-ehci-debug))
124
125 define KernelPackage/usb-gadget-eth
126 TITLE:=USB Ethernet Gadget support
127 KCONFIG:= \
128 CONFIG_USB_ETH \
129 CONFIG_USB_ETH_RNDIS=y \
130 CONFIG_USB_ETH_EEM=n
131 DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
132 FILES:= \
133 $(LINUX_DIR)/drivers/usb/gadget/function/u_ether.ko \
134 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm.ko \
135 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \
136 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \
137 $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko
138 AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether)
139 $(call AddDepends/usb)
140 endef
141
142 define KernelPackage/usb-gadget-eth/description
143 Kernel support for USB Ethernet Gadget
144 endef
145
146 $(eval $(call KernelPackage,usb-gadget-eth))
147
148
149 define KernelPackage/usb-gadget-serial
150 TITLE:=USB Serial Gadget support
151 KCONFIG:=CONFIG_USB_G_SERIAL
152 DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
153 FILES:= \
154 $(LINUX_DIR)/drivers/usb/gadget/function/u_serial.ko \
155 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_acm.ko \
156 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_obex.ko \
157 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_serial.ko \
158 $(LINUX_DIR)/drivers/usb/gadget/legacy/g_serial.ko
159 AUTOLOAD:=$(call AutoLoad,52,usb_f_acm g_serial)
160 $(call AddDepends/usb)
161 endef
162
163 define KernelPackage/usb-gadget-serial/description
164 Kernel support for USB Serial Gadget.
165 endef
166
167 $(eval $(call KernelPackage,usb-gadget-serial))
168
169 define KernelPackage/usb-gadget-mass-storage
170 TITLE:=USB Mass Storage support
171 KCONFIG:=CONFIG_USB_MASS_STORAGE
172 DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
173 FILES:= \
174 $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_mass_storage.ko \
175 $(LINUX_DIR)/drivers/usb/gadget/legacy/g_mass_storage.ko
176 AUTOLOAD:=$(call AutoLoad,52,usb_f_mass_storage g_mass_storage)
177 $(call AddDepends/usb)
178 endef
179
180 define KernelPackage/usb-gadget-mass-storage/description
181 Kernel support for USB Gadget Mass Storage
182 endef
183
184 $(eval $(call KernelPackage,usb-gadget-mass-storage))
185
186
187 define KernelPackage/usb-uhci
188 TITLE:=Support for UHCI controllers
189 KCONFIG:= \
190 CONFIG_USB_UHCI_ALT \
191 CONFIG_USB_UHCI_HCD
192 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
193 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd,1)
194 $(call AddDepends/usb)
195 endef
196
197 define KernelPackage/usb-uhci/description
198 Kernel support for USB UHCI controllers
199 endef
200
201 $(eval $(call KernelPackage,usb-uhci,1))
202
203
204 define KernelPackage/usb-ohci
205 TITLE:=Support for OHCI controllers
206 DEPENDS:= \
207 +TARGET_bcm53xx:kmod-usb-bcma \
208 +TARGET_brcm47xx:kmod-usb-bcma \
209 +TARGET_brcm47xx:kmod-usb-ssb
210 KCONFIG:= \
211 CONFIG_USB_OHCI \
212 CONFIG_USB_OHCI_HCD \
213 CONFIG_USB_OHCI_ATH79=y \
214 CONFIG_USB_OHCI_HCD_AT91=y \
215 CONFIG_USB_OHCI_BCM63XX=y \
216 CONFIG_USB_OCTEON_OHCI=y \
217 CONFIG_USB_OHCI_HCD_OMAP3=y \
218 CONFIG_USB_OHCI_HCD_PLATFORM=y
219 FILES:= \
220 $(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko \
221 $(LINUX_DIR)/drivers/usb/host/ohci-platform.ko
222 ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ohci-at91.ko),)
223 FILES+=$(LINUX_DIR)/drivers/usb/host/ohci-at91.ko
224 endif
225 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd ohci-platform ohci-at91,1)
226 $(call AddDepends/usb)
227 endef
228
229 define KernelPackage/usb-ohci/description
230 Kernel support for USB OHCI controllers
231 endef
232
233 $(eval $(call KernelPackage,usb-ohci,1))
234
235
236 define KernelPackage/usb-ohci-pci
237 TITLE:=Support for PCI OHCI controllers
238 DEPENDS:=@PCI_SUPPORT +kmod-usb-ohci
239 KCONFIG:=CONFIG_USB_OHCI_HCD_PCI
240 FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-pci.ko
241 AUTOLOAD:=$(call AutoLoad,51,ohci-pci,1)
242 $(call AddDepends/usb)
243 endef
244
245 define KernelPackage/usb-ohci-pci/description
246 Kernel support for PCI OHCI controllers
247 endef
248
249 $(eval $(call KernelPackage,usb-ohci-pci))
250
251
252 define KernelPackage/usb-bcma
253 TITLE:=Support for BCMA USB controllers
254 DEPENDS:=@USB_SUPPORT @TARGET_brcm47xx||TARGET_bcm53xx
255 HIDDEN:=1
256 KCONFIG:=CONFIG_USB_HCD_BCMA
257 FILES:= \
258 $(if $(CONFIG_USB_HCD_BCMA),$(LINUX_DIR)/drivers/usb/host/bcma-hcd.ko)
259 AUTOLOAD:=$(call AutoLoad,19,$(if $(CONFIG_USB_HCD_BCMA),bcma-hcd),1)
260 $(call AddDepends/usb)
261 endef
262 $(eval $(call KernelPackage,usb-bcma))
263
264 define KernelPackage/usb-ssb
265 TITLE:=Support for SSB USB controllers
266 DEPENDS:=@USB_SUPPORT @TARGET_brcm47xx
267 HIDDEN:=1
268 KCONFIG:=CONFIG_USB_HCD_SSB
269 FILES:= \
270 $(if $(CONFIG_USB_HCD_SSB),$(LINUX_DIR)/drivers/usb/host/ssb-hcd.ko)
271 AUTOLOAD:=$(call AutoLoad,19,$(if $(CONFIG_USB_HCD_SSB),ssb-hcd),1)
272 $(call AddDepends/usb)
273 endef
274 $(eval $(call KernelPackage,usb-ssb))
275
276 define KernelPackage/usb2
277 TITLE:=Support for USB2 controllers
278 DEPENDS:=\
279 +TARGET_brcm47xx:kmod-usb-bcma \
280 +TARGET_brcm47xx:kmod-usb-ssb \
281 +TARGET_bcm53xx:kmod-usb-bcma \
282 +TARGET_bcm53xx:kmod-phy-bcm-ns-usb2
283 KCONFIG:=\
284 CONFIG_USB_EHCI_HCD \
285 CONFIG_USB_EHCI_ATH79=y \
286 CONFIG_USB_EHCI_BCM63XX=y \
287 CONFIG_USB_IMX21_HCD=y \
288 CONFIG_USB_EHCI_MXC=y \
289 CONFIG_USB_OCTEON_EHCI=y \
290 CONFIG_USB_EHCI_HCD_ORION=y \
291 CONFIG_USB_EHCI_HCD_PLATFORM=y \
292 CONFIG_USB_EHCI_HCD_AT91=y \
293 CONFIG_USB_EHCI_FSL
294 FILES:= \
295 $(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko \
296 $(LINUX_DIR)/drivers/usb/host/ehci-platform.ko
297 ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-orion.ko),)
298 FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-orion.ko
299 endif
300 ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko),)
301 FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko
302 endif
303 AUTOLOAD:=$(call AutoLoad,40,ehci-hcd ehci-platform ehci-orion ehci-atmel,1)
304 $(call AddDepends/usb)
305 endef
306
307 define KernelPackage/usb2/description
308 Kernel support for USB2 (EHCI) controllers
309 endef
310
311 $(eval $(call KernelPackage,usb2))
312
313
314 define KernelPackage/usb2-pci
315 TITLE:=Support for PCI USB2 controllers
316 DEPENDS:=@PCI_SUPPORT +kmod-usb2
317 KCONFIG:=CONFIG_USB_EHCI_PCI
318 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-pci.ko
319 AUTOLOAD:=$(call AutoLoad,42,ehci-pci,1)
320 $(call AddDepends/usb)
321 endef
322
323 define KernelPackage/usb2-pci/description
324 Kernel support for PCI USB2 (EHCI) controllers
325 endef
326
327 $(eval $(call KernelPackage,usb2-pci))
328
329
330 define KernelPackage/usb-dwc2
331 TITLE:=DWC2 USB controller driver
332 DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget
333 KCONFIG:= \
334 CONFIG_USB_DWC2 \
335 CONFIG_USB_DWC2_PCI \
336 CONFIG_USB_DWC2_PLATFORM \
337 CONFIG_USB_DWC2_DEBUG=n \
338 CONFIG_USB_DWC2_VERBOSE=n \
339 CONFIG_USB_DWC2_TRACK_MISSED_SOFS=n \
340 CONFIG_USB_DWC2_DEBUG_PERIODIC=n
341 FILES:= \
342 $(LINUX_DIR)/drivers/usb/dwc2/dwc2.ko \
343 $(LINUX_DIR)/drivers/usb/dwc2/dwc2_platform.ko@lt4.3
344 AUTOLOAD:=$(call AutoLoad,54,dwc2 dwc2_platform@lt4.3,1)
345 $(call AddDepends/usb)
346 endef
347
348 define KernelPackage/usb-dwc2/description
349 This driver provides USB Device Controller support for the
350 Synopsys DesignWare USB OTG Core
351 endef
352
353 $(eval $(call KernelPackage,usb-dwc2))
354
355
356 define KernelPackage/usb-dwc3
357 TITLE:=DWC3 USB controller driver
358 KCONFIG:= \
359 CONFIG_USB_DWC3 \
360 CONFIG_USB_DWC3_HOST=y \
361 CONFIG_USB_DWC3_GADGET=n \
362 CONFIG_USB_DWC3_DUAL_ROLE=n \
363 CONFIG_USB_DWC3_DEBUG=n \
364 CONFIG_USB_DWC3_VERBOSE=n
365 FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3.ko
366 AUTOLOAD:=$(call AutoLoad,54,dwc3,1)
367 $(call AddDepends/usb)
368 endef
369
370 define KernelPackage/usb-dwc3/description
371 This driver provides support for the Dual Role SuperSpeed
372 USB Controller based on the Synopsys DesignWare USB3 IP Core
373 endef
374
375 $(eval $(call KernelPackage,usb-dwc3))
376
377
378 define KernelPackage/usb-acm
379 TITLE:=Support for modems/isdn controllers
380 KCONFIG:=CONFIG_USB_ACM
381 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
382 AUTOLOAD:=$(call AutoProbe,cdc-acm)
383 $(call AddDepends/usb)
384 endef
385
386 define KernelPackage/usb-acm/description
387 Kernel support for USB ACM devices (modems/isdn controllers)
388 endef
389
390 $(eval $(call KernelPackage,usb-acm))
391
392
393 define KernelPackage/usb-wdm
394 TITLE:=USB Wireless Device Management
395 KCONFIG:=CONFIG_USB_WDM
396 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko
397 AUTOLOAD:=$(call AutoProbe,cdc-wdm)
398 $(call AddDepends/usb)
399 $(call AddDepends/usb-net)
400 endef
401
402 define KernelPackage/usb-wdm/description
403 USB Wireless Device Management support
404 endef
405
406 $(eval $(call KernelPackage,usb-wdm))
407
408
409 define KernelPackage/usb-audio
410 TITLE:=Support for USB audio devices
411 KCONFIG:= \
412 CONFIG_USB_AUDIO \
413 CONFIG_SND_USB=y \
414 CONFIG_SND_USB_AUDIO
415 $(call AddDepends/usb)
416 $(call AddDepends/sound)
417 FILES:= \
418 $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
419 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
420 AUTOLOAD:=$(call AutoProbe,snd-usbmidi-lib snd-usb-audio)
421 endef
422
423 define KernelPackage/usb-audio/description
424 Kernel support for USB audio devices
425 endef
426
427 $(eval $(call KernelPackage,usb-audio))
428
429
430 define KernelPackage/usb-printer
431 TITLE:=Support for printers
432 KCONFIG:=CONFIG_USB_PRINTER
433 FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
434 AUTOLOAD:=$(call AutoProbe,usblp)
435 $(call AddDepends/usb)
436 endef
437
438 define KernelPackage/usb-printer/description
439 Kernel support for USB printers
440 endef
441
442 $(eval $(call KernelPackage,usb-printer))
443
444
445 define KernelPackage/usb-serial
446 TITLE:=Support for USB-to-Serial converters
447 KCONFIG:=CONFIG_USB_SERIAL
448 FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.ko
449 AUTOLOAD:=$(call AutoProbe,usbserial)
450 $(call AddDepends/usb)
451 endef
452
453 define KernelPackage/usb-serial/description
454 Kernel support for USB-to-Serial converters
455 endef
456
457 $(eval $(call KernelPackage,usb-serial))
458
459
460 define AddDepends/usb-serial
461 SUBMENU:=$(USB_MENU)
462 DEPENDS+=kmod-usb-serial $(1)
463 endef
464
465
466 define KernelPackage/usb-serial-belkin
467 TITLE:=Support for Belkin devices
468 KCONFIG:=CONFIG_USB_SERIAL_BELKIN
469 FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.ko
470 AUTOLOAD:=$(call AutoProbe,belkin_sa)
471 $(call AddDepends/usb-serial)
472 endef
473
474 define KernelPackage/usb-serial-belkin/description
475 Kernel support for Belkin USB-to-Serial converters
476 endef
477
478 $(eval $(call KernelPackage,usb-serial-belkin))
479
480
481 define KernelPackage/usb-serial-ch341
482 TITLE:=Support for CH341 devices
483 KCONFIG:=CONFIG_USB_SERIAL_CH341
484 FILES:=$(LINUX_DIR)/drivers/usb/serial/ch341.ko
485 AUTOLOAD:=$(call AutoProbe,ch341)
486 $(call AddDepends/usb-serial)
487 endef
488
489 define KernelPackage/usb-serial-ch341/description
490 Kernel support for Winchiphead CH341 USB-to-Serial converters
491 endef
492
493 $(eval $(call KernelPackage,usb-serial-ch341))
494
495
496 define KernelPackage/usb-serial-ftdi
497 TITLE:=Support for FTDI devices
498 KCONFIG:=CONFIG_USB_SERIAL_FTDI_SIO
499 FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.ko
500 AUTOLOAD:=$(call AutoProbe,ftdi_sio)
501 $(call AddDepends/usb-serial)
502 endef
503
504 define KernelPackage/usb-serial-ftdi/description
505 Kernel support for FTDI USB-to-Serial converters
506 endef
507
508 $(eval $(call KernelPackage,usb-serial-ftdi))
509
510
511 define KernelPackage/usb-serial-garmin
512 TITLE:=Support for Garmin GPS devices
513 KCONFIG:=CONFIG_USB_SERIAL_GARMIN
514 FILES:=$(LINUX_DIR)/drivers/usb/serial/garmin_gps.ko
515 AUTOLOAD:=$(call AutoProbe,garmin_gps)
516 $(call AddDepends/usb-serial)
517 endef
518
519 define KernelPackage/usb-serial-garmin/description
520 Should work with most Garmin GPS devices which have a native USB port.
521 endef
522
523 $(eval $(call KernelPackage,usb-serial-garmin))
524
525
526 define KernelPackage/usb-serial-simple
527 TITLE:=USB Serial Simple (Motorola phone)
528 KCONFIG:=CONFIG_USB_SERIAL_SIMPLE
529 FILES:=$(LINUX_DIR)/drivers/usb/serial/usb-serial-simple.ko
530 AUTOLOAD:=$(call AutoProbe,usb-serial-simple)
531 $(call AddDepends/usb-serial)
532 endef
533
534 define KernelPackage/usb-serial-simple/description
535 Kernel support for "very simple devices".
536
537 Specifically, it supports:
538 - Suunto ANT+ USB device.
539 - Medtronic CareLink USB device (3.18)
540 - Fundamental Software dongle.
541 - Google USB serial devices (3.19)
542 - HP4x calculators
543 - a number of Motorola phones
544 - Novatel Wireless GPS receivers (3.18)
545 - Siemens USB/MPI adapter.
546 - ViVOtech ViVOpay USB device.
547 - Infineon Modem Flashloader USB interface
548 - ZIO Motherboard USB serial interface
549 endef
550
551 $(eval $(call KernelPackage,usb-serial-simple))
552
553
554 define KernelPackage/usb-serial-ti-usb
555 TITLE:=Support for TI USB 3410/5052
556 KCONFIG:=CONFIG_USB_SERIAL_TI
557 FILES:=$(LINUX_DIR)/drivers/usb/serial/ti_usb_3410_5052.ko
558 AUTOLOAD:=$(call AutoProbe,ti_usb_3410_5052)
559 $(call AddDepends/usb-serial)
560 endef
561
562 define KernelPackage/usb-serial-ti-usb/description
563 Kernel support for TI USB 3410/5052 devices
564 endef
565
566 $(eval $(call KernelPackage,usb-serial-ti-usb))
567
568
569 define KernelPackage/usb-serial-ipw
570 TITLE:=Support for IPWireless 3G devices
571 KCONFIG:=CONFIG_USB_SERIAL_IPW
572 FILES:=$(LINUX_DIR)/drivers/usb/serial/ipw.ko
573 AUTOLOAD:=$(call AutoProbe,ipw)
574 $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
575 endef
576
577 $(eval $(call KernelPackage,usb-serial-ipw))
578
579
580 define KernelPackage/usb-serial-mct
581 TITLE:=Support for Magic Control Tech. devices
582 KCONFIG:=CONFIG_USB_SERIAL_MCT_U232
583 FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.ko
584 AUTOLOAD:=$(call AutoProbe,mct_u232)
585 $(call AddDepends/usb-serial)
586 endef
587
588 define KernelPackage/usb-serial-mct/description
589 Kernel support for Magic Control Technology USB-to-Serial converters
590 endef
591
592 $(eval $(call KernelPackage,usb-serial-mct))
593
594
595 define KernelPackage/usb-serial-mos7720
596 TITLE:=Support for Moschip MOS7720 devices
597 KCONFIG:=CONFIG_USB_SERIAL_MOS7720
598 FILES:=$(LINUX_DIR)/drivers/usb/serial/mos7720.ko
599 AUTOLOAD:=$(call AutoProbe,mos7720)
600 $(call AddDepends/usb-serial)
601 endef
602
603 define KernelPackage/usb-serial-mos7720/description
604 Kernel support for Moschip MOS7720 USB-to-Serial converters
605 endef
606
607 $(eval $(call KernelPackage,usb-serial-mos7720))
608
609
610 define KernelPackage/usb-serial-pl2303
611 TITLE:=Support for Prolific PL2303 devices
612 KCONFIG:=CONFIG_USB_SERIAL_PL2303
613 FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.ko
614 AUTOLOAD:=$(call AutoProbe,pl2303)
615 $(call AddDepends/usb-serial)
616 endef
617
618 define KernelPackage/usb-serial-pl2303/description
619 Kernel support for Prolific PL2303 USB-to-Serial converters
620 endef
621
622 $(eval $(call KernelPackage,usb-serial-pl2303))
623
624
625 define KernelPackage/usb-serial-cp210x
626 TITLE:=Support for Silicon Labs cp210x devices
627 KCONFIG:=CONFIG_USB_SERIAL_CP210X
628 FILES:=$(LINUX_DIR)/drivers/usb/serial/cp210x.ko
629 AUTOLOAD:=$(call AutoProbe,cp210x)
630 $(call AddDepends/usb-serial)
631 endef
632
633 define KernelPackage/usb-serial-cp210x/description
634 Kernel support for Silicon Labs cp210x USB-to-Serial converters
635 endef
636
637 $(eval $(call KernelPackage,usb-serial-cp210x))
638
639
640 define KernelPackage/usb-serial-ark3116
641 TITLE:=Support for ArkMicroChips ARK3116 devices
642 KCONFIG:=CONFIG_USB_SERIAL_ARK3116
643 FILES:=$(LINUX_DIR)/drivers/usb/serial/ark3116.ko
644 AUTOLOAD:=$(call AutoProbe,ark3116)
645 $(call AddDepends/usb-serial)
646 endef
647
648 define KernelPackage/usb-serial-ark3116/description
649 Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters
650 endef
651
652 $(eval $(call KernelPackage,usb-serial-ark3116))
653
654
655 define KernelPackage/usb-serial-oti6858
656 TITLE:=Support for Ours Technology OTI6858 devices
657 KCONFIG:=CONFIG_USB_SERIAL_OTI6858
658 FILES:=$(LINUX_DIR)/drivers/usb/serial/oti6858.ko
659 AUTOLOAD:=$(call AutoProbe,oti6858)
660 $(call AddDepends/usb-serial)
661 endef
662
663 define KernelPackage/usb-serial-oti6858/description
664 Kernel support for Ours Technology OTI6858 USB-to-Serial converters
665 endef
666
667 $(eval $(call KernelPackage,usb-serial-oti6858))
668
669
670 define KernelPackage/usb-serial-sierrawireless
671 TITLE:=Support for Sierra Wireless devices
672 KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS
673 FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.ko
674 AUTOLOAD:=$(call AutoProbe,sierra)
675 $(call AddDepends/usb-serial)
676 endef
677
678 define KernelPackage/usb-serial-sierrawireless/description
679 Kernel support for Sierra Wireless devices
680 endef
681
682 $(eval $(call KernelPackage,usb-serial-sierrawireless))
683
684
685 define KernelPackage/usb-serial-visor
686 TITLE:=Support for Handspring Visor devices
687 KCONFIG:=CONFIG_USB_SERIAL_VISOR
688 FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.ko
689 AUTOLOAD:=$(call AutoProbe,visor)
690 $(call AddDepends/usb-serial)
691 endef
692
693 define KernelPackage/usb-serial-visor/description
694 Kernel support for Handspring Visor PDAs
695 endef
696
697 $(eval $(call KernelPackage,usb-serial-visor))
698
699
700 define KernelPackage/usb-serial-cypress-m8
701 TITLE:=Support for CypressM8 USB-Serial
702 KCONFIG:=CONFIG_USB_SERIAL_CYPRESS_M8
703 FILES:=$(LINUX_DIR)/drivers/usb/serial/cypress_m8.ko
704 AUTOLOAD:=$(call AutoProbe,cypress_m8)
705 $(call AddDepends/usb-serial)
706 endef
707
708 define KernelPackage/usb-serial-cypress-m8/description
709 Kernel support for devices with Cypress M8 USB to Serial chip
710 (for example, the Delorme Earthmate LT-20 GPS)
711 Supported microcontrollers in the CY4601 family are:
712 CY7C63741 CY7C63742 CY7C63743 CY7C64013
713 endef
714
715 $(eval $(call KernelPackage,usb-serial-cypress-m8))
716
717
718 define KernelPackage/usb-serial-keyspan
719 TITLE:=Support for Keyspan USB-to-Serial devices
720 KCONFIG:= \
721 CONFIG_USB_SERIAL_KEYSPAN \
722 CONFIG_USB_SERIAL_KEYSPAN_USA28 \
723 CONFIG_USB_SERIAL_KEYSPAN_USA28X \
724 CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
725 CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
726 CONFIG_USB_SERIAL_KEYSPAN_USA19 \
727 CONFIG_USB_SERIAL_KEYSPAN_USA18X \
728 CONFIG_USB_SERIAL_KEYSPAN_USA19W \
729 CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
730 CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
731 CONFIG_USB_SERIAL_KEYSPAN_MPR \
732 CONFIG_USB_SERIAL_KEYSPAN_USA49W \
733 CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
734 FILES:= \
735 $(LINUX_DIR)/drivers/usb/serial/keyspan.ko \
736 $(wildcard $(LINUX_DIR)/drivers/usb/misc/ezusb.ko)
737 AUTOLOAD:=$(call AutoProbe,ezusb keyspan)
738 $(call AddDepends/usb-serial)
739 endef
740
741 define KernelPackage/usb-serial-keyspan/description
742 Kernel support for Keyspan USB-to-Serial devices
743 endef
744
745 $(eval $(call KernelPackage,usb-serial-keyspan))
746
747
748 define KernelPackage/usb-serial-wwan
749 TITLE:=Support for GSM and CDMA modems
750 KCONFIG:=CONFIG_USB_SERIAL_WWAN
751 FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko
752 AUTOLOAD:=$(call AutoProbe,usb_wwan)
753 $(call AddDepends/usb-serial)
754 endef
755
756 define KernelPackage/usb-serial-wwan/description
757 Kernel support for USB GSM and CDMA modems
758 endef
759
760 $(eval $(call KernelPackage,usb-serial-wwan))
761
762
763 define KernelPackage/usb-serial-option
764 TITLE:=Support for Option HSDPA modems
765 DEPENDS:=+kmod-usb-serial-wwan
766 KCONFIG:=CONFIG_USB_SERIAL_OPTION
767 FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko
768 AUTOLOAD:=$(call AutoProbe,option)
769 $(call AddDepends/usb-serial)
770 endef
771
772 define KernelPackage/usb-serial-option/description
773 Kernel support for Option HSDPA modems
774 endef
775
776 $(eval $(call KernelPackage,usb-serial-option))
777
778
779 define KernelPackage/usb-serial-qualcomm
780 TITLE:=Support for Qualcomm USB serial
781 KCONFIG:=CONFIG_USB_SERIAL_QUALCOMM
782 FILES:=$(LINUX_DIR)/drivers/usb/serial/qcserial.ko
783 AUTOLOAD:=$(call AutoProbe,qcserial)
784 $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
785 endef
786
787 define KernelPackage/usb-serial-qualcomm/description
788 Kernel support for Qualcomm USB Serial devices (Gobi)
789 endef
790
791 $(eval $(call KernelPackage,usb-serial-qualcomm))
792
793
794 define KernelPackage/usb-storage
795 TITLE:=USB Storage support
796 DEPENDS:= +kmod-scsi-core
797 KCONFIG:=CONFIG_USB_STORAGE
798 FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
799 AUTOLOAD:=$(call AutoProbe,usb-storage,1)
800 $(call AddDepends/usb)
801 endef
802
803 define KernelPackage/usb-storage/description
804 Kernel support for USB Mass Storage devices
805 endef
806
807 $(eval $(call KernelPackage,usb-storage))
808
809
810 define KernelPackage/usb-storage-extras
811 SUBMENU:=$(USB_MENU)
812 TITLE:=Extra drivers for usb-storage
813 DEPENDS:=+kmod-usb-storage
814 KCONFIG:= \
815 CONFIG_USB_STORAGE_ALAUDA \
816 CONFIG_USB_STORAGE_CYPRESS_ATACB \
817 CONFIG_USB_STORAGE_DATAFAB \
818 CONFIG_USB_STORAGE_FREECOM \
819 CONFIG_USB_STORAGE_ISD200 \
820 CONFIG_USB_STORAGE_JUMPSHOT \
821 CONFIG_USB_STORAGE_KARMA \
822 CONFIG_USB_STORAGE_SDDR09 \
823 CONFIG_USB_STORAGE_SDDR55 \
824 CONFIG_USB_STORAGE_USBAT
825 FILES:= \
826 $(LINUX_DIR)/drivers/usb/storage/ums-alauda.ko \
827 $(LINUX_DIR)/drivers/usb/storage/ums-cypress.ko \
828 $(LINUX_DIR)/drivers/usb/storage/ums-datafab.ko \
829 $(LINUX_DIR)/drivers/usb/storage/ums-freecom.ko \
830 $(LINUX_DIR)/drivers/usb/storage/ums-isd200.ko \
831 $(LINUX_DIR)/drivers/usb/storage/ums-jumpshot.ko \
832 $(LINUX_DIR)/drivers/usb/storage/ums-karma.ko \
833 $(LINUX_DIR)/drivers/usb/storage/ums-sddr09.ko \
834 $(LINUX_DIR)/drivers/usb/storage/ums-sddr55.ko \
835 $(LINUX_DIR)/drivers/usb/storage/ums-usbat.ko
836 AUTOLOAD:=$(call AutoProbe,ums-alauda ums-cypress ums-datafab \
837 ums-freecom ums-isd200 ums-jumpshot \
838 ums-karma ums-sddr09 ums-sddr55 ums-usbat)
839 endef
840
841 define KernelPackage/usb-storage-extras/description
842 Say Y here if you want to have some more drivers,
843 such as for SmartMedia card readers
844 endef
845
846 $(eval $(call KernelPackage,usb-storage-extras))
847
848
849 define KernelPackage/usb-atm
850 TITLE:=Support for ATM on USB bus
851 DEPENDS:=+kmod-atm
852 KCONFIG:=CONFIG_USB_ATM
853 FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.ko
854 AUTOLOAD:=$(call AutoProbe,usbatm)
855 $(call AddDepends/usb)
856 endef
857
858 define KernelPackage/usb-atm/description
859 Kernel support for USB DSL modems
860 endef
861
862 $(eval $(call KernelPackage,usb-atm))
863
864
865 define AddDepends/usb-atm
866 SUBMENU:=$(USB_MENU)
867 DEPENDS+=kmod-usb-atm $(1)
868 endef
869
870
871 define KernelPackage/usb-atm-speedtouch
872 TITLE:=SpeedTouch USB ADSL modems support
873 KCONFIG:=CONFIG_USB_SPEEDTOUCH
874 FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.ko
875 AUTOLOAD:=$(call AutoProbe,speedtch)
876 $(call AddDepends/usb-atm)
877 endef
878
879 define KernelPackage/usb-atm-speedtouch/description
880 Kernel support for SpeedTouch USB ADSL modems
881 endef
882
883 $(eval $(call KernelPackage,usb-atm-speedtouch))
884
885
886 define KernelPackage/usb-atm-ueagle
887 TITLE:=Eagle 8051 based USB ADSL modems support
888 FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.ko
889 KCONFIG:=CONFIG_USB_UEAGLEATM
890 AUTOLOAD:=$(call AutoProbe,ueagle-atm)
891 $(call AddDepends/usb-atm)
892 endef
893
894 define KernelPackage/usb-atm-ueagle/description
895 Kernel support for Eagle 8051 based USB ADSL modems
896 endef
897
898 $(eval $(call KernelPackage,usb-atm-ueagle))
899
900
901 define KernelPackage/usb-atm-cxacru
902 TITLE:=cxacru
903 FILES:=$(LINUX_DIR)/drivers/usb/atm/cxacru.ko
904 KCONFIG:=CONFIG_USB_CXACRU
905 AUTOLOAD:=$(call AutoProbe,cxacru)
906 $(call AddDepends/usb-atm)
907 endef
908
909 define KernelPackage/usb-atm-cxacru/description
910 Kernel support for cxacru based USB ADSL modems
911 endef
912
913 $(eval $(call KernelPackage,usb-atm-cxacru))
914
915
916 define KernelPackage/usb-net
917 TITLE:=Kernel modules for USB-to-Ethernet convertors
918 DEPENDS:=+kmod-mii
919 KCONFIG:=CONFIG_USB_USBNET \
920 CONFIG_USB_NET_DRIVERS
921 AUTOLOAD:=$(call AutoProbe,usbnet)
922 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko
923 $(call AddDepends/usb)
924 endef
925
926 define KernelPackage/usb-net/description
927 Kernel modules for USB-to-Ethernet convertors
928 endef
929
930 $(eval $(call KernelPackage,usb-net))
931
932
933 define AddDepends/usb-net
934 SUBMENU:=$(USB_MENU)
935 DEPENDS+=kmod-usb-net $(1)
936 endef
937
938
939 define KernelPackage/usb-net-asix
940 TITLE:=Kernel module for USB-to-Ethernet Asix convertors
941 DEPENDS:=+kmod-libphy
942 KCONFIG:=CONFIG_USB_NET_AX8817X
943 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
944 AUTOLOAD:=$(call AutoProbe,asix)
945 $(call AddDepends/usb-net)
946 endef
947
948 define KernelPackage/usb-net-asix/description
949 Kernel module for USB-to-Ethernet Asix convertors
950 endef
951
952 $(eval $(call KernelPackage,usb-net-asix))
953
954
955 define KernelPackage/usb-net-asix-ax88179
956 TITLE:=Kernel module for USB-to-Gigabit-Ethernet Asix convertors
957 DEPENDS:=+kmod-libphy
958 KCONFIG:=CONFIG_USB_NET_AX88179_178A
959 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/ax88179_178a.ko
960 AUTOLOAD:=$(call AutoProbe,ax88179_178a)
961 $(call AddDepends/usb-net)
962 endef
963
964 define KernelPackage/usb-net-asix-ax88179/description
965 Kernel module for USB-to-Ethernet ASIX AX88179 based USB 3.0/2.0
966 to Gigabit Ethernet adapters.
967 endef
968
969 $(eval $(call KernelPackage,usb-net-asix-ax88179))
970
971
972 define KernelPackage/usb-net-hso
973 TITLE:=Kernel module for Option USB High Speed Mobile Devices
974 KCONFIG:=CONFIG_USB_HSO
975 FILES:= \
976 $(LINUX_DIR)/drivers/$(USBNET_DIR)/hso.ko
977 AUTOLOAD:=$(call AutoProbe,hso)
978 $(call AddDepends/usb-net)
979 $(call AddDepends/rfkill)
980 endef
981
982 define KernelPackage/usb-net-hso/description
983 Kernel module for Option USB High Speed Mobile Devices
984 endef
985
986 $(eval $(call KernelPackage,usb-net-hso))
987
988
989 define KernelPackage/usb-net-kaweth
990 TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
991 KCONFIG:=CONFIG_USB_KAWETH
992 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.ko
993 AUTOLOAD:=$(call AutoProbe,kaweth)
994 $(call AddDepends/usb-net)
995 endef
996
997 define KernelPackage/usb-net-kaweth/description
998 Kernel module for USB-to-Ethernet Kaweth convertors
999 endef
1000
1001 $(eval $(call KernelPackage,usb-net-kaweth))
1002
1003
1004 define KernelPackage/usb-net-pegasus
1005 TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
1006 KCONFIG:=CONFIG_USB_PEGASUS
1007 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.ko
1008 AUTOLOAD:=$(call AutoProbe,pegasus)
1009 $(call AddDepends/usb-net)
1010 endef
1011
1012 define KernelPackage/usb-net-pegasus/description
1013 Kernel module for USB-to-Ethernet Pegasus convertors
1014 endef
1015
1016 $(eval $(call KernelPackage,usb-net-pegasus))
1017
1018
1019 define KernelPackage/usb-net-mcs7830
1020 TITLE:=Kernel module for USB-to-Ethernet MCS7830 convertors
1021 KCONFIG:=CONFIG_USB_NET_MCS7830
1022 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/mcs7830.ko
1023 AUTOLOAD:=$(call AutoProbe,mcs7830)
1024 $(call AddDepends/usb-net)
1025 endef
1026
1027 define KernelPackage/usb-net-mcs7830/description
1028 Kernel module for USB-to-Ethernet MCS7830 convertors
1029 endef
1030
1031 $(eval $(call KernelPackage,usb-net-mcs7830))
1032
1033
1034 define KernelPackage/usb-net-smsc95xx
1035 TITLE:=SMSC LAN95XX based USB 2.0 10/100 ethernet devices
1036 KCONFIG:=CONFIG_USB_NET_SMSC95XX
1037 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc95xx.ko
1038 AUTOLOAD:=$(call AutoProbe,smsc95xx)
1039 $(call AddDepends/usb-net, +kmod-lib-crc16)
1040 endef
1041
1042 define KernelPackage/usb-net-smsc95xx/description
1043 Kernel module for SMSC LAN95XX based devices
1044 endef
1045
1046 $(eval $(call KernelPackage,usb-net-smsc95xx))
1047
1048
1049 define KernelPackage/usb-net-dm9601-ether
1050 TITLE:=Support for DM9601 ethernet connections
1051 KCONFIG:=CONFIG_USB_NET_DM9601
1052 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/dm9601.ko
1053 AUTOLOAD:=$(call AutoProbe,dm9601)
1054 $(call AddDepends/usb-net)
1055 endef
1056
1057 define KernelPackage/usb-net-dm9601-ether/description
1058 Kernel support for USB DM9601 devices
1059 endef
1060
1061 $(eval $(call KernelPackage,usb-net-dm9601-ether))
1062
1063 define KernelPackage/usb-net-cdc-ether
1064 TITLE:=Support for cdc ethernet connections
1065 KCONFIG:=CONFIG_USB_NET_CDCETHER
1066 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ether.ko
1067 AUTOLOAD:=$(call AutoProbe,cdc_ether)
1068 $(call AddDepends/usb-net)
1069 endef
1070
1071 define KernelPackage/usb-net-cdc-ether/description
1072 Kernel support for USB CDC Ethernet devices
1073 endef
1074
1075 $(eval $(call KernelPackage,usb-net-cdc-ether))
1076
1077
1078 define KernelPackage/usb-net-cdc-eem
1079 TITLE:=Support for CDC EEM connections
1080 KCONFIG:=CONFIG_USB_NET_CDC_EEM
1081 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_eem.ko
1082 AUTOLOAD:=$(call AutoProbe,cdc_eem)
1083 $(call AddDepends/usb-net)
1084 endef
1085
1086 define KernelPackage/usb-net-cdc-eem/description
1087 Kernel support for USB CDC EEM
1088 endef
1089
1090 $(eval $(call KernelPackage,usb-net-cdc-eem))
1091
1092
1093 define KernelPackage/usb-net-cdc-subset
1094 TITLE:=Support for CDC Ethernet subset connections
1095 KCONFIG:= \
1096 CONFIG_USB_NET_CDC_SUBSET \
1097 CONFIG_USB_ARMLINUX
1098 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_subset.ko
1099 AUTOLOAD:=$(call AutoProbe,cdc_subset)
1100 $(call AddDepends/usb-net)
1101 endef
1102
1103 define KernelPackage/usb-net-cdc-subset/description
1104 Kernel support for Simple USB Network Links (CDC Ethernet subset)
1105 endef
1106
1107 $(eval $(call KernelPackage,usb-net-cdc-subset))
1108
1109
1110 define KernelPackage/usb-net-qmi-wwan
1111 TITLE:=QMI WWAN driver
1112 KCONFIG:=CONFIG_USB_NET_QMI_WWAN
1113 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko
1114 AUTOLOAD:=$(call AutoProbe,qmi_wwan)
1115 $(call AddDepends/usb-net,+kmod-usb-wdm)
1116 endef
1117
1118 define KernelPackage/usb-net-qmi-wwan/description
1119 QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
1120 endef
1121
1122 $(eval $(call KernelPackage,usb-net-qmi-wwan))
1123
1124
1125 define KernelPackage/usb-net-rtl8150
1126 TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
1127 KCONFIG:=CONFIG_USB_RTL8150
1128 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
1129 AUTOLOAD:=$(call AutoProbe,rtl8150)
1130 $(call AddDepends/usb-net)
1131 endef
1132
1133 define KernelPackage/usb-net-rtl8150/description
1134 Kernel module for USB-to-Ethernet Realtek 8150 convertors
1135 endef
1136
1137 $(eval $(call KernelPackage,usb-net-rtl8150))
1138
1139
1140 define KernelPackage/usb-net-rtl8152
1141 TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
1142 KCONFIG:=CONFIG_USB_RTL8152
1143 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
1144 AUTOLOAD:=$(call AutoProbe,r8152)
1145 $(call AddDepends/usb-net)
1146 endef
1147
1148 define KernelPackage/usb-net-rtl8152/description
1149 Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
1150 endef
1151
1152 $(eval $(call KernelPackage,usb-net-rtl8152))
1153
1154
1155 define KernelPackage/usb-net-sr9700
1156 TITLE:=Support for CoreChip SR9700 ethernet devices
1157 KCONFIG:=CONFIG_USB_NET_SR9700
1158 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/sr9700.ko
1159 AUTOLOAD:=$(call AutoProbe,sr9700)
1160 $(call AddDepends/usb-net)
1161 endef
1162
1163 define KernelPackage/usb-net-sr9700/description
1164 Kernel module for CoreChip-sz SR9700 based USB 1.1 10/100 ethernet devices
1165 endef
1166
1167 $(eval $(call KernelPackage,usb-net-sr9700))
1168
1169
1170 define KernelPackage/usb-net-rndis
1171 TITLE:=Support for RNDIS connections
1172 KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
1173 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/rndis_host.ko
1174 AUTOLOAD:=$(call AutoProbe,rndis_host)
1175 $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
1176 endef
1177
1178 define KernelPackage/usb-net-rndis/description
1179 Kernel support for RNDIS connections
1180 endef
1181
1182 $(eval $(call KernelPackage,usb-net-rndis))
1183
1184
1185 define KernelPackage/usb-net-cdc-mbim
1186 SUBMENU:=$(USB_MENU)
1187 TITLE:=Kernel module for MBIM Devices
1188 KCONFIG:=CONFIG_USB_NET_CDC_MBIM
1189 FILES:= \
1190 $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_mbim.ko
1191 AUTOLOAD:=$(call AutoProbe,cdc_mbim)
1192 $(call AddDepends/usb-net,+kmod-usb-wdm +kmod-usb-net-cdc-ncm)
1193 endef
1194
1195 define KernelPackage/usb-net-cdc-mbim/description
1196 Kernel module for Option USB High Speed Mobile Devices
1197 endef
1198
1199 $(eval $(call KernelPackage,usb-net-cdc-mbim))
1200
1201
1202 define KernelPackage/usb-net-cdc-ncm
1203 TITLE:=Support for CDC NCM connections
1204 KCONFIG:=CONFIG_USB_NET_CDC_NCM
1205 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
1206 AUTOLOAD:=$(call AutoProbe,cdc_ncm)
1207 $(call AddDepends/usb-net)
1208 endef
1209
1210 define KernelPackage/usb-net-cdc-ncm/description
1211 Kernel support for CDC NCM connections
1212 endef
1213
1214 $(eval $(call KernelPackage,usb-net-cdc-ncm))
1215
1216
1217 define KernelPackage/usb-net-huawei-cdc-ncm
1218 TITLE:=Support for Huawei CDC NCM connections
1219 KCONFIG:=CONFIG_USB_NET_HUAWEI_CDC_NCM
1220 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/huawei_cdc_ncm.ko
1221 AUTOLOAD:=$(call AutoProbe,huawei_cdc_ncm)
1222 $(call AddDepends/usb-net,+kmod-usb-net-cdc-ncm +kmod-usb-wdm)
1223 endef
1224
1225 define KernelPackage/usb-net-huawei-cdc-ncm/description
1226 Kernel support for Huawei CDC NCM connections
1227 endef
1228
1229 $(eval $(call KernelPackage,usb-net-huawei-cdc-ncm))
1230
1231
1232 define KernelPackage/usb-net-sierrawireless
1233 TITLE:=Support for Sierra Wireless devices
1234 KCONFIG:=CONFIG_USB_SIERRA_NET
1235 FILES:=$(LINUX_DIR)/drivers/net/usb/sierra_net.ko
1236 AUTOLOAD:=$(call AutoProbe,sierra_net)
1237 $(call AddDepends/usb-net)
1238 endef
1239
1240 define KernelPackage/usb-net-sierrawireless/description
1241 Kernel support for Sierra Wireless devices
1242 endef
1243
1244 $(eval $(call KernelPackage,usb-net-sierrawireless))
1245
1246
1247 define KernelPackage/usb-net-ipheth
1248 TITLE:=Apple iPhone USB Ethernet driver
1249 KCONFIG:=CONFIG_USB_IPHETH
1250 FILES:=$(LINUX_DIR)/drivers/net/usb/ipheth.ko
1251 AUTOLOAD:=$(call AutoProbe,ipheth)
1252 $(call AddDepends/usb-net)
1253 endef
1254
1255 define KernelPackage/usb-net-ipheth/description
1256 Kernel support for Apple iPhone USB Ethernet driver
1257 endef
1258
1259 $(eval $(call KernelPackage,usb-net-ipheth))
1260
1261
1262 define KernelPackage/usb-net-kalmia
1263 TITLE:=Samsung Kalmia based LTE USB modem
1264 KCONFIG:=CONFIG_USB_NET_KALMIA
1265 FILES:=$(LINUX_DIR)/drivers/net/usb/kalmia.ko
1266 AUTOLOAD:=$(call AutoProbe,kalmia)
1267 $(call AddDepends/usb-net)
1268 endef
1269
1270 define KernelPackage/usb-net-kalmia/description
1271 Kernel support for Samsung Kalmia based LTE USB modem
1272 endef
1273
1274 $(eval $(call KernelPackage,usb-net-kalmia))
1275
1276
1277 define KernelPackage/usb-hid
1278 TITLE:=Support for USB Human Input Devices
1279 KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y
1280 DEPENDS:=+kmod-hid +kmod-hid-generic +kmod-input-evdev
1281 FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
1282 AUTOLOAD:=$(call AutoProbe,usbhid)
1283 $(call AddDepends/usb)
1284 endef
1285
1286 define KernelPackage/usb-hid/description
1287 Kernel support for USB HID devices such as keyboards and mice
1288 endef
1289
1290 $(eval $(call KernelPackage,usb-hid))
1291
1292
1293 define KernelPackage/usb-yealink
1294 TITLE:=USB Yealink VOIP phone
1295 DEPENDS:=+kmod-input-evdev
1296 KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
1297 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
1298 AUTOLOAD:=$(call AutoProbe,yealink)
1299 $(call AddDepends/usb)
1300 endef
1301
1302 define KernelPackage/usb-yealink/description
1303 Kernel support for Yealink VOIP phone
1304 endef
1305
1306 $(eval $(call KernelPackage,usb-yealink))
1307
1308
1309 define KernelPackage/usb-cm109
1310 TITLE:=Support for CM109 device
1311 DEPENDS:=+kmod-input-evdev
1312 KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y
1313 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko
1314 AUTOLOAD:=$(call AutoProbe,cm109)
1315 $(call AddDepends/usb)
1316 endef
1317
1318 define KernelPackage/usb-cm109/description
1319 Kernel support for CM109 VOIP phone
1320 endef
1321
1322 $(eval $(call KernelPackage,usb-cm109))
1323
1324
1325 define KernelPackage/usb-test
1326 TITLE:=USB Testing Driver
1327 DEPENDS:=@DEVEL
1328 KCONFIG:=CONFIG_USB_TEST
1329 FILES:=$(LINUX_DIR)/drivers/usb/misc/usbtest.ko
1330 $(call AddDepends/usb)
1331 endef
1332
1333 define KernelPackage/usb-test/description
1334 Kernel support for testing USB Host Controller software
1335 endef
1336
1337 $(eval $(call KernelPackage,usb-test))
1338
1339
1340 define KernelPackage/usbip
1341 TITLE := USB-over-IP kernel support
1342 KCONFIG:= \
1343 CONFIG_USBIP_CORE \
1344 CONFIG_USBIP_DEBUG=n
1345 FILES:=$(LINUX_DIR)/drivers/usb/usbip/usbip-core.ko
1346 AUTOLOAD:=$(call AutoProbe,usbip-core)
1347 $(call AddDepends/usb)
1348 endef
1349
1350 $(eval $(call KernelPackage,usbip))
1351
1352
1353 define KernelPackage/usbip-client
1354 TITLE := USB-over-IP client driver
1355 DEPENDS := +kmod-usbip
1356 KCONFIG := CONFIG_USBIP_VHCI_HCD
1357 FILES :=$(LINUX_DIR)/drivers/usb/usbip/vhci-hcd.ko
1358 AUTOLOAD := $(call AutoProbe,vhci-hcd)
1359 $(call AddDepends/usb)
1360 endef
1361
1362 $(eval $(call KernelPackage,usbip-client))
1363
1364
1365 define KernelPackage/usbip-server
1366 $(call KernelPackage/usbip/Default)
1367 TITLE := USB-over-IP host driver
1368 DEPENDS := +kmod-usbip
1369 KCONFIG := CONFIG_USBIP_HOST
1370 FILES :=$(LINUX_DIR)/drivers/usb/usbip/usbip-host.ko
1371 AUTOLOAD := $(call AutoProbe,usbip-host)
1372 $(call AddDepends/usb)
1373 endef
1374
1375 $(eval $(call KernelPackage,usbip-server))
1376
1377
1378 define KernelPackage/usb-chipidea
1379 TITLE:=Host and device support for Chipidea controllers
1380 DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget @TARGET_ar71xx +kmod-usb2
1381 KCONFIG:= \
1382 CONFIG_NOP_USB_XCEIV=y \
1383 CONFIG_EXTCON \
1384 CONFIG_USB_CHIPIDEA \
1385 CONFIG_USB_CHIPIDEA_HOST=y \
1386 CONFIG_USB_CHIPIDEA_UDC=y \
1387 CONFIG_USB_CHIPIDEA_DEBUG=y
1388 FILES:= \
1389 $(LINUX_DIR)/drivers/extcon/extcon.ko@lt4.9 \
1390 $(LINUX_DIR)/drivers/extcon/extcon-core.ko@ge4.9 \
1391 $(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc.ko
1392 AUTOLOAD:=$(call AutoLoad,51,ci_hdrc,0)
1393 $(call AddDepends/usb)
1394 endef
1395
1396 define KernelPackage/usb-chipidea/description
1397 Kernel support for USB Chipidea controllers
1398 endef
1399
1400 $(eval $(call KernelPackage,usb-chipidea))
1401
1402 define KernelPackage/usbmon
1403 TITLE:=USB traffic monitor
1404 KCONFIG:=CONFIG_USB_MON
1405 $(call AddDepends/usb)
1406 FILES:=$(LINUX_DIR)/drivers/usb/mon/usbmon.ko
1407 AUTOLOAD:=$(call AutoProbe,usbmon)
1408 endef
1409
1410 define KernelPackage/usbmon/description
1411 Kernel support for USB traffic monitoring
1412 endef
1413
1414 $(eval $(call KernelPackage,usbmon))
1415
1416 XHCI_MODULES := xhci-hcd xhci-pci xhci-plat-hcd
1417 ifdef CONFIG_TARGET_ramips_mt7621
1418 XHCI_MODULES += xhci-mtk
1419 endif
1420 XHCI_FILES := $(wildcard $(patsubst %,$(LINUX_DIR)/drivers/usb/host/%.ko,$(XHCI_MODULES)))
1421 XHCI_AUTOLOAD := $(patsubst $(LINUX_DIR)/drivers/usb/host/%.ko,%,$(XHCI_FILES))
1422
1423 define KernelPackage/usb3
1424 TITLE:=Support for USB3 controllers
1425 DEPENDS:= \
1426 +TARGET_bcm53xx:kmod-usb-bcma \
1427 +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3
1428 KCONFIG:= \
1429 CONFIG_USB_XHCI_HCD \
1430 CONFIG_USB_XHCI_PCI \
1431 CONFIG_USB_XHCI_PLATFORM \
1432 CONFIG_USB_XHCI_MVEBU=y \
1433 CONFIG_USB_XHCI_MTK \
1434 CONFIG_USB_XHCI_HCD_DEBUGGING=n
1435 FILES:= \
1436 $(XHCI_FILES)
1437 AUTOLOAD:=$(call AutoLoad,54,$(XHCI_AUTOLOAD),1)
1438 $(call AddDepends/usb)
1439 endef
1440
1441 define KernelPackage/usb3/description
1442 Kernel support for USB3 (XHCI) controllers
1443 endef
1444
1445 $(eval $(call KernelPackage,usb3))
1446
1447
1448 define KernelPackage/usb-net2280
1449 TITLE:=Support for NetChip 228x PCI USB peripheral controller
1450 KCONFIG:= CONFIG_USB_NET2280
1451 DEPENDS:=@PCI_SUPPORT +kmod-usb-gadget
1452 FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/net2280.ko
1453 AUTOLOAD:=$(call AutoLoad,46,net2280)
1454 $(call AddDepends/usb)
1455 endef
1456
1457 define KernelPackage/usb-net2280/description
1458 Kernel support for NetChip 228x / PLX USB338x PCI USB peripheral controller.
1459 endef
1460
1461 $(eval $(call KernelPackage,usb-net2280))
1462