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-3430sdp.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-3430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 4f052982b7cc..491364e44c7d 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -494,6 +494,18 @@ static void enable_board_wakeup_source(void) | |||
494 | omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */ | 494 | omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */ |
495 | } | 495 | } |
496 | 496 | ||
497 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | ||
498 | |||
499 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | ||
500 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | ||
501 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | ||
502 | |||
503 | .phy_reset = true, | ||
504 | .reset_gpio_port[0] = 57, | ||
505 | .reset_gpio_port[1] = 61, | ||
506 | .reset_gpio_port[2] = -EINVAL | ||
507 | }; | ||
508 | |||
497 | static void __init omap_3430sdp_init(void) | 509 | static void __init omap_3430sdp_init(void) |
498 | { | 510 | { |
499 | omap3430_i2c_init(); | 511 | omap3430_i2c_init(); |
@@ -510,6 +522,7 @@ static void __init omap_3430sdp_init(void) | |||
510 | usb_musb_init(); | 522 | usb_musb_init(); |
511 | board_smc91x_init(); | 523 | board_smc91x_init(); |
512 | enable_board_wakeup_source(); | 524 | enable_board_wakeup_source(); |
525 | usb_ehci_init(&ehci_pdata); | ||
513 | } | 526 | } |
514 | 527 | ||
515 | static void __init omap_3430sdp_map_io(void) | 528 | static void __init omap_3430sdp_map_io(void) |