diff options
author | John Crispin <john@phrozen.org> | 2017-02-13 12:38:27 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-02-14 12:17:52 +0100 |
commit | 9c2422709075196022fcbc2d0f5f83e01d02b951 (patch) | |
tree | 4f18a4dd9d22fcbe10c0365596dd133cf28383be /target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch | |
parent | d5221d5a419c14456bccba9f6825567839082fb0 (diff) | |
download | upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.tar.gz upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.tar.bz2 upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.zip |
ramips: add v4.9 support
NAND support is missing
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch')
-rw-r--r-- | target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch b/target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch new file mode 100644 index 0000000000..1d885fbd32 --- /dev/null +++ b/target/linux/ramips/patches-4.9/0069-awake-rt305x-dwc2-controller.patch @@ -0,0 +1,15 @@ +--- a/drivers/usb/dwc2/platform.c ++++ b/drivers/usb/dwc2/platform.c +@@ -616,6 +616,12 @@ static int dwc2_driver_probe(struct plat + if (retval) + return retval; + ++ /* Enable USB port before any regs access */ ++ if (dwc2_readl(hsotg->regs + PCGCTL) & 0x0f) { ++ dwc2_writel(0x00, hsotg->regs + PCGCTL); ++ /* TODO: mdelay(25) here? vendor driver don't use it */ ++ } ++ + retval = dwc2_get_dr_mode(hsotg); + if (retval) + goto error; |