Path: blob/master/arch/arm/mach-ebsa110/include/mach/uncompress.h
10820 views
/*1* arch/arm/mach-ebsa110/include/mach/uncompress.h2*3* Copyright (C) 1996,1997,1998 Russell King4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*/910#include <linux/serial_reg.h>1112#define SERIAL_BASE ((unsigned char *)0xf0000be0)1314/*15* This does not append a newline16*/17static inline void putc(int c)18{19unsigned char v, *base = SERIAL_BASE;2021do {22v = base[UART_LSR << 2];23barrier();24} while (!(v & UART_LSR_THRE));2526base[UART_TX << 2] = c;27}2829static inline void flush(void)30{31unsigned char v, *base = SERIAL_BASE;3233do {34v = base[UART_LSR << 2];35barrier();36} while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) !=37(UART_LSR_TEMT|UART_LSR_THRE));38}3940/*41* nothing to do42*/43#define arch_decomp_setup()44#define arch_decomp_wdog()454647