summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb-new/musb_uboot.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-06-17 21:33:57 +0200
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:37 -0600
commitfc85d39e7906ab3d6fb21e41e8f35c03b0118290 (patch)
tree80fcbd5cdfa91a0d750769d1b8626c11a4b554d7 /drivers/usb/musb-new/musb_uboot.h
parent1398252abf2aaf906832932401727c3538f74f46 (diff)
downloadtalos-obmc-uboot-fc85d39e7906ab3d6fb21e41e8f35c03b0118290.tar.gz
talos-obmc-uboot-fc85d39e7906ab3d6fb21e41e8f35c03b0118290.zip
musb: Add musb_host_data struct to hold global data
Add a musb_host_data struct to hold all the global data host related musb data. This is a preparation patch for adding device-model support. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/musb-new/musb_uboot.h')
-rw-r--r--drivers/usb/musb-new/musb_uboot.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/usb/musb-new/musb_uboot.h b/drivers/usb/musb-new/musb_uboot.h
new file mode 100644
index 0000000000..69b7977f58
--- /dev/null
+++ b/drivers/usb/musb-new/musb_uboot.h
@@ -0,0 +1,24 @@
+/*
+ * MUSB OTG driver u-boot specific functions
+ *
+ * Copyright © 2015 Hans de Goede <hdegoede@redhat.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+#ifndef __MUSB_UBOOT_H__
+#define __MUSB_UBOOT_H__
+
+#include <usb.h>
+#include "linux-compat.h"
+#include "usb-compat.h"
+#include "musb_core.h"
+
+struct musb_host_data {
+ struct musb *host;
+ struct usb_hcd hcd;
+ enum usb_device_speed host_speed;
+ struct usb_host_endpoint hep;
+ struct urb urb;
+};
+
+#endif
OpenPOWER on IntegriCloud