projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c6ea2
)
USB: First of all, usb phy enter usb mode for RK3188
author
wlf
<wulf@rock-chips.com>
Sat, 26 Jan 2013 03:25:15 +0000
(11:25 +0800)
committer
wlf
<wulf@rock-chips.com>
Sat, 26 Jan 2013 03:25:15 +0000
(11:25 +0800)
drivers/usb/dwc_otg/dwc_otg_driver.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg/dwc_otg_driver.c
b/drivers/usb/dwc_otg/dwc_otg_driver.c
index 358a633b6069f632d54bbe19b25faca256dfd4c4..a1e0fb187a5511ac92db9f7d9c003e66074d2fd1 100755
(executable)
--- 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();