Daniel Mack | f4f8bda | 2009-11-05 09:44:09 +0100 | [diff] [blame] | 1 | #ifndef __MACH_ULPI_H |
| 2 | #define __MACH_ULPI_H |
| 3 | |
Markus Pargmann | 794987a | 2013-06-06 14:41:57 +0200 | [diff] [blame] | 4 | #include <linux/usb/ulpi.h> |
| 5 | |
| 6 | #ifdef CONFIG_USB_ULPI_VIEWPORT |
| 7 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) |
| 8 | { |
| 9 | return otg_ulpi_create(&ulpi_viewport_access_ops, flags); |
| 10 | } |
Sascha Hauer | 48f6b09 | 2011-03-02 09:27:42 +0100 | [diff] [blame] | 11 | #else |
Heikki Krogerus | 8675381 | 2012-02-13 13:24:02 +0200 | [diff] [blame] | 12 | static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) |
Sascha Hauer | 48f6b09 | 2011-03-02 09:27:42 +0100 | [diff] [blame] | 13 | { |
| 14 | return NULL; |
| 15 | } |
| 16 | #endif |
| 17 | |
Daniel Mack | f4f8bda | 2009-11-05 09:44:09 +0100 | [diff] [blame] | 18 | #endif /* __MACH_ULPI_H */ |
| 19 | |