Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302996
b: refs/heads/master
c: d3645d3
h: refs/heads/master
v: v3
  • Loading branch information
Paul Walmsley committed Apr 13, 2012
1 parent 0312fbb commit 50e3411
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f3c1af26543e11fe7549be162698111ed773cb7
refs/heads/master: d3645d39ad0ed9f09535065676ea0ba114f93cdf
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-omap1/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <plat/mux.h>
#include <plat/usb.h>

#include "common.h"

/* These routines should handle the standard chip-specific modes
* for usb0/1/2 ports, covering basic mux and transceiver setup.
*
Expand Down Expand Up @@ -138,6 +140,7 @@ static inline void ohci_device_init(struct omap_usb_config *pdata)
if (cpu_is_omap7xx())
ohci_resources[1].start = INT_7XX_USB_HHC_1;
pdata->ohci_device = &ohci_device;
pdata->ocpi_enable = &ocpi_enable;
}

#else
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-omap/include/plat/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ struct omap_usb_config {
u32 (*usb0_init)(unsigned nwires, unsigned is_device);
u32 (*usb1_init)(unsigned nwires);
u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup);

int (*ocpi_enable)(void);
};

struct omap_lcd_config {
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/usb/host/ohci-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ static int ohci_omap_init(struct usb_hcd *hcd)
need_transceiver = need_transceiver
|| machine_is_omap_h2() || machine_is_omap_h3();

if (cpu_is_omap16xx())
ocpi_enable();
/* XXX OMAP16xx only */
if (config->ocpi_enable)
config->ocpi_enable();

#ifdef CONFIG_USB_OTG
if (need_transceiver) {
Expand Down

0 comments on commit 50e3411

Please sign in to comment.