diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2013-06-06 14:41:57 +0200 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-06-17 15:45:16 +0800 |
commit | 794987ace5f17f73e327b06b07588e2c4bfc54c6 (patch) | |
tree | 6f583a1bfc0aeb8046794b94570fa4041d2bb31f /arch/arm/mach-imx/ulpi.h | |
parent | 5be913c6824e1957e03ae432b60717c21f2c53d1 (diff) | |
download | linux-794987ace5f17f73e327b06b07588e2c4bfc54c6.tar.gz linux-794987ace5f17f73e327b06b07588e2c4bfc54c6.tar.bz2 linux-794987ace5f17f73e327b06b07588e2c4bfc54c6.zip |
ARM: imx: Remove mxc specific ulpi access ops
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>
Diffstat (limited to 'arch/arm/mach-imx/ulpi.h')
-rw-r--r-- | arch/arm/mach-imx/ulpi.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/ulpi.h b/arch/arm/mach-imx/ulpi.h index 42bdaca6d7d9..23f5c0349e80 100644 --- a/arch/arm/mach-imx/ulpi.h +++ b/arch/arm/mach-imx/ulpi.h @@ -1,8 +1,13 @@ #ifndef __MACH_ULPI_H #define __MACH_ULPI_H -#ifdef CONFIG_USB_ULPI -struct usb_phy *imx_otg_ulpi_create(unsigned int flags); +#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) { @@ -10,7 +15,5 @@ static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) } #endif -extern struct usb_phy_io_ops mxc_ulpi_access_ops; - #endif /* __MACH_ULPI_H */ |