Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
[linux-2.6-block.git] / arch / arm / mach-spear / include / mach / uncompress.h
CommitLineData
bf976b51 1/*
2 * arch/arm/plat-spear/include/plat/uncompress.h
3 *
4 * Serial port stubs for kernel decompress status messages
5 *
6 * Copyright (C) 2009 ST Microelectronics
da89947b 7 * Viresh Kumar <vireshk@kernel.org>
bf976b51 8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14#include <linux/io.h>
15#include <linux/amba/serial.h>
5019f0b1 16#include <mach/spear.h>
bf976b51 17
18#ifndef __PLAT_UNCOMPRESS_H
19#define __PLAT_UNCOMPRESS_H
20/*
21 * This does not append a newline
22 */
23static inline void putc(int c)
24{
25 void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;
26
ac1556b3 27 while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
bf976b51 28 barrier();
29
ac1556b3 30 writel_relaxed(c, base + UART01x_DR);
bf976b51 31}
32
33static inline void flush(void)
34{
35}
36
37/*
38 * nothing to do
39 */
40#define arch_decomp_setup()
bf976b51 41
42#endif /* __PLAT_UNCOMPRESS_H */