aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-omap.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2012-06-22 07:32:46 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-25 07:05:35 -0400
commit662dca54ca67c92b7aa14b9a2ec54acacf33ce45 (patch)
tree80c77434b1c4d33ce4e7db56f284c9ae65e16a8d /drivers/usb/host/ohci-omap.c
parent721002ec1dd55a52425455826af49cf8853b2d4f (diff)
usb: otg: support for multiple transceivers by a single controller
Add a linked list for keeping multiple PHY instances with different types so that we can have separate USB2 and USB3 PHYs on one single board. _get_phy_ has been changed so that the controller gets the transceiver by type. _remove_phy_ has been added to let the phy be removed from the phy list. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')
-rw-r--r--drivers/usb/host/ohci-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
index c2c1f55889a4..92a77dfd1930 100644
--- a/drivers/usb/host/ohci-omap.c
+++ b/drivers/usb/host/ohci-omap.c
@@ -211,7 +211,7 @@ static int ohci_omap_init(struct usb_hcd *hcd)
211 211
212#ifdef CONFIG_USB_OTG 212#ifdef CONFIG_USB_OTG
213 if (need_transceiver) { 213 if (need_transceiver) {
214 ohci->transceiver = usb_get_phy(); 214 ohci->transceiver = usb_get_phy(USB_PHY_TYPE_USB2);
215 if (ohci->transceiver) { 215 if (ohci->transceiver) {
216 int status = otg_set_host(ohci->transceiver->otg, 216 int status = otg_set_host(ohci->transceiver->otg,
217 &ohci_to_hcd(ohci)->self); 217 &ohci_to_hcd(ohci)->self);