| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | *  linux/include/asm-arm/arch-ebsa110/uncompress.h | 
|  | 3 | * | 
|  | 4 | *  Copyright (C) 1996,1997,1998 Russell King | 
|  | 5 | * | 
|  | 6 | * This program is free software; you can redistribute it and/or modify | 
|  | 7 | * it under the terms of the GNU General Public License version 2 as | 
|  | 8 | * published by the Free Software Foundation. | 
|  | 9 | */ | 
|  | 10 |  | 
| Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 11 | #include <linux/serial_reg.h> | 
|  | 12 |  | 
| Russell King | f1dc24d | 2006-04-07 11:04:54 +0100 | [diff] [blame] | 13 | #define SERIAL_BASE	((unsigned char *)0xf0000be0) | 
| Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 14 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | /* | 
|  | 16 | * This does not append a newline | 
|  | 17 | */ | 
| Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 18 | static inline void putc(int c) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | { | 
| Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 20 | unsigned char v, *base = SERIAL_BASE; | 
|  | 21 |  | 
|  | 22 | do { | 
|  | 23 | v = base[UART_LSR << 2]; | 
|  | 24 | barrier(); | 
|  | 25 | } while (!(v & UART_LSR_THRE)); | 
|  | 26 |  | 
|  | 27 | base[UART_TX << 2] = c; | 
|  | 28 | } | 
|  | 29 |  | 
|  | 30 | static inline void flush(void) | 
|  | 31 | { | 
|  | 32 | unsigned char v, *base = SERIAL_BASE; | 
|  | 33 |  | 
|  | 34 | do { | 
|  | 35 | v = base[UART_LSR << 2]; | 
|  | 36 | barrier(); | 
|  | 37 | } while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) != | 
|  | 38 | (UART_LSR_TEMT|UART_LSR_THRE)); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | } | 
|  | 40 |  | 
|  | 41 | /* | 
|  | 42 | * nothing to do | 
|  | 43 | */ | 
|  | 44 | #define arch_decomp_setup() | 
|  | 45 | #define arch_decomp_wdog() |