MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s3c24a0 / uncompress.h
blob7c373c745a2d1b937ffe651436b186ef911a3f64
1 /*
2 * include/asm-arm/arch-s3c24a0/uncompress.h
4 * $Id: uncompress.h,v 1.3 2006/12/12 13:13:07 gerg Exp $
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
13 * The following code assumes the serial port has already been
14 * initialized by the bootloader. We use only UART1 on S3C24xx
17 #define ULCON 0x0
18 #define UTRSTAT 0x10
19 #define UTXH 0x20
20 #define UTRSTAT_TX_EMPTY (1 << 2)
22 #define UART0 0x44400000
23 #define UART1 0x44404000
25 #define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
27 static void putstr(const char *s)
29 unsigned long serial_port;
31 do {
32 serial_port = UART0;
33 if (UART(ULCON) == 0x3) break;
34 serial_port = UART1;
35 if (UART(ULCON) == 0x3) break;
36 } while (0);
38 for (; *s; s++) {
39 /* wait */
40 while (!(UART(UTRSTAT) & UTRSTAT_TX_EMPTY));
42 /* send the character out. */
43 UART(UTXH) = *s;
45 /* if a LF, also do CR... */
46 if (*s == 10) {
47 while (!(UART(UTRSTAT) & UTRSTAT_TX_EMPTY));
49 UART(UTXH) = 13;
56 * Nothing to do for these
58 #define arch_decomp_setup()
59 #define arch_decomp_wdog()