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