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.
13 * The following code assumes the serial port has already been
14 * initialized by the bootloader. We use only UART1 on S3C24xx
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
;
33 if (UART(ULCON
) == 0x3) break;
35 if (UART(ULCON
) == 0x3) break;
40 while (!(UART(UTRSTAT
) & UTRSTAT_TX_EMPTY
));
42 /* send the character out. */
45 /* if a LF, also do CR... */
47 while (!(UART(UTRSTAT
) & UTRSTAT_TX_EMPTY
));
56 * Nothing to do for these
58 #define arch_decomp_setup()
59 #define arch_decomp_wdog()