blob: 3faad53a684819b07db00522b2dd63c148fe6466 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/include/asm-arm/arch-pxa/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
Philipp Zabel49db76e2007-11-22 17:57:30 +010012#include <linux/serial_reg.h>
13#include <asm/arch/pxa-regs.h>
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#define FFUART ((volatile unsigned long *)0x40100000)
16#define BTUART ((volatile unsigned long *)0x40200000)
17#define STUART ((volatile unsigned long *)0x40700000)
Matt Reimerd9e29642005-10-28 16:25:02 +010018#define HWUART ((volatile unsigned long *)0x41600000)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20#define UART FFUART
21
22
Russell Kinga0815682006-03-28 10:24:33 +010023static inline void putc(char c)
Linus Torvalds1da177e2005-04-16 15:20:36 -070024{
Philipp Zabel49db76e2007-11-22 17:57:30 +010025 if (!(UART[UART_IER] & IER_UUE))
26 return;
27 while (!(UART[UART_LSR] & LSR_TDRQ))
Russell Kinga0815682006-03-28 10:24:33 +010028 barrier();
Philipp Zabel49db76e2007-11-22 17:57:30 +010029 UART[UART_TX] = c;
Linus Torvalds1da177e2005-04-16 15:20:36 -070030}
31
32/*
33 * This does not append a newline
34 */
Russell Kinga0815682006-03-28 10:24:33 +010035static inline void flush(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070036{
Linus Torvalds1da177e2005-04-16 15:20:36 -070037}
38
39/*
40 * nothing to do
41 */
42#define arch_decomp_setup()
43#define arch_decomp_wdog()