2 * arch/arm/mach-sa1100/include/mach/uncompress.h
4 * (C) 1999 Nicolas Pitre <nico@fluxnic.net>
6 * Reorganised to be machine independent.
14 * The following code assumes the serial port has already been
15 * initialized by the bootloader. We search for the first enabled
16 * port in the most probable order. If you didn't setup a port in
17 * your bootloader then nothing will appear (which might be desired).
20 #define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
22 static void putc(int c
)
24 unsigned long serial_port
;
27 serial_port
= _Ser3UTCR0
;
28 if (UART(UTCR3
) & UTCR3_TXE
) break;
29 serial_port
= _Ser1UTCR0
;
30 if (UART(UTCR3
) & UTCR3_TXE
) break;
31 serial_port
= _Ser2UTCR0
;
32 if (UART(UTCR3
) & UTCR3_TXE
) break;
36 /* wait for space in the UART's transmitter */
37 while (!(UART(UTSR1
) & UTSR1_TNF
))
40 /* send the character out. */
44 static inline void flush(void)
49 * Nothing to do for these
51 #define arch_decomp_setup()