blob: 237734b5b1beb8556061b6f47e0ac6fb0d697efa [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
2 * arch/arm/mach-pxa/include/mach/uncompress.h
3 *
4 * Author: Nicolas Pitre
5 * Copyright: (C) 2001 MontaVista Software Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#include <linux/serial_reg.h>
Eric Miao02f65262008-11-28 14:08:53 +080013#include <mach/regs-uart.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010014#include <asm/mach-types.h>
15
16#define __REG(x) ((volatile unsigned long *)x)
17
18static volatile unsigned long *UART = FFUART;
19
20static inline void putc(char c)
21{
22 if (!(UART[UART_IER] & IER_UUE))
23 return;
24 while (!(UART[UART_LSR] & LSR_TDRQ))
25 barrier();
26 UART[UART_TX] = c;
27}
28
29/*
30 * This does not append a newline
31 */
32static inline void flush(void)
33{
34}
35
36static inline void arch_decomp_setup(void)
37{
Dmitry Eremin-Solenikovaac42972009-02-16 20:40:55 +030038 if (machine_is_littleton() || machine_is_intelmote2()
Mike Rapoport321d9eb2009-06-04 10:44:53 +030039 || machine_is_csb726() || machine_is_stargate2()
Jonathan McDowell2a23ec32009-07-04 14:43:56 +010040 || machine_is_cm_x300() || machine_is_balloon3())
Russell Kinga09e64f2008-08-05 16:14:15 +010041 UART = STUART;
42}
43
44/*
45 * nothing to do
46 */
47#define arch_decomp_wdog()