Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kishon Vijay Abraham I | dcc2c44 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 2 | /* include/dwc3_omap_uboot.h |
| 3 | * |
| 4 | * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 5 | * |
| 6 | * Designware SuperSpeed OMAP Glue uboot init |
Kishon Vijay Abraham I | dcc2c44 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __DWC3_OMAP_UBOOT_H_ |
| 10 | #define __DWC3_OMAP_UBOOT_H_ |
| 11 | |
| 12 | #include <linux/usb/dwc3-omap.h> |
| 13 | |
| 14 | enum omap_dwc3_vbus_id_status { |
| 15 | OMAP_DWC3_ID_FLOAT, |
| 16 | OMAP_DWC3_ID_GROUND, |
| 17 | OMAP_DWC3_VBUS_OFF, |
| 18 | OMAP_DWC3_VBUS_VALID, |
| 19 | }; |
| 20 | |
| 21 | struct dwc3_omap_device { |
| 22 | void *base; |
Kishon Vijay Abraham I | ee0bb0a | 2015-02-23 18:40:10 +0530 | [diff] [blame] | 23 | int index; |
Kishon Vijay Abraham I | dcc2c44 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 24 | enum dwc3_omap_utmi_mode utmi_mode; |
| 25 | enum omap_dwc3_vbus_id_status vbus_id_status; |
| 26 | }; |
Kishon Vijay Abraham I | 6311ae7 | 2015-02-23 18:40:09 +0530 | [diff] [blame] | 27 | |
| 28 | int dwc3_omap_uboot_init(struct dwc3_omap_device *dev); |
Kishon Vijay Abraham I | ee0bb0a | 2015-02-23 18:40:10 +0530 | [diff] [blame] | 29 | void dwc3_omap_uboot_exit(int index); |
Marek Vasut | 283bbec | 2023-09-01 11:50:03 +0200 | [diff] [blame^] | 30 | int dwc3_omap_uboot_interrupt_status(struct udevice *dev); |
Kishon Vijay Abraham I | dcc2c44 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 31 | #endif /* __DWC3_OMAP_UBOOT_H_ */ |