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-omap3pandora.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-omap3pandora.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index a0acf8d1e806..4827f4658df3 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -557,6 +557,12 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
557 | #define board_mux NULL | 557 | #define board_mux NULL |
558 | #endif | 558 | #endif |
559 | 559 | ||
560 | static struct omap_musb_board_data musb_board_data = { | ||
561 | .interface_type = MUSB_INTERFACE_ULPI, | ||
562 | .mode = MUSB_OTG, | ||
563 | .power = 100, | ||
564 | }; | ||
565 | |||
560 | static void __init omap3pandora_init(void) | 566 | static void __init omap3pandora_init(void) |
561 | { | 567 | { |
562 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 568 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
@@ -569,7 +575,7 @@ static void __init omap3pandora_init(void) | |||
569 | omap3pandora_ads7846_init(); | 575 | omap3pandora_ads7846_init(); |
570 | usb_ehci_init(&ehci_pdata); | 576 | usb_ehci_init(&ehci_pdata); |
571 | pandora_keys_gpio_init(); | 577 | pandora_keys_gpio_init(); |
572 | usb_musb_init(); | 578 | usb_musb_init(&musb_board_data); |
573 | 579 | ||
574 | /* Ensure SDRC pins are mux'd for self-refresh */ | 580 | /* Ensure SDRC pins are mux'd for self-refresh */ |
575 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); | 581 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); |