2005-04-16 16:20:36 -06:00
|
|
|
/*
|
2008-08-05 09:14:15 -06:00
|
|
|
* arch/arm/mach-pxa/include/mach/uncompress.h
|
2005-04-16 16:20:36 -06:00
|
|
|
*
|
|
|
|
* 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 09:57:30 -07:00
|
|
|
#include <linux/serial_reg.h>
|
2008-11-27 23:08:53 -07:00
|
|
|
#include <mach/regs-uart.h>
|
2008-06-02 01:58:03 -06:00
|
|
|
#include <asm/mach-types.h>
|
2007-11-22 09:57:30 -07:00
|
|
|
|
2008-06-02 01:58:03 -06:00
|
|
|
#define __REG(x) ((volatile unsigned long *)x)
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2008-06-02 01:58:03 -06:00
|
|
|
static volatile unsigned long *UART = FFUART;
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2006-03-28 02:24:33 -07:00
|
|
|
static inline void putc(char c)
|
2005-04-16 16:20:36 -06:00
|
|
|
{
|
2007-11-22 09:57:30 -07:00
|
|
|
if (!(UART[UART_IER] & IER_UUE))
|
|
|
|
return;
|
|
|
|
while (!(UART[UART_LSR] & LSR_TDRQ))
|
2006-03-28 02:24:33 -07:00
|
|
|
barrier();
|
2007-11-22 09:57:30 -07:00
|
|
|
UART[UART_TX] = c;
|
2005-04-16 16:20:36 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This does not append a newline
|
|
|
|
*/
|
2006-03-28 02:24:33 -07:00
|
|
|
static inline void flush(void)
|
2005-04-16 16:20:36 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-06-02 01:58:03 -06:00
|
|
|
static inline void arch_decomp_setup(void)
|
|
|
|
{
|
2009-02-16 10:40:55 -07:00
|
|
|
if (machine_is_littleton() || machine_is_intelmote2()
|
2009-06-04 01:44:53 -06:00
|
|
|
|| machine_is_csb726() || machine_is_stargate2()
|
2009-07-04 07:43:56 -06:00
|
|
|
|| machine_is_cm_x300() || machine_is_balloon3())
|
2008-06-02 01:58:03 -06:00
|
|
|
UART = STUART;
|
|
|
|
}
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
/*
|
|
|
|
* nothing to do
|
|
|
|
*/
|
|
|
|
#define arch_decomp_wdog()
|