aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-rx51.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-rx51.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-rx51.c')
-rw-r--r--arch/arm/mach-omap2/board-rx51.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c
index 6a49f916103d..0ccb8b46d157 100644
--- a/arch/arm/mach-omap2/board-rx51.c
+++ b/arch/arm/mach-omap2/board-rx51.c
@@ -78,11 +78,17 @@ static struct omap_board_mux board_mux[] __initdata = {
78#define board_mux NULL 78#define board_mux NULL
79#endif 79#endif
80 80
81static struct omap_musb_board_data musb_board_data = {
82 .interface_type = MUSB_INTERFACE_ULPI,
83 .mode = MUSB_PERIPHERAL,
84 .power = 0,
85};
86
81static void __init rx51_init(void) 87static void __init rx51_init(void)
82{ 88{
83 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); 89 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
84 omap_serial_init(); 90 omap_serial_init();
85 usb_musb_init(); 91 usb_musb_init(&musb_board_data);
86 rx51_peripherals_init(); 92 rx51_peripherals_init();
87 93
88 /* Ensure SDRC pins are mux'd for self-refresh */ 94 /* Ensure SDRC pins are mux'd for self-refresh */