diff options
author | Maulik Mankad <x0082077@ti.com> | 2010-02-17 17:09:30 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-19 18:22:17 -0500 |
commit | 884b8369ee78c081b5e5a99d1d09a95815d13c28 (patch) | |
tree | b9242dfe2fc11fb743bb265f4ee4ee2a2a43e7b6 /arch/arm/mach-omap2/board-igep0020.c | |
parent | f9828552b945b9522f15f9eccea6d6df0af49753 (diff) |
omap: musb: Pass board specific data from board file
Pass board specific data for MUSB (like interface_type,
mode etc) from board file by defining board
specific structure.
Each board file can define this structure based on
its requirement and pass this information to the
driver.
Signed-off-by: Maulik Mankad <x0082077@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Gupta Ajay Kumar <ajay.gupta@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 748f418ba442..9958987a3d0a 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -436,6 +436,12 @@ static int __init igep2_i2c_init(void) | |||
436 | return 0; | 436 | return 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | static struct omap_musb_board_data musb_board_data = { | ||
440 | .interface_type = MUSB_INTERFACE_ULPI, | ||
441 | .mode = MUSB_OTG, | ||
442 | .power = 100, | ||
443 | }; | ||
444 | |||
439 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | 445 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { |
440 | .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 446 | .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
441 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | 447 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, |
@@ -461,7 +467,7 @@ static void __init igep2_init(void) | |||
461 | igep2_i2c_init(); | 467 | igep2_i2c_init(); |
462 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); | 468 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); |
463 | omap_serial_init(); | 469 | omap_serial_init(); |
464 | usb_musb_init(); | 470 | usb_musb_init(&musb_board_data); |
465 | usb_ehci_init(&ehci_pdata); | 471 | usb_ehci_init(&ehci_pdata); |
466 | 472 | ||
467 | igep2_flash_init(); | 473 | igep2_flash_init(); |