2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2015-02-23 21:10:08 +08:00
|
|
|
/* 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;
|
2015-02-23 21:10:10 +08:00
|
|
|
int index;
|
2015-02-23 21:10:08 +08:00
|
|
|
enum dwc3_omap_utmi_mode utmi_mode;
|
|
|
|
enum omap_dwc3_vbus_id_status vbus_id_status;
|
|
|
|
};
|
2015-02-23 21:10:09 +08:00
|
|
|
|
|
|
|
int dwc3_omap_uboot_init(struct dwc3_omap_device *dev);
|
2015-02-23 21:10:10 +08:00
|
|
|
void dwc3_omap_uboot_exit(int index);
|
2015-02-23 21:10:11 +08:00
|
|
|
int dwc3_omap_uboot_interrupt_status(int index);
|
2015-02-23 21:10:08 +08:00
|
|
|
#endif /* __DWC3_OMAP_UBOOT_H_ */
|