2 * linux/include/asm-arm/arch-aaec2000/uncompress.h
4 * Copyright (c) 2005 Nicolas Bellido Y Ortega
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.
11 #ifndef __ASM_ARCH_UNCOMPRESS_H
12 #define __ASM_ARCH_UNCOMPRESS_H
16 #define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
18 static void putstr( const char *s
)
20 unsigned long serial_port
;
22 serial_port
= _UART3_BASE
;
23 if (UART(UART_CR
) & UART_CR_EN
) break;
24 serial_port
= _UART1_BASE
;
25 if (UART(UART_CR
) & UART_CR_EN
) break;
26 serial_port
= _UART2_BASE
;
27 if (UART(UART_CR
) & UART_CR_EN
) break;
32 /* wait for space in the UART's transmitter */
33 while ((UART(UART_SR
) & UART_SR_TxFF
));
34 /* send the character out. */
36 /* if a LF, also do CR... */
38 while ((UART(UART_SR
) & UART_SR_TxFF
));
44 #define arch_decomp_setup()
45 #define arch_decomp_wdog()
47 #endif /* __ASM_ARCH_UNCOMPRESS_H */