Kishon Vijay Abraham I | 93c3763 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 1 | /* include/dwc3_omap_uboot.h |
| 2 | * |
| 3 | * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 4 | * |
| 5 | * Designware SuperSpeed OMAP Glue uboot init |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0 |
| 8 | */ |
| 9 | |
| 10 | #ifndef __DWC3_OMAP_UBOOT_H_ |
| 11 | #define __DWC3_OMAP_UBOOT_H_ |
| 12 | |
| 13 | #include <linux/usb/dwc3-omap.h> |
| 14 | |
| 15 | enum omap_dwc3_vbus_id_status { |
| 16 | OMAP_DWC3_ID_FLOAT, |
| 17 | OMAP_DWC3_ID_GROUND, |
| 18 | OMAP_DWC3_VBUS_OFF, |
| 19 | OMAP_DWC3_VBUS_VALID, |
| 20 | }; |
| 21 | |
| 22 | struct dwc3_omap_device { |
| 23 | void *base; |
Kishon Vijay Abraham I | 5720765 | 2015-02-23 18:40:10 +0530 | [diff] [blame] | 24 | int index; |
Kishon Vijay Abraham I | 93c3763 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 25 | enum dwc3_omap_utmi_mode utmi_mode; |
| 26 | enum omap_dwc3_vbus_id_status vbus_id_status; |
| 27 | }; |
Kishon Vijay Abraham I | c241d7e | 2015-02-23 18:40:09 +0530 | [diff] [blame] | 28 | |
| 29 | int dwc3_omap_uboot_init(struct dwc3_omap_device *dev); |
Kishon Vijay Abraham I | 5720765 | 2015-02-23 18:40:10 +0530 | [diff] [blame] | 30 | void dwc3_omap_uboot_exit(int index); |
Kishon Vijay Abraham I | 53de33f | 2015-02-23 18:40:11 +0530 | [diff] [blame^] | 31 | int dwc3_omap_uboot_interrupt_status(int index); |
Kishon Vijay Abraham I | 93c3763 | 2015-02-23 18:40:08 +0530 | [diff] [blame] | 32 | #endif /* __DWC3_OMAP_UBOOT_H_ */ |