Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 2 | /* |
| 3 | * MUSB OTG driver u-boot specific functions |
| 4 | * |
| 5 | * Copyright © 2015 Hans de Goede <hdegoede@redhat.com> |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 6 | */ |
| 7 | #ifndef __MUSB_UBOOT_H__ |
| 8 | #define __MUSB_UBOOT_H__ |
| 9 | |
| 10 | #include <usb.h> |
Rui Miguel Silva | fb0c70c | 2022-06-29 11:06:14 +0100 | [diff] [blame] | 11 | #include <linux/usb/usb_urb_compat.h> |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 12 | #include "linux-compat.h" |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 13 | #include "musb_core.h" |
| 14 | |
| 15 | struct musb_host_data { |
| 16 | struct musb *host; |
| 17 | struct usb_hcd hcd; |
| 18 | enum usb_device_speed host_speed; |
| 19 | struct usb_host_endpoint hep; |
| 20 | struct urb urb; |
| 21 | }; |
| 22 | |
Hans de Goede | fc64961 | 2015-06-17 21:33:58 +0200 | [diff] [blame] | 23 | extern struct dm_usb_ops musb_usb_ops; |
| 24 | |
| 25 | int musb_lowlevel_init(struct musb_host_data *host); |
| 26 | |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 27 | #endif |