[PATCHv2 4/6] ARM OMAP: Add EHCI to device register functions

Teresa Gámez t.gamez at phytec.de
Thu Dec 20 09:22:32 EST 2012


Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
 arch/arm/mach-omap/include/mach/omap3-devices.h |    6 ++++++
 arch/arm/mach-omap/include/mach/omap4-devices.h |    6 ++++++
 arch/arm/mach-omap/include/mach/omap4-silicon.h |    3 +++
 3 files changed, 15 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 9d682cf..2e8e06f 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 df0694f..5aba72d 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 */
diff --git a/arch/arm/mach-omap/include/mach/omap4-silicon.h b/arch/arm/mach-omap/include/mach/omap4-silicon.h
index 379588d..0e8abda 100644
--- a/arch/arm/mach-omap/include/mach/omap4-silicon.h
+++ b/arch/arm/mach-omap/include/mach/omap4-silicon.h
@@ -121,6 +121,9 @@
 /* GPMC */
 #define OMAP44XX_GPMC_BASE		0x50000000
 
+/* EHCI */
+#define OMAP44XX_EHCI_BASE		(OMAP44XX_L4_CORE_BASE + 0x64C00)
+
 /* DMM */
 #define OMAP44XX_DMM_BASE		0x4E000000
 #define DMM_LISA_MAP_BASE		(OMAP44XX_DMM_BASE + 0x40)
-- 
1.7.0.4




More information about the barebox mailing list