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