Commit | Line | Data |
---|---|---|
6462cbd5 FB |
1 | /** |
2 | * platform_data.h - USB DWC3 Platform Data Support | |
3 | * | |
4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com | |
5 | * Author: Felipe Balbi <balbi@ti.com> | |
6 | * | |
7 | * This program is free software: you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 of | |
9 | * the License as published by the Free Software Foundation. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
f7e846f0 | 20 | #include <linux/usb/ch9.h> |
a45c82b8 | 21 | #include <linux/usb/otg.h> |
f7e846f0 | 22 | |
6462cbd5 | 23 | struct dwc3_platform_data { |
f7e846f0 | 24 | enum usb_device_speed maximum_speed; |
a45c82b8 | 25 | enum usb_dr_mode dr_mode; |
eac68e8f | 26 | bool usb3_lpm_capable; |
3b81221a | 27 | |
460d098c HR |
28 | unsigned is_utmi_l1_suspend:1; |
29 | u8 hird_threshold; | |
30 | ||
80caf7d2 HR |
31 | u8 lpm_nyet_threshold; |
32 | ||
3b81221a | 33 | unsigned disable_scramble_quirk:1; |
80caf7d2 | 34 | unsigned has_lpm_erratum:1; |
9a5b2f31 | 35 | unsigned u2exit_lfps_quirk:1; |
b5a65c40 | 36 | unsigned u2ss_inp3_quirk:1; |
df31f5b3 | 37 | unsigned req_p1p2p3_quirk:1; |
a2a1d0f5 | 38 | unsigned del_p1p2p3_quirk:1; |
41c06ffd | 39 | unsigned del_phy_power_chg_quirk:1; |
fb67afca | 40 | unsigned lfps_filter_quirk:1; |
14f4ac53 | 41 | unsigned rx_detect_poll_quirk:1; |
59acfa20 | 42 | unsigned dis_u3_susphy_quirk:1; |
0effe0a3 | 43 | unsigned dis_u2_susphy_quirk:1; |
ec791d14 | 44 | unsigned dis_enblslpm_quirk:1; |
e58dd357 | 45 | unsigned dis_rxdet_inp3_quirk:1; |
6b6a0c9a HR |
46 | |
47 | unsigned tx_de_emphasis_quirk:1; | |
48 | unsigned tx_de_emphasis:2; | |
3e10a2ce | 49 | |
db2be4e9 NB |
50 | u32 fladj_value; |
51 | ||
3e10a2ce | 52 | const char *hsphy_interface; |
6462cbd5 | 53 | }; |