Updating the SFFSDR board USB configuration to aling with the new DaVinci USB configuration infrastructure. Based on current implementation initialize the MUSB config to support Peripheral mode alone configuration. Signed-off-by: Swaminathan S <swami.iyer@xxxxxx> --- arch/arm/mach-davinci/board-sffsdr.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) mode change 100644 => 100755 arch/arm/mach-davinci/board-sffsdr.c 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); -- 1.6.0.rc1.64.g61192 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html