Path: blob/master/arch/arm/mach-clps711x/include/mach/uncompress.h
17745 views
/*1* arch/arm/mach-clps711x/include/mach/uncompress.h2*3* Copyright (C) 2000 Deep Blue Solutions Ltd4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#include <mach/io.h>20#include <mach/hardware.h>21#include <asm/hardware/clps7111.h>2223#undef CLPS7111_BASE24#define CLPS7111_BASE CLPS7111_PHYS_BASE2526#define __raw_readl(p) (*(unsigned long *)(p))27#define __raw_writel(v,p) (*(unsigned long *)(p) = (v))2829#ifdef CONFIG_DEBUG_CLPS711X_UART230#define SYSFLGx SYSFLG231#define UARTDRx UARTDR232#else33#define SYSFLGx SYSFLG134#define UARTDRx UARTDR135#endif3637/*38* This does not append a newline39*/40static inline void putc(int c)41{42while (clps_readl(SYSFLGx) & SYSFLG_UTXFF)43barrier();44clps_writel(c, UARTDRx);45}4647static inline void flush(void)48{49while (clps_readl(SYSFLGx) & SYSFLG_UBUSY)50barrier();51}5253/*54* nothing to do55*/56#define arch_decomp_setup()5758#define arch_decomp_wdog()596061