Kconfig 38 KB

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