diff mbox

[4/7] Updating the SFFSDR board USB config for DM644x platform.

Message ID 1254937992-2291-5-git-send-email-swami.iyer@ti.com (mailing list archive)
State Superseded
Headers show

Commit Message

Subbrathnam, Swaminathan Oct. 7, 2009, 5:53 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c
old mode 100644
new mode 100755
index 7acdfd8..6d65469
--- a/arch/arm/mach-davinci/board-sffsdr.c
+++ b/arch/arm/mach-davinci/board-sffsdr.c
@@ -38,6 +38,7 @@ 
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/physmap.h>
 #include <linux/io.h>
+#include <linux/usb/musb.h>
 
 #include <asm/setup.h>
 #include <asm/mach-types.h>
@@ -154,6 +155,16 @@  static void __init davinci_sffsdr_map_io(void)
 	dm644x_init();
 }
 
+/* Only Peripheral mode supported hene populate set_vbus to NULL */
+static struct musb_hdrc_platform_data usb_evm_data[] = {
+	{
+		.mode =  MUSB_PERIPHERAL,
+		.power = 0,
+		.potpgt = 0,
+		.set_vbus = NULL,
+	}
+};
+
 static __init void davinci_sffsdr_init(void)
 {
 	struct davinci_soc_info *soc_info = &davinci_soc_info;
@@ -164,7 +175,8 @@  static __init void davinci_sffsdr_init(void)
 	davinci_serial_init(&uart_config);
 	soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK;
 	soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY;
-	setup_usb(0, 0); /* We support only peripheral mode. */
+
+	dm644x_usb_configure(usb_evm_data, ARRAY_SIZE(usb_evm_data));
 
 	/* mux VLYNQ pins */
 	davinci_cfg_reg(DM644X_VLYNQEN);