blob: d94292c29d8e27ed6a736a8bb24b7d8f640d3dd0 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/* 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 Machek6339f662009-11-02 11:48:29 +010019#include "linux/io.h"
20#include "mach/msm_iomap.h"
Russell Kinga09e64f2008-08-05 16:14:15 +010021
22static void putc(int c)
23{
Pavel Machek6339f662009-11-02 11:48:29 +010024#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 Kinga09e64f2008-08-05 16:14:15 +010029}
30
31static inline void flush(void)
32{
33}
34
35static inline void arch_decomp_setup(void)
36{
37}
38
39static inline void arch_decomp_wdog(void)
40{
41}
42
43#endif