From 513b3305669b327c8a609ee01040fb7d05005031 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 18 Oct 2003 04:34:30 +0000 Subject: [PATCH] Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if necessary. --- sys/arch/mips/alchemy/dev/ohci_aubus.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/mips/alchemy/dev/ohci_aubus.c b/sys/arch/mips/alchemy/dev/ohci_aubus.c index d80bd746c128..5f53185d3ec1 100644 --- a/sys/arch/mips/alchemy/dev/ohci_aubus.c +++ b/sys/arch/mips/alchemy/dev/ohci_aubus.c @@ -1,4 +1,4 @@ -/* $NetBSD: ohci_aubus.c,v 1.3 2003/07/15 02:43:35 lukem Exp $ */ +/* $NetBSD: ohci_aubus.c,v 1.4 2003/10/18 04:34:30 simonb Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002, 2003 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ohci_aubus.c,v 1.3 2003/07/15 02:43:35 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci_aubus.c,v 1.4 2003/10/18 04:34:30 simonb Exp $"); #include #include @@ -115,7 +115,10 @@ ohci_aubus_attach(struct device *parent, struct device *self, void *aux) x |= UE_CE; bus_space_write_4(sc->sc.iot, sc->sc.ioh, USBH_ENABLE, x); delay(10); - x |= (UE_E); + x |= UE_E; +#ifdef __MIPSEB__ + x |= UE_BE; +#endif bus_space_write_4(sc->sc.iot, sc->sc.ioh, USBH_ENABLE, x); delay(10); x = bus_space_read_4(sc->sc.iot, sc->sc.ioh, OHCI_CONTROL);