Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 Zabel | 49db76e | 2007-11-22 17:57:30 +0100 | [diff] [blame^] | 12 | #include <linux/serial_reg.h> |
| 13 | #include <asm/arch/pxa-regs.h> |
| 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #define FFUART ((volatile unsigned long *)0x40100000) |
| 16 | #define BTUART ((volatile unsigned long *)0x40200000) |
| 17 | #define STUART ((volatile unsigned long *)0x40700000) |
Matt Reimer | d9e2964 | 2005-10-28 16:25:02 +0100 | [diff] [blame] | 18 | #define HWUART ((volatile unsigned long *)0x41600000) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
| 20 | #define UART FFUART |
| 21 | |
| 22 | |
Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 23 | static inline void putc(char c) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | { |
Philipp Zabel | 49db76e | 2007-11-22 17:57:30 +0100 | [diff] [blame^] | 25 | if (!(UART[UART_IER] & IER_UUE)) |
| 26 | return; |
| 27 | while (!(UART[UART_LSR] & LSR_TDRQ)) |
Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 28 | barrier(); |
Philipp Zabel | 49db76e | 2007-11-22 17:57:30 +0100 | [diff] [blame^] | 29 | UART[UART_TX] = c; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | /* |
| 33 | * This does not append a newline |
| 34 | */ |
Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 35 | static inline void flush(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | /* |
| 40 | * nothing to do |
| 41 | */ |
| 42 | #define arch_decomp_setup() |
| 43 | #define arch_decomp_wdog() |