Use names closer to what TRM says and define each
block separately so we don't have to use magic constants
anylonger.

Signed-off-by: Felipe Balbi <[email protected]>
---
 arch/arm/mach-omap2/usb-ehci.c             |    4 ++--
 arch/arm/plat-omap/include/mach/omap34xx.h |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/usb-ehci.c b/arch/arm/mach-omap2/usb-ehci.c
index 30e1ad6..6c1a46f 100644
--- a/arch/arm/mach-omap2/usb-ehci.c
+++ b/arch/arm/mach-omap2/usb-ehci.c
@@ -30,8 +30,8 @@
 
 static struct resource ehci_resources[] = {
        [0] = {
-               .start   = OMAP34XX_HSUSB_HOST_BASE + 0x800,
-               .end     = OMAP34XX_HSUSB_HOST_BASE + 0x800 + SZ_1K - 1,
+               .start   = OMAP34XX_EHCI_BASE,
+               .end     = OMAP34XX_EHCI_BASE + SZ_1K - 1,
                .flags   = IORESOURCE_MEM,
        },
        [1] = {         /* general IRQ */
diff --git a/arch/arm/plat-omap/include/mach/omap34xx.h 
b/arch/arm/plat-omap/include/mach/omap34xx.h
index 27a1e45..53630dc 100644
--- a/arch/arm/plat-omap/include/mach/omap34xx.h
+++ b/arch/arm/plat-omap/include/mach/omap34xx.h
@@ -51,8 +51,10 @@
 #define OMAP34XX_IC_BASE       0x48200000
 #define OMAP34XX_IVA_INTC_BASE 0x40000000
 #define OMAP34XX_HSUSB_OTG_BASE        (L4_34XX_BASE + 0xAB000)
-#define OMAP34XX_HSUSB_HOST_BASE       (L4_34XX_BASE + 0x64000)
 #define OMAP34XX_USBTLL_BASE   (L4_34XX_BASE + 0x62000)
+#define OMAP34XX_UHH_CONFIG_BASE       (L4_34XX_BASE + 0x64000)
+#define OMAP34XX_OHCI_BASE     (L4_34XX_BASE + 0x64400)
+#define OMAP34XX_EHCI_BASE     (L4_34XX_BASE + 0x64800)
 #define OMAP34XX_SR1_BASE      0x480C9000
 #define OMAP34XX_SR2_BASE      0x480CB000
 
-- 
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to