static int rt_usbhost_reset(void)
{
	u32 val = rt_readl(RSTCTRL);
	val |= UHST_RST;
	rt_writel(val, RSTCTRL);
	val &= ~(UHST_RST);
	rt_writel(val, RSTCTRL);
	mdelay (100);
}
Example #2
0
static int rt_usbhost_reset(void)
{
	u32 val = rt_readl(RT2880_RSTCTRL_REG);
	val |= RALINK_UHST_RST;
	rt_writel(val, RT2880_RSTCTRL_REG);
	val &= ~(RALINK_UHST_RST);
	rt_writel(val, RT2880_RSTCTRL_REG);
	mdelay (100);
}
static int rt_set_host(void)
{
	u32 val = rt_readl(SYSCFG1);
	// host mode
	val |= USB0_HOST_MODE;		
	rt_writel(val, SYSCFG1);
}