summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx27.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-11-27 23:34:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-13 22:18:47 +0100
commit9524e95a9b3c0ba1402237418cd4bd8da0daeaf1 (patch)
treef47f4b9669a13df9c3a417677fbed1f47b38bd87 /arch/arm/mach-imx/include/mach/devices-imx27.h
parenta4076ddf6577a5163c4d36aa4dff2e674df37b2d (diff)
downloadbarebox-9524e95a9b3c0ba1402237418cd4bd8da0daeaf1.tar.gz
barebox-9524e95a9b3c0ba1402237418cd4bd8da0daeaf1.tar.xz
ARM i.MX27: Add USB device functions
Register the USB misc devices and provide convenience wrappers to register the USB ports for i.MX27. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx27.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx27.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx27.h b/arch/arm/mach-imx/include/mach/devices-imx27.h
index 79da93531d..d6c884a30a 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx27.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx27.h
@@ -70,3 +70,18 @@ static inline struct device_d *imx27_add_mmc2(void *pdata)
{
return imx_add_mmc((void *)MX27_SDHC3_BASE_ADDR, 2, pdata);
}
+
+static inline struct device_d *imx27_add_usbotg(void *pdata)
+{
+ return imx_add_usb((void *)MX27_USB_OTG_BASE_ADDR, 0, pdata);
+}
+
+static inline struct device_d *imx27_add_usbh1(void *pdata)
+{
+ return imx_add_usb((void *)MX27_USB_OTG_BASE_ADDR + 0x200, 1, pdata);
+}
+
+static inline struct device_d *imx27_add_usbh2(void *pdata)
+{
+ return imx_add_usb((void *)MX27_USB_OTG_BASE_ADDR + 0x400, 2, pdata);
+}