diff options
Diffstat (limited to 'include/asm-arm/arch-pxa/uncompress.h')
-rw-r--r-- | include/asm-arm/arch-pxa/uncompress.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/asm-arm/arch-pxa/uncompress.h b/include/asm-arm/arch-pxa/uncompress.h index 178aa2e073ac..dadf4c20b622 100644 --- a/include/asm-arm/arch-pxa/uncompress.h +++ b/include/asm-arm/arch-pxa/uncompress.h | |||
@@ -9,19 +9,21 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define FFUART ((volatile unsigned long *)0x40100000) | 12 | #include <linux/serial_reg.h> |
13 | #define BTUART ((volatile unsigned long *)0x40200000) | 13 | #include <asm/arch/pxa-regs.h> |
14 | #define STUART ((volatile unsigned long *)0x40700000) | 14 | |
15 | #define HWUART ((volatile unsigned long *)0x41600000) | 15 | #define __REG(x) ((volatile unsigned long *)x) |
16 | 16 | ||
17 | #define UART FFUART | 17 | #define UART FFUART |
18 | 18 | ||
19 | 19 | ||
20 | static inline void putc(char c) | 20 | static inline void putc(char c) |
21 | { | 21 | { |
22 | while (!(UART[5] & 0x20)) | 22 | if (!(UART[UART_IER] & IER_UUE)) |
23 | return; | ||
24 | while (!(UART[UART_LSR] & LSR_TDRQ)) | ||
23 | barrier(); | 25 | barrier(); |
24 | UART[0] = c; | 26 | UART[UART_TX] = c; |
25 | } | 27 | } |
26 | 28 | ||
27 | /* | 29 | /* |