summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/devices.c
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/devices.c
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/devices.c')
-rw-r--r--arch/arm/mach-imx/devices.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c
index d82fbf7e6b..682f39a3ac 100644
--- a/arch/arm/mach-imx/devices.c
+++ b/arch/arm/mach-imx/devices.c
@@ -72,3 +72,8 @@ struct device_d *imx_add_pata(void *base)
{
return imx_add_device("imx-pata", -1, base, 0x1000, NULL);
}
+
+struct device_d *imx_add_usb(void *base, int id, struct imxusb_platformdata *pdata)
+{
+ return imx_add_device("imx-usb", id, base, 0x200, pdata);
+}