Kconfig 5.5 KB

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