Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 1 | # |
| 2 | # USB Dual Role (OTG-ready) Controller Drivers |
| 3 | # for silicon based on Mentor Graphics INVENTRA designs |
| 4 | # |
| 5 | |
| 6 | comment "Enable Host or Gadget support to see Inventra options" |
| 7 | depends on !USB && USB_GADGET=n |
| 8 | |
| 9 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller |
| 10 | config USB_MUSB_HDRC |
Mike Frysinger | b20cf90 | 2009-09-16 21:10:53 -0400 | [diff] [blame] | 11 | depends on (USB || USB_GADGET) |
Sonic Zhang | 1c47cb0 | 2009-11-16 20:04:21 -0500 | [diff] [blame] | 12 | depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) |
Cliff Cai | 8ba63a2 | 2009-11-16 20:05:03 -0500 | [diff] [blame] | 13 | select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 14 | select TWL4030_USB if MACH_OMAP_3430SDP |
David Brownell | 37daa92 | 2009-01-24 17:56:25 -0800 | [diff] [blame] | 15 | select USB_OTG_UTILS |
Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 16 | tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 17 | help |
| 18 | Say Y here if your system has a dual role high speed USB |
| 19 | controller based on the Mentor Graphics silicon IP. Then |
| 20 | configure options to match your silicon and the board |
| 21 | it's being used with, including the USB peripheral role, |
| 22 | or the USB host role, or both. |
| 23 | |
David Brownell | a227fd7 | 2009-02-24 15:31:54 -0800 | [diff] [blame] | 24 | Texas Instruments familiies using this IP include DaVinci |
| 25 | (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010. |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 26 | |
Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 27 | Analog Devices parts using this IP include Blackfin BF54x, |
| 28 | BF525 and BF527. |
| 29 | |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 30 | If you do not know what this is, please say N. |
| 31 | |
| 32 | To compile this driver as a module, choose M here; the |
| 33 | module will be called "musb_hdrc". |
| 34 | |
| 35 | config USB_MUSB_SOC |
| 36 | boolean |
| 37 | depends on USB_MUSB_HDRC |
| 38 | default y if ARCH_DAVINCI |
| 39 | default y if ARCH_OMAP2430 |
Tony Lindgren | a8eb7ca | 2010-02-12 12:26:48 -0800 | [diff] [blame] | 40 | default y if ARCH_OMAP3 |
Maulik Mankad | c71b1b9 | 2010-03-12 10:29:08 +0200 | [diff] [blame] | 41 | default y if ARCH_OMAP4 |
Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 42 | default y if (BF54x && !BF544) |
| 43 | default y if (BF52x && !BF522 && !BF523) |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 44 | |
David Brownell | a227fd7 | 2009-02-24 15:31:54 -0800 | [diff] [blame] | 45 | comment "DaVinci 35x and 644x USB support" |
Sergei Shtylyov | c6a39ee | 2010-03-25 13:14:24 +0200 | [diff] [blame] | 46 | depends on USB_MUSB_HDRC && ARCH_DAVINCI_DMx |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 47 | |
Sergei Shtylyov | 3ee076d | 2010-09-24 13:44:03 +0300 | [diff] [blame] | 48 | comment "DA8xx/OMAP-L1x USB support" |
| 49 | depends on USB_MUSB_HDRC && ARCH_DAVINCI_DA8XX |
| 50 | |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 51 | comment "OMAP 243x high speed USB support" |
| 52 | depends on USB_MUSB_HDRC && ARCH_OMAP2430 |
| 53 | |
| 54 | comment "OMAP 343x high speed USB support" |
Tony Lindgren | a8eb7ca | 2010-02-12 12:26:48 -0800 | [diff] [blame] | 55 | depends on USB_MUSB_HDRC && ARCH_OMAP3 |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 56 | |
Maulik Mankad | c71b1b9 | 2010-03-12 10:29:08 +0200 | [diff] [blame] | 57 | comment "OMAP 44xx high speed USB support" |
| 58 | depends on USB_MUSB_HDRC && ARCH_OMAP4 |
| 59 | |
Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 60 | comment "Blackfin high speed USB Support" |
David Brownell | cd67435 | 2009-01-26 02:05:43 -0800 | [diff] [blame] | 61 | depends on USB_MUSB_HDRC && ((BF54x && !BF544) || (BF52x && !BF522 && !BF523)) |
Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 62 | |
Ajay Kumar Gupta | eb83092 | 2010-10-19 10:08:12 +0300 | [diff] [blame^] | 63 | config USB_MUSB_AM35X |
| 64 | bool |
| 65 | depends on USB_MUSB_HDRC && !ARCH_OMAP2430 && !ARCH_OMAP4 |
| 66 | select NOP_USB_XCEIV |
| 67 | default MACH_OMAP3517EVM |
| 68 | help |
| 69 | Select this option if your platform is based on AM35x. As |
| 70 | AM35x has an updated MUSB with CPPI4.1 DMA so this config |
| 71 | is introduced to differentiate musb ip between OMAP3x and |
| 72 | AM35x platforms. |
| 73 | |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 74 | config USB_TUSB6010 |
| 75 | boolean "TUSB 6010 support" |
| 76 | depends on USB_MUSB_HDRC && !USB_MUSB_SOC |
David Brownell | 84e250f | 2009-03-31 12:30:04 -0700 | [diff] [blame] | 77 | select NOP_USB_XCEIV |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 78 | default y |
| 79 | help |
| 80 | The TUSB 6010 chip, from Texas Instruments, connects a discrete |
| 81 | HDRC core using a 16-bit parallel bus (NOR flash style) or VLYNQ |
| 82 | (a high speed serial link). It can use system-specific external |
| 83 | DMA controllers. |
| 84 | |
| 85 | choice |
| 86 | prompt "Driver Mode" |
| 87 | depends on USB_MUSB_HDRC |
| 88 | help |
| 89 | Dual-Role devices can support both host and peripheral roles, |
| 90 | as well as a the special "OTG Device" role which can switch |
| 91 | between both roles as needed. |
| 92 | |
| 93 | # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support; |
| 94 | # OTG needs both roles, not just USB_MUSB_HOST. |
| 95 | config USB_MUSB_HOST |
| 96 | depends on USB |
| 97 | bool "USB Host" |
| 98 | help |
| 99 | Say Y here if your system supports the USB host role. |
| 100 | If it has a USB "A" (rectangular), "Mini-A" (uncommon), |
| 101 | or "Mini-AB" connector, it supports the host role. |
| 102 | (With a "Mini-AB" connector, you should enable USB OTG.) |
| 103 | |
| 104 | # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral |
| 105 | # side support ... OTG needs both roles |
| 106 | config USB_MUSB_PERIPHERAL |
| 107 | depends on USB_GADGET |
| 108 | bool "USB Peripheral (gadget stack)" |
| 109 | select USB_GADGET_MUSB_HDRC |
| 110 | help |
| 111 | Say Y here if your system supports the USB peripheral role. |
| 112 | If it has a USB "B" (squarish), "Mini-B", or "Mini-AB" |
| 113 | connector, it supports the peripheral role. |
| 114 | (With a "Mini-AB" connector, you should enable USB OTG.) |
| 115 | |
| 116 | config USB_MUSB_OTG |
| 117 | depends on USB && USB_GADGET && PM && EXPERIMENTAL |
| 118 | bool "Both host and peripheral: USB OTG (On The Go) Device" |
| 119 | select USB_GADGET_MUSB_HDRC |
| 120 | select USB_OTG |
| 121 | help |
| 122 | The most notable feature of USB OTG is support for a |
| 123 | "Dual-Role" device, which can act as either a device |
| 124 | or a host. The initial role choice can be changed |
| 125 | later, when two dual-role devices talk to each other. |
| 126 | |
| 127 | At this writing, the OTG support in this driver is incomplete, |
| 128 | omitting the mandatory HNP or SRP protocols. However, some |
| 129 | of the cable based role switching works. (That is, grounding |
| 130 | the ID pin switches the controller to host mode, while leaving |
| 131 | it floating leaves it in peripheral mode.) |
| 132 | |
| 133 | Select this if your system has a Mini-AB connector, or |
| 134 | to simplify certain kinds of configuration. |
| 135 | |
| 136 | To implement your OTG Targeted Peripherals List (TPL), enable |
| 137 | USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h" |
| 138 | to match your requirements. |
| 139 | |
| 140 | endchoice |
| 141 | |
| 142 | # enable peripheral support (including with OTG) |
| 143 | config USB_GADGET_MUSB_HDRC |
| 144 | bool |
| 145 | depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG) |
| 146 | # default y |
| 147 | # select USB_GADGET_DUALSPEED |
| 148 | # select USB_GADGET_SELECTED |
| 149 | |
| 150 | # enables host support (including with OTG) |
| 151 | config USB_MUSB_HDRC_HCD |
| 152 | bool |
| 153 | depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG) |
| 154 | select USB_OTG if USB_GADGET_MUSB_HDRC |
| 155 | default y |
| 156 | |
| 157 | |
| 158 | config MUSB_PIO_ONLY |
| 159 | bool 'Disable DMA (always use PIO)' |
| 160 | depends on USB_MUSB_HDRC |
Ajay Kumar Gupta | eb83092 | 2010-10-19 10:08:12 +0300 | [diff] [blame^] | 161 | default USB_TUSB6010 || ARCH_DAVINCI_DA8XX || USB_MUSB_AM35X |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 162 | help |
| 163 | All data is copied between memory and FIFO by the CPU. |
| 164 | DMA controllers are ignored. |
| 165 | |
| 166 | Do not select 'n' here unless DMA support for your SOC or board |
| 167 | is unavailable (or unstable). When DMA is enabled at compile time, |
| 168 | you can still disable it at run time using the "use_dma=n" module |
| 169 | parameter. |
| 170 | |
| 171 | config USB_INVENTRA_DMA |
| 172 | bool |
| 173 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY |
Maulik Mankad | c71b1b9 | 2010-03-12 10:29:08 +0200 | [diff] [blame] | 174 | default ARCH_OMAP2430 || ARCH_OMAP3 || BLACKFIN || ARCH_OMAP4 |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 175 | help |
| 176 | Enable DMA transfers using Mentor's engine. |
| 177 | |
| 178 | config USB_TI_CPPI_DMA |
| 179 | bool |
| 180 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY |
| 181 | default ARCH_DAVINCI |
| 182 | help |
| 183 | Enable DMA transfers when TI CPPI DMA is available. |
| 184 | |
| 185 | config USB_TUSB_OMAP_DMA |
| 186 | bool |
| 187 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY |
| 188 | depends on USB_TUSB6010 |
| 189 | depends on ARCH_OMAP |
| 190 | default y |
| 191 | help |
| 192 | Enable DMA transfers on TUSB 6010 when OMAP DMA is available. |
| 193 | |
Felipe Balbi | e8164f6 | 2008-08-10 21:22:35 +0300 | [diff] [blame] | 194 | config USB_MUSB_DEBUG |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 195 | depends on USB_MUSB_HDRC |
Felipe Balbi | e8164f6 | 2008-08-10 21:22:35 +0300 | [diff] [blame] | 196 | bool "Enable debugging messages" |
| 197 | default n |
Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 198 | help |
Felipe Balbi | e8164f6 | 2008-08-10 21:22:35 +0300 | [diff] [blame] | 199 | This enables musb debugging. To set the logging level use the debug |
| 200 | module parameter. Starting at level 3, per-transfer (urb, usb_request, |
| 201 | packet, or dma transfer) tracing may kick in. |