2 * arch/arm/mach-orion5x/include/mach/uncompress.h
4 * Tzachi Perelstein <tzachi@marvell.com>
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
11 #include <linux/serial_reg.h>
12 #include <mach/orion5x.h>
14 #define SERIAL_BASE ((unsigned char *)UART0_PHYS_BASE)
16 static void putc(const char c)
18 unsigned char *base = SERIAL_BASE;
21 for (i = 0; i < 0x1000; i++) {
22 if (base[UART_LSR << 2] & UART_LSR_THRE)
27 base[UART_TX << 2] = c;
30 static void flush(void)
32 unsigned char *base = SERIAL_BASE;
36 mask = UART_LSR_TEMT | UART_LSR_THRE;
38 for (i = 0; i < 0x1000; i++) {
39 if ((base[UART_LSR << 2] & mask) == mask)
48 #define arch_decomp_setup()
49 #define arch_decomp_wdog()