aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-zoom-peripherals.c
diff options
context:
space:
mode:
authorMaulik Mankad <x0082077@ti.com>2010-02-17 17:09:30 -0500
committerTony Lindgren <tony@atomide.com>2010-02-19 18:22:17 -0500
commit884b8369ee78c081b5e5a99d1d09a95815d13c28 (patch)
treeb9242dfe2fc11fb743bb265f4ee4ee2a2a43e7b6 /arch/arm/mach-omap2/board-zoom-peripherals.c
parentf9828552b945b9522f15f9eccea6d6df0af49753 (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-zoom-peripherals.c')
-rwxr-xr-xarch/arm/mach-omap2/board-zoom-peripherals.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c
index 9a0821fb7ea0..ca95d8d64136 100755
--- a/arch/arm/mach-omap2/board-zoom-peripherals.c
+++ b/arch/arm/mach-omap2/board-zoom-peripherals.c
@@ -264,6 +264,12 @@ static int __init omap_i2c_init(void)
264 return 0; 264 return 0;
265} 265}
266 266
267static struct omap_musb_board_data musb_board_data = {
268 .interface_type = MUSB_INTERFACE_ULPI,
269 .mode = MUSB_OTG,
270 .power = 100,
271};
272
267static void enable_board_wakeup_source(void) 273static void enable_board_wakeup_source(void)
268{ 274{
269 /* T2 interrupt line (keypad) */ 275 /* T2 interrupt line (keypad) */
@@ -275,6 +281,6 @@ void __init zoom_peripherals_init(void)
275{ 281{
276 omap_i2c_init(); 282 omap_i2c_init();
277 omap_serial_init(); 283 omap_serial_init();
278 usb_musb_init(); 284 usb_musb_init(&musb_board_data);
279 enable_board_wakeup_source(); 285 enable_board_wakeup_source();
280} 286}