blob: e460a24115ca43db2d97162402ac292431bf726b [file] [log] [blame]
Michael Grzeschik1c9af652013-06-13 17:59:55 +03001/*
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 */