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