OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-tbox/] [uncompress.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * linux/include/asm-arm/arch-nexuspci/uncompress.h
3
 *  from linux/include/asm-arm/arch-ebsa110/uncompress.h
4
 *
5
 * Copyright (C) 1996,1997,1998 Russell King
6
 * Copyright (C) 1998, 1999 Phil Blundell
7
 */
8
 
9
#include <asm/io.h>
10
 
11
#define UARTBASE 0x00400000
12
 
13
/*
14
 * This does not append a newline
15
 */
16
static void puts(const char *s)
17
{
18
  while (*s)
19
  {
20
    char c = *(s++);
21
    while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
22
      barrier();
23
    __raw_writeb(c, UARTBASE);
24
    if (c == 10) {
25
      while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
26
        barrier();
27
      __raw_writeb(13, UARTBASE);
28
    }
29
  }
30
}
31
 
32
/*
33
 * nothing to do
34
 */
35
#define arch_decomp_setup()
36
 
37
/*
38
 * Stroke the watchdog so we don't get reset during decompression.
39
 */
40
#define arch_decomp_wdog()                              \
41
        do {                                            \
42
        __raw_writel(1, 0xa00000);                      \
43
        __raw_writel(0, 0xa00000);                       \
44
        } while (0)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.