blob: b367902c9c323f7b6ccc6d802d711c6d7390e464 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Mackf4f8bda2009-11-05 09:44:09 +01002#ifndef __MACH_ULPI_H
3#define __MACH_ULPI_H
4
Markus Pargmann794987a2013-06-06 14:41:57 +02005#include <linux/usb/ulpi.h>
6
7#ifdef CONFIG_USB_ULPI_VIEWPORT
8static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
9{
10 return otg_ulpi_create(&ulpi_viewport_access_ops, flags);
11}
Sascha Hauer48f6b092011-03-02 09:27:42 +010012#else
Heikki Krogerus86753812012-02-13 13:24:02 +020013static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
Sascha Hauer48f6b092011-03-02 09:27:42 +010014{
15 return NULL;
16}
17#endif
18
Daniel Mackf4f8bda2009-11-05 09:44:09 +010019#endif /* __MACH_ULPI_H */
20