blob: 2bb4d3ad0e6b724d71ceae0261955a2551c6859b [file] [log] [blame]
Felipe Balbi6462cbd2013-06-30 14:19:33 +03001/**
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
Felipe Balbif7e846f2013-06-30 14:29:51 +030020#include <linux/usb/ch9.h>
Ruchika Kharwara45c82b82013-07-06 07:52:49 -050021#include <linux/usb/otg.h>
Felipe Balbif7e846f2013-06-30 14:29:51 +030022
Felipe Balbi6462cbd2013-06-30 14:19:33 +030023struct dwc3_platform_data {
Felipe Balbif7e846f2013-06-30 14:29:51 +030024 enum usb_device_speed maximum_speed;
Ruchika Kharwara45c82b82013-07-06 07:52:49 -050025 enum usb_dr_mode dr_mode;
Felipe Balbi6462cbd2013-06-30 14:19:33 +030026 bool tx_fifo_resize;
Robert Baldygaeac68e82015-03-09 15:06:12 +010027 bool usb3_lpm_capable;
Huang Rui3b812212014-10-28 19:54:25 +080028
Huang Rui460d0982014-10-31 11:11:18 +080029 unsigned is_utmi_l1_suspend:1;
30 u8 hird_threshold;
31
Huang Rui80caf7d2014-10-28 19:54:26 +080032 u8 lpm_nyet_threshold;
33
Huang Rui3b812212014-10-28 19:54:25 +080034 unsigned disable_scramble_quirk:1;
Huang Rui80caf7d2014-10-28 19:54:26 +080035 unsigned has_lpm_erratum:1;
Huang Rui9a5b2f32014-10-28 19:54:27 +080036 unsigned u2exit_lfps_quirk:1;
Huang Ruib5a65c42014-10-28 19:54:28 +080037 unsigned u2ss_inp3_quirk:1;
Huang Ruidf31f5b2014-10-28 19:54:29 +080038 unsigned req_p1p2p3_quirk:1;
Huang Ruia2a1d0f2014-10-28 19:54:30 +080039 unsigned del_p1p2p3_quirk:1;
Huang Rui41c06ff2014-10-28 19:54:31 +080040 unsigned del_phy_power_chg_quirk:1;
Huang Ruifb67afc2014-10-28 19:54:32 +080041 unsigned lfps_filter_quirk:1;
Huang Rui14f4ac52014-10-28 19:54:33 +080042 unsigned rx_detect_poll_quirk:1;
Huang Rui59acfa22014-10-31 11:11:13 +080043 unsigned dis_u3_susphy_quirk:1;
Huang Rui0effe0a2014-10-31 11:11:14 +080044 unsigned dis_u2_susphy_quirk:1;
John Younec791d12015-10-02 20:30:57 -070045 unsigned dis_enblslpm_quirk:1;
Huang Rui6b6a0c92014-10-31 11:11:12 +080046
47 unsigned tx_de_emphasis_quirk:1;
48 unsigned tx_de_emphasis:2;
Heikki Krogerus3e10a2c2015-05-13 15:26:49 +030049
Nikhil Badoladb2be4e2015-09-04 10:15:58 +053050 u32 fladj_value;
51
Heikki Krogerus3e10a2c2015-05-13 15:26:49 +030052 const char *hsphy_interface;
Felipe Balbi6462cbd2013-06-30 14:19:33 +030053};