Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/booke/dev Make sure to enable the USB inter...



details:   https://anonhg.NetBSD.org/src/rev/15165fa264fc
branches:  trunk
changeset: 765973:15165fa264fc
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jun 12 05:29:13 2011 +0000

description:
Make sure to enable the USB interface.

diffstat:

 sys/arch/powerpc/booke/dev/pq3ehci.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r f1846791db71 -r 15165fa264fc sys/arch/powerpc/booke/dev/pq3ehci.c
--- a/sys/arch/powerpc/booke/dev/pq3ehci.c      Sun Jun 12 05:27:56 2011 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3ehci.c      Sun Jun 12 05:29:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3ehci.c,v 1.3 2011/02/16 18:46:37 matt Exp $ */
+/*     $NetBSD: pq3ehci.c,v 1.4 2011/06/12 05:29:13 matt Exp $ */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pq3ehci.c,v 1.3 2011/02/16 18:46:37 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3ehci.c,v 1.4 2011/06/12 05:29:13 matt Exp $");
+
+#include "opt_usb.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -119,6 +121,7 @@
         */
        cpu_write_4(cnl->cnl_addr + USB_SNOOP1,
            SNOOP_2GB - __builtin_clz(curcpu()->ci_softc->cpu_highmem * 2 - 1));
+       cpu_write_4(cnl->cnl_addr + USB_CONTROL, USB_EN);
 
        sc->sc_ih = intr_establish(cnl->cnl_intrs[0], IPL_USB, IST_ONCHIP,
            ehci_intr, sc);



Home | Main Index | Thread Index | Old Index