diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2009-11-22 13:11:01 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-22 13:24:32 -0500 |
commit | 58a5491c936957011c92f8cc5097fb3231ee3f9c (patch) | |
tree | 8fd45f11ec46785900635279e40fca62cda8ecb5 /arch/arm/mach-omap2/board-omap3beagle.c | |
parent | 83720a8230f87008deba8619428438f0276b83ca (diff) |
omap: Add platform init code for EHCI driver
Add platform init code for EHCI driver.
Various fixes to the original patch by Ajay Kumar Gupta <ajay.gupta@ti.com>
and Anand Gadiyar <gadiyar@ti.com>.
Overo support added by Olof Johansson <olof@lixom.net>
Beagle support added by Koen Kooi <koen@beagleboard.org>
CM-T32 support added by Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Koen Kooi <koen@beagleboard.org>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 4e69f8ed30dc..41480bd0e58a 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -410,6 +410,18 @@ static void __init omap3beagle_flash_init(void) | |||
410 | } | 410 | } |
411 | } | 411 | } |
412 | 412 | ||
413 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | ||
414 | |||
415 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | ||
416 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | ||
417 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | ||
418 | |||
419 | .phy_reset = true, | ||
420 | .reset_gpio_port[0] = -EINVAL, | ||
421 | .reset_gpio_port[1] = 147, | ||
422 | .reset_gpio_port[2] = -EINVAL | ||
423 | }; | ||
424 | |||
413 | static void __init omap3_beagle_init(void) | 425 | static void __init omap3_beagle_init(void) |
414 | { | 426 | { |
415 | omap3_beagle_i2c_init(); | 427 | omap3_beagle_i2c_init(); |
@@ -423,6 +435,7 @@ static void __init omap3_beagle_init(void) | |||
423 | gpio_direction_output(170, true); | 435 | gpio_direction_output(170, true); |
424 | 436 | ||
425 | usb_musb_init(); | 437 | usb_musb_init(); |
438 | usb_ehci_init(&ehci_pdata); | ||
426 | omap3beagle_flash_init(); | 439 | omap3beagle_flash_init(); |
427 | 440 | ||
428 | /* Ensure SDRC pins are mux'd for self-refresh */ | 441 | /* Ensure SDRC pins are mux'd for self-refresh */ |