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-2430sdp.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-2430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index d6f55ef9059d..01d113ff9fcf 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -193,6 +193,12 @@ static struct omap2_hsmmc_info mmc[] __initdata = { | |||
193 | {} /* Terminator */ | 193 | {} /* Terminator */ |
194 | }; | 194 | }; |
195 | 195 | ||
196 | static struct omap_musb_board_data musb_board_data = { | ||
197 | .interface_type = MUSB_INTERFACE_ULPI, | ||
198 | .mode = MUSB_OTG, | ||
199 | .power = 100, | ||
200 | }; | ||
201 | |||
196 | static void __init omap_2430sdp_init(void) | 202 | static void __init omap_2430sdp_init(void) |
197 | { | 203 | { |
198 | int ret; | 204 | int ret; |
@@ -202,7 +208,7 @@ static void __init omap_2430sdp_init(void) | |||
202 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); | 208 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); |
203 | omap_serial_init(); | 209 | omap_serial_init(); |
204 | omap2_hsmmc_init(mmc); | 210 | omap2_hsmmc_init(mmc); |
205 | usb_musb_init(); | 211 | usb_musb_init(&musb_board_data); |
206 | board_smc91x_init(); | 212 | board_smc91x_init(); |
207 | 213 | ||
208 | /* Turn off secondary LCD backlight */ | 214 | /* Turn off secondary LCD backlight */ |