ohci-omap.c (7022b15e2a9f878fd5184586064c63352c3dd225) | ohci-omap.c (f35ae6346850f6c192269b09088b20261760f0e0) |
---|---|
1/* 2 * OHCI HCD (Host Controller Driver) for USB. 3 * 4 * (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at> 5 * (C) Copyright 2000-2005 David Brownell 6 * (C) Copyright 2002 Hewlett-Packard Company 7 * 8 * OMAP Bus Glue --- 155 unchanged lines hidden (view full) --- 164#endif 165 166#ifdef CONFIG_USB_OTG 167 168static void start_hnp(struct ohci_hcd *ohci) 169{ 170 const unsigned port = ohci_to_hcd(ohci)->self.otg_port - 1; 171 unsigned long flags; | 1/* 2 * OHCI HCD (Host Controller Driver) for USB. 3 * 4 * (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at> 5 * (C) Copyright 2000-2005 David Brownell 6 * (C) Copyright 2002 Hewlett-Packard Company 7 * 8 * OMAP Bus Glue --- 155 unchanged lines hidden (view full) --- 164#endif 165 166#ifdef CONFIG_USB_OTG 167 168static void start_hnp(struct ohci_hcd *ohci) 169{ 170 const unsigned port = ohci_to_hcd(ohci)->self.otg_port - 1; 171 unsigned long flags; |
172 u32 l; |
|
172 173 otg_start_hnp(ohci->transceiver); 174 175 local_irq_save(flags); 176 ohci->transceiver->state = OTG_STATE_A_SUSPEND; 177 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); | 173 174 otg_start_hnp(ohci->transceiver); 175 176 local_irq_save(flags); 177 ohci->transceiver->state = OTG_STATE_A_SUSPEND; 178 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); |
178 OTG_CTRL_REG &= ~OTG_A_BUSREQ; | 179 l = omap_readl(OTG_CTRL); 180 l &= ~OTG_A_BUSREQ; 181 omap_writel(l, OTG_CTRL); |
179 local_irq_restore(flags); 180} 181 182#endif 183 184/*-------------------------------------------------------------------------*/ 185 186static int ohci_omap_init(struct usb_hcd *hcd) --- 359 unchanged lines hidden --- | 182 local_irq_restore(flags); 183} 184 185#endif 186 187/*-------------------------------------------------------------------------*/ 188 189static int ohci_omap_init(struct usb_hcd *hcd) --- 359 unchanged lines hidden --- |