summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-03 14:34:28 +0000
committeradrian <adrian@FreeBSD.org>2011-04-03 14:34:28 +0000
commitda1c5bb338f5a97dfcde8d738f3df9d9977baa57 (patch)
tree524e75b5a2f01886cbb52b542913e7ad56bdedac /sys/mips
parent099ab0c9847292b9084d692f030827d7e3b9b427 (diff)
downloadFreeBSD-src-da1c5bb338f5a97dfcde8d738f3df9d9977baa57.zip
FreeBSD-src-da1c5bb338f5a97dfcde8d738f3df9d9977baa57.tar.gz
Add in some missing flags in the EHCI initialisation code,
needed to get USB working on the AR913x/AR724x.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/atheros/ar71xx_ehci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xx_ehci.c b/sys/mips/atheros/ar71xx_ehci.c
index 0ea8a6c..ffa6f00 100644
--- a/sys/mips/atheros/ar71xx_ehci.c
+++ b/sys/mips/atheros/ar71xx_ehci.c
@@ -206,6 +206,13 @@ ar71xx_ehci_attach(device_t self)
break;
}
+ /*
+ * ehci_reset() needs the correct offset to access the host controller
+ * registers. The AR724x/AR913x offsets aren't 0.
+ */
+ sc->sc_offs = EHCI_CAPLENGTH(EREAD4(sc, EHCI_CAPLEN_HCIVERSION));
+
+
(void) ehci_reset(sc);
err = ehci_init(sc);
OpenPOWER on IntegriCloud