Path: blob/master/arch/arm/mach-orion5x/include/mach/uncompress.h
10820 views
/*1* arch/arm/mach-orion5x/include/mach/uncompress.h2*3* Tzachi Perelstein <[email protected]>4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#include <linux/serial_reg.h>11#include <mach/orion5x.h>1213#define SERIAL_BASE ((unsigned char *)UART0_PHYS_BASE)1415static void putc(const char c)16{17unsigned char *base = SERIAL_BASE;18int i;1920for (i = 0; i < 0x1000; i++) {21if (base[UART_LSR << 2] & UART_LSR_THRE)22break;23barrier();24}2526base[UART_TX << 2] = c;27}2829static void flush(void)30{31unsigned char *base = SERIAL_BASE;32unsigned char mask;33int i;3435mask = UART_LSR_TEMT | UART_LSR_THRE;3637for (i = 0; i < 0x1000; i++) {38if ((base[UART_LSR << 2] & mask) == mask)39break;40barrier();41}42}4344/*45* nothing to do46*/47#define arch_decomp_setup()48#define arch_decomp_wdog()495051