2 * linux/include/asm-arm/arch-anakin/uncompress.h
4 * Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
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.
11 * 10-Apr-2001 TTC Created
14 #ifndef __ASM_ARCH_UNCOMPRESS_H
15 #define __ASM_ARCH_UNCOMPRESS_H
17 #include <linux/config.h>
19 #include <asm/arch/serial_reg.h>
21 #ifndef CONFIG_ANAKIN_DEFAULT_BAUDRATE
22 #define CONFIG_ANAKIN_DEFAULT_BAUDRATE 9600
28 while (!(__raw_readl(IO_START + UART0 + 0x10) & TXEMPTY))
31 __raw_writel(c, IO_START + UART0 + 0x14);
32 __raw_writel(__raw_readl(IO_START + UART0 + 0x18)
33 | SENDREQUEST, IO_START + UART0 + 0x18);
43 if (c == '\n') putc('\r');
48 arch_decomp_setup(void)
50 __raw_writel(__raw_readl(IO_START + UART0 + 0x10) & ~PRESCALER
51 | SETBAUD(CONFIG_ANAKIN_DEFAULT_BAUDRATE),
52 IO_START + UART0 + 0x10);
53 __raw_writel(__raw_readl(IO_START + UART0 + 0x18) & ~(IRQENABLE
54 | RTS | DTR | BLOCKRX | PARITY),
55 IO_START + UART0 + 0x18);
58 #define arch_decomp_wdog()