1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/mach-ebsa110/include/mach/uncompress.h
5 * Copyright (C) 1996,1997,1998 Russell King
8 #include <linux/serial_reg.h>
10 #define SERIAL_BASE ((unsigned char *)0xf0000be0)
13 * This does not append a newline
15 static inline void putc(int c)
17 unsigned char v, *base = SERIAL_BASE;
20 v = base[UART_LSR << 2];
22 } while (!(v & UART_LSR_THRE));
24 base[UART_TX << 2] = c;
27 static inline void flush(void)
29 unsigned char v, *base = SERIAL_BASE;
32 v = base[UART_LSR << 2];
34 } while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) !=
35 (UART_LSR_TEMT|UART_LSR_THRE));
41 #define arch_decomp_setup()