diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-28 04:24:33 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-28 04:24:33 -0500 |
commit | a081568d7016061ed848696984e3acf1ba0b3054 (patch) | |
tree | 5a6cd28d51e3c0b694499f4d0795b22a3d020eba /include/asm-arm/arch-ep93xx/uncompress.h | |
parent | 3747b36eeab93d8969e86987bbc1d44971229b26 (diff) |
[ARM] Fix decompressor serial IO to give CRLF not LFCR
As per the corresponding change to the serial drivers, arrange
for ARM decompressors to give CRLF. Move the common putstr code
into misc.c such that machines only need to supply "putc" and
"flush" functions.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-ep93xx/uncompress.h')
-rw-r--r-- | include/asm-arm/arch-ep93xx/uncompress.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/asm-arm/arch-ep93xx/uncompress.h b/include/asm-arm/arch-ep93xx/uncompress.h index 2171082d4fc5..c15274c85d5d 100644 --- a/include/asm-arm/arch-ep93xx/uncompress.h +++ b/include/asm-arm/arch-ep93xx/uncompress.h | |||
@@ -36,7 +36,7 @@ static void __raw_writel(unsigned int value, unsigned int ptr) | |||
36 | #define PHYS_UART1_FLAG 0x808c0018 | 36 | #define PHYS_UART1_FLAG 0x808c0018 |
37 | #define UART1_FLAG_TXFF 0x20 | 37 | #define UART1_FLAG_TXFF 0x20 |
38 | 38 | ||
39 | static __inline__ void putc(char c) | 39 | static inline void putc(int c) |
40 | { | 40 | { |
41 | int i; | 41 | int i; |
42 | 42 | ||
@@ -49,14 +49,8 @@ static __inline__ void putc(char c) | |||
49 | __raw_writeb(c, PHYS_UART1_DATA); | 49 | __raw_writeb(c, PHYS_UART1_DATA); |
50 | } | 50 | } |
51 | 51 | ||
52 | static void putstr(const char *s) | 52 | static inline void flush(void) |
53 | { | 53 | { |
54 | while (*s) { | ||
55 | putc(*s); | ||
56 | if (*s == '\n') | ||
57 | putc('\r'); | ||
58 | s++; | ||
59 | } | ||
60 | } | 54 | } |
61 | 55 | ||
62 | 56 | ||