1 #ifndef __MT_UNCOMPRESS_H
2 #define __MT_UNCOMPRESS_H
4 #include <asm/mach/arch.h>
5 #include <asm/mach/time.h>
6 #include <asm/mach/map.h>
7 #include <asm/mach-types.h>
9 #include "mt_reg_base.h"
11 #define MT_UART_PHY_BASE IO_VIRT_TO_PHYS(UART1_BASE)
13 #define MT_UART_LSR *(volatile unsigned char *)(MT_UART_PHY_BASE+0x14)
14 #define MT_UART_THR *(volatile unsigned char *)(MT_UART_PHY_BASE+0x0)
15 #define MT_UART_LCR *(volatile unsigned char *)(MT_UART_PHY_BASE+0xc)
16 #define MT_UART_DLL *(volatile unsigned char *)(MT_UART_PHY_BASE+0x0)
17 #define MT_UART_DLH *(volatile unsigned char *)(MT_UART_PHY_BASE+0x4)
18 #define MT_UART_FCR *(volatile unsigned char *)(MT_UART_PHY_BASE+0x8)
19 #define MT_UART_MCR *(volatile unsigned char *)(MT_UART_PHY_BASE+0x10)
20 #define MT_UART_SPEED *(volatile unsigned char *)(MT_UART_PHY_BASE+0x24)
23 static void arch_decomp_setup(void)
27 #if defined(CONFIG_MT_FPGA)
30 MT_UART_LCR
= (tmp
| 0x80);
36 MT_UART_MCR
= (0x1 | 0x2);
41 * This does not append a newline
43 static inline void putc(int c
)
45 while (!(MT_UART_LSR
& 0x20));
49 static inline void flush(void)
56 #define arch_decomp_wdog()