x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / arm / mach-iop33x / include / mach / uncompress.h
blobed282e14176df0a2103b95a7c70db5a2bf9a7c68
1 /*
2 * arch/arm/mach-iop33x/include/mach/uncompress.h
3 */
5 #include <asm/types.h>
6 #include <asm/mach-types.h>
7 #include <linux/serial_reg.h>
8 #include <mach/hardware.h>
10 volatile u32 *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_iq80331() || machine_is_iq80332())
28 uart_base = (volatile u32 *)IOP33X_UART0_PHYS;
29 else
30 uart_base = (volatile u32 *)0xfe800000;
34 * nothing to do
36 #define arch_decomp_setup() __arch_decomp_setup(arch_id)