ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-iop3xx / uncompress.h
1 /*
2  *  linux/include/asm-arm/arch-iop80310/uncompress.h
3  */
4 #include <linux/config.h>
5 #include <linux/serial_reg.h>
6 #include <asm/hardware.h>
7
8 #ifdef CONFIG_ARCH_IQ80310
9 #define UART2_BASE    ((volatile unsigned char *)IQ80310_UART2)
10 #elif defined(CONFIG_ARCH_IQ80321)
11 #define UART2_BASE    ((volatile unsigned char *)IQ80321_UART1)
12 #endif
13
14 static __inline__ void putc(char c)
15 {
16         while ((UART2_BASE[5] & 0x60) != 0x60);
17         UART2_BASE[0] = c;
18 }
19
20 /*
21  * This does not append a newline
22  */
23 static void puts(const char *s)
24 {
25         while (*s) {
26                 putc(*s);
27                 if (*s == '\n')
28                         putc('\r');
29                 s++;
30         }
31 }
32
33 /*
34  * nothing to do
35  */
36 #define arch_decomp_setup()
37 #define arch_decomp_wdog()