summaryrefslogtreecommitdiffstats
path: root/src/drivers/usb/dwusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/usb/dwusb.h')
-rw-r--r--src/drivers/usb/dwusb.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/drivers/usb/dwusb.h b/src/drivers/usb/dwusb.h
new file mode 100644
index 000000000..523f7ba81
--- /dev/null
+++ b/src/drivers/usb/dwusb.h
@@ -0,0 +1,23 @@
+#ifndef _DWUSB_H
+#define _DWUSB_H
+
+/** @file
+ *
+ * Synopsys DesignWare USB3 host controller driver
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#include <ipxe/xhci.h>
+
+/** Global core control register */
+#define DWUSB_GCTL 0xc110
+#define DWUSB_GCTL_PRTDIR( x ) ( (x) << 12 ) /**< Port direction */
+#define DWUSB_GCTL_PRTDIR_HOST \
+ DWUSB_GCTL_PRTDIR ( 1 ) /**< Operate as a host */
+#define DWUSB_GCTL_PRTDIR_MASK \
+ DWUSB_GCTL_PRTDIR ( 3 ) /**< Port direction mask */
+#define DWUSB_GCTL_RESET 0x00000800 /**< Core soft reset */
+
+#endif /* _DWUSB_H */