aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb3803.h
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-09-22 09:48:20 +0200
committercodeworkx <codeworkx@cyanogenmod.com>2012-09-22 14:02:16 +0200
commit2489007e7d740ccbc3e0a202914e243ad5178787 (patch)
treeb8e6380ea7b1da63474ad68a5dba997e01146043 /include/linux/usb3803.h
parent5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff)
downloadkernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
Diffstat (limited to 'include/linux/usb3803.h')
-rw-r--r--include/linux/usb3803.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/usb3803.h b/include/linux/usb3803.h
new file mode 100644
index 0000000..6cf247d
--- /dev/null
+++ b/include/linux/usb3803.h
@@ -0,0 +1,23 @@
+#ifndef USB3803_H
+#define USB3803_H
+
+#define USB3803_I2C_NAME "usb3803"
+int usb3803_set_mode(int mode);
+
+enum {
+ USB_3803_MODE_HUB = 0,
+ USB_3803_MODE_BYPASS = 1,
+ USB_3803_MODE_STANDBY = 2,
+};
+
+struct usb3803_platform_data {
+ bool init_needed;
+ bool es_ver;
+ char inital_mode;
+ int (*hw_config)(void);
+ int (*reset_n)(int);
+ int (*bypass_n)(int);
+ int (*clock_en)(int);
+};
+
+#endif