summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/platform_data.h
diff options
context:
space:
mode:
authorFelipe Balbi2013-06-30 13:29:51 +0200
committerFelipe Balbi2013-07-29 12:56:47 +0200
commitf7e846f0956917888b28b52726ee8779a39d84b6 (patch)
treee2571f968ea11e9ea92907943f9c6997db43d316 /drivers/usb/dwc3/platform_data.h
parentusb: dwc3: let non-DT platforms pass tx-fifo-resize flag; (diff)
downloadkernel-qcow2-linux-f7e846f0956917888b28b52726ee8779a39d84b6.tar.gz
kernel-qcow2-linux-f7e846f0956917888b28b52726ee8779a39d84b6.tar.xz
kernel-qcow2-linux-f7e846f0956917888b28b52726ee8779a39d84b6.zip
usb: dwc3: make maximum-speed a per-instance attribute
in order to allow different instances of the core work in different maximum speeds, we will move the maximum_speed module_parameter to both DeviceTree (making use the new maximum-speed DT property) and platform_data. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/platform_data.h')
-rw-r--r--drivers/usb/dwc3/platform_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/platform_data.h b/drivers/usb/dwc3/platform_data.h
index 038516489539..16ffe1912523 100644
--- a/drivers/usb/dwc3/platform_data.h
+++ b/drivers/usb/dwc3/platform_data.h
@@ -17,6 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/usb/ch9.h>
+
struct dwc3_platform_data {
+ enum usb_device_speed maximum_speed;
bool tx_fifo_resize;
};