x86: cpa self-test, WARN_ON()
[wrt350n-kernel.git] / include / asm-arm / arch-orion / uncompress.h
bloba1a222fb438ce3e27c67bc50dbaea83cfbb9a0d3
1 /*
2 * include/asm-arm/arch-orion/uncompress.h
4 * Tzachi Perelstein <tzachi@marvell.com>
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 */
11 #include <asm/arch/orion.h>
13 #define MV_UART_LSR ((volatile unsigned char *)(UART0_BASE + 0x14))
14 #define MV_UART_THR ((volatile unsigned char *)(UART0_BASE + 0x0))
16 #define LSR_THRE 0x20
18 static void putc(const char c)
20 int j = 0x1000;
21 while (--j && !(*MV_UART_LSR & LSR_THRE))
22 barrier();
23 *MV_UART_THR = c;
26 static void flush(void)
30 static void orion_early_putstr(const char *ptr)
32 char c;
33 while ((c = *ptr++) != '\0') {
34 if (c == '\n')
35 putc('\r');
36 putc(c);
41 * nothing to do
43 #define arch_decomp_setup()
44 #define arch_decomp_wdog()