usb.mk 45 KB

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