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-devkit8000.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-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 89a55f1d07e3..371019054b49 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -630,6 +630,12 @@ static void __init devkit8000_flash_init(void) | |||
630 | } | 630 | } |
631 | } | 631 | } |
632 | 632 | ||
633 | static struct omap_musb_board_data musb_board_data = { | ||
634 | .interface_type = MUSB_INTERFACE_ULPI, | ||
635 | .mode = MUSB_OTG, | ||
636 | .power = 100, | ||
637 | }; | ||
638 | |||
633 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | 639 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { |
634 | 640 | ||
635 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | 641 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, |
@@ -665,7 +671,7 @@ static void __init devkit8000_init(void) | |||
665 | /* REVISIT leave DVI powered down until it's needed ... */ | 671 | /* REVISIT leave DVI powered down until it's needed ... */ |
666 | gpio_direction_output(170, true); | 672 | gpio_direction_output(170, true); |
667 | 673 | ||
668 | usb_musb_init(); | 674 | usb_musb_init(&musb_board_data); |
669 | usb_ehci_init(&ehci_pdata); | 675 | usb_ehci_init(&ehci_pdata); |
670 | devkit8000_flash_init(); | 676 | devkit8000_flash_init(); |
671 | 677 | ||