Merge tag 'rpi-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren...
[deliverable/linux.git] / arch / arm / mach-bcm2835 / include / mach / uncompress.h
1 /*
2 * Copyright (C) 2010 Broadcom
3 * Copyright (C) 2003 ARM Limited
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16 #include <linux/io.h>
17 #include <linux/amba/serial.h>
18 #include <mach/bcm2835_soc.h>
19
20 #define UART0_BASE BCM2835_DEBUG_PHYS
21
22 #define BCM2835_UART_DR IOMEM(UART0_BASE + UART01x_DR)
23 #define BCM2835_UART_FR IOMEM(UART0_BASE + UART01x_FR)
24 #define BCM2835_UART_CR IOMEM(UART0_BASE + UART011_CR)
25
26 static inline void putc(int c)
27 {
28 while (__raw_readl(BCM2835_UART_FR) & UART01x_FR_TXFF)
29 barrier();
30
31 __raw_writel(c, BCM2835_UART_DR);
32 }
33
34 static inline void flush(void)
35 {
36 int fr;
37
38 do {
39 fr = __raw_readl(BCM2835_UART_FR);
40 barrier();
41 } while ((fr & (UART011_FR_TXFE | UART01x_FR_BUSY)) != UART011_FR_TXFE);
42 }
43
44 #define arch_decomp_setup()
45 #define arch_decomp_wdog()
This page took 0.030418 seconds and 5 git commands to generate.