mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 01:50:25 +00:00
2caf974b5f
The usb_gadget_handle_interrupts() is no longer used anywhere, replace the remaining uses with dm_usb_gadget_handle_interrupts() which takes udevice as a parameter. Some of the UDC drivers currently ignore the index parameter altogether, those also ignore the udevice and have to be reworked. Other like the dwc3_uboot_handle_interrupt() had to be switched from index to udevice look up to avoid breakage. Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on khadas vim3 Signed-off-by: Marek Vasut <marex@denx.de>
31 lines
740 B
C
31 lines
740 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* include/dwc3_omap_uboot.h
|
|
*
|
|
* Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
|
|
*
|
|
* Designware SuperSpeed OMAP Glue uboot init
|
|
*/
|
|
|
|
#ifndef __DWC3_OMAP_UBOOT_H_
|
|
#define __DWC3_OMAP_UBOOT_H_
|
|
|
|
#include <linux/usb/dwc3-omap.h>
|
|
|
|
enum omap_dwc3_vbus_id_status {
|
|
OMAP_DWC3_ID_FLOAT,
|
|
OMAP_DWC3_ID_GROUND,
|
|
OMAP_DWC3_VBUS_OFF,
|
|
OMAP_DWC3_VBUS_VALID,
|
|
};
|
|
|
|
struct dwc3_omap_device {
|
|
void *base;
|
|
int index;
|
|
enum dwc3_omap_utmi_mode utmi_mode;
|
|
enum omap_dwc3_vbus_id_status vbus_id_status;
|
|
};
|
|
|
|
int dwc3_omap_uboot_init(struct dwc3_omap_device *dev);
|
|
void dwc3_omap_uboot_exit(int index);
|
|
int dwc3_omap_uboot_interrupt_status(struct udevice *dev);
|
|
#endif /* __DWC3_OMAP_UBOOT_H_ */
|