[TG3]: Add tagged status support.
[linux-2.6/verdex.git] / include / asm-arm / arch-ixp4xx / uncompress.h
blob960c35810a2232dfbe42244aeddddebf0585116f
1 /*
2 * include/asm-arm/arch-ixp4xx/uncompress.h
4 * Copyright (C) 2002 Intel Corporation.
5 * Copyright (C) 2003-2004 MontaVista Software, Inc.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
13 #ifndef _ARCH_UNCOMPRESS_H_
14 #define _ARCH_UNCOMPRESS_H_
16 #include <asm/hardware.h>
17 #include <asm/mach-types.h>
18 #include <linux/serial_reg.h>
20 #define TX_DONE (UART_LSR_TEMT|UART_LSR_THRE)
22 static volatile u32* uart_base;
24 static __inline__ void putc(char c)
26 /* Check THRE and TEMT bits before we transmit the character.
28 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE);
29 *uart_base = c;
33 * This does not append a newline
35 static void putstr(const char *s)
37 while (*s)
39 putc(*s);
40 if (*s == '\n')
41 putc('\r');
42 s++;
46 static __inline__ void __arch_decomp_setup(unsigned long arch_id)
49 * Coyote and gtwx5715 only have UART2 connected
51 if (machine_is_adi_coyote() || machine_is_gtwx5715())
52 uart_base = (volatile u32*) IXP4XX_UART2_BASE_PHYS;
53 else
54 uart_base = (volatile u32*) IXP4XX_UART1_BASE_PHYS;
58 * arch_id is a variable in decompress_kernel()
60 #define arch_decomp_setup() __arch_decomp_setup(arch_id)
62 #define arch_decomp_wdog()
64 #endif