Date: Sun, 27 Mar 2011 08:32:47 +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: r220051 - head/sys/mips/atheros Message-ID: <201103270832.p2R8Wlq7051253@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sun Mar 27 08:32:47 2011 New Revision: 220051 URL: http://svn.freebsd.org/changeset/base/220051 Log: Add some missing flags needed for AR913x/AR724x USB to correctly operate. The AR913x/AR724x USB lives at a different offset to the AR71xx USB, so this needs to be either adjusted for in a subsequent commit, or updated in hints for kernels compiled for those platforms. Submitted by: Luiz Otavio O Souzau <loos.br@gmail.com> Modified: head/sys/mips/atheros/ar71xx_ehci.c Modified: head/sys/mips/atheros/ar71xx_ehci.c ============================================================================== --- head/sys/mips/atheros/ar71xx_ehci.c Sun Mar 27 05:09:21 2011 (r220050) +++ head/sys/mips/atheros/ar71xx_ehci.c Sun Mar 27 08:32:47 2011 (r220051) @@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$"); #include <dev/usb/controller/ehci.h> #include <dev/usb/controller/ehcireg.h> +#include <mips/atheros/ar71xx_setup.h> #include <mips/atheros/ar71xx_bus_space_reversed.h> #define EHCI_HC_DEVSTR "AR71XX Integrated USB 2.0 controller" @@ -192,6 +193,19 @@ ar71xx_ehci_attach(device_t self) * register following a port enable. */ sc->sc_flags = EHCI_SCFLG_SETMODE; + + switch (ar71xx_soc) { + case AR71XX_SOC_AR7241: + case AR71XX_SOC_AR7242: + case AR71XX_SOC_AR9130: + case AR71XX_SOC_AR9132: + sc->sc_flags |= EHCI_SCFLG_TT | EHCI_SCFLG_NORESTERM; + break; + default: + /* fallthrough */ + break; + } + (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?201103270832.p2R8Wlq7051253>