aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-keystone/include/mach/uncompress.h')
-rw-r--r--arch/arm/mach-keystone/include/mach/uncompress.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/include/mach/uncompress.h b/arch/arm/mach-keystone/include/mach/uncompress.h
new file mode 100644
index 00000000000..866ea7b355f
--- /dev/null
+++ b/arch/arm/mach-keystone/include/mach/uncompress.h
@@ -0,0 +1,48 @@
1/*
2 * Copyright 2010-2012 Texas Instruments, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#ifndef __MACH_KEYSTONE_UNCOMPRESS_H__
17#define __MACH_KEYSTONE_UNCOMPRESS_H__
18
19#include <linux/types.h>
20#include <linux/serial_reg.h>
21
22#include <mach/serial.h>
23
24static void putc(char c)
25{
26#ifdef UART_PHYS
27 u32 *uart = (u32 *)UART_PHYS;
28
29 while (!(uart[UART_LSR] & UART_LSR_THRE))
30 barrier();
31 uart[UART_TX] = c;
32#endif
33}
34
35static inline void flush(void)
36{
37#ifdef UART_PHYS
38 u32 *uart = (u32 *)UART_PHYS;
39
40 while (!(uart[UART_LSR] & UART_LSR_THRE))
41 barrier();
42#endif
43}
44
45#define arch_decomp_setup()
46#define arch_decomp_wdog()
47
48#endif