Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uncompress.h
Go to the documentation of this file.
1 /* arch/arm/mach-vt8500/include/mach/uncompress.h
2  *
3  * Copyright (C) 2010 Alexey Charkov <[email protected]>
4  *
5  * Based on arch/arm/mach-dove/include/mach/uncompress.h
6  *
7  * This software is licensed under the terms of the GNU General Public
8  * License version 2, as published by the Free Software Foundation, and
9  * may be copied, distributed, and modified under those terms.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  */
17 
18 #define UART0_PHYS 0xd8200000
19 #define UART0_ADDR(x) *(volatile unsigned char *)(UART0_PHYS + x)
20 
21 static void putc(const char c)
22 {
23  while (UART0_ADDR(0x1c) & 0x2)
24  /* Tx busy, wait and poll */;
25 
26  UART0_ADDR(0) = c;
27 }
28 
29 static void flush(void)
30 {
31 }
32 
33 /*
34  * nothing to do
35  */
36 #define arch_decomp_setup()
37 #define arch_decomp_wdog()