patch-2.3.49 linux/include/asm-arm/arch-sa1100/uncompress.h

Next file: linux/include/asm-arm/parport.h
Previous file: linux/include/asm-arm/arch-nexuspci/uncompress.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/include/asm-arm/arch-sa1100/uncompress.h linux/include/asm-arm/arch-sa1100/uncompress.h
@@ -6,14 +6,21 @@
 
 #include <linux/config.h>
 
-#if defined(CONFIG_SA1100_EMPEG) || \
-    defined(CONFIG_SA1100_VICTOR) || \
-    defined(CONFIG_SA1100_LART)
+#if	defined(CONFIG_SA1100_EMPEG) || \
+	defined(CONFIG_SA1100_VICTOR) || \
+	defined(CONFIG_SA1100_LART)
+#define SERBASE _Ser3UTCR0;
+#elif	defined(CONFIG_SA1100_BRUTUS)
+#define SERBASE _Ser1UTCR0;
+#endif
+
+
+#ifdef SERBASE
 
 #include "hardware.h"
 #include "serial_reg.h"
 
-static volatile unsigned long* serial_port = (unsigned long*)_Ser3UTCR0;
+static volatile unsigned long* serial_port = (unsigned long*)SERBASE;
 
 /*
  * The following code assumes the serial port has already been
@@ -41,7 +48,7 @@
 
 #else
 
-#define puts( x )
+static inline void puts( const char *s ) {}
 
 #endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)