aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb/of.h')
-rw-r--r--include/linux/usb/of.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
new file mode 100644
index 000000000000..e460a24115ca
--- /dev/null
+++ b/include/linux/usb/of.h
@@ -0,0 +1,28 @@
1/*
2 * OF helpers for usb devices.
3 *
4 * This file is released under the GPLv2
5 */
6
7#ifndef __LINUX_USB_OF_H
8#define __LINUX_USB_OF_H
9
10#include <linux/usb/otg.h>
11#include <linux/usb/phy.h>
12
13#ifdef CONFIG_OF
14enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np);
15enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np);
16#else
17static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np)
18{
19 return USBPHY_INTERFACE_MODE_UNKNOWN;
20}
21
22static inline enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np)
23{
24 return USB_DR_MODE_UNKNOWN;
25}
26#endif
27
28#endif /* __LINUX_USB_OF_H */