Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* arch/arm/mach-msm/include/mach/uncompress.h |
| 2 | * |
| 3 | * Copyright (C) 2007 Google, Inc. |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef __ASM_ARCH_MSM_UNCOMPRESS_H |
| 17 | |
| 18 | #include "hardware.h" |
Pavel Machek | 6339f66 | 2009-11-02 11:48:29 +0100 | [diff] [blame^] | 19 | #include "linux/io.h" |
| 20 | #include "mach/msm_iomap.h" |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 21 | |
| 22 | static void putc(int c) |
| 23 | { |
Pavel Machek | 6339f66 | 2009-11-02 11:48:29 +0100 | [diff] [blame^] | 24 | #if defined(MSM_DEBUG_UART_PHYS) |
| 25 | unsigned base = MSM_DEBUG_UART_PHYS; |
| 26 | while (!(readl(base + 0x08) & 0x04)) ; |
| 27 | writel(c, base + 0x0c); |
| 28 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | static inline void flush(void) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | static inline void arch_decomp_setup(void) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | static inline void arch_decomp_wdog(void) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | #endif |