platform_data.h 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/**
 * 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/>.
 */

20
#include <linux/usb/ch9.h>
21
#include <linux/usb/otg.h>
22

23
struct dwc3_platform_data {
24
	enum usb_device_speed maximum_speed;
25
	enum usb_dr_mode dr_mode;
26
	bool tx_fifo_resize;
H
Huang Rui 已提交
27

H
Huang Rui 已提交
28 29
	u8 lpm_nyet_threshold;

H
Huang Rui 已提交
30
	unsigned disable_scramble_quirk:1;
H
Huang Rui 已提交
31
	unsigned has_lpm_erratum:1;
H
Huang Rui 已提交
32
	unsigned u2exit_lfps_quirk:1;
33
	unsigned u2ss_inp3_quirk:1;
H
Huang Rui 已提交
34
	unsigned req_p1p2p3_quirk:1;
H
Huang Rui 已提交
35
	unsigned del_p1p2p3_quirk:1;
36
	unsigned del_phy_power_chg_quirk:1;
37
};