musb_uboot.h 547 B

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