blob: 23f5c0349e807d737c3d9338b0f9efbd90dcf1ea [file] [log] [blame]
Daniel Mackf4f8bda2009-11-05 09:44:09 +01001#ifndef __MACH_ULPI_H
2#define __MACH_ULPI_H
3
Markus Pargmann794987a2013-06-06 14:41:57 +02004#include <linux/usb/ulpi.h>
5
6#ifdef CONFIG_USB_ULPI_VIEWPORT
7static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
8{
9 return otg_ulpi_create(&ulpi_viewport_access_ops, flags);
10}
Sascha Hauer48f6b092011-03-02 09:27:42 +010011#else
Heikki Krogerus86753812012-02-13 13:24:02 +020012static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
Sascha Hauer48f6b092011-03-02 09:27:42 +010013{
14 return NULL;
15}
16#endif
17
Daniel Mackf4f8bda2009-11-05 09:44:09 +010018#endif /* __MACH_ULPI_H */
19