Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
f4f8bda2 DM |
2 | #ifndef __MACH_ULPI_H |
3 | #define __MACH_ULPI_H | |
4 | ||
794987ac MP |
5 | #include <linux/usb/ulpi.h> |
6 | ||
7 | #ifdef CONFIG_USB_ULPI_VIEWPORT | |
8 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) | |
9 | { | |
10 | return otg_ulpi_create(&ulpi_viewport_access_ops, flags); | |
11 | } | |
48f6b099 | 12 | #else |
86753811 | 13 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) |
48f6b099 SH |
14 | { |
15 | return NULL; | |
16 | } | |
17 | #endif | |
18 | ||
f4f8bda2 DM |
19 | #endif /* __MACH_ULPI_H */ |
20 |