of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / arm / mach-sa1100 / include / mach / uncompress.h
blob73093dc89829989f0cfb97a748632348b0253594
1 /*
2 * arch/arm/mach-sa1100/include/mach/uncompress.h
4 * (C) 1999 Nicolas Pitre <nico@fluxnic.net>
6 * Reorganised to be machine independent.
7 */
9 #include "hardware.h"
11 #define IOMEM(x) (x)
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;
26 do {
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;
33 return;
34 } while (0);
36 /* wait for space in the UART's transmitter */
37 while (!(UART(UTSR1) & UTSR1_TNF))
38 barrier();
40 /* send the character out. */
41 UART(UTDR) = c;
44 static inline void flush(void)
49 * Nothing to do for these
51 #define arch_decomp_setup()