aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-tcc/include/mach/uncompress.h
diff options
context:
space:
mode:
authorHans J. Koch <hjk@linutronix.de>2010-09-17 12:13:56 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-09-17 15:55:07 -0400
commit83ef3338a2ae5d5bd9f5f6803b900b8067660054 (patch)
treea759da3a601d092889321cf49b9f003726147be1 /arch/arm/plat-tcc/include/mach/uncompress.h
parent509344b8b4d365b7ff3bce97198d83a57b7c3f31 (diff)
ARM: Introduce plat-tcc
This patch introduces support for the tcc platform by creating an arch/arm/plat-tcc and arch/arm/mach-tcc8k directories and adding basic include files plus Kconfig and Makefile. Signed-off-by: "Hans J. Koch" <hjk@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/plat-tcc/include/mach/uncompress.h')
-rw-r--r--arch/arm/plat-tcc/include/mach/uncompress.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/plat-tcc/include/mach/uncompress.h b/arch/arm/plat-tcc/include/mach/uncompress.h
new file mode 100644
index 000000000000..7a3e33a27a30
--- /dev/null
+++ b/arch/arm/plat-tcc/include/mach/uncompress.h
@@ -0,0 +1,34 @@
1/*
2 * Copyright (C) 2009 Hans J. Koch <hjk@linutronix.de>
3 *
4 * This file is licensed under the terms of the GPL version 2.
5 */
6
7#include <linux/serial_reg.h>
8#include <linux/types.h>
9
10#include <mach/tcc8k-regs.h>
11
12unsigned int system_rev;
13
14#define ID_MASK 0x7fff
15
16static void putc(int c)
17{
18 u32 *uart_lsr = (u32 *)(UART_BASE_PHYS + (UART_LSR << 2));
19 u32 *uart_tx = (u32 *)(UART_BASE_PHYS + (UART_TX << 2));
20
21 while (!(*uart_lsr & UART_LSR_THRE))
22 barrier();
23 *uart_tx = c;
24}
25
26static inline void flush(void)
27{
28}
29
30/*
31 * nothing to do
32 */
33#define arch_decomp_setup()
34#define arch_decomp_wdog()