Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kishon Vijay Abraham I | da0d9e4 | 2015-02-23 18:40:03 +0530 | [diff] [blame] | 2 | /* include/dwc3-uboot.h |
| 3 | * |
| 4 | * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 5 | * |
| 6 | * Designware SuperSpeed USB uboot init |
Kishon Vijay Abraham I | da0d9e4 | 2015-02-23 18:40:03 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __DWC3_UBOOT_H_ |
| 10 | #define __DWC3_UBOOT_H_ |
| 11 | |
| 12 | #include <linux/usb/otg.h> |
| 13 | |
| 14 | struct dwc3_device { |
Siva Durga Prasad Paladugu | 4835c73 | 2016-05-12 08:57:13 +0200 | [diff] [blame] | 15 | unsigned long base; |
Kishon Vijay Abraham I | da0d9e4 | 2015-02-23 18:40:03 +0530 | [diff] [blame] | 16 | enum usb_dr_mode dr_mode; |
| 17 | u32 maximum_speed; |
| 18 | unsigned tx_fifo_resize:1; |
| 19 | unsigned has_lpm_erratum; |
| 20 | u8 lpm_nyet_threshold; |
| 21 | unsigned is_utmi_l1_suspend; |
| 22 | u8 hird_threshold; |
| 23 | unsigned disable_scramble_quirk; |
| 24 | unsigned u2exit_lfps_quirk; |
| 25 | unsigned u2ss_inp3_quirk; |
| 26 | unsigned req_p1p2p3_quirk; |
| 27 | unsigned del_p1p2p3_quirk; |
| 28 | unsigned del_phy_power_chg_quirk; |
| 29 | unsigned lfps_filter_quirk; |
| 30 | unsigned rx_detect_poll_quirk; |
| 31 | unsigned dis_u3_susphy_quirk; |
| 32 | unsigned dis_u2_susphy_quirk; |
| 33 | unsigned tx_de_emphasis_quirk; |
| 34 | unsigned tx_de_emphasis; |
Kishon Vijay Abraham I | 793d347 | 2015-02-23 18:40:05 +0530 | [diff] [blame] | 35 | int index; |
Kishon Vijay Abraham I | da0d9e4 | 2015-02-23 18:40:03 +0530 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | int dwc3_uboot_init(struct dwc3_device *dev); |
Kishon Vijay Abraham I | 793d347 | 2015-02-23 18:40:05 +0530 | [diff] [blame] | 39 | void dwc3_uboot_exit(int index); |
Kishon Vijay Abraham I | 27d3b89 | 2015-02-23 18:40:06 +0530 | [diff] [blame] | 40 | void dwc3_uboot_handle_interrupt(int index); |
Kishon Vijay Abraham I | da0d9e4 | 2015-02-23 18:40:03 +0530 | [diff] [blame] | 41 | #endif /* __DWC3_UBOOT_H_ */ |