Path: blob/master/arch/arm/mach-ixp23xx/include/mach/uncompress.h
15157 views
/*1* arch/arm/mach-ixp23xx/include/mach/uncompress.h2*3* Copyright (C) 2002-2004 Intel Corporation.4*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#ifndef __ASM_ARCH_UNCOMPRESS_H11#define __ASM_ARCH_UNCOMPRESS_H1213#include <mach/ixp23xx.h>14#include <linux/serial_reg.h>1516#define UART_BASE ((volatile u32 *)IXP23XX_UART1_PHYS)1718static inline void putc(char c)19{20int j;2122for (j = 0; j < 0x1000; j++) {23if (UART_BASE[UART_LSR] & UART_LSR_THRE)24break;25barrier();26}2728UART_BASE[UART_TX] = c;29}3031static inline void flush(void)32{33}3435#define arch_decomp_setup()36#define arch_decomp_wdog()373839#endif404142