18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * arch/arm/mach-iop32x/include/mach/uncompress.h 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <asm/types.h> 78c2ecf20Sopenharmony_ci#include <asm/mach-types.h> 88c2ecf20Sopenharmony_ci#include <linux/serial_reg.h> 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define uart_base ((volatile u8 *)0xfe800000) 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE) 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistatic inline void putc(char c) 158c2ecf20Sopenharmony_ci{ 168c2ecf20Sopenharmony_ci while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) 178c2ecf20Sopenharmony_ci barrier(); 188c2ecf20Sopenharmony_ci uart_base[UART_TX] = c; 198c2ecf20Sopenharmony_ci} 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistatic inline void flush(void) 228c2ecf20Sopenharmony_ci{ 238c2ecf20Sopenharmony_ci} 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define arch_decomp_setup() do { } while (0) 26