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-omap3beagle.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-omap3beagle.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 1bae69913376..6eb77e1f7c82 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -430,6 +430,12 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
430 | #define board_mux NULL | 430 | #define board_mux NULL |
431 | #endif | 431 | #endif |
432 | 432 | ||
433 | static struct omap_musb_board_data musb_board_data = { | ||
434 | .interface_type = MUSB_INTERFACE_ULPI, | ||
435 | .mode = MUSB_OTG, | ||
436 | .power = 100, | ||
437 | }; | ||
438 | |||
433 | static void __init omap3_beagle_init(void) | 439 | static void __init omap3_beagle_init(void) |
434 | { | 440 | { |
435 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 441 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
@@ -443,7 +449,7 @@ static void __init omap3_beagle_init(void) | |||
443 | /* REVISIT leave DVI powered down until it's needed ... */ | 449 | /* REVISIT leave DVI powered down until it's needed ... */ |
444 | gpio_direction_output(170, true); | 450 | gpio_direction_output(170, true); |
445 | 451 | ||
446 | usb_musb_init(); | 452 | usb_musb_init(&musb_board_data); |
447 | usb_ehci_init(&ehci_pdata); | 453 | usb_ehci_init(&ehci_pdata); |
448 | omap3beagle_flash_init(); | 454 | omap3beagle_flash_init(); |
449 | 455 | ||