summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/platform_data.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-06-30 15:19:33 +0400
committerFelipe Balbi <balbi@ti.com>2013-07-29 14:56:46 +0400
commit6462cbd54d2fa649b27633267d8ddf835705e47a (patch)
treee1f6634558af44b76f2b81308b44a6878406bedc /drivers/usb/dwc3/platform_data.h
parent1494a1f62bf7cf57345e9282c8189fe2a21fab64 (diff)
downloadlinux-6462cbd54d2fa649b27633267d8ddf835705e47a.tar.xz
usb: dwc3: let non-DT platforms pass tx-fifo-resize flag;
in case we're not in a DT boot, we should still be able to tell the driver how to behave. In order to be able to pass flags to the driver, we introduce platform_data structure which the core driver should use. 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.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/platform_data.h b/drivers/usb/dwc3/platform_data.h
new file mode 100644
index 000000000000..038516489539
--- /dev/null
+++ b/drivers/usb/dwc3/platform_data.h
@@ -0,0 +1,22 @@
+/**
+ * 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/>.
+ */
+
+struct dwc3_platform_data {
+ bool tx_fifo_resize;
+};