summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-pxa/uncompress.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-07-13 00:43:51 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-07-13 00:43:51 +0400
commit37d7035da5b1f184c610b038b376c0c647d8d72b (patch)
treec38d4058ad3232f985d9ed4501a8a842a2a47028 /include/asm-arm/arch-pxa/uncompress.h
parent0fc3ff31f1f0fa023bb61e9336a7aa3591f2dffe (diff)
parent54b238469bce3a1b5012b2f0ebf261cf1c53e664 (diff)
downloadlinux-37d7035da5b1f184c610b038b376c0c647d8d72b.tar.xz
Merge branch 'pxa-devel' into pxa
Diffstat (limited to 'include/asm-arm/arch-pxa/uncompress.h')
-rw-r--r--include/asm-arm/arch-pxa/uncompress.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/asm-arm/arch-pxa/uncompress.h b/include/asm-arm/arch-pxa/uncompress.h
index dadf4c20b622..f4551269aaf2 100644
--- a/include/asm-arm/arch-pxa/uncompress.h
+++ b/include/asm-arm/arch-pxa/uncompress.h
@@ -11,11 +11,11 @@
#include <linux/serial_reg.h>
#include <asm/arch/pxa-regs.h>
+#include <asm/mach-types.h>
-#define __REG(x) ((volatile unsigned long *)x)
-
-#define UART FFUART
+#define __REG(x) ((volatile unsigned long *)x)
+static volatile unsigned long *UART = FFUART;
static inline void putc(char c)
{
@@ -33,8 +33,13 @@ static inline void flush(void)
{
}
+static inline void arch_decomp_setup(void)
+{
+ if (machine_is_littleton())
+ UART = STUART;
+}
+
/*
* nothing to do
*/
-#define arch_decomp_setup()
#define arch_decomp_wdog()