Kconfig 35 KB

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