2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-06-17 19:33:57 +00:00
|
|
|
/*
|
|
|
|
* MUSB OTG driver u-boot specific functions
|
|
|
|
*
|
|
|
|
* Copyright © 2015 Hans de Goede <hdegoede@redhat.com>
|
|
|
|
*/
|
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
2015-06-17 19:33:58 +00:00
|
|
|
extern struct dm_usb_ops musb_usb_ops;
|
|
|
|
|
|
|
|
int musb_lowlevel_init(struct musb_host_data *host);
|
|
|
|
|
2015-06-17 19:33:57 +00:00
|
|
|
#endif
|