1
0

usb.mk 44 KB

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