Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. bool "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. U-Boot 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 U-Boot 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.
  33. if USB_GADGET
  34. config USB_GADGET_ATMEL_USBA
  35. bool "Atmel USBA"
  36. select USB_GADGET_DUALSPEED
  37. help
  38. USBA is the integrated high-speed USB Device controller on
  39. the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
  40. config USB_GADGET_BCM_UDC_OTG_PHY
  41. bool "Broadcom UDC OTG PHY"
  42. help
  43. Enable the Broadcom UDC OTG physical device interface.
  44. config USB_GADGET_DWC2_OTG
  45. bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
  46. select USB_GADGET_DUALSPEED
  47. help
  48. The Designware USB2.0 high-speed gadget controller
  49. integrated into many SoCs. Select this option if you want the
  50. driver to operate in Peripheral mode. This option requires
  51. USB_GADGET to be enabled.
  52. if USB_GADGET_DWC2_OTG
  53. config USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8
  54. bool "DesignWare USB2.0 HS OTG controller 8-bit PHY bus width"
  55. help
  56. Set the Designware USB2.0 high-speed OTG controller
  57. PHY interface width to 8 bits, rather than the default (16 bits).
  58. endif # USB_GADGET_DWC2_OTG
  59. config CI_UDC
  60. bool "ChipIdea device controller"
  61. select USB_GADGET_DUALSPEED
  62. help
  63. Say Y here to enable device controller functionality of the
  64. ChipIdea driver.
  65. config USB_GADGET_VBUS_DRAW
  66. int "Maximum VBUS Power usage (2-500 mA)"
  67. range 2 500
  68. default 2
  69. help
  70. Some devices need to draw power from USB when they are
  71. configured, perhaps to operate circuitry or to recharge
  72. batteries. This is in addition to any local power supply,
  73. such as an AC adapter or batteries.
  74. Enter the maximum power your device draws through USB, in
  75. milliAmperes. The permitted range of values is 2 - 500 mA;
  76. 0 mA would be legal, but can make some hosts misbehave.
  77. This value will be used except for system-specific gadget
  78. drivers that have more specific information.
  79. # Selected by UDC drivers that support high-speed operation.
  80. config USB_GADGET_DUALSPEED
  81. bool
  82. config USB_GADGET_DOWNLOAD
  83. bool "Enable USB download gadget"
  84. help
  85. Composite USB download gadget support (g_dnl) for download functions.
  86. This code works on top of composite gadget.
  87. if USB_GADGET_DOWNLOAD
  88. config G_DNL_MANUFACTURER
  89. string "Vendor name of USB device"
  90. config G_DNL_VENDOR_NUM
  91. hex "Vendor ID of USB device"
  92. config G_DNL_PRODUCT_NUM
  93. hex "Product ID of USB device"
  94. config USBNET_DEVADDR
  95. string "USB Gadget Ethernet device mac address"
  96. default "de:ad:be:ef:00:01"
  97. endif # USB_GADGET_DOWNLOAD
  98. endif # USB_GADGET