Kconfig 38 KB

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