1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * arch/arm/mach-iop32x/include/mach/uncompress.h
4  */
5 
6 #include <asm/types.h>
7 #include <asm/mach-types.h>
8 #include <linux/serial_reg.h>
9 
10 #define uart_base ((volatile u8 *)0xfe800000)
11 
12 #define TX_DONE		(UART_LSR_TEMT | UART_LSR_THRE)
13 
putc(char c)14 static inline void putc(char c)
15 {
16 	while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
17 		barrier();
18 	uart_base[UART_TX] = c;
19 }
20 
flush(void)21 static inline void flush(void)
22 {
23 }
24 
25 #define arch_decomp_setup() do { } while (0)
26