aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/usb3503_otg_conn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/platform_data/usb3503_otg_conn.h')
-rw-r--r--include/linux/platform_data/usb3503_otg_conn.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/platform_data/usb3503_otg_conn.h b/include/linux/platform_data/usb3503_otg_conn.h
new file mode 100644
index 0000000..224a87e
--- /dev/null
+++ b/include/linux/platform_data/usb3503_otg_conn.h
@@ -0,0 +1,22 @@
+#ifndef USB3503_H
+#define USB3503_H
+
+#define USB3503_I2C_NAME "usb3503"
+int usb3503_set_mode(int mode);
+
+enum {
+ USB_3503_MODE_HUB = 0,
+ USB_3503_MODE_STANDBY = 1,
+};
+
+struct usb3503_platform_data {
+ bool init_needed;
+ bool es_ver;
+ char inital_mode;
+ int (*hw_config)(void);
+ int (*reset_n)(int);
+ int (*port_enable)(int, int);
+};
+
+#endif
+