svn commit: r220296 - head/sys/mips/atheros

Adrian Chadd adrian at FreeBSD.org
Sun Apr 3 14:34:28 UTC 2011


Author: adrian
Date: Sun Apr  3 14:34:28 2011
New Revision: 220296
URL: http://svn.freebsd.org/changeset/base/220296

Log:
  Add in some missing flags in the EHCI initialisation code,
  needed to get USB working on the AR913x/AR724x.

Modified:
  head/sys/mips/atheros/ar71xx_ehci.c

Modified: head/sys/mips/atheros/ar71xx_ehci.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_ehci.c	Sun Apr  3 13:19:58 2011	(r220295)
+++ head/sys/mips/atheros/ar71xx_ehci.c	Sun Apr  3 14:34:28 2011	(r220296)
@@ -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);


More information about the svn-src-all mailing list