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...@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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to