1
0

usb.mk 38 KB

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