[ARM] pxa/cm-x300: add rtc-v3020 device registration
[linux-2.6-block.git] / arch / arm / mach-pxa / include / mach / uncompress.h
CommitLineData
1da177e4 1/*
a09e64fb 2 * arch/arm/mach-pxa/include/mach/uncompress.h
1da177e4
LT
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
49db76eb 12#include <linux/serial_reg.h>
02f65262 13#include <mach/regs-uart.h>
6d3dfe4a 14#include <asm/mach-types.h>
49db76eb 15
6d3dfe4a 16#define __REG(x) ((volatile unsigned long *)x)
1da177e4 17
6d3dfe4a 18static volatile unsigned long *UART = FFUART;
1da177e4 19
a081568d 20static inline void putc(char c)
1da177e4 21{
49db76eb
PZ
22 if (!(UART[UART_IER] & IER_UUE))
23 return;
24 while (!(UART[UART_LSR] & LSR_TDRQ))
a081568d 25 barrier();
49db76eb 26 UART[UART_TX] = c;
1da177e4
LT
27}
28
29/*
30 * This does not append a newline
31 */
a081568d 32static inline void flush(void)
1da177e4 33{
1da177e4
LT
34}
35
6d3dfe4a
EM
36static inline void arch_decomp_setup(void)
37{
aac42970 38 if (machine_is_littleton() || machine_is_intelmote2()
4036e1de 39 || machine_is_csb726() || machine_is_stargate2())
6d3dfe4a
EM
40 UART = STUART;
41}
42
1da177e4
LT
43/*
44 * nothing to do
45 */
1da177e4 46#define arch_decomp_wdog()