RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-w90x900 / include / mach / uncompress.h
blob56f1a74d7016ff3cb74750de05c920210639347a
1 /*
2 * arch/arm/mach-w90x900/include/mach/uncompress.h
4 * Copyright (c) 2008 Nuvoton technology corporation
5 * All rights reserved.
7 * Wan ZongShun <mcuos.com@gmail.com>
9 * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
18 #ifndef __ASM_ARCH_UNCOMPRESS_H
19 #define __ASM_ARCH_UNCOMPRESS_H
21 /* Defines for UART registers */
23 #include <mach/regs-serial.h>
24 #include <mach/map.h>
25 #include <linux/serial_reg.h>
27 #define arch_decomp_wdog()
29 #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
30 static volatile u32 * uart_base = (u32 *)UART0_PA;
32 static void putc(int ch)
34 /* Check THRE and TEMT bits before we transmit the character.
36 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
37 barrier();
39 *uart_base = ch;
42 static inline void flush(void)
46 static void arch_decomp_setup(void)
50 #endif/* __ASM_W90X900_UNCOMPRESS_H */