Michael Grzeschik | 1c9af65 | 2013-06-13 17:59:55 +0300 | [diff] [blame] | 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 |
| 14 | enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np); |
| 15 | enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np); |
| 16 | #else |
| 17 | static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np) |
| 18 | { |
| 19 | return USBPHY_INTERFACE_MODE_UNKNOWN; |
| 20 | } |
| 21 | |
| 22 | static 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 */ |