diff options
Diffstat (limited to 'drivers/usb/musb/Kconfig')
-rw-r--r-- | drivers/usb/musb/Kconfig | 75 |
1 files changed, 1 insertions, 74 deletions
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 13093481f918..6192b45959f4 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig | |||
@@ -8,7 +8,7 @@ comment "Enable Host or Gadget support to see Inventra options" | |||
8 | 8 | ||
9 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller | 9 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller |
10 | config USB_MUSB_HDRC | 10 | config USB_MUSB_HDRC |
11 | depends on (USB || USB_GADGET) | 11 | depends on USB && USB_GADGET |
12 | depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) | 12 | depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) |
13 | select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) | 13 | select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) |
14 | select TWL4030_USB if MACH_OMAP_3430SDP | 14 | select TWL4030_USB if MACH_OMAP_3430SDP |
@@ -67,79 +67,6 @@ config USB_MUSB_UX500 | |||
67 | 67 | ||
68 | endchoice | 68 | endchoice |
69 | 69 | ||
70 | choice | ||
71 | prompt "Driver Mode" | ||
72 | depends on USB_MUSB_HDRC | ||
73 | help | ||
74 | Dual-Role devices can support both host and peripheral roles, | ||
75 | as well as a the special "OTG Device" role which can switch | ||
76 | between both roles as needed. | ||
77 | |||
78 | # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support; | ||
79 | # OTG needs both roles, not just USB_MUSB_HOST. | ||
80 | config USB_MUSB_HOST | ||
81 | depends on USB | ||
82 | bool "USB Host" | ||
83 | help | ||
84 | Say Y here if your system supports the USB host role. | ||
85 | If it has a USB "A" (rectangular), "Mini-A" (uncommon), | ||
86 | or "Mini-AB" connector, it supports the host role. | ||
87 | (With a "Mini-AB" connector, you should enable USB OTG.) | ||
88 | |||
89 | # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral | ||
90 | # side support ... OTG needs both roles | ||
91 | config USB_MUSB_PERIPHERAL | ||
92 | depends on USB_GADGET | ||
93 | bool "USB Peripheral (gadget stack)" | ||
94 | select USB_GADGET_MUSB_HDRC | ||
95 | help | ||
96 | Say Y here if your system supports the USB peripheral role. | ||
97 | If it has a USB "B" (squarish), "Mini-B", or "Mini-AB" | ||
98 | connector, it supports the peripheral role. | ||
99 | (With a "Mini-AB" connector, you should enable USB OTG.) | ||
100 | |||
101 | config USB_MUSB_OTG | ||
102 | depends on USB && USB_GADGET && PM && EXPERIMENTAL | ||
103 | bool "Both host and peripheral: USB OTG (On The Go) Device" | ||
104 | select USB_GADGET_MUSB_HDRC | ||
105 | select USB_OTG | ||
106 | help | ||
107 | The most notable feature of USB OTG is support for a | ||
108 | "Dual-Role" device, which can act as either a device | ||
109 | or a host. The initial role choice can be changed | ||
110 | later, when two dual-role devices talk to each other. | ||
111 | |||
112 | At this writing, the OTG support in this driver is incomplete, | ||
113 | omitting the mandatory HNP or SRP protocols. However, some | ||
114 | of the cable based role switching works. (That is, grounding | ||
115 | the ID pin switches the controller to host mode, while leaving | ||
116 | it floating leaves it in peripheral mode.) | ||
117 | |||
118 | Select this if your system has a Mini-AB connector, or | ||
119 | to simplify certain kinds of configuration. | ||
120 | |||
121 | To implement your OTG Targeted Peripherals List (TPL), enable | ||
122 | USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h" | ||
123 | to match your requirements. | ||
124 | |||
125 | endchoice | ||
126 | |||
127 | # enable peripheral support (including with OTG) | ||
128 | config USB_GADGET_MUSB_HDRC | ||
129 | bool | ||
130 | depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG) | ||
131 | # default y | ||
132 | # select USB_GADGET_DUALSPEED | ||
133 | # select USB_GADGET_SELECTED | ||
134 | |||
135 | # enables host support (including with OTG) | ||
136 | config USB_MUSB_HDRC_HCD | ||
137 | bool | ||
138 | depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG) | ||
139 | select USB_OTG if USB_GADGET_MUSB_HDRC | ||
140 | default y | ||
141 | |||
142 | |||
143 | config MUSB_PIO_ONLY | 70 | config MUSB_PIO_ONLY |
144 | bool 'Disable DMA (always use PIO)' | 71 | bool 'Disable DMA (always use PIO)' |
145 | depends on USB_MUSB_HDRC | 72 | depends on USB_MUSB_HDRC |