summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c
blob: 02f7e3695a14d2572b6f56d7749909f553855c0e (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
/*
 * linux/include/asm/arch-W90N745/uncompress.c
 * 2003 winbond
 */

#include <asm/hardware.h>

static int s3c4510b_decomp_setup()
{
	CSR_WRITE(DEBUG_UARTLCON_BASE, DEBUG_ULCON_REG_VAL);
	CSR_WRITE(DEBUG_UARTCONT_BASE, DEBUG_UCON_REG_VAL);
	CSR_WRITE(DEBUG_UARTBRD_BASE,  DEBUG_UBRDIV_REG_VAL);
}

static int s3c4510b_putc(char c)
{
	CSR_WRITE(DEBUG_TX_BUFF_BASE, c);
	while(!(CSR_READ(DEBUG_CHK_STAT_BASE) & DEBUG_TX_DONE_CHECK_BIT));

	if(c == '\n')
		s3c4510b_putc('\r');
}

static void s3c4510b_puts(const char *s)
{
	while(*s != '\0')
		s3c4510b_putc(*s++);
}