blob: f220705ef7be10532138c46acc76c71fa594bf38 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Kishon Vijay Abraham Idcc2c442015-02-23 18:40:08 +05302/* include/dwc3_omap_uboot.h
3 *
Nishanth Menoneaa39c62023-11-01 15:56:03 -05004 * Copyright (c) 2015 Texas Instruments Incorporated - https://www.ti.com
Kishon Vijay Abraham Idcc2c442015-02-23 18:40:08 +05305 *
6 * Designware SuperSpeed OMAP Glue uboot init
Kishon Vijay Abraham Idcc2c442015-02-23 18:40:08 +05307 */
8
9#ifndef __DWC3_OMAP_UBOOT_H_
10#define __DWC3_OMAP_UBOOT_H_
11
12#include <linux/usb/dwc3-omap.h>
13
14enum 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
21struct dwc3_omap_device {
22 void *base;
Kishon Vijay Abraham Iee0bb0a2015-02-23 18:40:10 +053023 int index;
Kishon Vijay Abraham Idcc2c442015-02-23 18:40:08 +053024 enum dwc3_omap_utmi_mode utmi_mode;
25 enum omap_dwc3_vbus_id_status vbus_id_status;
26};
Kishon Vijay Abraham I6311ae72015-02-23 18:40:09 +053027
28int dwc3_omap_uboot_init(struct dwc3_omap_device *dev);
Kishon Vijay Abraham Iee0bb0a2015-02-23 18:40:10 +053029void dwc3_omap_uboot_exit(int index);
Kishon Vijay Abraham Idcc2c442015-02-23 18:40:08 +053030#endif /* __DWC3_OMAP_UBOOT_H_ */