summaryrefslogtreecommitdiff
path: root/include/linux/usb/samsung_usb_phy.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2013-01-23 17:38:04 +0400
committerAndrey Konovalov <andrey.konovalov@linaro.org>2013-01-23 17:38:04 +0400
commitbc9ae1d87086678defeeb3931c6f39ab8ed6e474 (patch)
treea629491a897c076f7f1808e910aac57df33fc62b /include/linux/usb/samsung_usb_phy.h
parent05621cf0b35aae2b05078a37b572632517459ea7 (diff)
parent79668624e15d91a3b40143208cc884d8270942db (diff)
downloadlinux-topics-bc9ae1d87086678defeeb3931c6f39ab8ed6e474.tar.gz
Merge branch 'tracking-samslt-all' into merge-linux-linaro
Diffstat (limited to 'include/linux/usb/samsung_usb_phy.h')
-rw-r--r--include/linux/usb/samsung_usb_phy.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/usb/samsung_usb_phy.h b/include/linux/usb/samsung_usb_phy.h
new file mode 100644
index 00000000000..bd6d900ef47
--- /dev/null
+++ b/include/linux/usb/samsung_usb_phy.h
@@ -0,0 +1,29 @@
+/*
+ *copyright (C) 2012 Samsung Electronics Co.Ltd
+ * http://www.samsung.com/
+ *
+ * Defines phy types for samsung usb phy controllers - HOST or DEIVCE.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+#include <linux/usb/phy.h>
+enum samsung_usb_phy_type
+{
+ USB_PHY_TYPE_DEVICE,
+ USB_PHY_TYPE_HOST,
+ USB_PHY_TYPE_DRD,
+};
+
+#ifdef CONFIG_SAMSUNG_USBPHY
+extern int samsung_usbphy_set_type(struct usb_phy *phy,
+ enum samsung_usb_phy_type phy_type);
+#else
+static inline int samsung_usbphy_set_type(struct usb_phy *phy,
+ enum samsung_usb_phy_type phy_type)
+{
+ return 0;
+}
+#endif /* CONFIG_SAMSUNG_USBPHY */