2 * linux/include/asm-arm/arch-iop3xx/uncompress.h
5 #include <asm/mach-types.h>
6 #include <linux/serial_reg.h>
7 #include <asm/hardware.h>
9 #ifdef CONFIG_ARCH_IOP321
10 #define UTYPE unsigned char *
11 #elif defined(CONFIG_ARCH_IOP331)
14 #error "Missing IOP3xx arch type def"
17 static volatile UTYPE uart_base;
19 #define TX_DONE (UART_LSR_TEMT|UART_LSR_THRE)
21 static inline void putc(char c)
23 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
28 static inline void flush(void)
32 static __inline__ void __arch_decomp_setup(unsigned long arch_id)
34 if(machine_is_iq80321())
35 uart_base = (volatile UTYPE)IQ80321_UART;
36 else if(machine_is_iq31244())
37 uart_base = (volatile UTYPE)IQ31244_UART;
38 else if(machine_is_iq80331() || machine_is_iq80332())
39 uart_base = (volatile UTYPE)IOP331_UART0_PHYS;
41 uart_base = (volatile UTYPE)0xfe800000;
47 #define arch_decomp_setup() __arch_decomp_setup(arch_id)
48 #define arch_decomp_wdog()