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 Add some more USBMODE defines
details: https://anonhg.NetBSD.org/src/rev/fddcec8b4646
branches: trunk
changeset: 340426:fddcec8b4646
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Sep 04 07:35:56 2015 +0000
description:
Add some more USBMODE defines
diffstat:
sys/arch/arm/imx/imxusbreg.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 3b6815e20aad -r fddcec8b4646 sys/arch/arm/imx/imxusbreg.h
--- a/sys/arch/arm/imx/imxusbreg.h Fri Sep 04 07:34:32 2015 +0000
+++ b/sys/arch/arm/imx/imxusbreg.h Fri Sep 04 07:35:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imxusbreg.h,v 1.3 2015/09/04 07:34:32 skrll Exp $ */
+/* $NetBSD: imxusbreg.h,v 1.4 2015/09/04 07:35:56 skrll Exp $ */
/*
* Copyright (c) 2009, 2010 Genetec Corporation. All rights reserved.
* Written by Hashimoto Kenichi for Genetec Corporation.
@@ -81,7 +81,11 @@
#define OTGSC_VC __BIT( 1)
#define OTGSC_VD __BIT( 0)
#define IMXUSB_USBMODE 0x01A8
-#define USBMODE_CM __BITS(1,0)
+#define USBMODE_VBPS __BIT(5) /* Vbus power selectt */
+#define USBMODE_SDIS __BIT(4) /* Stream disable mode 1=act */
+#define USBMODE_SLOM __BIT(3) /* setup lockouts on */
+#define USBMODE_ES __BIT(2) /* Endian Select ES=1 */
+#define USBMODE_CM __BITS(1,0) /* Controller mode */
#define USBMODE_CM_IDLE __SHIFTIN(0,USBMODE_CM)
#define USBMODE_CM_DEVICE __SHIFTIN(2,USBMODE_CM)
#define USBMODE_CM_HOST __SHIFTIN(3,USBMODE_CM)
Home |
Main Index |
Thread Index |
Old Index