Kconfig 39 KB

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