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