Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/mach-footbridge/include/mach/uncompress.h |
| 4 | * |
| 5 | * Copyright (C) 1996-1999 Russell King |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 6 | */ |
| 7 | #include <asm/mach-types.h> |
| 8 | |
| 9 | /* |
| 10 | * Note! This could cause problems on the NetWinder |
| 11 | */ |
| 12 | #define DC21285_BASE ((volatile unsigned int *)0x42000160) |
| 13 | #define SER0_BASE ((volatile unsigned char *)0x7c0003f8) |
| 14 | |
| 15 | static inline void putc(char c) |
| 16 | { |
| 17 | if (machine_is_netwinder()) { |
| 18 | while ((SER0_BASE[5] & 0x60) != 0x60) |
| 19 | barrier(); |
| 20 | SER0_BASE[0] = c; |
| 21 | } else { |
| 22 | while (DC21285_BASE[6] & 8); |
| 23 | DC21285_BASE[0] = c; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | static inline void flush(void) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | /* |
| 32 | * nothing to do |
| 33 | */ |
| 34 | #define arch_decomp_setup() |