Kconfig 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. #
  2. # USB Gadget support on a system involves
  3. # (a) a peripheral controller, and
  4. # (b) the gadget driver using it.
  5. #
  6. # NOTE: Gadget support ** DOES NOT ** depend on host-side CONFIG_USB !!
  7. #
  8. # - Host systems (like PCs) need CONFIG_USB (with "A" jacks).
  9. # - Peripherals (like PDAs) need CONFIG_USB_GADGET (with "B" jacks).
  10. # - Some systems have both kinds of controllers.
  11. #
  12. # With help from a special transceiver and a "Mini-AB" jack, systems with
  13. # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
  14. #
  15. menuconfig USB_GADGET
  16. tristate "USB Gadget Support"
  17. select NLS
  18. help
  19. USB is a master/slave protocol, organized with one master
  20. host (such as a PC) controlling up to 127 peripheral devices.
  21. The USB hardware is asymmetric, which makes it easier to set up:
  22. you can't connect a "to-the-host" connector to a peripheral.
  23. Linux can run in the host, or in the peripheral. In both cases
  24. you need a low level bus controller driver, and some software
  25. talking to it. Peripheral controllers are often discrete silicon,
  26. or are integrated with the CPU in a microcontroller. The more
  27. familiar host side controllers have names like "EHCI", "OHCI",
  28. or "UHCI", and are usually integrated into southbridges on PC
  29. motherboards.
  30. Enable this configuration option if you want to run Linux inside
  31. a USB peripheral device. Configure one hardware driver for your
  32. peripheral/device side bus controller, and a "gadget driver" for
  33. your peripheral protocol. (If you use modular gadget drivers,
  34. you may configure more than one.)
  35. If in doubt, say "N" and don't enable these drivers; most people
  36. don't have this kind of hardware (except maybe inside Linux PDAs).
  37. For more information, see <http://www.linux-usb.org/gadget> and
  38. the kernel DocBook documentation for this API.
  39. if USB_GADGET
  40. config USB_GADGET_DEBUG
  41. boolean "Debugging messages (DEVELOPMENT)"
  42. depends on DEBUG_KERNEL
  43. help
  44. Many controller and gadget drivers will print some debugging
  45. messages if you use this option to ask for those messages.
  46. Avoid enabling these messages, even if you're actively
  47. debugging such a driver. Many drivers will emit so many
  48. messages that the driver timings are affected, which will
  49. either create new failure modes or remove the one you're
  50. trying to track down. Never enable these messages for a
  51. production build.
  52. config USB_GADGET_DEBUG_FILES
  53. boolean "Debugging information files (DEVELOPMENT)"
  54. depends on PROC_FS
  55. help
  56. Some of the drivers in the "gadget" framework can expose
  57. debugging information in files such as /proc/driver/udc
  58. (for a peripheral controller). The information in these
  59. files may help when you're troubleshooting or bringing up a
  60. driver on a new board. Enable these files by choosing "Y"
  61. here. If in doubt, or to conserve kernel memory, say "N".
  62. config USB_GADGET_DEBUG_FS
  63. boolean "Debugging information files in debugfs (DEVELOPMENT)"
  64. depends on DEBUG_FS
  65. help
  66. Some of the drivers in the "gadget" framework can expose
  67. debugging information in files under /sys/kernel/debug/.
  68. The information in these files may help when you're
  69. troubleshooting or bringing up a driver on a new board.
  70. Enable these files by choosing "Y" here. If in doubt, or
  71. to conserve kernel memory, say "N".
  72. config USB_GADGET_VBUS_DRAW
  73. int "Maximum VBUS Power usage (2-500 mA)"
  74. range 2 500
  75. default 500
  76. help
  77. Some devices need to draw power from USB when they are
  78. configured, perhaps to operate circuitry or to recharge
  79. batteries. This is in addition to any local power supply,
  80. such as an AC adapter or batteries.
  81. Enter the maximum power your device draws through USB, in
  82. milliAmperes. The permitted range of values is 2 - 500 mA;
  83. 0 mA would be legal, but can make some hosts misbehave.
  84. This value will be used except for system-specific gadget
  85. drivers that have more specific information.
  86. config USB_GADGET_STORAGE_NUM_BUFFERS
  87. int "Number of storage pipeline buffers"
  88. range 2 4
  89. default 2
  90. help
  91. Usually 2 buffers are enough to establish a good buffering
  92. pipeline. The number may be increased in order to compensate
  93. for a bursty VFS behaviour. For instance there may be CPU wake up
  94. latencies that makes the VFS to appear bursty in a system with
  95. an CPU on-demand governor. Especially if DMA is doing IO to
  96. offload the CPU. In this case the CPU will go into power
  97. save often and spin up occasionally to move data within VFS.
  98. If selecting USB_GADGET_DEBUG_FILES this value may be set by
  99. a module parameter as well.
  100. If unsure, say 2.
  101. #
  102. # USB Peripheral Controller Support
  103. #
  104. # The order here is alphabetical, except that integrated controllers go
  105. # before discrete ones so they will be the initial/default value:
  106. # - integrated/SOC controllers first
  107. # - licensed IP used in both SOC and discrete versions
  108. # - discrete ones (including all PCI-only controllers)
  109. # - debug/dummy gadget+hcd is last.
  110. #
  111. menu "USB Peripheral Controller"
  112. #
  113. # Integrated controllers
  114. #
  115. config USB_AT91
  116. tristate "Atmel AT91 USB Device Port"
  117. depends on ARCH_AT91
  118. help
  119. Many Atmel AT91 processors (such as the AT91RM2000) have a
  120. full speed USB Device Port with support for five configurable
  121. endpoints (plus endpoint zero).
  122. Say "y" to link the driver statically, or "m" to build a
  123. dynamically linked module called "at91_udc" and force all
  124. gadget drivers to also be dynamically linked.
  125. config USB_ATMEL_USBA
  126. tristate "Atmel USBA"
  127. depends on AVR32 || ARCH_AT91SAM9RL || ARCH_AT91SAM9G45
  128. help
  129. USBA is the integrated high-speed USB Device controller on
  130. the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
  131. config USB_FSL_USB2
  132. tristate "Freescale Highspeed USB DR Peripheral Controller"
  133. depends on FSL_SOC || ARCH_MXC
  134. select USB_FSL_MPH_DR_OF if OF
  135. help
  136. Some of Freescale PowerPC processors have a High Speed
  137. Dual-Role(DR) USB controller, which supports device mode.
  138. The number of programmable endpoints is different through
  139. SOC revisions.
  140. Say "y" to link the driver statically, or "m" to build a
  141. dynamically linked module called "fsl_usb2_udc" and force
  142. all gadget drivers to also be dynamically linked.
  143. config USB_FUSB300
  144. tristate "Faraday FUSB300 USB Peripheral Controller"
  145. depends on !PHYS_ADDR_T_64BIT
  146. help
  147. Faraday usb device controller FUSB300 driver
  148. config USB_OMAP
  149. tristate "OMAP USB Device Controller"
  150. depends on ARCH_OMAP
  151. select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_H4_OTG
  152. select USB_OTG_UTILS if ARCH_OMAP
  153. help
  154. Many Texas Instruments OMAP processors have flexible full
  155. speed USB device controllers, with support for up to 30
  156. endpoints (plus endpoint zero). This driver supports the
  157. controller in the OMAP 1611, and should work with controllers
  158. in other OMAP processors too, given minor tweaks.
  159. Say "y" to link the driver statically, or "m" to build a
  160. dynamically linked module called "omap_udc" and force all
  161. gadget drivers to also be dynamically linked.
  162. config USB_PXA25X
  163. tristate "PXA 25x or IXP 4xx"
  164. depends on (ARCH_PXA && PXA25x) || ARCH_IXP4XX
  165. select USB_OTG_UTILS
  166. help
  167. Intel's PXA 25x series XScale ARM-5TE processors include
  168. an integrated full speed USB 1.1 device controller. The
  169. controller in the IXP 4xx series is register-compatible.
  170. It has fifteen fixed-function endpoints, as well as endpoint
  171. zero (for control transfers).
  172. Say "y" to link the driver statically, or "m" to build a
  173. dynamically linked module called "pxa25x_udc" and force all
  174. gadget drivers to also be dynamically linked.
  175. # if there's only one gadget driver, using only two bulk endpoints,
  176. # don't waste memory for the other endpoints
  177. config USB_PXA25X_SMALL
  178. depends on USB_PXA25X
  179. bool
  180. default n if USB_ETH_RNDIS
  181. default y if USB_ZERO
  182. default y if USB_ETH
  183. default y if USB_G_SERIAL
  184. config USB_R8A66597
  185. tristate "Renesas R8A66597 USB Peripheral Controller"
  186. help
  187. R8A66597 is a discrete USB host and peripheral controller chip that
  188. supports both full and high speed USB 2.0 data transfers.
  189. It has nine configurable endpoints, and endpoint zero.
  190. Say "y" to link the driver statically, or "m" to build a
  191. dynamically linked module called "r8a66597_udc" and force all
  192. gadget drivers to also be dynamically linked.
  193. config USB_RENESAS_USBHS_UDC
  194. tristate 'Renesas USBHS controller'
  195. depends on USB_RENESAS_USBHS
  196. help
  197. Renesas USBHS is a discrete USB host and peripheral controller chip
  198. that supports both full and high speed USB 2.0 data transfers.
  199. It has nine or more configurable endpoints, and endpoint zero.
  200. Say "y" to link the driver statically, or "m" to build a
  201. dynamically linked module called "renesas_usbhs" and force all
  202. gadget drivers to also be dynamically linked.
  203. config USB_PXA27X
  204. tristate "PXA 27x"
  205. depends on ARCH_PXA && (PXA27x || PXA3xx)
  206. select USB_OTG_UTILS
  207. help
  208. Intel's PXA 27x series XScale ARM v5TE processors include
  209. an integrated full speed USB 1.1 device controller.
  210. It has up to 23 endpoints, as well as endpoint zero (for
  211. control transfers).
  212. Say "y" to link the driver statically, or "m" to build a
  213. dynamically linked module called "pxa27x_udc" and force all
  214. gadget drivers to also be dynamically linked.
  215. config USB_S3C_HSOTG
  216. tristate "S3C HS/OtG USB Device controller"
  217. depends on S3C_DEV_USB_HSOTG
  218. help
  219. The Samsung S3C64XX USB2.0 high-speed gadget controller
  220. integrated into the S3C64XX series SoC.
  221. config USB_IMX
  222. tristate "Freescale i.MX1 USB Peripheral Controller"
  223. depends on ARCH_MXC
  224. help
  225. Freescale's i.MX1 includes an integrated full speed
  226. USB 1.1 device controller.
  227. It has Six fixed-function endpoints, as well as endpoint
  228. zero (for control transfers).
  229. Say "y" to link the driver statically, or "m" to build a
  230. dynamically linked module called "imx_udc" and force all
  231. gadget drivers to also be dynamically linked.
  232. config USB_S3C2410
  233. tristate "S3C2410 USB Device Controller"
  234. depends on ARCH_S3C24XX
  235. help
  236. Samsung's S3C2410 is an ARM-4 processor with an integrated
  237. full speed USB 1.1 device controller. It has 4 configurable
  238. endpoints, as well as endpoint zero (for control transfers).
  239. This driver has been tested on the S3C2410, S3C2412, and
  240. S3C2440 processors.
  241. config USB_S3C2410_DEBUG
  242. boolean "S3C2410 udc debug messages"
  243. depends on USB_S3C2410
  244. config USB_S3C_HSUDC
  245. tristate "S3C2416, S3C2443 and S3C2450 USB Device Controller"
  246. depends on ARCH_S3C24XX
  247. help
  248. Samsung's S3C2416, S3C2443 and S3C2450 is an ARM9 based SoC
  249. integrated with dual speed USB 2.0 device controller. It has
  250. 8 endpoints, as well as endpoint zero.
  251. This driver has been tested on S3C2416 and S3C2450 processors.
  252. config USB_MV_UDC
  253. tristate "Marvell USB2.0 Device Controller"
  254. help
  255. Marvell Socs (including PXA and MMP series) include a high speed
  256. USB2.0 OTG controller, which can be configured as high speed or
  257. full speed USB peripheral.
  258. #
  259. # Controllers available in both integrated and discrete versions
  260. #
  261. # musb builds in ../musb along with host support
  262. config USB_GADGET_MUSB_HDRC
  263. tristate "Inventra HDRC USB Peripheral (TI, ADI, ...)"
  264. depends on USB_MUSB_HDRC
  265. help
  266. This OTG-capable silicon IP is used in dual designs including
  267. the TI DaVinci, OMAP 243x, OMAP 343x, TUSB 6010, and ADI Blackfin
  268. config USB_M66592
  269. tristate "Renesas M66592 USB Peripheral Controller"
  270. help
  271. M66592 is a discrete USB peripheral controller chip that
  272. supports both full and high speed USB 2.0 data transfers.
  273. It has seven configurable endpoints, and endpoint zero.
  274. Say "y" to link the driver statically, or "m" to build a
  275. dynamically linked module called "m66592_udc" and force all
  276. gadget drivers to also be dynamically linked.
  277. #
  278. # Controllers available only in discrete form (and all PCI controllers)
  279. #
  280. config USB_AMD5536UDC
  281. tristate "AMD5536 UDC"
  282. depends on PCI
  283. help
  284. The AMD5536 UDC is part of the AMD Geode CS5536, an x86 southbridge.
  285. It is a USB Highspeed DMA capable USB device controller. Beside ep0
  286. it provides 4 IN and 4 OUT endpoints (bulk or interrupt type).
  287. The UDC port supports OTG operation, and may be used as a host port
  288. if it's not being used to implement peripheral or OTG roles.
  289. Say "y" to link the driver statically, or "m" to build a
  290. dynamically linked module called "amd5536udc" and force all
  291. gadget drivers to also be dynamically linked.
  292. config USB_FSL_QE
  293. tristate "Freescale QE/CPM USB Device Controller"
  294. depends on FSL_SOC && (QUICC_ENGINE || CPM)
  295. help
  296. Some of Freescale PowerPC processors have a Full Speed
  297. QE/CPM2 USB controller, which support device mode with 4
  298. programmable endpoints. This driver supports the
  299. controller in the MPC8360 and MPC8272, and should work with
  300. controllers having QE or CPM2, given minor tweaks.
  301. Set CONFIG_USB_GADGET to "m" to build this driver as a
  302. dynamically linked module called "fsl_qe_udc".
  303. config USB_CI13XXX_PCI
  304. tristate "MIPS USB CI13xxx PCI UDC"
  305. depends on PCI
  306. help
  307. MIPS USB IP core family device controller
  308. Currently it only supports IP part number CI13412
  309. Say "y" to link the driver statically, or "m" to build a
  310. dynamically linked module called "ci13xxx_udc" and force all
  311. gadget drivers to also be dynamically linked.
  312. config USB_NET2272
  313. tristate "PLX NET2272"
  314. help
  315. PLX NET2272 is a USB peripheral controller which supports
  316. both full and high speed USB 2.0 data transfers.
  317. It has three configurable endpoints, as well as endpoint zero
  318. (for control transfer).
  319. Say "y" to link the driver statically, or "m" to build a
  320. dynamically linked module called "net2272" and force all
  321. gadget drivers to also be dynamically linked.
  322. config USB_NET2272_DMA
  323. boolean "Support external DMA controller"
  324. depends on USB_NET2272
  325. help
  326. The NET2272 part can optionally support an external DMA
  327. controller, but your board has to have support in the
  328. driver itself.
  329. If unsure, say "N" here. The driver works fine in PIO mode.
  330. config USB_NET2280
  331. tristate "NetChip 228x"
  332. depends on PCI
  333. help
  334. NetChip 2280 / 2282 is a PCI based USB peripheral controller which
  335. supports both full and high speed USB 2.0 data transfers.
  336. It has six configurable endpoints, as well as endpoint zero
  337. (for control transfers) and several endpoints with dedicated
  338. functions.
  339. Say "y" to link the driver statically, or "m" to build a
  340. dynamically linked module called "net2280" and force all
  341. gadget drivers to also be dynamically linked.
  342. config USB_GOKU
  343. tristate "Toshiba TC86C001 'Goku-S'"
  344. depends on PCI
  345. help
  346. The Toshiba TC86C001 is a PCI device which includes controllers
  347. for full speed USB devices, IDE, I2C, SIO, plus a USB host (OHCI).
  348. The device controller has three configurable (bulk or interrupt)
  349. endpoints, plus endpoint zero (for control transfers).
  350. Say "y" to link the driver statically, or "m" to build a
  351. dynamically linked module called "goku_udc" and to force all
  352. gadget drivers to also be dynamically linked.
  353. config USB_LANGWELL
  354. tristate "Intel Langwell USB Device Controller"
  355. depends on PCI
  356. depends on !PHYS_ADDR_T_64BIT
  357. help
  358. Intel Langwell USB Device Controller is a High-Speed USB
  359. On-The-Go device controller.
  360. The number of programmable endpoints is different through
  361. controller revision.
  362. Say "y" to link the driver statically, or "m" to build a
  363. dynamically linked module called "langwell_udc" and force all
  364. gadget drivers to also be dynamically linked.
  365. config USB_EG20T
  366. tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7831) UDC"
  367. depends on PCI
  368. help
  369. This is a USB device driver for EG20T PCH.
  370. EG20T PCH is the platform controller hub that is used in Intel's
  371. general embedded platform. EG20T PCH has USB device interface.
  372. Using this interface, it is able to access system devices connected
  373. to USB device.
  374. This driver enables USB device function.
  375. USB device is a USB peripheral controller which
  376. supports both full and high speed USB 2.0 data transfers.
  377. This driver supports both control transfer and bulk transfer modes.
  378. This driver dose not support interrupt transfer or isochronous
  379. transfer modes.
  380. This driver also can be used for LAPIS Semiconductor's ML7213 which is
  381. for IVI(In-Vehicle Infotainment) use.
  382. ML7831 is for general purpose use.
  383. ML7213/ML7831 is companion chip for Intel Atom E6xx series.
  384. ML7213/ML7831 is completely compatible for Intel EG20T PCH.
  385. config USB_CI13XXX_MSM
  386. tristate "MIPS USB CI13xxx for MSM"
  387. depends on ARCH_MSM
  388. select USB_MSM_OTG
  389. help
  390. MSM SoC has chipidea USB controller. This driver uses
  391. ci13xxx_udc core.
  392. This driver depends on OTG driver for PHY initialization,
  393. clock management, powering up VBUS, and power management.
  394. This driver is not supported on boards like trout which
  395. has an external PHY.
  396. Say "y" to link the driver statically, or "m" to build a
  397. dynamically linked module called "ci13xxx_msm" and force all
  398. gadget drivers to also be dynamically linked.
  399. config USB_CI13XXX_MSM_HSIC
  400. tristate "MIPS HSIC CI13xxx for MSM"
  401. depends on ARCH_MSM
  402. help
  403. MSM SoC has chipidea USB controller. This driver uses
  404. ci13xxx_udc core. Support USB-HSIC core.
  405. Say "y" to link the driver statically, or "m" to build a
  406. dynamically linked module called "ci13xxx_msm_hsic" and force all
  407. gadget drivers to also be dynamically linked.
  408. config USB_DWC3_MSM
  409. tristate "DesignWare USB3.0 (DRD) Controller for MSM"
  410. depends on ARCH_MSM
  411. select USB_DWC3
  412. select USB_GADGET_SELECTED
  413. help
  414. The DesignWare USB3.0 controller is a SuperSpeed USB3.0 Controller
  415. integrated into the Qualcomm MSM chipset series, supporting host,
  416. device and otg modes of operation. For more information please
  417. refer to http://www.qualcomm.com/chipsets.
  418. config USB_DWC3_OMAP
  419. tristate "DesignWare USB3.0 (DRD) Controller for OMAP"
  420. depends on ARCH_OMAP
  421. select USB_DWC3
  422. select USB_GADGET_SELECTED
  423. help
  424. DesignWare USB3.0 controller is a SuperSpeed USB3.0 Controller
  425. which can be configured for peripheral-only, host-only, hub-only
  426. and Dual-Role operation. This Controller was first integrated into
  427. the OMAP5 series of processors. More information about the OMAP5
  428. version of this controller, refer to http://www.ti.com/omap5.
  429. #
  430. # LAST -- dummy/emulated controller
  431. #
  432. config USB_MSM_72K
  433. tristate "MSM 72K Device Controller"
  434. depends on ARCH_MSM
  435. help
  436. USB gadget driver for Qualcomm MSM 72K architecture.
  437. Say "y" to link the driver statically, or "m" to build a
  438. dynamically linked module called "msm72k" and force all
  439. gadget drivers to also be dynamically linked.
  440. config USB_DUMMY_HCD
  441. tristate "Dummy HCD (DEVELOPMENT)"
  442. depends on USB=y || (USB=m && USB_GADGET=m)
  443. help
  444. This host controller driver emulates USB, looping all data transfer
  445. requests back to a USB "gadget driver" in the same host. The host
  446. side is the master; the gadget side is the slave. Gadget drivers
  447. can be high, full, or low speed; and they have access to endpoints
  448. like those from NET2280, PXA2xx, or SA1100 hardware.
  449. This may help in some stages of creating a driver to embed in a
  450. Linux device, since it lets you debug several parts of the gadget
  451. driver without its hardware or drivers being involved.
  452. Since such a gadget side driver needs to interoperate with a host
  453. side Linux-USB device driver, this may help to debug both sides
  454. of a USB protocol stack.
  455. Say "y" to link the driver statically, or "m" to build a
  456. dynamically linked module called "dummy_hcd" and force all
  457. gadget drivers to also be dynamically linked.
  458. # NOTE: Please keep dummy_hcd LAST so that "real hardware" appears
  459. # first and will be selected by default.
  460. endmenu
  461. #
  462. # USB Gadget Drivers
  463. #
  464. choice
  465. tristate "USB Gadget Drivers"
  466. default USB_ETH
  467. help
  468. A Linux "Gadget Driver" talks to the USB Peripheral Controller
  469. driver through the abstract "gadget" API. Some other operating
  470. systems call these "client" drivers, of which "class drivers"
  471. are a subset (implementing a USB device class specification).
  472. A gadget driver implements one or more USB functions using
  473. the peripheral hardware.
  474. Gadget drivers are hardware-neutral, or "platform independent",
  475. except that they sometimes must understand quirks or limitations
  476. of the particular controllers they work with. For example, when
  477. a controller doesn't support alternate configurations or provide
  478. enough of the right types of endpoints, the gadget driver might
  479. not be able work with that controller, or might need to implement
  480. a less common variant of a device class protocol.
  481. # this first set of drivers all depend on bulk-capable hardware.
  482. config USB_ZERO
  483. tristate "Gadget Zero (DEVELOPMENT)"
  484. help
  485. Gadget Zero is a two-configuration device. It either sinks and
  486. sources bulk data; or it loops back a configurable number of
  487. transfers. It also implements control requests, for "chapter 9"
  488. conformance. The driver needs only two bulk-capable endpoints, so
  489. it can work on top of most device-side usb controllers. It's
  490. useful for testing, and is also a working example showing how
  491. USB "gadget drivers" can be written.
  492. Make this be the first driver you try using on top of any new
  493. USB peripheral controller driver. Then you can use host-side
  494. test software, like the "usbtest" driver, to put your hardware
  495. and its driver through a basic set of functional tests.
  496. Gadget Zero also works with the host-side "usb-skeleton" driver,
  497. and with many kinds of host-side test software. You may need
  498. to tweak product and vendor IDs before host software knows about
  499. this device, and arrange to select an appropriate configuration.
  500. Say "y" to link the driver statically, or "m" to build a
  501. dynamically linked module called "g_zero".
  502. config USB_ZERO_HNPTEST
  503. boolean "HNP Test Device"
  504. depends on USB_ZERO && USB_OTG
  505. help
  506. You can configure this device to enumerate using the device
  507. identifiers of the USB-OTG test device. That means that when
  508. this gadget connects to another OTG device, with this one using
  509. the "B-Peripheral" role, that device will use HNP to let this
  510. one serve as the USB host instead (in the "B-Host" role).
  511. config USB_AUDIO
  512. tristate "Audio Gadget (EXPERIMENTAL)"
  513. depends on SND
  514. select SND_PCM
  515. help
  516. This Gadget Audio driver is compatible with USB Audio Class
  517. specification 2.0. It implements 1 AudioControl interface,
  518. 1 AudioStreaming Interface each for USB-OUT and USB-IN.
  519. Number of channels, sample rate and sample size can be
  520. specified as module parameters.
  521. This driver doesn't expect any real Audio codec to be present
  522. on the device - the audio streams are simply sinked to and
  523. sourced from a virtual ALSA sound card created. The user-space
  524. application may choose to do whatever it wants with the data
  525. received from the USB Host and choose to provide whatever it
  526. wants as audio data to the USB Host.
  527. Say "y" to link the driver statically, or "m" to build a
  528. dynamically linked module called "g_audio".
  529. config GADGET_UAC1
  530. bool "UAC 1.0 (Legacy)"
  531. depends on USB_AUDIO
  532. help
  533. If you instead want older UAC Spec-1.0 driver that also has audio
  534. paths hardwired to the Audio codec chip on-board and doesn't work
  535. without one.
  536. config USB_ETH
  537. tristate "Ethernet Gadget (with CDC Ethernet support)"
  538. depends on NET
  539. select CRC32
  540. help
  541. This driver implements Ethernet style communication, in one of
  542. several ways:
  543. - The "Communication Device Class" (CDC) Ethernet Control Model.
  544. That protocol is often avoided with pure Ethernet adapters, in
  545. favor of simpler vendor-specific hardware, but is widely
  546. supported by firmware for smart network devices.
  547. - On hardware can't implement that protocol, a simple CDC subset
  548. is used, placing fewer demands on USB.
  549. - CDC Ethernet Emulation Model (EEM) is a newer standard that has
  550. a simpler interface that can be used by more USB hardware.
  551. RNDIS support is an additional option, more demanding than than
  552. subset.
  553. Within the USB device, this gadget driver exposes a network device
  554. "usbX", where X depends on what other networking devices you have.
  555. Treat it like a two-node Ethernet link: host, and gadget.
  556. The Linux-USB host-side "usbnet" driver interoperates with this
  557. driver, so that deep I/O queues can be supported. On 2.4 kernels,
  558. use "CDCEther" instead, if you're using the CDC option. That CDC
  559. mode should also interoperate with standard CDC Ethernet class
  560. drivers on other host operating systems.
  561. Say "y" to link the driver statically, or "m" to build a
  562. dynamically linked module called "g_ether".
  563. config USB_ETH_RNDIS
  564. bool "RNDIS support"
  565. depends on USB_ETH
  566. default y
  567. help
  568. Microsoft Windows XP bundles the "Remote NDIS" (RNDIS) protocol,
  569. and Microsoft provides redistributable binary RNDIS drivers for
  570. older versions of Windows.
  571. If you say "y" here, the Ethernet gadget driver will try to provide
  572. a second device configuration, supporting RNDIS to talk to such
  573. Microsoft USB hosts.
  574. To make MS-Windows work with this, use Documentation/usb/linux.inf
  575. as the "driver info file". For versions of MS-Windows older than
  576. XP, you'll need to download drivers from Microsoft's website; a URL
  577. is given in comments found in that info file.
  578. config USB_ETH_EEM
  579. bool "Ethernet Emulation Model (EEM) support"
  580. depends on USB_ETH
  581. default n
  582. help
  583. CDC EEM is a newer USB standard that is somewhat simpler than CDC ECM
  584. and therefore can be supported by more hardware. Technically ECM and
  585. EEM are designed for different applications. The ECM model extends
  586. the network interface to the target (e.g. a USB cable modem), and the
  587. EEM model is for mobile devices to communicate with hosts using
  588. ethernet over USB. For Linux gadgets, however, the interface with
  589. the host is the same (a usbX device), so the differences are minimal.
  590. If you say "y" here, the Ethernet gadget driver will use the EEM
  591. protocol rather than ECM. If unsure, say "n".
  592. config USB_G_NCM
  593. tristate "Network Control Model (NCM) support"
  594. depends on NET
  595. select CRC32
  596. help
  597. This driver implements USB CDC NCM subclass standard. NCM is
  598. an advanced protocol for Ethernet encapsulation, allows grouping
  599. of several ethernet frames into one USB transfer and different
  600. alignment possibilities.
  601. Say "y" to link the driver statically, or "m" to build a
  602. dynamically linked module called "g_ncm".
  603. config USB_GADGETFS
  604. tristate "Gadget Filesystem (EXPERIMENTAL)"
  605. depends on EXPERIMENTAL
  606. help
  607. This driver provides a filesystem based API that lets user mode
  608. programs implement a single-configuration USB device, including
  609. endpoint I/O and control requests that don't relate to enumeration.
  610. All endpoints, transfer speeds, and transfer types supported by
  611. the hardware are available, through read() and write() calls.
  612. Currently, this option is still labelled as EXPERIMENTAL because
  613. of existing race conditions in the underlying in-kernel AIO core.
  614. Say "y" to link the driver statically, or "m" to build a
  615. dynamically linked module called "gadgetfs".
  616. config USB_FUNCTIONFS
  617. tristate "Function Filesystem (EXPERIMENTAL)"
  618. depends on EXPERIMENTAL
  619. select USB_FUNCTIONFS_GENERIC if !(USB_FUNCTIONFS_ETH || USB_FUNCTIONFS_RNDIS)
  620. help
  621. The Function Filesystem (FunctionFS) lets one create USB
  622. composite functions in user space in the same way GadgetFS
  623. lets one create USB gadgets in user space. This allows creation
  624. of composite gadgets such that some of the functions are
  625. implemented in kernel space (for instance Ethernet, serial or
  626. mass storage) and other are implemented in user space.
  627. If you say "y" or "m" here you will be able what kind of
  628. configurations the gadget will provide.
  629. Say "y" to link the driver statically, or "m" to build
  630. a dynamically linked module called "g_ffs".
  631. config USB_FUNCTIONFS_ETH
  632. bool "Include configuration with CDC ECM (Ethernet)"
  633. depends on USB_FUNCTIONFS && NET
  634. help
  635. Include a configuration with CDC ECM function (Ethernet) and the
  636. Function Filesystem.
  637. config USB_FUNCTIONFS_RNDIS
  638. bool "Include configuration with RNDIS (Ethernet)"
  639. depends on USB_FUNCTIONFS && NET
  640. help
  641. Include a configuration with RNDIS function (Ethernet) and the Filesystem.
  642. config USB_FUNCTIONFS_GENERIC
  643. bool "Include 'pure' configuration"
  644. depends on USB_FUNCTIONFS
  645. help
  646. Include a configuration with the Function Filesystem alone with
  647. no Ethernet interface.
  648. config USB_FILE_STORAGE
  649. tristate "File-backed Storage Gadget (DEPRECATED)"
  650. depends on BLOCK
  651. help
  652. The File-backed Storage Gadget acts as a USB Mass Storage
  653. disk drive. As its storage repository it can use a regular
  654. file or a block device (in much the same way as the "loop"
  655. device driver), specified as a module parameter.
  656. Say "y" to link the driver statically, or "m" to build a
  657. dynamically linked module called "g_file_storage".
  658. NOTE: This driver is deprecated. Its replacement is the
  659. Mass Storage Gadget.
  660. config USB_FILE_STORAGE_TEST
  661. bool "File-backed Storage Gadget testing version"
  662. depends on USB_FILE_STORAGE
  663. default n
  664. help
  665. Say "y" to generate the larger testing version of the
  666. File-backed Storage Gadget, useful for probing the
  667. behavior of USB Mass Storage hosts. Not needed for
  668. normal operation.
  669. config USB_MASS_STORAGE
  670. tristate "Mass Storage Gadget"
  671. depends on BLOCK
  672. help
  673. The Mass Storage Gadget acts as a USB Mass Storage disk drive.
  674. As its storage repository it can use a regular file or a block
  675. device (in much the same way as the "loop" device driver),
  676. specified as a module parameter or sysfs option.
  677. This driver is an updated replacement for the deprecated
  678. File-backed Storage Gadget (g_file_storage).
  679. Say "y" to link the driver statically, or "m" to build
  680. a dynamically linked module called "g_mass_storage".
  681. config USB_GADGET_TARGET
  682. tristate "USB Gadget Target Fabric Module"
  683. depends on TARGET_CORE
  684. help
  685. This fabric is an USB gadget. Two USB protocols are supported that is
  686. BBB or BOT (Bulk Only Transport) and UAS (USB Attached SCSI). BOT is
  687. advertised on alternative interface 0 (primary) and UAS is on
  688. alternative interface 1. Both protocols can work on USB2.0 and USB3.0.
  689. UAS utilizes the USB 3.0 feature called streams support.
  690. config USB_G_SERIAL
  691. tristate "Serial Gadget (with CDC ACM and CDC OBEX support)"
  692. help
  693. The Serial Gadget talks to the Linux-USB generic serial driver.
  694. This driver supports a CDC-ACM module option, which can be used
  695. to interoperate with MS-Windows hosts or with the Linux-USB
  696. "cdc-acm" driver.
  697. This driver also supports a CDC-OBEX option. You will need a
  698. user space OBEX server talking to /dev/ttyGS*, since the kernel
  699. itself doesn't implement the OBEX protocol.
  700. Say "y" to link the driver statically, or "m" to build a
  701. dynamically linked module called "g_serial".
  702. For more information, see Documentation/usb/gadget_serial.txt
  703. which includes instructions and a "driver info file" needed to
  704. make MS-Windows work with CDC ACM.
  705. config USB_MIDI_GADGET
  706. tristate "MIDI Gadget (EXPERIMENTAL)"
  707. depends on SND && EXPERIMENTAL
  708. select SND_RAWMIDI
  709. help
  710. The MIDI Gadget acts as a USB Audio device, with one MIDI
  711. input and one MIDI output. These MIDI jacks appear as
  712. a sound "card" in the ALSA sound system. Other MIDI
  713. connections can then be made on the gadget system, using
  714. ALSA's aconnect utility etc.
  715. Say "y" to link the driver statically, or "m" to build a
  716. dynamically linked module called "g_midi".
  717. config USB_G_PRINTER
  718. tristate "Printer Gadget"
  719. help
  720. The Printer Gadget channels data between the USB host and a
  721. userspace program driving the print engine. The user space
  722. program reads and writes the device file /dev/g_printer to
  723. receive or send printer data. It can use ioctl calls to
  724. the device file to get or set printer status.
  725. Say "y" to link the driver statically, or "m" to build a
  726. dynamically linked module called "g_printer".
  727. For more information, see Documentation/usb/gadget_printer.txt
  728. which includes sample code for accessing the device file.
  729. config USB_G_ANDROID
  730. boolean "Android Composite Gadget"
  731. help
  732. The Android Composite Gadget supports multiple USB
  733. functions: adb, acm, mass storage, mtp, accessory
  734. and rndis.
  735. Each function can be configured and enabled/disabled
  736. dynamically from userspace through a sysfs interface.
  737. config USB_ANDROID_SAMSUNG_COMPOSITE
  738. boolean "Samsung Composite function"
  739. depends on USB_G_ANDROID
  740. help
  741. Provides SAMSUNG composite driver.
  742. It also provides KIES connection and
  743. Multi Configuration.
  744. If you enable this option, android composite will be changed.
  745. config USB_DUN_SUPPORT
  746. boolean "DUN support function"
  747. depends on USB_G_ANDROID
  748. help
  749. Provides USB modem serial driver.
  750. This function makes connection to acm from data router.
  751. It uses misc register.
  752. Support fops : open, close, release, read, poll, llseek, ioctl
  753. config USB_ANDROID_SAMSUNG_MTP
  754. boolean "Samsung MTP function"
  755. depends on USB_G_ANDROID && !SEC_FACTORY
  756. help
  757. Provides Media Transfer Protocol (MTP) support
  758. for samsung gadget driver.
  759. If you enable this option,
  760. google mtp will be changed to samsung mtp.
  761. config USB_ANDROID_SAMSUNG_SIDESYNC
  762. boolean "Samsung SideSync function"
  763. depends on USB_G_ANDROID
  764. help
  765. Provides SideSync support
  766. for samsung gadget driver.
  767. If you enable this option,
  768. SideSync will be able to be used.
  769. config USB_LOCK_SUPPORT_FOR_MDM
  770. boolean "Samsung USB_LOCK function for MDM"
  771. depends on USB_G_ANDROID
  772. help
  773. Support USB lock for SDS MDM function.
  774. If you enable this option,
  775. USB is not connected to the work in office.
  776. Of employees who have installed MDM(SDS).
  777. config USB_NCM_SUPPORT_MTU_CHANGE
  778. boolean "Samsung NCM MTU Change function"
  779. depends on USB_G_ANDROID
  780. help
  781. Provides NCM MTU Change support
  782. for samsung gadget driver.
  783. If you enable this option,
  784. NCM MTU Change will be able to be used.
  785. config USB_CDC_COMPOSITE
  786. tristate "CDC Composite Device (Ethernet and ACM)"
  787. depends on NET
  788. help
  789. This driver provides two functions in one configuration:
  790. a CDC Ethernet (ECM) link, and a CDC ACM (serial port) link.
  791. This driver requires four bulk and two interrupt endpoints,
  792. plus the ability to handle altsettings. Not all peripheral
  793. controllers are that capable.
  794. Say "y" to link the driver statically, or "m" to build a
  795. dynamically linked module.
  796. config USB_G_NOKIA
  797. tristate "Nokia composite gadget"
  798. depends on PHONET
  799. help
  800. The Nokia composite gadget provides support for acm, obex
  801. and phonet in only one composite gadget driver.
  802. It's only really useful for N900 hardware. If you're building
  803. a kernel for N900, say Y or M here. If unsure, say N.
  804. config USB_G_ACM_MS
  805. tristate "CDC Composite Device (ACM and mass storage)"
  806. depends on BLOCK
  807. help
  808. This driver provides two functions in one configuration:
  809. a mass storage, and a CDC ACM (serial port) link.
  810. Say "y" to link the driver statically, or "m" to build a
  811. dynamically linked module called "g_acm_ms".
  812. config USB_G_MULTI
  813. tristate "Multifunction Composite Gadget (EXPERIMENTAL)"
  814. depends on BLOCK && NET
  815. select USB_G_MULTI_CDC if !USB_G_MULTI_RNDIS
  816. help
  817. The Multifunction Composite Gadget provides Ethernet (RNDIS
  818. and/or CDC Ethernet), mass storage and ACM serial link
  819. interfaces.
  820. You will be asked to choose which of the two configurations is
  821. to be available in the gadget. At least one configuration must
  822. be chosen to make the gadget usable. Selecting more than one
  823. configuration will prevent Windows from automatically detecting
  824. the gadget as a composite gadget, so an INF file will be needed to
  825. use the gadget.
  826. Say "y" to link the driver statically, or "m" to build a
  827. dynamically linked module called "g_multi".
  828. config USB_G_MULTI_RNDIS
  829. bool "RNDIS + CDC Serial + Storage configuration"
  830. depends on USB_G_MULTI
  831. default y
  832. help
  833. This option enables a configuration with RNDIS, CDC Serial and
  834. Mass Storage functions available in the Multifunction Composite
  835. Gadget. This is the configuration dedicated for Windows since RNDIS
  836. is Microsoft's protocol.
  837. If unsure, say "y".
  838. config USB_G_MULTI_CDC
  839. bool "CDC Ethernet + CDC Serial + Storage configuration"
  840. depends on USB_G_MULTI
  841. default n
  842. help
  843. This option enables a configuration with CDC Ethernet (ECM), CDC
  844. Serial and Mass Storage functions available in the Multifunction
  845. Composite Gadget.
  846. If unsure, say "y".
  847. config USB_G_HID
  848. tristate "HID Gadget"
  849. help
  850. The HID gadget driver provides generic emulation of USB
  851. Human Interface Devices (HID).
  852. For more information, see Documentation/usb/gadget_hid.txt which
  853. includes sample code for accessing the device files.
  854. Say "y" to link the driver statically, or "m" to build a
  855. dynamically linked module called "g_hid".
  856. config USB_G_DBGP
  857. tristate "EHCI Debug Device Gadget"
  858. help
  859. This gadget emulates an EHCI Debug device. This is useful when you want
  860. to interact with an EHCI Debug Port.
  861. Say "y" to link the driver statically, or "m" to build a
  862. dynamically linked module called "g_dbgp".
  863. if USB_G_DBGP
  864. choice
  865. prompt "EHCI Debug Device mode"
  866. default USB_G_DBGP_SERIAL
  867. config USB_G_DBGP_PRINTK
  868. depends on USB_G_DBGP
  869. bool "printk"
  870. help
  871. Directly printk() received data. No interaction.
  872. config USB_G_DBGP_SERIAL
  873. depends on USB_G_DBGP
  874. bool "serial"
  875. help
  876. Userland can interact using /dev/ttyGSxxx.
  877. endchoice
  878. endif
  879. # put drivers that need isochronous transfer support (for audio
  880. # or video class gadget drivers), or specific hardware, here.
  881. config USB_G_WEBCAM
  882. tristate "USB Webcam Gadget"
  883. depends on VIDEO_DEV
  884. help
  885. The Webcam Gadget acts as a composite USB Audio and Video Class
  886. device. It provides a userspace API to process UVC control requests
  887. and stream video data to the host.
  888. Say "y" to link the driver statically, or "m" to build a
  889. dynamically linked module called "g_webcam".
  890. endchoice
  891. config USB_CSW_HACK
  892. boolean "USB Mass storage csw hack Feature"
  893. default y
  894. help
  895. This csw hack feature is for increasing the performance of the mass
  896. storage
  897. config USB_MSC_PROFILING
  898. bool "USB MSC performance profiling"
  899. help
  900. If you say Y here, support will be added for collecting
  901. Mass-storage performance numbers at the VFS level.
  902. config MODEM_SUPPORT
  903. boolean "modem support in generic serial function driver"
  904. depends on USB_G_ANDROID
  905. default y
  906. help
  907. This feature enables the modem functionality in the
  908. generic serial.
  909. adds interrupt endpoint support to send modem notifications
  910. to host.
  911. adds CDC descriptors to enumerate the generic serial as MODEM.
  912. adds CDC class requests to configure MODEM line settings.
  913. Say "y" to enable MODEM support in the generic serial driver.
  914. config RMNET_SMD_CTL_CHANNEL
  915. string "RMNET control SMD channel name"
  916. depends on USB_G_ANDROID && MSM_SMD
  917. default ""
  918. help
  919. Control SMD channel for transferring QMI messages
  920. config RMNET_SMD_DATA_CHANNEL
  921. string "RMNET Data SMD channel name"
  922. depends on USB_G_ANDROID && MSM_SMD
  923. default ""
  924. help
  925. Data SMD channel for transferring network data
  926. config RMNET_SDIO_CTL_CHANNEL
  927. int "RMNET control SDIO channel id"
  928. default 8
  929. depends on MSM_SDIO_CMUX && MSM_SDIO_DMUX
  930. help
  931. Control SDIO channel for transferring RMNET QMI messages
  932. config RMNET_SDIO_DATA_CHANNEL
  933. int "RMNET Data SDIO channel id"
  934. default 8
  935. depends on MSM_SDIO_CMUX && MSM_SDIO_DMUX
  936. help
  937. Data SDIO channel for transferring network data
  938. config RMNET_SMD_SDIO_CTL_CHANNEL
  939. int "RMNET(sdio_smd) Control SDIO channel id"
  940. depends on MSM_SDIO_CMUX && MSM_SDIO_DMUX
  941. default 8
  942. help
  943. Control SDIO channel for transferring QMI messages
  944. config RMNET_SMD_SDIO_DATA_CHANNEL
  945. int "RMNET(sdio_smd) Data SDIO channel id"
  946. default 8
  947. depends on MSM_SDIO_CMUX && MSM_SDIO_DMUX
  948. help
  949. Data SDIO channel for transferring network data
  950. config RMNET_SDIO_SMD_DATA_CHANNEL
  951. string "RMNET(sdio_smd) Data SMD channel name"
  952. depends on MSM_SDIO_CMUX && MSM_SDIO_DMUX
  953. default "DATA40"
  954. help
  955. Data SMD channel for transferring network data
  956. endif # USB_GADGET