From f31297c7aaf39994d7148ee31050f260192ac86c Mon Sep 17 00:00:00 2001 From: wlf Date: Sat, 26 Jan 2013 11:25:15 +0800 Subject: [PATCH] USB: First of all, usb phy enter usb mode for RK3188 --- drivers/usb/dwc_otg/dwc_otg_driver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/dwc_otg/dwc_otg_driver.c b/drivers/usb/dwc_otg/dwc_otg_driver.c index 358a633b6069..a1e0fb187a55 100755 --- a/drivers/usb/dwc_otg/dwc_otg_driver.c +++ b/drivers/usb/dwc_otg/dwc_otg_driver.c @@ -1159,6 +1159,13 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev) int irq; struct dwc_otg_platform_data *pldata = dev->platform_data; + +#ifdef CONFIG_ARCH_RK3188 + unsigned int * USB_GRF_UOC0_CON0 = (unsigned int*)(RK30_GRF_BASE+0x10c); + /* usb phy enter usb mode */ + * USB_GRF_UOC0_CON0 = (0x0300 << 16); +#endif + // clock and hw init if(pldata->hw_init) pldata->hw_init(); -- 2.34.1