Full support for Ginger Console
[linux-ginger.git] / arch / arm / mach-pxa / include / mach / uncompress.h
blob237734b5b1beb8556061b6f47e0ac6fb0d697efa
1 /*
2 * arch/arm/mach-pxa/include/mach/uncompress.h
4 * Author: Nicolas Pitre
5 * Copyright: (C) 2001 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.
12 #include <linux/serial_reg.h>
13 #include <mach/regs-uart.h>
14 #include <asm/mach-types.h>
16 #define __REG(x) ((volatile unsigned long *)x)
18 static volatile unsigned long *UART = FFUART;
20 static inline void putc(char c)
22 if (!(UART[UART_IER] & IER_UUE))
23 return;
24 while (!(UART[UART_LSR] & LSR_TDRQ))
25 barrier();
26 UART[UART_TX] = c;
30 * This does not append a newline
32 static inline void flush(void)
36 static inline void arch_decomp_setup(void)
38 if (machine_is_littleton() || machine_is_intelmote2()
39 || machine_is_csb726() || machine_is_stargate2()
40 || machine_is_cm_x300() || machine_is_balloon3())
41 UART = STUART;
45 * nothing to do
47 #define arch_decomp_wdog()