Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Daniel Mack | f4f8bda | 2009-11-05 09:44:09 +0100 | [diff] [blame] | 2 | #ifndef __MACH_ULPI_H |
| 3 | #define __MACH_ULPI_H |
| 4 | |
Markus Pargmann | 794987a | 2013-06-06 14:41:57 +0200 | [diff] [blame] | 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 | } |
Sascha Hauer | 48f6b09 | 2011-03-02 09:27:42 +0100 | [diff] [blame] | 12 | #else |
Heikki Krogerus | 8675381 | 2012-02-13 13:24:02 +0200 | [diff] [blame] | 13 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) |
Sascha Hauer | 48f6b09 | 2011-03-02 09:27:42 +0100 | [diff] [blame] | 14 | { |
| 15 | return NULL; |
| 16 | } |
| 17 | #endif |
| 18 | |
Daniel Mack | f4f8bda | 2009-11-05 09:44:09 +0100 | [diff] [blame] | 19 | #endif /* __MACH_ULPI_H */ |
| 20 | |