ARM: OMAP: musb: Add support for ti816evm
authorRavi Babu <ravibabu@ti.com>
Tue, 13 Dec 2011 18:50:59 +0000 (10:50 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 13 Dec 2011 18:50:59 +0000 (10:50 -0800)
Adding musb support in ti816 EVM board file.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-ti8168evm.c

index b3ca997a44fa0a7157f9d427f9f4e3c501db3f96..5b6ad6e3ccb4989b72b2d14b387296e08e6d6707 100644 (file)
 #include <plat/irqs.h>
 #include <plat/board.h>
 #include "common.h"
+#include <plat/usb.h>
+
+static struct omap_musb_board_data musb_board_data = {
+       .set_phy_power  = ti81xx_musb_phy_power,
+       .interface_type = MUSB_INTERFACE_ULPI,
+       .mode           = MUSB_OTG,
+       .power          = 500,
+};
 
 static struct omap_board_config_kernel ti81xx_evm_config[] __initdata = {
 };
@@ -33,6 +41,7 @@ static void __init ti81xx_evm_init(void)
        omap_sdrc_init(NULL, NULL);
        omap_board_config = ti81xx_evm_config;
        omap_board_config_size = ARRAY_SIZE(ti81xx_evm_config);
+       usb_musb_init(&musb_board_data);
 }
 
 MACHINE_START(TI8168EVM, "ti8168evm")