From: wlf Date: Sat, 26 Jan 2013 03:25:15 +0000 (+0800) Subject: USB: First of all, usb phy enter usb mode for RK3188 X-Git-Tag: firefly_0821_release~7767 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f31297c7aaf39994d7148ee31050f260192ac86c;p=firefly-linux-kernel-4.4.55.git USB: First of all, usb phy enter usb mode for RK3188 --- 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();