GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-mmp / include / mach / uncompress.h
blob85bd8a2d84b5e47cc3acc1a24192a8387c3d28ab
1 /*
2 * arch/arm/mach-mmp/include/mach/uncompress.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <linux/serial_reg.h>
10 #include <mach/addr-map.h>
11 #include <asm/mach-types.h>
13 #define UART1_BASE (APB_PHYS_BASE + 0x36000)
14 #define UART2_BASE (APB_PHYS_BASE + 0x17000)
15 #define UART3_BASE (APB_PHYS_BASE + 0x18000)
17 static volatile unsigned long *UART;
19 static inline void putc(char c)
21 /* UART enabled? */
22 if (!(UART[UART_IER] & UART_IER_UUE))
23 return;
25 while (!(UART[UART_LSR] & UART_LSR_THRE))
26 barrier();
28 UART[UART_TX] = c;
32 * This does not append a newline
34 static inline void flush(void)
38 static inline void arch_decomp_setup(void)
40 /* default to UART2 */
41 UART = (unsigned long *)UART2_BASE;
43 if (machine_is_avengers_lite())
44 UART = (unsigned long *)UART3_BASE;
48 * nothing to do
51 #define arch_decomp_wdog()