mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Markus Pargmann](/assets/img/avatar_default.png)
There are ulpi access ops implemented in drivers/usb/phy/phy-ulpi.c. mxc access ops implement the same access operations within mach-imx. This patch removes the mxc ulpi file and uses phy-ulpi instead for imx_otg_ulpi_create. phy-ulpi successfully tested with i.MX27 Phytec phyCARD-S (pca100). Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
19 lines
369 B
C
19 lines
369 B
C
#ifndef __MACH_ULPI_H
|
|
#define __MACH_ULPI_H
|
|
|
|
#include <linux/usb/ulpi.h>
|
|
|
|
#ifdef CONFIG_USB_ULPI_VIEWPORT
|
|
static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
|
|
{
|
|
return otg_ulpi_create(&ulpi_viewport_access_ops, flags);
|
|
}
|
|
#else
|
|
static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MACH_ULPI_H */
|
|
|