2 # USB Dual Role (OTG-ready) Controller Drivers
3 # for silicon based on Mentor Graphics INVENTRA designs
6 comment "Enable Host or Gadget support to see Inventra options"
7 depends on !USB && USB_GADGET=n
9 # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
11 depends on USB || USB_GADGET
12 tristate 'Inventra Highspeed Dual Role Controller (TI, ...)'
14 Say Y here if your system has a dual role high speed USB
15 controller based on the Mentor Graphics silicon IP. Then
16 configure options to match your silicon and the board
17 it's being used with, including the USB peripheral role,
18 or the USB host role, or both.
20 Texas Instruments parts using this IP include DaVinci 644x,
21 OMAP 243x, OMAP 343x, and TUSB 6010.
23 If you do not know what this is, please say N.
25 To compile this driver as a module, choose M here; the
26 module will be called "musb_hdrc".
30 depends on USB_MUSB_HDRC
31 default y if ARCH_DAVINCI
32 default y if ARCH_OMAP2430
33 default y if ARCH_OMAP343X
35 Use a static <asm/arch/hdrc_cnf.h> file to describe how the
36 controller is configured (endpoints, mechanisms, etc) on the
37 current iteration of a given system-on-chip.
39 comment "DaVinci 644x USB support"
40 depends on USB_MUSB_HDRC && ARCH_DAVINCI
42 comment "OMAP 243x high speed USB support"
43 depends on USB_MUSB_HDRC && ARCH_OMAP2430
45 comment "OMAP 343x high speed USB support"
46 depends on USB_MUSB_HDRC && ARCH_OMAP343X
49 boolean "TUSB 6010 support"
50 depends on USB_MUSB_HDRC && !USB_MUSB_SOC
53 The TUSB 6010 chip, from Texas Instruments, connects a discrete
54 HDRC core using a 16-bit parallel bus (NOR flash style) or VLYNQ
55 (a high speed serial link). It can use system-specific external
60 depends on USB_MUSB_HDRC
62 Dual-Role devices can support both host and peripheral roles,
63 as well as a the special "OTG Device" role which can switch
64 between both roles as needed.
66 # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support;
67 # OTG needs both roles, not just USB_MUSB_HOST.
72 Say Y here if your system supports the USB host role.
73 If it has a USB "A" (rectangular), "Mini-A" (uncommon),
74 or "Mini-AB" connector, it supports the host role.
75 (With a "Mini-AB" connector, you should enable USB OTG.)
77 # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral
78 # side support ... OTG needs both roles
79 config USB_MUSB_PERIPHERAL
81 bool "USB Peripheral (gadget stack)"
82 select USB_GADGET_MUSB_HDRC
84 Say Y here if your system supports the USB peripheral role.
85 If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
86 connector, it supports the peripheral role.
87 (With a "Mini-AB" connector, you should enable USB OTG.)
90 depends on USB && USB_GADGET && EXPERIMENTAL
91 bool "Both host and peripheral: USB OTG (On The Go) Device"
92 select USB_GADGET_MUSB_HDRC
96 The most notable feature of USB OTG is support for a
97 "Dual-Role" device, which can act as either a device
98 or a host. The initial role choice can be changed
99 later, when two dual-role devices talk to each other.
101 At this writing, the OTG support in this driver is incomplete,
102 omitting the mandatory HNP or SRP protocols. However, some
103 of the cable based role switching works. (That is, grounding
104 the ID pin switches the controller to host mode, while leaving
105 it floating leaves it in peripheral mode.)
107 Select this if your system has a Mini-AB connector, or
108 to simplify certain kinds of configuration.
110 To implement your OTG Targeted Peripherals List (TPL), enable
111 USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h"
112 to match your requirements.
116 # enable peripheral support (including with OTG)
117 config USB_GADGET_MUSB_HDRC
119 depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG)
121 # select USB_GADGET_DUALSPEED
122 # select USB_GADGET_SELECTED
124 # enables host support (including with OTG)
125 config USB_MUSB_HDRC_HCD
127 depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG)
128 select USB_OTG if USB_GADGET_MUSB_HDRC
132 config USB_INVENTRA_FIFO
133 bool 'Disable DMA (always use PIO)'
134 depends on USB_MUSB_HDRC
135 default y if USB_TUSB6010
137 All data is copied between memory and FIFO by the CPU.
138 DMA controllers are ignored.
140 Do not select 'n' here unless DMA support for your SOC or board
141 is unavailable (or unstable). When DMA is enabled at compile time,
142 you can still disable it at run time using the "use_dma=n" module
145 config USB_INVENTRA_DMA
147 depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
148 default ARCH_OMAP2430 || ARCH_OMAP343X
150 Enable DMA transfers using Mentor's engine.
152 config USB_TI_CPPI_DMA
154 depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
157 Enable DMA transfers when TI CPPI DMA is available.
159 config USB_TUSB_OMAP_DMA
161 depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
162 depends on USB_TUSB6010
166 Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
168 config USB_INVENTRA_HCD_LOGGING
169 depends on USB_MUSB_HDRC
170 int 'Logging Level (0 - none / 3 - annoying / ... )'
173 Set the logging level. 0 disables the debugging altogether,
174 although when USB_DEBUG is set the value is at least 1.
175 Starting at level 3, per-transfer (urb, usb_request, packet,
176 or dma transfer) tracing may kick in.