aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-igep0020.c
diff options
context:
space:
mode:
authorMaulik Mankad <x0082077@ti.com>2010-02-17 17:09:30 -0500
committerTony Lindgren <tony@atomide.com>2010-02-19 18:22:17 -0500
commit884b8369ee78c081b5e5a99d1d09a95815d13c28 (patch)
treeb9242dfe2fc11fb743bb265f4ee4ee2a2a43e7b6 /arch/arm/mach-omap2/board-igep0020.c
parentf9828552b945b9522f15f9eccea6d6df0af49753 (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.c8
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
439static struct omap_musb_board_data musb_board_data = {
440 .interface_type = MUSB_INTERFACE_ULPI,
441 .mode = MUSB_OTG,
442 .power = 100,
443};
444
439static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 445static 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();