added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / arm / mach-orion5x / include / mach / uncompress.h
blob4322dba468a4f30cce2c49d8a799c140e6bf2cc4
1 /*
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.
9 */
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;
19 int i;
21 for (i = 0; i < 0x1000; i++) {
22 if (base[UART_LSR << 2] & UART_LSR_THRE)
23 break;
24 barrier();
27 base[UART_TX << 2] = c;
30 static void flush(void)
32 unsigned char *base = SERIAL_BASE;
33 unsigned char mask;
34 int i;
36 mask = UART_LSR_TEMT | UART_LSR_THRE;
38 for (i = 0; i < 0x1000; i++) {
39 if ((base[UART_LSR << 2] & mask) == mask)
40 break;
41 barrier();
46 * nothing to do
48 #define arch_decomp_setup()
49 #define arch_decomp_wdog()