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-omap3touchbook.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-omap3touchbook.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 8252ba49a664..3943d0f8322c 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -527,6 +527,12 @@ static void __init early_touchbook_revision(char **p) | |||
527 | } | 527 | } |
528 | __early_param("tbr=", early_touchbook_revision); | 528 | __early_param("tbr=", early_touchbook_revision); |
529 | 529 | ||
530 | static struct omap_musb_board_data musb_board_data = { | ||
531 | .interface_type = MUSB_INTERFACE_ULPI, | ||
532 | .mode = MUSB_OTG, | ||
533 | .power = 100, | ||
534 | }; | ||
535 | |||
530 | static void __init omap3_touchbook_init(void) | 536 | static void __init omap3_touchbook_init(void) |
531 | { | 537 | { |
532 | pm_power_off = omap3_touchbook_poweroff; | 538 | pm_power_off = omap3_touchbook_poweroff; |
@@ -545,7 +551,7 @@ static void __init omap3_touchbook_init(void) | |||
545 | spi_register_board_info(omap3_ads7846_spi_board_info, | 551 | spi_register_board_info(omap3_ads7846_spi_board_info, |
546 | ARRAY_SIZE(omap3_ads7846_spi_board_info)); | 552 | ARRAY_SIZE(omap3_ads7846_spi_board_info)); |
547 | omap3_ads7846_init(); | 553 | omap3_ads7846_init(); |
548 | usb_musb_init(); | 554 | usb_musb_init(&musb_board_data); |
549 | usb_ehci_init(&ehci_pdata); | 555 | usb_ehci_init(&ehci_pdata); |
550 | omap3touchbook_flash_init(); | 556 | omap3touchbook_flash_init(); |
551 | 557 | ||