Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx Correct a register name



details:   https://anonhg.NetBSD.org/src/rev/30fa6ac36495
branches:  trunk
changeset: 810567:30fa6ac36495
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 04 07:34:32 2015 +0000

description:
Correct a register name

diffstat:

 sys/arch/arm/imx/imxusb.c    |  8 ++++----
 sys/arch/arm/imx/imxusbreg.h |  4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 867928280e29 -r 30fa6ac36495 sys/arch/arm/imx/imxusb.c
--- a/sys/arch/arm/imx/imxusb.c Fri Sep 04 06:10:47 2015 +0000
+++ b/sys/arch/arm/imx/imxusb.c Fri Sep 04 07:34:32 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: imxusb.c,v 1.7 2014/09/25 05:05:28 ryo Exp $   */
+/*     $NetBSD: imxusb.c,v 1.8 2015/09/04 07:34:32 skrll Exp $ */
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi and Hiroyuki Bessho for Genetec Corporation.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxusb.c,v 1.7 2014/09/25 05:05:28 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxusb.c,v 1.8 2015/09/04 07:34:32 skrll Exp $");
 
 #include "opt_imx.h"
 
@@ -425,7 +425,7 @@
        reg |= OTGSC_DPIE;
        bus_space_write_4(sc->sc_iot, sc->sc_ioh, IMXUSB_OTGSC, reg);
 
-       reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh, IMXUSB_OTGMODE);
+       reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh, IMXUSB_USBMODE);
        reg |= USBMODE_CM_HOST;
-       bus_space_write_4(sc->sc_iot, sc->sc_ioh, IMXUSB_OTGMODE, reg);
+       bus_space_write_4(sc->sc_iot, sc->sc_ioh, IMXUSB_USBMODE, reg);
 }
diff -r 867928280e29 -r 30fa6ac36495 sys/arch/arm/imx/imxusbreg.h
--- a/sys/arch/arm/imx/imxusbreg.h      Fri Sep 04 06:10:47 2015 +0000
+++ b/sys/arch/arm/imx/imxusbreg.h      Fri Sep 04 07:34:32 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: imxusbreg.h,v 1.2 2014/07/25 07:49:56 hkenken Exp $    */
+/*     $NetBSD: imxusbreg.h,v 1.3 2015/09/04 07:34:32 skrll Exp $      */
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi for Genetec Corporation.
@@ -80,7 +80,7 @@
 #define         OTGSC_OT       __BIT( 3)
 #define         OTGSC_VC       __BIT( 1)
 #define         OTGSC_VD       __BIT( 0)
-#define        IMXUSB_OTGMODE  0x01A8
+#define        IMXUSB_USBMODE  0x01A8
 #define         USBMODE_CM             __BITS(1,0)
 #define         USBMODE_CM_IDLE        __SHIFTIN(0,USBMODE_CM)
 #define         USBMODE_CM_DEVICE      __SHIFTIN(2,USBMODE_CM)



Home | Main Index | Thread Index | Old Index