]> git.sur5r.net Git - u-boot/commitdiff
ARM: fix PXA build by defining UP2OCR
authorDaniel Mack <daniel@caiaq.de>
Tue, 5 May 2009 10:48:29 +0000 (12:48 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 15 May 2009 21:24:02 +0000 (23:24 +0200)
U-Boot does not currently build for PXA platforms with USB support
enabled:

usb.c:46: error: 'UP2OCR' undeclared (first use in this function)

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Markus Klotzbuecher <mk@denx.de>
Edited commit message.
Signed-off-by: Wolfgang Denk <wd@denx.de>
include/asm-arm/arch-pxa/pxa-regs.h

index a8d30e2df4a07ae7ef9d8ade1643116c7f2d50e1..5a0885aef2009efdce5719e14a64726743742d0e 100644 (file)
@@ -992,6 +992,10 @@ typedef void               (*ExcpHndlr) (void) ;
 #define UHCHIE         __REG(0x4C000068)
 #define UHCHIT         __REG(0x4C00006C)
 
+#if defined(CONFIG_CPU_MONAHANS)
+#define UP2OCR         __REG(0x40600020)
+#endif
+
 #define UHCHR_FSBIR    (1<<0)
 #define UHCHR_FHR      (1<<1)
 #define UHCHR_CGR      (1<<2)