2 * linux/include/asm-arm/arch-iop3xx/uncompress.h
4 #include <linux/config.h>
6 #include <asm/mach-types.h>
7 #include <linux/serial_reg.h>
8 #include <asm/hardware.h>
10 #ifdef CONFIG_ARCH_IOP321
11 #define UTYPE unsigned char *
16 static volatile UTYPE uart_base;
18 #define TX_DONE (UART_LSR_TEMT|UART_LSR_THRE)
20 static __inline__ void putc(char c)
22 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE);
27 * This does not append a newline
29 static void putstr(const char *s)
39 static __inline__ void __arch_decomp_setup(unsigned long arch_id)
41 if(machine_is_iq80321())
42 uart_base = (volatile UTYPE)IQ80321_UART;
43 else if(machine_is_iq31244())
44 uart_base = (volatile UTYPE)IQ31244_UART;
45 else if(machine_is_iq80331())
46 uart_base = (volatile UTYPE)IQ80331_UART0_PHYS;
48 uart_base = (volatile UTYPE)0xfe800000;
54 #define arch_decomp_setup() __arch_decomp_setup(arch_id)
55 #define arch_decomp_wdog()