aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-orion5x/uncompress.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-orion5x/uncompress.h')
-rw-r--r--include/asm-arm/arch-orion5x/uncompress.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/asm-arm/arch-orion5x/uncompress.h b/include/asm-arm/arch-orion5x/uncompress.h
new file mode 100644
index 000000000000..5c13d4fafb4e
--- /dev/null
+++ b/include/asm-arm/arch-orion5x/uncompress.h
@@ -0,0 +1,34 @@
1/*
2 * include/asm-arm/arch-orion5x/uncompress.h
3 *
4 * Tzachi Perelstein <tzachi@marvell.com>
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#include <asm/arch/orion5x.h>
12
13#define MV_UART_THR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x0))
14#define MV_UART_LSR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x14))
15
16#define LSR_THRE 0x20
17
18static void putc(const char c)
19{
20 int j = 0x1000;
21 while (--j && !(*MV_UART_LSR & LSR_THRE))
22 barrier();
23 *MV_UART_THR = c;
24}
25
26static void flush(void)
27{
28}
29
30/*
31 * nothing to do
32 */
33#define arch_decomp_setup()
34#define arch_decomp_wdog()