Kconfig 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. #
  2. # USB Dual Role (OTG-ready) Controller Drivers
  3. # for silicon based on Mentor Graphics INVENTRA designs
  4. #
  5. comment "Enable Host or Gadget support to see Inventra options"
  6. depends on !USB && USB_GADGET=n
  7. # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
  8. config USB_MUSB_HDRC
  9. depends on (USB || USB_GADGET) && HAVE_CLK
  10. depends on !SUPERH
  11. select NOP_USB_XCEIV if ARCH_DAVINCI
  12. select TWL4030_USB if MACH_OMAP_3430SDP
  13. select NOP_USB_XCEIV if MACH_OMAP3EVM
  14. select USB_OTG_UTILS
  15. tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
  16. help
  17. Say Y here if your system has a dual role high speed USB
  18. controller based on the Mentor Graphics silicon IP. Then
  19. configure options to match your silicon and the board
  20. it's being used with, including the USB peripheral role,
  21. or the USB host role, or both.
  22. Texas Instruments familiies using this IP include DaVinci
  23. (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
  24. Analog Devices parts using this IP include Blackfin BF54x,
  25. BF525 and BF527.
  26. If you do not know what this is, please say N.
  27. To compile this driver as a module, choose M here; the
  28. module will be called "musb_hdrc".
  29. config USB_MUSB_SOC
  30. boolean
  31. depends on USB_MUSB_HDRC
  32. default y if ARCH_DAVINCI
  33. default y if ARCH_OMAP2430
  34. default y if ARCH_OMAP34XX
  35. default y if (BF54x && !BF544)
  36. default y if (BF52x && !BF522 && !BF523)
  37. comment "DaVinci 35x and 644x USB support"
  38. depends on USB_MUSB_HDRC && ARCH_DAVINCI
  39. comment "OMAP 243x high speed USB support"
  40. depends on USB_MUSB_HDRC && ARCH_OMAP2430
  41. comment "OMAP 343x high speed USB support"
  42. depends on USB_MUSB_HDRC && ARCH_OMAP34XX
  43. comment "Blackfin high speed USB Support"
  44. depends on USB_MUSB_HDRC && ((BF54x && !BF544) || (BF52x && !BF522 && !BF523))
  45. config USB_TUSB6010
  46. boolean "TUSB 6010 support"
  47. depends on USB_MUSB_HDRC && !USB_MUSB_SOC
  48. select NOP_USB_XCEIV
  49. default y
  50. help
  51. The TUSB 6010 chip, from Texas Instruments, connects a discrete
  52. HDRC core using a 16-bit parallel bus (NOR flash style) or VLYNQ
  53. (a high speed serial link). It can use system-specific external
  54. DMA controllers.
  55. choice
  56. prompt "Driver Mode"
  57. depends on USB_MUSB_HDRC
  58. help
  59. Dual-Role devices can support both host and peripheral roles,
  60. as well as a the special "OTG Device" role which can switch
  61. between both roles as needed.
  62. # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support;
  63. # OTG needs both roles, not just USB_MUSB_HOST.
  64. config USB_MUSB_HOST
  65. depends on USB
  66. bool "USB Host"
  67. help
  68. Say Y here if your system supports the USB host role.
  69. If it has a USB "A" (rectangular), "Mini-A" (uncommon),
  70. or "Mini-AB" connector, it supports the host role.
  71. (With a "Mini-AB" connector, you should enable USB OTG.)
  72. # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral
  73. # side support ... OTG needs both roles
  74. config USB_MUSB_PERIPHERAL
  75. depends on USB_GADGET
  76. bool "USB Peripheral (gadget stack)"
  77. select USB_GADGET_MUSB_HDRC
  78. help
  79. Say Y here if your system supports the USB peripheral role.
  80. If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
  81. connector, it supports the peripheral role.
  82. (With a "Mini-AB" connector, you should enable USB OTG.)
  83. config USB_MUSB_OTG
  84. depends on USB && USB_GADGET && PM && EXPERIMENTAL
  85. bool "Both host and peripheral: USB OTG (On The Go) Device"
  86. select USB_GADGET_MUSB_HDRC
  87. select USB_OTG
  88. help
  89. The most notable feature of USB OTG is support for a
  90. "Dual-Role" device, which can act as either a device
  91. or a host. The initial role choice can be changed
  92. later, when two dual-role devices talk to each other.
  93. At this writing, the OTG support in this driver is incomplete,
  94. omitting the mandatory HNP or SRP protocols. However, some
  95. of the cable based role switching works. (That is, grounding
  96. the ID pin switches the controller to host mode, while leaving
  97. it floating leaves it in peripheral mode.)
  98. Select this if your system has a Mini-AB connector, or
  99. to simplify certain kinds of configuration.
  100. To implement your OTG Targeted Peripherals List (TPL), enable
  101. USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h"
  102. to match your requirements.
  103. endchoice
  104. # enable peripheral support (including with OTG)
  105. config USB_GADGET_MUSB_HDRC
  106. bool
  107. depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG)
  108. # default y
  109. # select USB_GADGET_DUALSPEED
  110. # select USB_GADGET_SELECTED
  111. # enables host support (including with OTG)
  112. config USB_MUSB_HDRC_HCD
  113. bool
  114. depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG)
  115. select USB_OTG if USB_GADGET_MUSB_HDRC
  116. default y
  117. config MUSB_PIO_ONLY
  118. bool 'Disable DMA (always use PIO)'
  119. depends on USB_MUSB_HDRC
  120. default y if USB_TUSB6010
  121. help
  122. All data is copied between memory and FIFO by the CPU.
  123. DMA controllers are ignored.
  124. Do not select 'n' here unless DMA support for your SOC or board
  125. is unavailable (or unstable). When DMA is enabled at compile time,
  126. you can still disable it at run time using the "use_dma=n" module
  127. parameter.
  128. config USB_INVENTRA_DMA
  129. bool
  130. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  131. default ARCH_OMAP2430 || ARCH_OMAP34XX || BLACKFIN
  132. help
  133. Enable DMA transfers using Mentor's engine.
  134. config USB_TI_CPPI_DMA
  135. bool
  136. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  137. default ARCH_DAVINCI
  138. help
  139. Enable DMA transfers when TI CPPI DMA is available.
  140. config USB_TUSB_OMAP_DMA
  141. bool
  142. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  143. depends on USB_TUSB6010
  144. depends on ARCH_OMAP
  145. default y
  146. help
  147. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  148. config USB_MUSB_DEBUG
  149. depends on USB_MUSB_HDRC
  150. bool "Enable debugging messages"
  151. default n
  152. help
  153. This enables musb debugging. To set the logging level use the debug
  154. module parameter. Starting at level 3, per-transfer (urb, usb_request,
  155. packet, or dma transfer) tracing may kick in.