mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
09e7ea47e7
Add device-model support to the musb-host u-boot glue, note this only adds device-model support to the musb-core glue code, it does not add support for device-model to any of the SoC specific musb glue code. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
28 lines
547 B
C
28 lines
547 B
C
/*
|
|
* MUSB OTG driver u-boot specific functions
|
|
*
|
|
* Copyright © 2015 Hans de Goede <hdegoede@redhat.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#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;
|
|
};
|
|
|
|
extern struct dm_usb_ops musb_usb_ops;
|
|
|
|
int musb_lowlevel_init(struct musb_host_data *host);
|
|
|
|
#endif
|