aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-tcc/include/mach/uncompress.h
blob: 7a3e33a27a30de4152fcb4e78bfaa917988ed169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2009 Hans J. Koch <hjk@linutronix.de>
 *
 * This file is licensed under the terms of the GPL version 2.
 */

#include <linux/serial_reg.h>
#include <linux/types.h>

#include <mach/tcc8k-regs.h>

unsigned int system_rev;

#define ID_MASK			0x7fff

static void putc(int c)
{
	u32 *uart_lsr = (u32 *)(UART_BASE_PHYS + (UART_LSR << 2));
	u32 *uart_tx = (u32 *)(UART_BASE_PHYS + (UART_TX << 2));

	while (!(*uart_lsr & UART_LSR_THRE))
		barrier();
	*uart_tx = c;
}

static inline void flush(void)
{
}

/*
 * nothing to do
 */
#define arch_decomp_setup()
#define arch_decomp_wdog()