1
0

usb.mk 45 KB

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