uncompress.h 762 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11
/*
 * linux/include/asm-arm/arch-pxa/uncompress.h
 *
 * Author:	Nicolas Pitre
 * Copyright:	(C) 2001 MontaVista Software Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

12 13 14
#include <linux/serial_reg.h>
#include <asm/arch/pxa-regs.h>

15
#define __REG(x)	((volatile unsigned long *)x)
L
Linus Torvalds 已提交
16 17 18 19

#define UART		FFUART


20
static inline void putc(char c)
L
Linus Torvalds 已提交
21
{
22 23 24
	if (!(UART[UART_IER] & IER_UUE))
		return;
	while (!(UART[UART_LSR] & LSR_TDRQ))
25
		barrier();
26
	UART[UART_TX] = c;
L
Linus Torvalds 已提交
27 28 29 30 31
}

/*
 * This does not append a newline
 */
32
static inline void flush(void)
L
Linus Torvalds 已提交
33 34 35 36 37 38 39 40
{
}

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