summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2012-12-20 15:22:32 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-21 08:31:19 +0100
commit80757c2d51b699831ca33a854a501cf905335878 (patch)
tree2d83cc8b6626e4c81ad277becc5531c49117d196 /arch
parentfb5dcbefe7a0e524af3a4cfe56d7502285962abc (diff)
downloadbarebox-80757c2d51b699831ca33a854a501cf905335878.tar.gz
barebox-80757c2d51b699831ca33a854a501cf905335878.tar.xz
ARM OMAP: Add EHCI to device register functions
Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap/include/mach/omap3-devices.h6
-rw-r--r--arch/arm/mach-omap/include/mach/omap4-devices.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/include/mach/omap3-devices.h b/arch/arm/mach-omap/include/mach/omap3-devices.h
index 9d682cf662..2e8e06fc44 100644
--- a/arch/arm/mach-omap/include/mach/omap3-devices.h
+++ b/arch/arm/mach-omap/include/mach/omap3-devices.h
@@ -87,4 +87,10 @@ static inline struct device_d *omap3_add_i2c3(void *pdata)
return omap_add_i2c(2, OMAP3_I2C3_BASE, pdata);
}
+static inline struct device_d *omap3_add_ehci(void *pdata)
+{
+ return add_usb_ehci_device(DEVICE_ID_DYNAMIC, OMAP3_EHCI_BASE,
+ OMAP3_EHCI_BASE + 0x10, pdata);
+}
+
#endif /* __MACH_OMAP3_DEVICES_H */
diff --git a/arch/arm/mach-omap/include/mach/omap4-devices.h b/arch/arm/mach-omap/include/mach/omap4-devices.h
index df0694f9fa..5aba72dc51 100644
--- a/arch/arm/mach-omap/include/mach/omap4-devices.h
+++ b/arch/arm/mach-omap/include/mach/omap4-devices.h
@@ -73,4 +73,10 @@ static inline struct device_d *omap44xx_add_i2c4(void *pdata)
return omap_add_i2c(3, OMAP44XX_I2C4_BASE, pdata);
}
+static inline struct device_d *omap44xx_add_ehci(void *pdata)
+{
+ return add_usb_ehci_device(DEVICE_ID_DYNAMIC, OMAP44XX_EHCI_BASE,
+ OMAP44XX_EHCI_BASE + 0x10, pdata);
+}
+
#endif /* __MACH_OMAP4_DEVICES_H */