[ARM] 3388/1: ixp23xx: add core ixp23xx support
[linux-2.6/libata-dev.git] / include / asm-arm / arch-ixp23xx / uncompress.h
blob62623fa9b2f7a12f1a65c3f55e0e379f9563462d
1 /*
2 * include/asm-arm/arch-ixp23xx/uncompress.h
4 * Copyright (C) 2002-2004 Intel Corporation.
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.
9 */
11 #ifndef __ASM_ARCH_UNCOMPRESS_H
12 #define __ASM_ARCH_UNCOMPRESS_H
14 #include <asm/hardware.h>
15 #include <linux/serial_reg.h>
17 #define UART_BASE ((volatile u32 *)IXP23XX_UART1_PHYS)
19 static __inline__ void putc(char c)
21 int j;
23 for (j = 0; j < 0x1000; j++) {
24 if (UART_BASE[UART_LSR] & UART_LSR_THRE)
25 break;
28 UART_BASE[UART_TX] = c;
31 static void putstr(const char *s)
33 while (*s) {
34 putc(*s);
35 if (*s == '\n')
36 putc('\r');
37 s++;
41 #define arch_decomp_setup()
42 #define arch_decomp_wdog()
45 #endif