2013-06-30 19:19:33 +08:00
|
|
|
/**
|
|
|
|
* platform_data.h - USB DWC3 Platform Data Support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
|
|
|
|
* Author: Felipe Balbi <balbi@ti.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 of
|
|
|
|
* the License as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2013-06-30 19:29:51 +08:00
|
|
|
#include <linux/usb/ch9.h>
|
2013-07-06 20:52:49 +08:00
|
|
|
#include <linux/usb/otg.h>
|
2013-06-30 19:29:51 +08:00
|
|
|
|
2013-06-30 19:19:33 +08:00
|
|
|
struct dwc3_platform_data {
|
2013-06-30 19:29:51 +08:00
|
|
|
enum usb_device_speed maximum_speed;
|
2013-07-06 20:52:49 +08:00
|
|
|
enum usb_dr_mode dr_mode;
|
2015-03-09 22:06:12 +08:00
|
|
|
bool usb3_lpm_capable;
|
2014-10-28 19:54:25 +08:00
|
|
|
|
2014-10-31 11:11:18 +08:00
|
|
|
unsigned is_utmi_l1_suspend:1;
|
|
|
|
u8 hird_threshold;
|
|
|
|
|
2014-10-28 19:54:26 +08:00
|
|
|
u8 lpm_nyet_threshold;
|
|
|
|
|
2014-10-28 19:54:25 +08:00
|
|
|
unsigned disable_scramble_quirk:1;
|
2014-10-28 19:54:26 +08:00
|
|
|
unsigned has_lpm_erratum:1;
|
2014-10-28 19:54:27 +08:00
|
|
|
unsigned u2exit_lfps_quirk:1;
|
2014-10-28 19:54:28 +08:00
|
|
|
unsigned u2ss_inp3_quirk:1;
|
2014-10-28 19:54:29 +08:00
|
|
|
unsigned req_p1p2p3_quirk:1;
|
2014-10-28 19:54:30 +08:00
|
|
|
unsigned del_p1p2p3_quirk:1;
|
2014-10-28 19:54:31 +08:00
|
|
|
unsigned del_phy_power_chg_quirk:1;
|
2014-10-28 19:54:32 +08:00
|
|
|
unsigned lfps_filter_quirk:1;
|
2014-10-28 19:54:33 +08:00
|
|
|
unsigned rx_detect_poll_quirk:1;
|
2014-10-31 11:11:13 +08:00
|
|
|
unsigned dis_u3_susphy_quirk:1;
|
2014-10-31 11:11:14 +08:00
|
|
|
unsigned dis_u2_susphy_quirk:1;
|
2015-10-03 11:30:57 +08:00
|
|
|
unsigned dis_enblslpm_quirk:1;
|
2014-10-31 11:11:12 +08:00
|
|
|
|
|
|
|
unsigned tx_de_emphasis_quirk:1;
|
|
|
|
unsigned tx_de_emphasis:2;
|
2015-05-13 20:26:49 +08:00
|
|
|
|
2015-09-04 12:45:58 +08:00
|
|
|
u32 fladj_value;
|
|
|
|
|
2015-05-13 20:26:49 +08:00
|
|
|
const char *hsphy_interface;
|
2013-06-30 19:19:33 +08:00
|
|
|
};
|