Skip to content

Commit

Permalink
omap: update plat/usb.h to allow ehci driver to build
Browse files Browse the repository at this point in the history
Add missing declarations to allow the recently introduced
ehci-omap driver to build on OMAP3

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Anand Gadiyar authored and Tony Lindgren committed Nov 22, 2009
1 parent 56190b6 commit 83720a8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm/plat-omap/include/plat/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@

#include <plat/board.h>

#define OMAP3_HS_USB_PORTS 3
enum ehci_hcd_omap_mode {
EHCI_HCD_OMAP_MODE_UNKNOWN,
EHCI_HCD_OMAP_MODE_PHY,
EHCI_HCD_OMAP_MODE_TLL,
};

struct ehci_hcd_omap_platform_data {
enum ehci_hcd_omap_mode port_mode[OMAP3_HS_USB_PORTS];
unsigned phy_reset:1;

/* have to be valid if phy_reset is true and portx is in phy mode */
int reset_gpio_port[OMAP3_HS_USB_PORTS];
};

/*-------------------------------------------------------------------------*/

#define OMAP1_OTG_BASE 0xfffb0400
Expand All @@ -29,6 +44,8 @@

extern void usb_musb_init(void);

extern void usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata);

#endif

void omap_usb_init(struct omap_usb_config *pdata);
Expand Down

0 comments on commit 83720a8

Please sign in to comment.