usb.mk 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836
  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/phy-ath79-usb
  57. TITLE:=Support for ATH79 USB PHY
  58. KCONFIG:=CONFIG_PHY_AR7100_USB \
  59. CONFIG_PHY_AR7200_USB
  60. DEPENDS:=@TARGET_ath79
  61. HIDDEN:=1
  62. FILES:=$(LINUX_DIR)/drivers/phy/phy-ar7100-usb.ko \
  63. $(LINUX_DIR)/drivers/phy/phy-ar7200-usb.ko
  64. AUTOLOAD:=$(call AutoLoad,21,phy-ar7100-usb phy-ar7200-usb,1)
  65. $(call AddDepends/usb)
  66. endef
  67. define KernelPackage/phy-ath79-usb/description
  68. Support for ATH79 USB transceiver
  69. endef
  70. $(eval $(call KernelPackage,phy-ath79-usb))
  71. define KernelPackage/usb-gadget
  72. TITLE:=USB Gadget support
  73. KCONFIG:=CONFIG_USB_GADGET
  74. HIDDEN:=1
  75. FILES:=\
  76. $(LINUX_DIR)/drivers/usb/gadget/udc/udc-core.ko
  77. AUTOLOAD:=$(call AutoLoad,21,udc-core,1)
  78. DEPENDS:=@USB_GADGET_SUPPORT
  79. $(call AddDepends/usb)
  80. endef
  81. define KernelPackage/usb-gadget/description
  82. Kernel support for USB Gadget mode
  83. endef
  84. $(eval $(call KernelPackage,usb-gadget))
  85. define KernelPackage/usb-lib-composite
  86. TITLE:=USB lib composite
  87. KCONFIG:=CONFIG_USB_LIBCOMPOSITE
  88. DEPENDS:=+kmod-usb-gadget +kmod-fs-configfs
  89. HIDDEN:=1
  90. FILES:=$(LINUX_DIR)/drivers/usb/gadget/libcomposite.ko
  91. AUTOLOAD:=$(call AutoLoad,50,libcomposite)
  92. $(call AddDepends/usb)
  93. endef
  94. define KernelPackage/usb-lib-composite/description
  95. Lib Composite
  96. endef
  97. $(eval $(call KernelPackage,usb-lib-composite))
  98. define KernelPackage/usb-gadget-hid
  99. TITLE:=USB HID Gadget Support
  100. KCONFIG:=CONFIG_USB_G_HID
  101. DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
  102. FILES:= \
  103. $(LINUX_DIR)/drivers/usb/gadget/legacy/g_hid.ko \
  104. $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_hid.ko
  105. AUTOLOAD:=$(call AutoLoad,52,usb_f_hid)
  106. $(call AddDepends/usb)
  107. endef
  108. define KernelPackage/usb-gadget-hid/description
  109. Kernel support for USB HID Gadget.
  110. endef
  111. $(eval $(call KernelPackage,usb-gadget-hid))
  112. define KernelPackage/usb-gadget-ehci-debug
  113. TITLE:=USB EHCI debug port Gadget support
  114. KCONFIG:=\
  115. CONFIG_USB_G_DBGP \
  116. CONFIG_USB_G_DBGP_SERIAL=y \
  117. CONFIG_USB_G_DBGP_PRINTK=n
  118. DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite +kmod-usb-gadget-serial
  119. FILES:=$(LINUX_DIR)/drivers/usb/gadget/legacy/g_dbgp.ko
  120. $(call AddDepends/usb)
  121. endef
  122. define KernelPackage/usb-gadget-ehci-debug/description
  123. Kernel support for USB EHCI debug port Gadget.
  124. endef
  125. $(eval $(call KernelPackage,usb-gadget-ehci-debug))
  126. define KernelPackage/usb-gadget-eth
  127. TITLE:=USB Ethernet Gadget support
  128. KCONFIG:= \
  129. CONFIG_USB_ETH \
  130. CONFIG_USB_ETH_RNDIS=y \
  131. CONFIG_USB_ETH_EEM=n
  132. DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
  133. FILES:= \
  134. $(LINUX_DIR)/drivers/usb/gadget/function/u_ether.ko \
  135. $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm.ko \
  136. $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \
  137. $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \
  138. $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko
  139. AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm)
  140. $(call AddDepends/usb)
  141. endef
  142. define KernelPackage/usb-gadget-eth/description
  143. Kernel support for USB Ethernet Gadget
  144. endef
  145. $(eval $(call KernelPackage,usb-gadget-eth))
  146. define KernelPackage/usb-gadget-ncm
  147. TITLE:=USB Network Control Model (NCM) Gadget support
  148. KCONFIG:=CONFIG_USB_G_NCM
  149. DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite \
  150. +kmod-usb-gadget-eth
  151. FILES:= \
  152. $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ncm.ko \
  153. $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ncm.ko
  154. AUTOLOAD:=$(call AutoLoad,52,usb_f_ncm)
  155. $(call AddDepends/usb)
  156. endef
  157. define KernelPackage/usb-gadget-ncm/description
  158. Kernel support for USB Network Control Model (NCM) Gadget
  159. endef
  160. $(eval $(call KernelPackage,usb-gadget-ncm))
  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_bcm47xx:kmod-usb-bcma \
  224. +TARGET_bcm47xx: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_bcm47xx||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_bcm47xx
  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_bcm47xx:kmod-usb-bcma \
  308. +TARGET_bcm47xx:kmod-usb-ssb \
  309. +TARGET_bcm53xx:kmod-usb-bcma \
  310. +TARGET_bcm53xx:kmod-phy-bcm-ns-usb2 \
  311. +TARGET_ath79:kmod-phy-ath79-usb \
  312. +kmod-usb-ehci
  313. KCONFIG:=\
  314. CONFIG_USB_EHCI_HCD_PLATFORM \
  315. CONFIG_USB_EHCI_BCM63XX=y \
  316. CONFIG_USB_IMX21_HCD=y \
  317. CONFIG_USB_EHCI_MXC=y \
  318. CONFIG_USB_OCTEON_EHCI=y \
  319. CONFIG_USB_EHCI_HCD_ORION=y \
  320. CONFIG_USB_EHCI_HCD_AT91=y \
  321. CONFIG_USB_EHCI_FSL
  322. FILES:= \
  323. $(LINUX_DIR)/drivers/usb/host/ehci-platform.ko
  324. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-orion.ko),)
  325. FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-orion.ko
  326. endif
  327. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko),)
  328. FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko
  329. endif
  330. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-fsl.ko),)
  331. FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-fsl.ko
  332. endif
  333. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/fsl-mph-dr-of.ko),)
  334. FILES+=$(LINUX_DIR)/drivers/usb/host/fsl-mph-dr-of.ko
  335. endif
  336. AUTOLOAD:=$(call AutoLoad,40,ehci-hcd ehci-platform ehci-orion ehci-atmel ehci-fsl fsl-mph-dr-of,1)
  337. $(call AddDepends/usb)
  338. endef
  339. define KernelPackage/usb2/description
  340. Kernel support for USB2 (EHCI) controllers
  341. endef
  342. $(eval $(call KernelPackage,usb2))
  343. define KernelPackage/usb2-pci
  344. TITLE:=Support for PCI USB2 controllers
  345. DEPENDS:=@PCI_SUPPORT +kmod-usb2
  346. KCONFIG:= \
  347. CONFIG_USB_PCI=y \
  348. CONFIG_USB_EHCI_PCI
  349. FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-pci.ko
  350. AUTOLOAD:=$(call AutoLoad,42,ehci-pci,1)
  351. $(call AddDepends/usb)
  352. endef
  353. define KernelPackage/usb2-pci/description
  354. Kernel support for PCI USB2 (EHCI) controllers
  355. endef
  356. $(eval $(call KernelPackage,usb2-pci))
  357. define KernelPackage/usb-dwc2
  358. TITLE:=DWC2 USB controller driver
  359. DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget +kmod-usb-roles
  360. KCONFIG:= \
  361. CONFIG_USB_PCI=y \
  362. CONFIG_USB_DWC2 \
  363. CONFIG_USB_DWC2_PCI \
  364. CONFIG_USB_DWC2_PLATFORM \
  365. CONFIG_USB_DWC2_DEBUG=n \
  366. CONFIG_USB_DWC2_VERBOSE=n \
  367. CONFIG_USB_DWC2_TRACK_MISSED_SOFS=n \
  368. CONFIG_USB_DWC2_DEBUG_PERIODIC=n
  369. FILES:= \
  370. $(LINUX_DIR)/drivers/usb/dwc2/dwc2.ko
  371. AUTOLOAD:=$(call AutoLoad,54,dwc2,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-qcom
  398. TITLE:=DWC3 Qualcomm USB driver
  399. DEPENDS:=@(TARGET_ipq40xx||TARGET_ipq806x) +kmod-usb-dwc3
  400. KCONFIG:= CONFIG_USB_DWC3_QCOM
  401. FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3-qcom.ko
  402. AUTOLOAD:=$(call AutoLoad,53,dwc3-qcom,1)
  403. $(call AddDepends/usb)
  404. endef
  405. define KernelPackage/usb-dwc3-qcom/description
  406. Some Qualcomm SoCs use DesignWare Core IP for USB2/3 functionality.
  407. This driver also handles Qscratch wrapper which is needed for
  408. peripheral mode support.
  409. endef
  410. $(eval $(call KernelPackage,usb-dwc3-qcom))
  411. define KernelPackage/usb-acm
  412. TITLE:=Support for modems/isdn controllers
  413. KCONFIG:=CONFIG_USB_ACM
  414. FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
  415. AUTOLOAD:=$(call AutoProbe,cdc-acm)
  416. $(call AddDepends/usb)
  417. endef
  418. define KernelPackage/usb-acm/description
  419. Kernel support for USB ACM devices (modems/isdn controllers)
  420. endef
  421. $(eval $(call KernelPackage,usb-acm))
  422. define KernelPackage/usb-wdm
  423. TITLE:=USB Wireless Device Management
  424. KCONFIG:=CONFIG_USB_WDM
  425. FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko
  426. AUTOLOAD:=$(call AutoProbe,cdc-wdm)
  427. $(call AddDepends/usb)
  428. $(call AddDepends/usb-net)
  429. endef
  430. define KernelPackage/usb-wdm/description
  431. USB Wireless Device Management support
  432. endef
  433. $(eval $(call KernelPackage,usb-wdm))
  434. define KernelPackage/usb-audio
  435. TITLE:=Support for USB audio devices
  436. KCONFIG:= \
  437. CONFIG_USB_AUDIO \
  438. CONFIG_SND_USB=y \
  439. CONFIG_SND_USB_AUDIO
  440. $(call AddDepends/usb)
  441. $(call AddDepends/sound)
  442. FILES:= \
  443. $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
  444. $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
  445. AUTOLOAD:=$(call AutoProbe,snd-usbmidi-lib snd-usb-audio)
  446. endef
  447. define KernelPackage/usb-audio/description
  448. Kernel support for USB audio devices
  449. endef
  450. $(eval $(call KernelPackage,usb-audio))
  451. define KernelPackage/usb-printer
  452. TITLE:=Support for printers
  453. KCONFIG:=CONFIG_USB_PRINTER
  454. FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
  455. AUTOLOAD:=$(call AutoProbe,usblp)
  456. $(call AddDepends/usb)
  457. endef
  458. define KernelPackage/usb-printer/description
  459. Kernel support for USB printers
  460. endef
  461. $(eval $(call KernelPackage,usb-printer))
  462. define KernelPackage/usb-serial
  463. TITLE:=Support for USB-to-Serial converters
  464. KCONFIG:=CONFIG_USB_SERIAL
  465. FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.ko
  466. AUTOLOAD:=$(call AutoProbe,usbserial)
  467. $(call AddDepends/usb)
  468. endef
  469. define KernelPackage/usb-serial/description
  470. Kernel support for USB-to-Serial converters
  471. endef
  472. $(eval $(call KernelPackage,usb-serial))
  473. define AddDepends/usb-serial
  474. SUBMENU:=$(USB_MENU)
  475. DEPENDS+=+kmod-usb-serial $(1)
  476. endef
  477. define KernelPackage/usb-serial-belkin
  478. TITLE:=Support for Belkin devices
  479. KCONFIG:=CONFIG_USB_SERIAL_BELKIN
  480. FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.ko
  481. AUTOLOAD:=$(call AutoProbe,belkin_sa)
  482. $(call AddDepends/usb-serial)
  483. endef
  484. define KernelPackage/usb-serial-belkin/description
  485. Kernel support for Belkin USB-to-Serial converters
  486. endef
  487. $(eval $(call KernelPackage,usb-serial-belkin))
  488. define KernelPackage/usb-serial-ch341
  489. TITLE:=Support for CH341 devices
  490. KCONFIG:=CONFIG_USB_SERIAL_CH341
  491. FILES:=$(LINUX_DIR)/drivers/usb/serial/ch341.ko
  492. AUTOLOAD:=$(call AutoProbe,ch341)
  493. $(call AddDepends/usb-serial)
  494. endef
  495. define KernelPackage/usb-serial-ch341/description
  496. Kernel support for Winchiphead CH341 USB-to-Serial converters
  497. endef
  498. $(eval $(call KernelPackage,usb-serial-ch341))
  499. define KernelPackage/usb-serial-edgeport
  500. TITLE:=Support for Digi Edgeport devices
  501. KCONFIG:=CONFIG_USB_SERIAL_EDGEPORT
  502. FILES:=$(LINUX_DIR)/drivers/usb/serial/io_edgeport.ko
  503. AUTOLOAD:=$(call AutoProbe,io_edgeport)
  504. $(call AddDepends/usb-serial)
  505. DEPENDS+=+edgeport-firmware
  506. endef
  507. define KernelPackage/usb-serial-edgeport/description
  508. Kernel support for Inside Out Networks (Digi)
  509. Edgeport/4
  510. Rapidport/4
  511. Edgeport/4t
  512. Edgeport/2
  513. Edgeport/4i
  514. Edgeport/2i
  515. Edgeport/421
  516. Edgeport/21
  517. Edgeport/8
  518. Edgeport/8 Dual
  519. Edgeport/2D8
  520. Edgeport/4D8
  521. Edgeport/8i
  522. Edgeport/2 DIN
  523. Edgeport/4 DIN
  524. Edgeport/16 Dual
  525. endef
  526. $(eval $(call KernelPackage,usb-serial-edgeport))
  527. define KernelPackage/usb-serial-ftdi
  528. TITLE:=Support for FTDI devices
  529. KCONFIG:=CONFIG_USB_SERIAL_FTDI_SIO
  530. FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.ko
  531. AUTOLOAD:=$(call AutoProbe,ftdi_sio)
  532. $(call AddDepends/usb-serial)
  533. endef
  534. define KernelPackage/usb-serial-ftdi/description
  535. Kernel support for FTDI USB-to-Serial converters
  536. endef
  537. $(eval $(call KernelPackage,usb-serial-ftdi))
  538. define KernelPackage/usb-serial-garmin
  539. TITLE:=Support for Garmin GPS devices
  540. KCONFIG:=CONFIG_USB_SERIAL_GARMIN
  541. FILES:=$(LINUX_DIR)/drivers/usb/serial/garmin_gps.ko
  542. AUTOLOAD:=$(call AutoProbe,garmin_gps)
  543. $(call AddDepends/usb-serial)
  544. endef
  545. define KernelPackage/usb-serial-garmin/description
  546. Should work with most Garmin GPS devices which have a native USB port.
  547. endef
  548. $(eval $(call KernelPackage,usb-serial-garmin))
  549. define KernelPackage/usb-serial-simple
  550. TITLE:=USB Serial Simple (Motorola phone)
  551. KCONFIG:=CONFIG_USB_SERIAL_SIMPLE
  552. FILES:=$(LINUX_DIR)/drivers/usb/serial/usb-serial-simple.ko
  553. AUTOLOAD:=$(call AutoProbe,usb-serial-simple)
  554. $(call AddDepends/usb-serial)
  555. endef
  556. define KernelPackage/usb-serial-simple/description
  557. Kernel support for "very simple devices".
  558. Specifically, it supports:
  559. - Suunto ANT+ USB device.
  560. - Medtronic CareLink USB device (3.18)
  561. - Fundamental Software dongle.
  562. - Google USB serial devices (3.19)
  563. - HP4x calculators
  564. - a number of Motorola phones
  565. - Novatel Wireless GPS receivers (3.18)
  566. - Siemens USB/MPI adapter.
  567. - ViVOtech ViVOpay USB device.
  568. - Infineon Modem Flashloader USB interface
  569. - ZIO Motherboard USB serial interface
  570. endef
  571. $(eval $(call KernelPackage,usb-serial-simple))
  572. define KernelPackage/usb-serial-ti-usb
  573. TITLE:=Support for TI USB 3410/5052
  574. KCONFIG:=CONFIG_USB_SERIAL_TI
  575. FILES:=$(LINUX_DIR)/drivers/usb/serial/ti_usb_3410_5052.ko
  576. AUTOLOAD:=$(call AutoProbe,ti_usb_3410_5052)
  577. $(call AddDepends/usb-serial)
  578. endef
  579. define KernelPackage/usb-serial-ti-usb/description
  580. Kernel support for TI USB 3410/5052 devices
  581. endef
  582. $(eval $(call KernelPackage,usb-serial-ti-usb))
  583. define KernelPackage/usb-serial-ipw
  584. TITLE:=Support for IPWireless 3G devices
  585. KCONFIG:=CONFIG_USB_SERIAL_IPW
  586. FILES:=$(LINUX_DIR)/drivers/usb/serial/ipw.ko
  587. AUTOLOAD:=$(call AutoProbe,ipw)
  588. $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
  589. endef
  590. $(eval $(call KernelPackage,usb-serial-ipw))
  591. define KernelPackage/usb-serial-mct
  592. TITLE:=Support for Magic Control Tech. devices
  593. KCONFIG:=CONFIG_USB_SERIAL_MCT_U232
  594. FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.ko
  595. AUTOLOAD:=$(call AutoProbe,mct_u232)
  596. $(call AddDepends/usb-serial)
  597. endef
  598. define KernelPackage/usb-serial-mct/description
  599. Kernel support for Magic Control Technology USB-to-Serial converters
  600. endef
  601. $(eval $(call KernelPackage,usb-serial-mct))
  602. define KernelPackage/usb-serial-mos7720
  603. TITLE:=Support for Moschip MOS7720 devices
  604. KCONFIG:=CONFIG_USB_SERIAL_MOS7720
  605. FILES:=$(LINUX_DIR)/drivers/usb/serial/mos7720.ko
  606. AUTOLOAD:=$(call AutoProbe,mos7720)
  607. $(call AddDepends/usb-serial)
  608. endef
  609. define KernelPackage/usb-serial-mos7720/description
  610. Kernel support for Moschip MOS7720 USB-to-Serial converters
  611. endef
  612. $(eval $(call KernelPackage,usb-serial-mos7720))
  613. define KernelPackage/usb-serial-mos7840
  614. TITLE:=Support for Moschip MOS7840 devices
  615. KCONFIG:=CONFIG_USB_SERIAL_MOS7840
  616. FILES:=$(LINUX_DIR)/drivers/usb/serial/mos7840.ko
  617. AUTOLOAD:=$(call AutoProbe,mos7840)
  618. $(call AddDepends/usb-serial)
  619. endef
  620. define KernelPackage/usb-serial-mos7840/description
  621. Kernel support for Moschip MOS7840 USB-to-Serial converters
  622. endef
  623. $(eval $(call KernelPackage,usb-serial-mos7840))
  624. define KernelPackage/usb-serial-pl2303
  625. TITLE:=Support for Prolific PL2303 devices
  626. KCONFIG:=CONFIG_USB_SERIAL_PL2303
  627. FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.ko
  628. AUTOLOAD:=$(call AutoProbe,pl2303)
  629. $(call AddDepends/usb-serial)
  630. endef
  631. define KernelPackage/usb-serial-pl2303/description
  632. Kernel support for Prolific PL2303 USB-to-Serial converters
  633. endef
  634. $(eval $(call KernelPackage,usb-serial-pl2303))
  635. define KernelPackage/usb-serial-cp210x
  636. TITLE:=Support for Silicon Labs cp210x devices
  637. KCONFIG:=CONFIG_USB_SERIAL_CP210X
  638. FILES:=$(LINUX_DIR)/drivers/usb/serial/cp210x.ko
  639. AUTOLOAD:=$(call AutoProbe,cp210x)
  640. $(call AddDepends/usb-serial)
  641. endef
  642. define KernelPackage/usb-serial-cp210x/description
  643. Kernel support for Silicon Labs cp210x USB-to-Serial converters
  644. endef
  645. $(eval $(call KernelPackage,usb-serial-cp210x))
  646. define KernelPackage/usb-serial-ark3116
  647. TITLE:=Support for ArkMicroChips ARK3116 devices
  648. KCONFIG:=CONFIG_USB_SERIAL_ARK3116
  649. FILES:=$(LINUX_DIR)/drivers/usb/serial/ark3116.ko
  650. AUTOLOAD:=$(call AutoProbe,ark3116)
  651. $(call AddDepends/usb-serial)
  652. endef
  653. define KernelPackage/usb-serial-ark3116/description
  654. Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters
  655. endef
  656. $(eval $(call KernelPackage,usb-serial-ark3116))
  657. define KernelPackage/usb-serial-oti6858
  658. TITLE:=Support for Ours Technology OTI6858 devices
  659. KCONFIG:=CONFIG_USB_SERIAL_OTI6858
  660. FILES:=$(LINUX_DIR)/drivers/usb/serial/oti6858.ko
  661. AUTOLOAD:=$(call AutoProbe,oti6858)
  662. $(call AddDepends/usb-serial)
  663. endef
  664. define KernelPackage/usb-serial-oti6858/description
  665. Kernel support for Ours Technology OTI6858 USB-to-Serial converters
  666. endef
  667. $(eval $(call KernelPackage,usb-serial-oti6858))
  668. define KernelPackage/usb-serial-sierrawireless
  669. TITLE:=Support for Sierra Wireless devices
  670. KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS
  671. FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.ko
  672. AUTOLOAD:=$(call AutoProbe,sierra)
  673. $(call AddDepends/usb-serial)
  674. endef
  675. define KernelPackage/usb-serial-sierrawireless/description
  676. Kernel support for Sierra Wireless devices
  677. endef
  678. $(eval $(call KernelPackage,usb-serial-sierrawireless))
  679. define KernelPackage/usb-serial-visor
  680. TITLE:=Support for Handspring Visor devices
  681. KCONFIG:=CONFIG_USB_SERIAL_VISOR
  682. FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.ko
  683. AUTOLOAD:=$(call AutoProbe,visor)
  684. $(call AddDepends/usb-serial)
  685. endef
  686. define KernelPackage/usb-serial-visor/description
  687. Kernel support for Handspring Visor PDAs
  688. endef
  689. $(eval $(call KernelPackage,usb-serial-visor))
  690. define KernelPackage/usb-serial-cypress-m8
  691. TITLE:=Support for CypressM8 USB-Serial
  692. KCONFIG:=CONFIG_USB_SERIAL_CYPRESS_M8
  693. FILES:=$(LINUX_DIR)/drivers/usb/serial/cypress_m8.ko
  694. AUTOLOAD:=$(call AutoProbe,cypress_m8)
  695. $(call AddDepends/usb-serial)
  696. endef
  697. define KernelPackage/usb-serial-cypress-m8/description
  698. Kernel support for devices with Cypress M8 USB to Serial chip
  699. (for example, the Delorme Earthmate LT-20 GPS)
  700. Supported microcontrollers in the CY4601 family are:
  701. CY7C63741 CY7C63742 CY7C63743 CY7C64013
  702. endef
  703. $(eval $(call KernelPackage,usb-serial-cypress-m8))
  704. define KernelPackage/usb-serial-keyspan
  705. TITLE:=Support for Keyspan USB-to-Serial devices
  706. KCONFIG:= \
  707. CONFIG_USB_SERIAL_KEYSPAN \
  708. CONFIG_USB_SERIAL_KEYSPAN_USA28 \
  709. CONFIG_USB_SERIAL_KEYSPAN_USA28X \
  710. CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
  711. CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
  712. CONFIG_USB_SERIAL_KEYSPAN_USA19 \
  713. CONFIG_USB_SERIAL_KEYSPAN_USA18X \
  714. CONFIG_USB_SERIAL_KEYSPAN_USA19W \
  715. CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
  716. CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
  717. CONFIG_USB_SERIAL_KEYSPAN_MPR \
  718. CONFIG_USB_SERIAL_KEYSPAN_USA49W \
  719. CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
  720. FILES:= \
  721. $(LINUX_DIR)/drivers/usb/serial/keyspan.ko \
  722. $(wildcard $(LINUX_DIR)/drivers/usb/misc/ezusb.ko)
  723. AUTOLOAD:=$(call AutoProbe,ezusb keyspan)
  724. $(call AddDepends/usb-serial)
  725. endef
  726. define KernelPackage/usb-serial-keyspan/description
  727. Kernel support for Keyspan USB-to-Serial devices
  728. endef
  729. $(eval $(call KernelPackage,usb-serial-keyspan))
  730. define KernelPackage/usb-serial-wwan
  731. TITLE:=Support for GSM and CDMA modems
  732. KCONFIG:=CONFIG_USB_SERIAL_WWAN
  733. FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko
  734. HIDDEN:=1
  735. AUTOLOAD:=$(call AutoProbe,usb_wwan)
  736. $(call AddDepends/usb-serial)
  737. endef
  738. define KernelPackage/usb-serial-wwan/description
  739. Kernel support for USB GSM and CDMA modems
  740. endef
  741. $(eval $(call KernelPackage,usb-serial-wwan))
  742. define KernelPackage/usb-serial-option
  743. TITLE:=Support for Option HSDPA modems
  744. KCONFIG:=CONFIG_USB_SERIAL_OPTION
  745. FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko
  746. AUTOLOAD:=$(call AutoProbe,option)
  747. $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
  748. endef
  749. define KernelPackage/usb-serial-option/description
  750. Kernel support for Option HSDPA modems
  751. endef
  752. $(eval $(call KernelPackage,usb-serial-option))
  753. define KernelPackage/usb-serial-qualcomm
  754. TITLE:=Support for Qualcomm USB serial
  755. KCONFIG:=CONFIG_USB_SERIAL_QUALCOMM
  756. FILES:=$(LINUX_DIR)/drivers/usb/serial/qcserial.ko
  757. AUTOLOAD:=$(call AutoProbe,qcserial)
  758. $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
  759. endef
  760. define KernelPackage/usb-serial-qualcomm/description
  761. Kernel support for Qualcomm USB Serial devices (Gobi)
  762. endef
  763. $(eval $(call KernelPackage,usb-serial-qualcomm))
  764. define KernelPackage/usb-storage
  765. TITLE:=USB Storage support
  766. DEPENDS:= +kmod-scsi-core
  767. KCONFIG:=CONFIG_USB_STORAGE
  768. FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
  769. AUTOLOAD:=$(call AutoProbe,usb-storage,1)
  770. $(call AddDepends/usb)
  771. endef
  772. define KernelPackage/usb-storage/description
  773. Kernel support for USB Mass Storage devices
  774. endef
  775. $(eval $(call KernelPackage,usb-storage))
  776. define KernelPackage/usb-storage-extras
  777. SUBMENU:=$(USB_MENU)
  778. TITLE:=Extra drivers for usb-storage
  779. DEPENDS:=+kmod-usb-storage
  780. KCONFIG:= \
  781. CONFIG_USB_STORAGE_ALAUDA \
  782. CONFIG_USB_STORAGE_CYPRESS_ATACB \
  783. CONFIG_USB_STORAGE_DATAFAB \
  784. CONFIG_USB_STORAGE_FREECOM \
  785. CONFIG_USB_STORAGE_ISD200 \
  786. CONFIG_USB_STORAGE_JUMPSHOT \
  787. CONFIG_USB_STORAGE_KARMA \
  788. CONFIG_USB_STORAGE_SDDR09 \
  789. CONFIG_USB_STORAGE_SDDR55 \
  790. CONFIG_USB_STORAGE_USBAT
  791. FILES:= \
  792. $(LINUX_DIR)/drivers/usb/storage/ums-alauda.ko \
  793. $(LINUX_DIR)/drivers/usb/storage/ums-cypress.ko \
  794. $(LINUX_DIR)/drivers/usb/storage/ums-datafab.ko \
  795. $(LINUX_DIR)/drivers/usb/storage/ums-freecom.ko \
  796. $(LINUX_DIR)/drivers/usb/storage/ums-isd200.ko \
  797. $(LINUX_DIR)/drivers/usb/storage/ums-jumpshot.ko \
  798. $(LINUX_DIR)/drivers/usb/storage/ums-karma.ko \
  799. $(LINUX_DIR)/drivers/usb/storage/ums-sddr09.ko \
  800. $(LINUX_DIR)/drivers/usb/storage/ums-sddr55.ko \
  801. $(LINUX_DIR)/drivers/usb/storage/ums-usbat.ko
  802. AUTOLOAD:=$(call AutoProbe,ums-alauda ums-cypress ums-datafab \
  803. ums-freecom ums-isd200 ums-jumpshot \
  804. ums-karma ums-sddr09 ums-sddr55 ums-usbat)
  805. endef
  806. define KernelPackage/usb-storage-extras/description
  807. Say Y here if you want to have some more drivers,
  808. such as for SmartMedia card readers
  809. endef
  810. $(eval $(call KernelPackage,usb-storage-extras))
  811. define KernelPackage/usb-storage-uas
  812. SUBMENU:=$(USB_MENU)
  813. TITLE:=USB Attached SCSI (UASP) support
  814. DEPENDS:=+kmod-usb-storage
  815. KCONFIG:=CONFIG_USB_UAS
  816. FILES:=$(LINUX_DIR)/drivers/usb/storage/uas.ko
  817. AUTOLOAD:=$(call AutoProbe,uas,1)
  818. endef
  819. define KernelPackage/usb-storage-uas/description
  820. Say Y here if you want to include support for
  821. USB Attached SCSI (UAS/UASP), a higher
  822. performance protocol available on many
  823. newer USB 3.0 storage devices
  824. endef
  825. $(eval $(call KernelPackage,usb-storage-uas))
  826. define KernelPackage/usb-atm
  827. TITLE:=Support for ATM on USB bus
  828. DEPENDS:=+kmod-atm
  829. KCONFIG:=CONFIG_USB_ATM
  830. FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.ko
  831. AUTOLOAD:=$(call AutoProbe,usbatm)
  832. $(call AddDepends/usb)
  833. endef
  834. define KernelPackage/usb-atm/description
  835. Kernel support for USB DSL modems
  836. endef
  837. $(eval $(call KernelPackage,usb-atm))
  838. define AddDepends/usb-atm
  839. SUBMENU:=$(USB_MENU)
  840. DEPENDS+=kmod-usb-atm $(1)
  841. endef
  842. define KernelPackage/usb-atm-speedtouch
  843. TITLE:=SpeedTouch USB ADSL modems support
  844. KCONFIG:=CONFIG_USB_SPEEDTOUCH
  845. FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.ko
  846. AUTOLOAD:=$(call AutoProbe,speedtch)
  847. $(call AddDepends/usb-atm)
  848. endef
  849. define KernelPackage/usb-atm-speedtouch/description
  850. Kernel support for SpeedTouch USB ADSL modems
  851. endef
  852. $(eval $(call KernelPackage,usb-atm-speedtouch))
  853. define KernelPackage/usb-atm-ueagle
  854. TITLE:=Eagle 8051 based USB ADSL modems support
  855. FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.ko
  856. KCONFIG:=CONFIG_USB_UEAGLEATM
  857. AUTOLOAD:=$(call AutoProbe,ueagle-atm)
  858. $(call AddDepends/usb-atm)
  859. endef
  860. define KernelPackage/usb-atm-ueagle/description
  861. Kernel support for Eagle 8051 based USB ADSL modems
  862. endef
  863. $(eval $(call KernelPackage,usb-atm-ueagle))
  864. define KernelPackage/usb-atm-cxacru
  865. TITLE:=cxacru
  866. FILES:=$(LINUX_DIR)/drivers/usb/atm/cxacru.ko
  867. KCONFIG:=CONFIG_USB_CXACRU
  868. AUTOLOAD:=$(call AutoProbe,cxacru)
  869. $(call AddDepends/usb-atm)
  870. endef
  871. define KernelPackage/usb-atm-cxacru/description
  872. Kernel support for cxacru based USB ADSL modems
  873. endef
  874. $(eval $(call KernelPackage,usb-atm-cxacru))
  875. define KernelPackage/usb-net
  876. TITLE:=Kernel modules for USB-to-Ethernet convertors
  877. DEPENDS:=+kmod-mii
  878. KCONFIG:=CONFIG_USB_USBNET \
  879. CONFIG_USB_NET_DRIVERS
  880. AUTOLOAD:=$(call AutoProbe,usbnet)
  881. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko
  882. $(call AddDepends/usb)
  883. endef
  884. define KernelPackage/usb-net/description
  885. Kernel modules for USB-to-Ethernet convertors
  886. endef
  887. $(eval $(call KernelPackage,usb-net))
  888. define AddDepends/usb-net
  889. SUBMENU:=$(USB_MENU)
  890. DEPENDS+=+kmod-usb-net $(1)
  891. endef
  892. define KernelPackage/usb-net-aqc111
  893. TITLE:=Support for USB-to-Ethernet Aquantia AQtion 5/2.5GbE
  894. KCONFIG:=CONFIG_USB_NET_AQC111
  895. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/aqc111.ko
  896. AUTOLOAD:=$(call AutoProbe,aqc111)
  897. $(call AddDepends/usb-net)
  898. endef
  899. define KernelPackage/usb-net-aqc111/description
  900. Support for USB-to-Ethernet Aquantia AQtion 5/2.5GbE
  901. endef
  902. $(eval $(call KernelPackage,usb-net-aqc111))
  903. define KernelPackage/usb-net-asix
  904. TITLE:=Kernel module for USB-to-Ethernet Asix convertors
  905. DEPENDS:=+kmod-libphy +LINUX_5_15:kmod-net-selftests +LINUX_5_15:kmod-mdio-devres
  906. KCONFIG:=CONFIG_USB_NET_AX8817X
  907. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
  908. AUTOLOAD:=$(call AutoProbe,asix)
  909. $(call AddDepends/usb-net)
  910. endef
  911. define KernelPackage/usb-net-asix/description
  912. Kernel module for USB-to-Ethernet Asix convertors
  913. endef
  914. $(eval $(call KernelPackage,usb-net-asix))
  915. define KernelPackage/usb-net-asix-ax88179
  916. TITLE:=Kernel module for USB-to-Gigabit-Ethernet Asix convertors
  917. DEPENDS:=+kmod-libphy
  918. KCONFIG:=CONFIG_USB_NET_AX88179_178A
  919. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/ax88179_178a.ko
  920. AUTOLOAD:=$(call AutoProbe,ax88179_178a)
  921. $(call AddDepends/usb-net)
  922. endef
  923. define KernelPackage/usb-net-asix-ax88179/description
  924. Kernel module for USB-to-Ethernet ASIX AX88179 based USB 3.0/2.0
  925. to Gigabit Ethernet adapters.
  926. endef
  927. $(eval $(call KernelPackage,usb-net-asix-ax88179))
  928. define KernelPackage/usb-net-hso
  929. TITLE:=Kernel module for Option USB High Speed Mobile Devices
  930. KCONFIG:=CONFIG_USB_HSO
  931. FILES:= \
  932. $(LINUX_DIR)/drivers/$(USBNET_DIR)/hso.ko
  933. AUTOLOAD:=$(call AutoProbe,hso)
  934. $(call AddDepends/usb-net)
  935. $(call AddDepends/rfkill)
  936. endef
  937. define KernelPackage/usb-net-hso/description
  938. Kernel module for Option USB High Speed Mobile Devices
  939. endef
  940. $(eval $(call KernelPackage,usb-net-hso))
  941. define KernelPackage/usb-net-kaweth
  942. TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
  943. KCONFIG:=CONFIG_USB_KAWETH
  944. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.ko
  945. AUTOLOAD:=$(call AutoProbe,kaweth)
  946. $(call AddDepends/usb-net)
  947. endef
  948. define KernelPackage/usb-net-kaweth/description
  949. Kernel module for USB-to-Ethernet Kaweth convertors
  950. endef
  951. $(eval $(call KernelPackage,usb-net-kaweth))
  952. define KernelPackage/usb-net-lan78xx
  953. TITLE:=USB-To-Ethernet Microchip LAN78XX convertors
  954. DEPENDS:=+kmod-fixed-phy +kmod-phy-microchip +PACKAGE_kmod-of-mdio:kmod-of-mdio
  955. KCONFIG:=CONFIG_USB_LAN78XX
  956. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/lan78xx.ko
  957. AUTOLOAD:=$(call AutoProbe,lan78xx)
  958. $(call AddDepends/usb-net)
  959. endef
  960. define KernelPackage/usb-net-lan78xx/description
  961. Kernel module for Microchip LAN78XX based USB 2 & USB 3
  962. 10/100/1000 Ethernet adapters.
  963. endef
  964. $(eval $(call KernelPackage,usb-net-lan78xx))
  965. define KernelPackage/usb-net-pegasus
  966. TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
  967. KCONFIG:=CONFIG_USB_PEGASUS
  968. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.ko
  969. AUTOLOAD:=$(call AutoProbe,pegasus)
  970. $(call AddDepends/usb-net)
  971. endef
  972. define KernelPackage/usb-net-pegasus/description
  973. Kernel module for USB-to-Ethernet Pegasus convertors
  974. endef
  975. $(eval $(call KernelPackage,usb-net-pegasus))
  976. define KernelPackage/usb-net-mcs7830
  977. TITLE:=Kernel module for USB-to-Ethernet MCS7830 convertors
  978. KCONFIG:=CONFIG_USB_NET_MCS7830
  979. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/mcs7830.ko
  980. AUTOLOAD:=$(call AutoProbe,mcs7830)
  981. $(call AddDepends/usb-net)
  982. endef
  983. define KernelPackage/usb-net-mcs7830/description
  984. Kernel module for USB-to-Ethernet MCS7830 convertors
  985. endef
  986. $(eval $(call KernelPackage,usb-net-mcs7830))
  987. define KernelPackage/usb-net-smsc75xx
  988. TITLE:=SMSC LAN75XX based USB 2.0 Gigabit ethernet devices
  989. DEPENDS:=+kmod-libphy
  990. KCONFIG:=CONFIG_USB_NET_SMSC75XX
  991. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc75xx.ko
  992. AUTOLOAD:=$(call AutoProbe,smsc75xx)
  993. $(call AddDepends/usb-net, +kmod-lib-crc16)
  994. endef
  995. define KernelPackage/usb-net-smsc75xx/description
  996. Kernel module for SMSC LAN75XX based devices
  997. endef
  998. $(eval $(call KernelPackage,usb-net-smsc75xx))
  999. define KernelPackage/usb-net-smsc95xx
  1000. TITLE:=SMSC LAN95XX based USB 2.0 10/100 ethernet devices
  1001. DEPENDS:=+kmod-libphy
  1002. KCONFIG:=CONFIG_USB_NET_SMSC95XX
  1003. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc95xx.ko
  1004. AUTOLOAD:=$(call AutoProbe,smsc95xx)
  1005. $(call AddDepends/usb-net, +kmod-lib-crc16)
  1006. endef
  1007. define KernelPackage/usb-net-smsc95xx/description
  1008. Kernel module for SMSC LAN95XX based devices
  1009. endef
  1010. $(eval $(call KernelPackage,usb-net-smsc95xx))
  1011. define KernelPackage/usb-net-dm9601-ether
  1012. TITLE:=Support for DM9601 ethernet connections
  1013. KCONFIG:=CONFIG_USB_NET_DM9601
  1014. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/dm9601.ko
  1015. AUTOLOAD:=$(call AutoProbe,dm9601)
  1016. $(call AddDepends/usb-net)
  1017. endef
  1018. define KernelPackage/usb-net-dm9601-ether/description
  1019. Kernel support for USB DM9601 devices
  1020. endef
  1021. $(eval $(call KernelPackage,usb-net-dm9601-ether))
  1022. define KernelPackage/usb-net-cdc-ether
  1023. TITLE:=Support for cdc ethernet connections
  1024. KCONFIG:=CONFIG_USB_NET_CDCETHER
  1025. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ether.ko
  1026. AUTOLOAD:=$(call AutoProbe,cdc_ether)
  1027. $(call AddDepends/usb-net)
  1028. endef
  1029. define KernelPackage/usb-net-cdc-ether/description
  1030. Kernel support for USB CDC Ethernet devices
  1031. endef
  1032. $(eval $(call KernelPackage,usb-net-cdc-ether))
  1033. define KernelPackage/usb-net-cdc-eem
  1034. TITLE:=Support for CDC EEM connections
  1035. KCONFIG:=CONFIG_USB_NET_CDC_EEM
  1036. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_eem.ko
  1037. AUTOLOAD:=$(call AutoProbe,cdc_eem)
  1038. $(call AddDepends/usb-net)
  1039. endef
  1040. define KernelPackage/usb-net-cdc-eem/description
  1041. Kernel support for USB CDC EEM
  1042. endef
  1043. $(eval $(call KernelPackage,usb-net-cdc-eem))
  1044. define KernelPackage/usb-net-cdc-subset
  1045. TITLE:=Support for CDC Ethernet subset connections
  1046. KCONFIG:= \
  1047. CONFIG_USB_NET_CDC_SUBSET \
  1048. CONFIG_USB_ARMLINUX
  1049. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_subset.ko
  1050. AUTOLOAD:=$(call AutoProbe,cdc_subset)
  1051. $(call AddDepends/usb-net)
  1052. endef
  1053. define KernelPackage/usb-net-cdc-subset/description
  1054. Kernel support for Simple USB Network Links (CDC Ethernet subset)
  1055. endef
  1056. $(eval $(call KernelPackage,usb-net-cdc-subset))
  1057. define KernelPackage/usb-net-qmi-wwan
  1058. TITLE:=QMI WWAN driver
  1059. KCONFIG:=CONFIG_USB_NET_QMI_WWAN
  1060. FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko
  1061. AUTOLOAD:=$(call AutoProbe,qmi_wwan)
  1062. $(call AddDepends/usb-net,+kmod-usb-wdm)
  1063. endef
  1064. define KernelPackage/usb-net-qmi-wwan/description
  1065. QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
  1066. endef
  1067. $(eval $(call KernelPackage,usb-net-qmi-wwan))
  1068. define KernelPackage/usb-net-rtl8150
  1069. TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  1070. KCONFIG:=CONFIG_USB_RTL8150
  1071. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
  1072. AUTOLOAD:=$(call AutoProbe,rtl8150)
  1073. $(call AddDepends/usb-net)
  1074. endef
  1075. define KernelPackage/usb-net-rtl8150/description
  1076. Kernel module for USB-to-Ethernet Realtek 8150 convertors
  1077. endef
  1078. $(eval $(call KernelPackage,usb-net-rtl8150))
  1079. define KernelPackage/usb-net-rtl8152
  1080. TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  1081. DEPENDS:=+r8152-firmware +kmod-crypto-sha256 +kmod-usb-net-cdc-ncm
  1082. KCONFIG:=CONFIG_USB_RTL8152
  1083. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
  1084. AUTOLOAD:=$(call AutoProbe,r8152)
  1085. $(call AddDepends/usb-net, +LINUX_5_10:kmod-crypto-hash)
  1086. endef
  1087. define KernelPackage/usb-net-rtl8152/description
  1088. Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
  1089. endef
  1090. $(eval $(call KernelPackage,usb-net-rtl8152))
  1091. define KernelPackage/usb-net-sr9700
  1092. TITLE:=Support for CoreChip SR9700 ethernet devices
  1093. KCONFIG:=CONFIG_USB_NET_SR9700
  1094. FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/sr9700.ko
  1095. AUTOLOAD:=$(call AutoProbe,sr9700)
  1096. $(call AddDepends/usb-net)
  1097. endef
  1098. define KernelPackage/usb-net-sr9700/description
  1099. Kernel module for CoreChip-sz SR9700 based USB 1.1 10/100 ethernet devices
  1100. endef
  1101. $(eval $(call KernelPackage,usb-net-sr9700))
  1102. define KernelPackage/usb-net-rndis
  1103. TITLE:=Support for RNDIS connections
  1104. KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
  1105. FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/rndis_host.ko
  1106. AUTOLOAD:=$(call AutoProbe,rndis_host)
  1107. $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
  1108. endef
  1109. define KernelPackage/usb-net-rndis/description
  1110. Kernel support for RNDIS connections
  1111. endef
  1112. $(eval $(call KernelPackage,usb-net-rndis))
  1113. define KernelPackage/usb-net-cdc-mbim
  1114. SUBMENU:=$(USB_MENU)
  1115. TITLE:=Kernel module for MBIM Devices
  1116. KCONFIG:=CONFIG_USB_NET_CDC_MBIM
  1117. FILES:= \
  1118. $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_mbim.ko
  1119. AUTOLOAD:=$(call AutoProbe,cdc_mbim)
  1120. $(call AddDepends/usb-net,+kmod-usb-wdm +kmod-usb-net-cdc-ncm)
  1121. endef
  1122. define KernelPackage/usb-net-cdc-mbim/description
  1123. Kernel module for CDC MBIM (Mobile Broadband Interface Model) devices
  1124. endef
  1125. $(eval $(call KernelPackage,usb-net-cdc-mbim))
  1126. define KernelPackage/usb-net-cdc-ncm
  1127. TITLE:=Support for CDC NCM connections
  1128. KCONFIG:=CONFIG_USB_NET_CDC_NCM
  1129. FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
  1130. AUTOLOAD:=$(call AutoProbe,cdc_ncm)
  1131. $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
  1132. endef
  1133. define KernelPackage/usb-net-cdc-ncm/description
  1134. Kernel support for CDC NCM connections
  1135. endef
  1136. $(eval $(call KernelPackage,usb-net-cdc-ncm))
  1137. define KernelPackage/usb-net-huawei-cdc-ncm
  1138. TITLE:=Support for Huawei CDC NCM connections
  1139. KCONFIG:=CONFIG_USB_NET_HUAWEI_CDC_NCM
  1140. FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/huawei_cdc_ncm.ko
  1141. AUTOLOAD:=$(call AutoProbe,huawei_cdc_ncm)
  1142. $(call AddDepends/usb-net,+kmod-usb-net-cdc-ncm +kmod-usb-wdm)
  1143. endef
  1144. define KernelPackage/usb-net-huawei-cdc-ncm/description
  1145. Kernel support for Huawei CDC NCM connections
  1146. endef
  1147. $(eval $(call KernelPackage,usb-net-huawei-cdc-ncm))
  1148. define KernelPackage/usb-net-sierrawireless
  1149. TITLE:=Support for Sierra Wireless devices
  1150. KCONFIG:=CONFIG_USB_SIERRA_NET
  1151. FILES:=$(LINUX_DIR)/drivers/net/usb/sierra_net.ko
  1152. AUTOLOAD:=$(call AutoProbe,sierra_net)
  1153. $(call AddDepends/usb-net)
  1154. endef
  1155. define KernelPackage/usb-net-sierrawireless/description
  1156. Kernel support for Sierra Wireless devices
  1157. endef
  1158. $(eval $(call KernelPackage,usb-net-sierrawireless))
  1159. define KernelPackage/usb-net-ipheth
  1160. TITLE:=Apple iPhone USB Ethernet driver
  1161. KCONFIG:=CONFIG_USB_IPHETH
  1162. FILES:=$(LINUX_DIR)/drivers/net/usb/ipheth.ko
  1163. AUTOLOAD:=$(call AutoProbe,ipheth)
  1164. $(call AddDepends/usb-net)
  1165. endef
  1166. define KernelPackage/usb-net-ipheth/description
  1167. Kernel support for Apple iPhone USB Ethernet driver
  1168. endef
  1169. $(eval $(call KernelPackage,usb-net-ipheth))
  1170. define KernelPackage/usb-net-kalmia
  1171. TITLE:=Samsung Kalmia based LTE USB modem
  1172. KCONFIG:=CONFIG_USB_NET_KALMIA
  1173. FILES:=$(LINUX_DIR)/drivers/net/usb/kalmia.ko
  1174. AUTOLOAD:=$(call AutoProbe,kalmia)
  1175. $(call AddDepends/usb-net)
  1176. endef
  1177. define KernelPackage/usb-net-kalmia/description
  1178. Kernel support for Samsung Kalmia based LTE USB modem
  1179. endef
  1180. $(eval $(call KernelPackage,usb-net-kalmia))
  1181. define KernelPackage/usb-net-pl
  1182. TITLE:=Prolific PL-2301/2302/25A1 based cables
  1183. KCONFIG:=CONFIG_USB_NET_PLUSB
  1184. FILES:=$(LINUX_DIR)/drivers/net/usb/plusb.ko
  1185. AUTOLOAD:=$(call AutoProbe,plusb)
  1186. $(call AddDepends/usb-net)
  1187. endef
  1188. define KernelPackage/usb-net-pl/description
  1189. Kernel support for Prolific PL-2301/2302/25A1 based cables
  1190. endef
  1191. $(eval $(call KernelPackage,usb-net-pl))
  1192. define KernelPackage/usb-hid
  1193. TITLE:=Support for USB Human Input Devices
  1194. KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y
  1195. DEPENDS:=+kmod-hid +kmod-hid-generic +kmod-input-evdev
  1196. FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
  1197. AUTOLOAD:=$(call AutoProbe,usbhid)
  1198. $(call AddDepends/usb)
  1199. endef
  1200. define KernelPackage/usb-hid/description
  1201. Kernel support for USB HID devices such as keyboards and mice
  1202. endef
  1203. $(eval $(call KernelPackage,usb-hid))
  1204. define KernelPackage/usb-hid-cp2112
  1205. SUBMENU:=$(USB_MENU)
  1206. TITLE:=Silicon Labs CP2112 HID USB to SMBus Master Bridge
  1207. KCONFIG:=CONFIG_GPIOLIB=y CONFIG_HID_CP2112
  1208. DEPENDS:=+kmod-usb-hid +kmod-i2c-core
  1209. FILES:=$(LINUX_DIR)/drivers/hid/hid-cp2112.ko
  1210. AUTOLOAD:=$(call AutoProbe,hid-cp2112)
  1211. endef
  1212. define KernelPackage/usb-hid-cp2112/description
  1213. HID device driver which registers as an i2c adapter and gpiochip to expose
  1214. these functions of the CP2112.
  1215. endef
  1216. $(eval $(call KernelPackage,usb-hid-cp2112))
  1217. define KernelPackage/usb-yealink
  1218. TITLE:=USB Yealink VOIP phone
  1219. DEPENDS:=+kmod-input-evdev
  1220. KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
  1221. FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
  1222. AUTOLOAD:=$(call AutoProbe,yealink)
  1223. $(call AddDepends/usb)
  1224. endef
  1225. define KernelPackage/usb-yealink/description
  1226. Kernel support for Yealink VOIP phone
  1227. endef
  1228. $(eval $(call KernelPackage,usb-yealink))
  1229. define KernelPackage/usb-cm109
  1230. TITLE:=Support for CM109 device
  1231. DEPENDS:=+kmod-input-evdev
  1232. KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y
  1233. FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko
  1234. AUTOLOAD:=$(call AutoProbe,cm109)
  1235. $(call AddDepends/usb)
  1236. endef
  1237. define KernelPackage/usb-cm109/description
  1238. Kernel support for CM109 VOIP phone
  1239. endef
  1240. $(eval $(call KernelPackage,usb-cm109))
  1241. define KernelPackage/usb-test
  1242. TITLE:=USB Testing Driver
  1243. DEPENDS:=@DEVEL
  1244. KCONFIG:=CONFIG_USB_TEST
  1245. FILES:=$(LINUX_DIR)/drivers/usb/misc/usbtest.ko
  1246. $(call AddDepends/usb)
  1247. endef
  1248. define KernelPackage/usb-test/description
  1249. Kernel support for testing USB Host Controller software
  1250. endef
  1251. $(eval $(call KernelPackage,usb-test))
  1252. define KernelPackage/usbip
  1253. TITLE := USB-over-IP kernel support
  1254. KCONFIG:= \
  1255. CONFIG_USBIP_CORE \
  1256. CONFIG_USBIP_DEBUG=n
  1257. FILES:=$(LINUX_DIR)/drivers/usb/usbip/usbip-core.ko
  1258. AUTOLOAD:=$(call AutoProbe,usbip-core)
  1259. $(call AddDepends/usb)
  1260. endef
  1261. $(eval $(call KernelPackage,usbip))
  1262. define KernelPackage/usbip-client
  1263. TITLE := USB-over-IP client driver
  1264. DEPENDS := +kmod-usbip
  1265. KCONFIG := CONFIG_USBIP_VHCI_HCD
  1266. FILES :=$(LINUX_DIR)/drivers/usb/usbip/vhci-hcd.ko
  1267. AUTOLOAD := $(call AutoProbe,vhci-hcd)
  1268. $(call AddDepends/usb)
  1269. endef
  1270. $(eval $(call KernelPackage,usbip-client))
  1271. define KernelPackage/usbip-server
  1272. $(call KernelPackage/usbip/Default)
  1273. TITLE := USB-over-IP host driver
  1274. DEPENDS := +kmod-usbip
  1275. KCONFIG := CONFIG_USBIP_HOST
  1276. FILES :=$(LINUX_DIR)/drivers/usb/usbip/usbip-host.ko
  1277. AUTOLOAD := $(call AutoProbe,usbip-host)
  1278. $(call AddDepends/usb)
  1279. endef
  1280. $(eval $(call KernelPackage,usbip-server))
  1281. define KernelPackage/usb-chipidea
  1282. TITLE:=Host and device support for Chipidea controllers
  1283. DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget @TARGET_ath79 +kmod-usb-ehci +kmod-usb-phy-nop +kmod-usb-roles
  1284. KCONFIG:= \
  1285. CONFIG_EXTCON \
  1286. CONFIG_USB_CHIPIDEA \
  1287. CONFIG_USB_CHIPIDEA_GENERIC \
  1288. CONFIG_USB_CHIPIDEA_HOST=y \
  1289. CONFIG_USB_CHIPIDEA_UDC=y \
  1290. CONFIG_USB_CHIPIDEA_DEBUG=y
  1291. FILES:= \
  1292. $(LINUX_DIR)/drivers/extcon/extcon-core.ko \
  1293. $(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc.ko \
  1294. $(LINUX_DIR)/drivers/usb/common/ulpi.ko
  1295. AUTOLOAD:=$(call AutoLoad,39,ci_hdrc,1)
  1296. $(call AddDepends/usb)
  1297. endef
  1298. define KernelPackage/usb-chipidea/description
  1299. Kernel support for USB Chipidea controllers
  1300. endef
  1301. $(eval $(call KernelPackage,usb-chipidea))
  1302. define KernelPackage/usb-chipidea2
  1303. TITLE:=Host and device support for Chipidea2 controllers
  1304. DEPENDS:=+kmod-usb-chipidea
  1305. KCONFIG:= \
  1306. CONFIG_EXTCON \
  1307. CONFIG_USB_CHIPIDEA \
  1308. CONFIG_USB_CHIPIDEA_HOST=y \
  1309. CONFIG_USB_CHIPIDEA_UDC=y \
  1310. CONFIG_USB_CHIPIDEA_DEBUG=y
  1311. FILES:= \
  1312. $(LINUX_DIR)/drivers/extcon/extcon-core.ko \
  1313. $(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc_usb2.ko
  1314. AUTOLOAD:=$(call AutoLoad,39,ci_hdrc_usb2,1)
  1315. $(call AddDepends/usb)
  1316. endef
  1317. define KernelPackage/usb-chipidea2/description
  1318. Kernel support for USB Chipidea controllers
  1319. endef
  1320. $(eval $(call KernelPackage,usb-chipidea2))
  1321. define KernelPackage/usbmon
  1322. TITLE:=USB traffic monitor
  1323. KCONFIG:=CONFIG_USB_MON
  1324. $(call AddDepends/usb)
  1325. FILES:=$(LINUX_DIR)/drivers/usb/mon/usbmon.ko
  1326. AUTOLOAD:=$(call AutoProbe,usbmon)
  1327. endef
  1328. define KernelPackage/usbmon/description
  1329. Kernel support for USB traffic monitoring
  1330. endef
  1331. $(eval $(call KernelPackage,usbmon))
  1332. XHCI_MODULES := xhci-pci xhci-plat-hcd
  1333. XHCI_FILES := $(wildcard $(patsubst %,$(LINUX_DIR)/drivers/usb/host/%.ko,$(XHCI_MODULES)))
  1334. XHCI_AUTOLOAD := $(patsubst $(LINUX_DIR)/drivers/usb/host/%.ko,%,$(XHCI_FILES))
  1335. define KernelPackage/usb3
  1336. TITLE:=Support for USB3 controllers
  1337. DEPENDS:= \
  1338. +kmod-usb-xhci-hcd \
  1339. +TARGET_bcm53xx:kmod-usb-bcma \
  1340. +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 \
  1341. +TARGET_ramips_mt7621:kmod-usb-xhci-mtk \
  1342. +TARGET_apm821xx_nand:kmod-usb-xhci-pci-renesas \
  1343. +TARGET_mvebu_cortexa9:kmod-usb-xhci-pci-renesas
  1344. KCONFIG:= \
  1345. CONFIG_USB_PCI=y \
  1346. CONFIG_USB_XHCI_PCI \
  1347. CONFIG_USB_XHCI_PLATFORM
  1348. FILES:= \
  1349. $(XHCI_FILES)
  1350. AUTOLOAD:=$(call AutoLoad,54,$(XHCI_AUTOLOAD),1)
  1351. $(call AddDepends/usb)
  1352. endef
  1353. define KernelPackage/usb3/description
  1354. Kernel support for USB3 (XHCI) controllers
  1355. endef
  1356. $(eval $(call KernelPackage,usb3))
  1357. define KernelPackage/usb-net2280
  1358. TITLE:=Support for NetChip 228x PCI USB peripheral controller
  1359. KCONFIG:= \
  1360. CONFIG_USB_PCI=y \
  1361. CONFIG_USB_NET2280
  1362. DEPENDS:=@PCI_SUPPORT +kmod-usb-gadget
  1363. FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/net2280.ko
  1364. AUTOLOAD:=$(call AutoLoad,46,net2280)
  1365. $(call AddDepends/usb)
  1366. endef
  1367. define KernelPackage/usb-net2280/description
  1368. Kernel support for NetChip 228x / PLX USB338x PCI USB peripheral controller.
  1369. endef
  1370. $(eval $(call KernelPackage,usb-net2280))
  1371. define KernelPackage/usb-roles
  1372. TITLE:=USB Role Switch Library Module
  1373. KCONFIG:=CONFIG_USB_ROLE_SWITCH
  1374. HIDDEN:=1
  1375. FILES:=$(LINUX_DIR)/drivers/usb/roles/roles.ko
  1376. $(call AddDepends/usb)
  1377. endef
  1378. define KernelPackage/usb-roles/description
  1379. Support for USB Role Switch
  1380. endef
  1381. $(eval $(call KernelPackage,usb-roles))
  1382. define KernelPackage/usb-xhci-hcd
  1383. TITLE:=xHCI HCD (USB 3.0) support
  1384. KCONFIG:= \
  1385. CONFIG_USB_XHCI_HCD \
  1386. CONFIG_USB_XHCI_HCD_DEBUGGING=n
  1387. HIDDEN:=1
  1388. FILES:=$(LINUX_DIR)/drivers/usb/host/xhci-hcd.ko
  1389. AUTOLOAD:=$(call AutoLoad,54,xhci-hcd,1)
  1390. $(call AddDepends/usb)
  1391. endef
  1392. define KernelPackage/usb-xhci-hcd/description
  1393. The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
  1394. "SuperSpeed" host controller hardware.
  1395. endef
  1396. $(eval $(call KernelPackage,usb-xhci-hcd))
  1397. define KernelPackage/usb-xhci-mtk
  1398. TITLE:=xHCI support for MediaTek SoCs
  1399. DEPENDS:=+kmod-usb-xhci-hcd
  1400. KCONFIG:=CONFIG_USB_XHCI_MTK
  1401. HIDDEN:=1
  1402. FILES:= \
  1403. $(LINUX_DIR)/drivers/usb/host/[email protected] \
  1404. $(LINUX_DIR)/drivers/usb/host/[email protected]
  1405. AUTOLOAD:=$(call AutoLoad,54,[email protected] [email protected],1)
  1406. $(call AddDepends/usb)
  1407. endef
  1408. define KernelPackage/usb-xhci-mtk/description
  1409. Kernel support for the xHCI host controller found in MediaTek SoCs.
  1410. endef
  1411. $(eval $(call KernelPackage,usb-xhci-mtk))
  1412. define KernelPackage/usb-xhci-pci-renesas
  1413. TITLE:=Support for additional Renesas xHCI controller with firmware
  1414. KCONFIG:=CONFIG_USB_XHCI_PCI_RENESAS
  1415. HIDDEN:=1
  1416. FILES:=$(LINUX_DIR)/drivers/usb/host/xhci-pci-renesas.ko
  1417. AUTOLOAD:=$(call AutoLoad,54,xhci-pci-renesas,1)
  1418. $(call AddDepends/usb)
  1419. endef
  1420. define KernelPackage/usb-xhci-pci-renesas/description
  1421. Kernel support for the Renesas xHCI controller with firmware. Make sure you have
  1422. the firwmare for the device and installed on your system for this device to work.
  1423. endef
  1424. $(eval $(call KernelPackage,usb-xhci-pci-renesas))
  1425. define KernelPackage/chaoskey
  1426. SUBMENU:=$(USB_MENU)
  1427. TITLE:=Chaoskey hardware RNG support
  1428. DEPENDS:=+kmod-random-core
  1429. KCONFIG:=CONFIG_USB_CHAOSKEY
  1430. FILES:=$(LINUX_DIR)/drivers/usb/misc/chaoskey.ko
  1431. AUTOLOAD:=$(call AutoProbe,chaoskey)
  1432. $(call AddDepends/usb)
  1433. endef
  1434. define KernelPackage/chaoskey/description
  1435. Kernel module for chaoskey, USB attached true random number generator
  1436. endef
  1437. $(eval $(call KernelPackage,chaoskey))