musb_uboot.h 547 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * MUSB OTG driver u-boot specific functions
  3. *
  4. * Copyright © 2015 Hans de Goede <hdegoede@redhat.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __MUSB_UBOOT_H__
  9. #define __MUSB_UBOOT_H__
  10. #include <usb.h>
  11. #include "linux-compat.h"
  12. #include "usb-compat.h"
  13. #include "musb_core.h"
  14. struct musb_host_data {
  15. struct musb *host;
  16. struct usb_hcd hcd;
  17. enum usb_device_speed host_speed;
  18. struct usb_host_endpoint hep;
  19. struct urb urb;
  20. };
  21. extern struct dm_usb_ops musb_usb_ops;
  22. int musb_lowlevel_init(struct musb_host_data *host);
  23. #endif