diff --git a/sys/arch/arm/zynq/zynq_usb.c b/sys/arch/arm/zynq/zynq_usb.c index d9bf396cda33..fdb8951410b5 100644 --- a/sys/arch/arm/zynq/zynq_usb.c +++ b/sys/arch/arm/zynq/zynq_usb.c @@ -1,4 +1,4 @@ -/* $NetBSD: zynq_usb.c,v 1.1 2015/01/23 12:34:09 hkenken Exp $ */ +/* $NetBSD: zynq_usb.c,v 1.2 2015/09/04 07:38:05 skrll Exp $ */ /*- * Copyright (c) 2015 Genetec Corporation. All rights reserved. * Written by Hashimoto Kenichi for Genetec Corporation. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: zynq_usb.c,v 1.1 2015/01/23 12:34:09 hkenken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zynq_usb.c,v 1.2 2015/09/04 07:38:05 skrll Exp $"); #include "opt_zynq.h" @@ -372,7 +372,7 @@ zynqusb_host_mode(struct zynqehci_softc *sc) reg |= OTGSC_DPIE | OTGSC_IDIE; bus_space_write_4(sc->sc_iot, sc->sc_ioh, ZYNQUSB_OTGSC, reg); - reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh, ZYNQUSB_OTGMODE); + reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh, ZYNQUSB_USBMODE); reg |= USBMODE_CM_HOST; - bus_space_write_4(sc->sc_iot, sc->sc_ioh, ZYNQUSB_OTGMODE, reg); + bus_space_write_4(sc->sc_iot, sc->sc_ioh, ZYNQUSB_USBMODE, reg); } diff --git a/sys/arch/arm/zynq/zynq_usbreg.h b/sys/arch/arm/zynq/zynq_usbreg.h index 4ea261277835..0278cd16648d 100644 --- a/sys/arch/arm/zynq/zynq_usbreg.h +++ b/sys/arch/arm/zynq/zynq_usbreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: zynq_usbreg.h,v 1.1 2015/01/23 12:34:09 hkenken Exp $ */ +/* $NetBSD: zynq_usbreg.h,v 1.2 2015/09/04 07:38:05 skrll Exp $ */ /*- * Copyright (c) 2015 Genetec Corporation. All rights reserved. * Written by Hashimoto Kenichi for Genetec Corporation. @@ -87,7 +87,7 @@ #define OTGSC_HAAR __BIT( 2) #define OTGSC_VC __BIT( 1) #define OTGSC_VD __BIT( 0) -#define ZYNQUSB_OTGMODE 0x01A8 +#define ZYNQUSB_USBMODE 0x01A8 #define USBMODE_CM __BITS(1,0) #define USBMODE_CM_IDLE __SHIFTIN(0, USBMODE_CM) #define USBMODE_CM_DEVICE __SHIFTIN(2, USBMODE_CM)