blob: 7af2ad11e4ed30f0453c299be594c6688d111b42 [file] [log] [blame]
Kishon Vijay Abraham I2cdd4962015-02-23 18:40:03 +05301/* include/dwc3-uboot.h
2 *
3 * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
4 *
5 * Designware SuperSpeed USB uboot init
6 *
7 * SPDX-License-Identifier: GPL-2.0
8 */
9
10#ifndef __DWC3_UBOOT_H_
11#define __DWC3_UBOOT_H_
12
13#include <linux/usb/otg.h>
14
15struct dwc3_device {
Siva Durga Prasad Paladugua10da432016-05-12 08:57:13 +020016 unsigned long base;
Kishon Vijay Abraham I2cdd4962015-02-23 18:40:03 +053017 enum usb_dr_mode dr_mode;
18 u32 maximum_speed;
19 unsigned tx_fifo_resize:1;
20 unsigned has_lpm_erratum;
21 u8 lpm_nyet_threshold;
22 unsigned is_utmi_l1_suspend;
23 u8 hird_threshold;
24 unsigned disable_scramble_quirk;
25 unsigned u2exit_lfps_quirk;
26 unsigned u2ss_inp3_quirk;
27 unsigned req_p1p2p3_quirk;
28 unsigned del_p1p2p3_quirk;
29 unsigned del_phy_power_chg_quirk;
30 unsigned lfps_filter_quirk;
31 unsigned rx_detect_poll_quirk;
32 unsigned dis_u3_susphy_quirk;
33 unsigned dis_u2_susphy_quirk;
34 unsigned tx_de_emphasis_quirk;
35 unsigned tx_de_emphasis;
Kishon Vijay Abraham Idc5c6532015-02-23 18:40:05 +053036 int index;
Kishon Vijay Abraham I2cdd4962015-02-23 18:40:03 +053037};
38
39int dwc3_uboot_init(struct dwc3_device *dev);
Kishon Vijay Abraham Idc5c6532015-02-23 18:40:05 +053040void dwc3_uboot_exit(int index);
Kishon Vijay Abraham I1cee7b12015-02-23 18:40:06 +053041void dwc3_uboot_handle_interrupt(int index);
Kishon Vijay Abraham I2cdd4962015-02-23 18:40:03 +053042#endif /* __DWC3_UBOOT_H_ */