]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/arm/mach-lpc178x/defines/lpcUSB.h
LPC178x: Update USB device support for new architecture.
[sysless.git] / arch / arm / mach-lpc178x / defines / lpcUSB.h
index 0c7cd41277a2949c27fcb7f3df06c38fa9dfc492..e8bb789ad4609f5aad34552aad48bf8c41dacb8c 100644 (file)
@@ -272,9 +272,13 @@ typedef struct
   REG32 SysErrIntSet;  /* USB System Error Interrupt Set (WO) 00C0 */
 } usbRegs_t;
 
-#define USBIntSt (*(REG32*)0x400FC10) /* USB Interrupt Status (R/W) */
+#define USBIntSt (*(REG32*)0x400FC1C0) /* USB Interrupt Status (R/W) */
 
-#define USB_REGS_BASE  0x5000C000UL
+#ifdef MACH_LPC178X
+  #define USB_REGS_BASE        0x2008C000UL
+#else
+  #define USB_REGS_BASE        0x5000C000UL
+#endif
 
 #define HcControlHeadED_o      0x0020  /* PADDR of 1st EP desc. of control list (R/W) */
 #define HcControlCurrentED_o   0x0024  /* PADDR of curr. EP desc. of control list (R/W) */