more changes on original files
[linux-2.4.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       barrier();
23     __raw_writeb(c, UARTBASE);
24     if (c == 10) {
25       while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
26         barrier();
27       __raw_writeb(13, UARTBASE);
28     }
29   }
30 }
31
32 /*
33  * nothing to do
34  */
35 #define arch_decomp_setup()
36
37 /*
38  * Stroke the watchdog so we don't get reset during decompression.
39  */
40 #define arch_decomp_wdog()                              \
41         do {                                            \
42         __raw_writel(1, 0xa00000);                      \
43         __raw_writel(0, 0xa00000);                      \
44         } while (0)