[ARM] Remove asm/hardware.h, use asm/arch/hardware.h instead
[firewire-audio.git] / include / asm-arm / arch-iop32x / uncompress.h
blob07028786394e8260f0e3c0e41ef7a8e618242a5c
1 /*
2 * include/asm-arm/arch-iop32x/uncompress.h
3 */
5 #include <asm/types.h>
6 #include <asm/mach-types.h>
7 #include <linux/serial_reg.h>
8 #include <asm/arch/hardware.h>
10 static volatile u8 *uart_base;
12 #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
14 static inline void putc(char c)
16 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
17 barrier();
18 uart_base[UART_TX] = c;
21 static inline void flush(void)
25 static __inline__ void __arch_decomp_setup(unsigned long arch_id)
27 if (machine_is_iq80321())
28 uart_base = (volatile u8 *)IQ80321_UART;
29 else if (machine_is_iq31244() || machine_is_em7210())
30 uart_base = (volatile u8 *)IQ31244_UART;
31 else
32 uart_base = (volatile u8 *)0xfe800000;
36 * nothing to do
38 #define arch_decomp_setup() __arch_decomp_setup(arch_id)
39 #define arch_decomp_wdog()