usb.mk 42 KB

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