Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef __MACH_ULPI_H | ||||
3 | #define __MACH_ULPI_H | ||||
4 | |||||
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 | } | ||||
12 | #else | ||||
13 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) | ||||
14 | { | ||||
15 | return NULL; | ||||
16 | } | ||||
17 | #endif | ||||
18 | |||||
19 | #endif /* __MACH_ULPI_H */ | ||||
20 |