You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
882 B
46 lines
882 B
20 years ago
|
/*
|
||
17 years ago
|
* arch/arm/mach-pxa/include/mach/uncompress.h
|
||
20 years ago
|
*
|
||
|
* 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.
|
||
|
*/
|
||
|
|
||
17 years ago
|
#include <linux/serial_reg.h>
|
||
17 years ago
|
#include <mach/pxa-regs.h>
|
||
17 years ago
|
#include <asm/mach-types.h>
|
||
17 years ago
|
|
||
17 years ago
|
#define __REG(x) ((volatile unsigned long *)x)
|
||
20 years ago
|
|
||
17 years ago
|
static volatile unsigned long *UART = FFUART;
|
||
20 years ago
|
|
||
19 years ago
|
static inline void putc(char c)
|
||
20 years ago
|
{
|
||
17 years ago
|
if (!(UART[UART_IER] & IER_UUE))
|
||
|
return;
|
||
|
while (!(UART[UART_LSR] & LSR_TDRQ))
|
||
19 years ago
|
barrier();
|
||
17 years ago
|
UART[UART_TX] = c;
|
||
20 years ago
|
}
|
||
|
|
||
|
/*
|
||
|
* This does not append a newline
|
||
|
*/
|
||
19 years ago
|
static inline void flush(void)
|
||
20 years ago
|
{
|
||
|
}
|
||
|
|
||
17 years ago
|
static inline void arch_decomp_setup(void)
|
||
|
{
|
||
|
if (machine_is_littleton())
|
||
|
UART = STUART;
|
||
|
}
|
||
|
|
||
20 years ago
|
/*
|
||
|
* nothing to do
|
||
|
*/
|
||
|
#define arch_decomp_wdog()
|