Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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)
  10. depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523))
  11. select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN)
  12. select TWL4030_USB if MACH_OMAP_3430SDP
  13. select TWL6030_USB if MACH_OMAP_4430SDP || MACH_OMAP4_PANDA
  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. choice
  30. prompt "Platform Glue Layer"
  31. depends on USB_MUSB_HDRC
  32. config USB_MUSB_DAVINCI
  33. tristate "DaVinci"
  34. depends on ARCH_DAVINCI_DMx
  35. config USB_MUSB_DA8XX
  36. tristate "DA8xx/OMAP-L1x"
  37. depends on ARCH_DAVINCI_DA8XX
  38. config USB_MUSB_TUSB6010
  39. tristate "TUSB6010"
  40. depends on ARCH_OMAP
  41. config USB_MUSB_OMAP2PLUS
  42. tristate "OMAP2430 and onwards"
  43. depends on ARCH_OMAP2PLUS
  44. config USB_MUSB_AM35X
  45. tristate "AM35x"
  46. depends on ARCH_OMAP
  47. config USB_MUSB_BLACKFIN
  48. tristate "Blackfin"
  49. depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523)
  50. config USB_MUSB_UX500
  51. tristate "U8500 and U5500"
  52. depends on (ARCH_U8500 && AB8500_USB) || (ARCH_U5500)
  53. endchoice
  54. choice
  55. prompt "Driver Mode"
  56. depends on USB_MUSB_HDRC
  57. help
  58. Dual-Role devices can support both host and peripheral roles,
  59. as well as a the special "OTG Device" role which can switch
  60. between both roles as needed.
  61. # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support;
  62. # OTG needs both roles, not just USB_MUSB_HOST.
  63. config USB_MUSB_HOST
  64. depends on USB
  65. bool "USB Host"
  66. help
  67. Say Y here if your system supports the USB host role.
  68. If it has a USB "A" (rectangular), "Mini-A" (uncommon),
  69. or "Mini-AB" connector, it supports the host role.
  70. (With a "Mini-AB" connector, you should enable USB OTG.)
  71. # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral
  72. # side support ... OTG needs both roles
  73. config USB_MUSB_PERIPHERAL
  74. depends on USB_GADGET
  75. bool "USB Peripheral (gadget stack)"
  76. select USB_GADGET_MUSB_HDRC
  77. help
  78. Say Y here if your system supports the USB peripheral role.
  79. If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
  80. connector, it supports the peripheral role.
  81. (With a "Mini-AB" connector, you should enable USB OTG.)
  82. config USB_MUSB_OTG
  83. depends on USB && USB_GADGET && PM && EXPERIMENTAL
  84. bool "Both host and peripheral: USB OTG (On The Go) Device"
  85. select USB_GADGET_MUSB_HDRC
  86. select USB_OTG
  87. help
  88. The most notable feature of USB OTG is support for a
  89. "Dual-Role" device, which can act as either a device
  90. or a host. The initial role choice can be changed
  91. later, when two dual-role devices talk to each other.
  92. At this writing, the OTG support in this driver is incomplete,
  93. omitting the mandatory HNP or SRP protocols. However, some
  94. of the cable based role switching works. (That is, grounding
  95. the ID pin switches the controller to host mode, while leaving
  96. it floating leaves it in peripheral mode.)
  97. Select this if your system has a Mini-AB connector, or
  98. to simplify certain kinds of configuration.
  99. To implement your OTG Targeted Peripherals List (TPL), enable
  100. USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h"
  101. to match your requirements.
  102. endchoice
  103. # enable peripheral support (including with OTG)
  104. config USB_GADGET_MUSB_HDRC
  105. bool
  106. depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG)
  107. # default y
  108. # select USB_GADGET_DUALSPEED
  109. # select USB_GADGET_SELECTED
  110. # enables host support (including with OTG)
  111. config USB_MUSB_HDRC_HCD
  112. bool
  113. depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG)
  114. select USB_OTG if USB_GADGET_MUSB_HDRC
  115. default y
  116. config MUSB_PIO_ONLY
  117. bool 'Disable DMA (always use PIO)'
  118. depends on USB_MUSB_HDRC
  119. default USB_MUSB_TUSB6010 || USB_MUSB_DA8XX || USB_MUSB_AM35X
  120. help
  121. All data is copied between memory and FIFO by the CPU.
  122. DMA controllers are ignored.
  123. Do not select 'n' here unless DMA support for your SOC or board
  124. is unavailable (or unstable). When DMA is enabled at compile time,
  125. you can still disable it at run time using the "use_dma=n" module
  126. parameter.
  127. config USB_UX500_DMA
  128. bool
  129. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  130. default USB_MUSB_UX500
  131. help
  132. Enable DMA transfers on UX500 platforms.
  133. config USB_INVENTRA_DMA
  134. bool
  135. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  136. default USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
  137. help
  138. Enable DMA transfers using Mentor's engine.
  139. config USB_TI_CPPI_DMA
  140. bool
  141. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  142. default USB_MUSB_DAVINCI
  143. help
  144. Enable DMA transfers when TI CPPI DMA is available.
  145. config USB_TUSB_OMAP_DMA
  146. bool
  147. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  148. depends on USB_MUSB_TUSB6010
  149. depends on ARCH_OMAP
  150. default y
  151. help
  152. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.