[ARM] add Marvell Loki (88RC8480) SoC support
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-arm / arch-loki / uncompress.h
blob89a0cf88d3a509acde2bff3026cd003ba0ee6be1
1 /*
2 * include/asm-arm/arch-loki/uncompress.h
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
9 #include <linux/serial_reg.h>
10 #include <asm/arch/loki.h>
12 #define SERIAL_BASE ((unsigned char *)UART0_PHYS_BASE)
14 static void putc(const char c)
16 unsigned char *base = SERIAL_BASE;
17 int i;
19 for (i = 0; i < 0x1000; i++) {
20 if (base[UART_LSR << 2] & UART_LSR_THRE)
21 break;
22 barrier();
25 base[UART_TX << 2] = c;
28 static void flush(void)
30 unsigned char *base = SERIAL_BASE;
31 unsigned char mask;
32 int i;
34 mask = UART_LSR_TEMT | UART_LSR_THRE;
36 for (i = 0; i < 0x1000; i++) {
37 if ((base[UART_LSR << 2] & mask) == mask)
38 break;
39 barrier();
44 * nothing to do
46 #define arch_decomp_setup()
47 #define arch_decomp_wdog()