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