ARM: mvebu: move armada-370-xp.h in mach dir
[deliverable/linux.git] / arch / arm / mach-mvebu / include / mach / uncompress.h
1 /*
2 * Marvell Armada SoC kernel uncompression UART routines
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Lior Amsalem <alior@marvell.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12
13 #include <mach/armada-370-xp.h>
14
15 #define UART_THR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\
16 + 0x12000))
17 #define UART_LSR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\
18 + 0x12014))
19
20 #define LSR_THRE 0x20
21
22 static void putc(const char c)
23 {
24 int i;
25
26 for (i = 0; i < 0x1000; i++) {
27 /* Transmit fifo not full? */
28 if (*UART_LSR & LSR_THRE)
29 break;
30 }
31
32 *UART_THR = c;
33 }
34
35 static void flush(void)
36 {
37 }
38
39 /*
40 * nothing to do
41 */
42 #define arch_decomp_setup()
43 #define arch_decomp_wdog()
This page took 0.040326 seconds and 5 git commands to generate.