diff options
author | Keshava Munegowda <keshava_mgowda@ti.com> | 2011-03-01 09:38:16 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-03-01 10:01:11 -0500 |
commit | 181b250cf53233a7a7c6d7e1e9df402506712e93 (patch) | |
tree | 476b60593f7b646bdc1e0d56cd38368bed31fe4d /arch/arm/mach-omap2/board-am3517evm.c | |
parent | a8480ea0bedbf049423a4caa9b09d371614c07dc (diff) |
arm: omap: usb: create common enums and structures for ehci and ohci
Create the ehci and ohci specific platform data structures.
The port enum values are made common for both ehci and ohci.
Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 10d60b7743cf..f5bc1c6ccf5e 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -430,15 +430,15 @@ static __init void am3517_evm_musb_init(void) | |||
430 | usb_musb_init(&musb_board_data); | 430 | usb_musb_init(&musb_board_data); |
431 | } | 431 | } |
432 | 432 | ||
433 | static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | 433 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { |
434 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | 434 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
435 | #if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \ | 435 | #if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \ |
436 | defined(CONFIG_PANEL_SHARP_LQ043T1DG01_MODULE) | 436 | defined(CONFIG_PANEL_SHARP_LQ043T1DG01_MODULE) |
437 | .port_mode[1] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 437 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, |
438 | #else | 438 | #else |
439 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | 439 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, |
440 | #endif | 440 | #endif |
441 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 441 | .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, |
442 | 442 | ||
443 | .phy_reset = true, | 443 | .phy_reset = true, |
444 | .reset_gpio_port[0] = 57, | 444 | .reset_gpio_port[0] = 57, |
@@ -502,7 +502,7 @@ static void __init am3517_evm_init(void) | |||
502 | 502 | ||
503 | /* Configure GPIO for EHCI port */ | 503 | /* Configure GPIO for EHCI port */ |
504 | omap_mux_init_gpio(57, OMAP_PIN_OUTPUT); | 504 | omap_mux_init_gpio(57, OMAP_PIN_OUTPUT); |
505 | usb_ehci_init(&ehci_pdata); | 505 | usb_ehci_init(&usbhs_bdata); |
506 | am3517_evm_hecc_init(&am3517_evm_hecc_pdata); | 506 | am3517_evm_hecc_init(&am3517_evm_hecc_pdata); |
507 | /* DSS */ | 507 | /* DSS */ |
508 | am3517_evm_display_init(); | 508 | am3517_evm_display_init(); |