Date: Sun, 3 Apr 2011 14:34:28 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220296 - head/sys/mips/atheros Message-ID: <201104031434.p33EYS6B030267@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104031434.p33EYS6B030267>