Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 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 | |
| 11 | #include <usb.h> |
| 12 | #include "linux-compat.h" |
| 13 | #include "usb-compat.h" |
| 14 | #include "musb_core.h" |
| 15 | |
| 16 | struct musb_host_data { |
| 17 | struct musb *host; |
| 18 | struct usb_hcd hcd; |
| 19 | enum usb_device_speed host_speed; |
| 20 | struct usb_host_endpoint hep; |
| 21 | struct urb urb; |
| 22 | }; |
| 23 | |
Hans de Goede | fc64961 | 2015-06-17 21:33:58 +0200 | [diff] [blame] | 24 | extern struct dm_usb_ops musb_usb_ops; |
| 25 | |
| 26 | int musb_lowlevel_init(struct musb_host_data *host); |
| 27 | |
Hans de Goede | 5962748 | 2015-06-17 21:33:57 +0200 | [diff] [blame] | 28 | #endif |