ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-tbox / uncompress.h
1 /*
2  * linux/include/asm-arm/arch-nexuspci/uncompress.h
3  *  from linux/include/asm-arm/arch-ebsa110/uncompress.h
4  *
5  * Copyright (C) 1996,1997,1998 Russell King
6  * Copyright (C) 1998, 1999 Phil Blundell
7  */
8
9 #include <asm/io.h>
10
11 #define UARTBASE 0x00400000
12
13 /*
14  * This does not append a newline
15  */
16 static void puts(const char *s)
17 {
18   while (*s)
19   {
20     char c = *(s++);
21     while (!(__raw_readb(UARTBASE + 0x14) & 0x20));
22     __raw_writeb(c, UARTBASE);
23     if (c == 10) {
24       while (!(__raw_readb(UARTBASE + 0x14) & 0x20));
25       __raw_writeb(13, UARTBASE);
26     }
27   }
28 }
29
30 /*
31  * nothing to do
32  */
33 #define arch_decomp_setup()
34
35 /*
36  * Stroke the watchdog so we don't get reset during decompression.
37  */
38 #define arch_decomp_wdog()                              \
39         do {                                            \
40         __raw_writel(1, 0xa00000);                      \
41         __raw_writel(0, 0xa00000);                      \
42         } while (0)