diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-08-08 16:10:12 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-08-08 16:10:12 -0400 |
commit | af7a535688a758d15f06a98833e6a143b29af9de (patch) | |
tree | bac5ab210bbbbe276f0e44ed84194d7c8bb16aae /arch/arm/mach-ebsa110/include/mach/uncompress.h | |
parent | 0c17e4ceedd35c78b1c7413dbd16279a350be6bc (diff) | |
parent | c41107c2d4fd31924533f4dbc4c3428acc2b5894 (diff) |
Merge http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm into for-rmk
Diffstat (limited to 'arch/arm/mach-ebsa110/include/mach/uncompress.h')
-rw-r--r-- | arch/arm/mach-ebsa110/include/mach/uncompress.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/mach-ebsa110/include/mach/uncompress.h b/arch/arm/mach-ebsa110/include/mach/uncompress.h new file mode 100644 index 000000000000..32041509fbf8 --- /dev/null +++ b/arch/arm/mach-ebsa110/include/mach/uncompress.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ebsa110/include/mach/uncompress.h | ||
3 | * | ||
4 | * Copyright (C) 1996,1997,1998 Russell King | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #include <linux/serial_reg.h> | ||
12 | |||
13 | #define SERIAL_BASE ((unsigned char *)0xf0000be0) | ||
14 | |||
15 | /* | ||
16 | * This does not append a newline | ||
17 | */ | ||
18 | static inline void putc(int c) | ||
19 | { | ||
20 | unsigned char v, *base = SERIAL_BASE; | ||
21 | |||
22 | do { | ||
23 | v = base[UART_LSR << 2]; | ||
24 | barrier(); | ||
25 | } while (!(v & UART_LSR_THRE)); | ||
26 | |||
27 | base[UART_TX << 2] = c; | ||
28 | } | ||
29 | |||
30 | static inline void flush(void) | ||
31 | { | ||
32 | unsigned char v, *base = SERIAL_BASE; | ||
33 | |||
34 | do { | ||
35 | v = base[UART_LSR << 2]; | ||
36 | barrier(); | ||
37 | } while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) != | ||
38 | (UART_LSR_TEMT|UART_LSR_THRE)); | ||
39 | } | ||
40 | |||
41 | /* | ||
42 | * nothing to do | ||
43 | */ | ||
44 | #define arch_decomp_setup() | ||
45 | #define arch_decomp_wdog() | ||