2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* linux/include/asm-arm/arch-pxa/uncompress.h
|
|
|
|
*
|
|
|
|
* Author: Nicolas Pitre
|
|
|
|
* Copyright: (C) 2001 MontaVista Software Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2007-11-22 17:57:30 +01:00
|
|
|
#include <linux/serial_reg.h>
|
|
|
|
#include <asm/arch/pxa-regs.h>
|
|
|
|
|
2007-12-21 09:31:25 +01:00
|
|
|
#define __REG(x) ((volatile unsigned long *)x)
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#define UART FFUART
|
|
|
|
|
|
|
|
|
2006-03-28 11:24:33 +02:00
|
|
|
static inline void putc(char c)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-11-22 17:57:30 +01:00
|
|
|
if (!(UART[UART_IER] & IER_UUE))
|
|
|
|
return;
|
|
|
|
while (!(UART[UART_LSR] & LSR_TDRQ))
|
2006-03-28 11:24:33 +02:00
|
|
|
barrier();
|
2007-11-22 17:57:30 +01:00
|
|
|
UART[UART_TX] = c;
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This does not append a newline
|
|
|
|
*/
|
2006-03-28 11:24:33 +02:00
|
|
|
static inline void flush(void)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nothing to do
|
|
|
|
*/
|
|
|
|
#define arch_decomp_setup()
|
|
|
|
#define arch_decomp_wdog()
|