/* This function performs DA8xx platform specific initialization for usb0.  */
int musb_platform_init(void)
/* This function performs DA8xx platform specific initialization for usb0.  */
int musb_platform_init(void)
{
	u32  revision;
	lpsc_on(33);
	enable_vbus();
	writel(0x1, &da8xx_usb_regs->control);
	udelay(5000);
	if (phy_on() == 0)
		return -1;
	revision = readl(&da8xx_usb_regs->revision);
	if (revision == 0)
		return -1;
	writel((DA8XX_USB_USBINT_MASK | DA8XX_USB_TXINT_MASK |
		DA8XX_USB_RXINT_MASK), &da8xx_usb_regs->intmsk_set);
	return 0;
}