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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-sa1100/] [system.h] - Blame information for rev 1276

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * linux/include/asm-arm/arch-sa1100/system.h
3
 *
4
 * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
5
 */
6
#include <linux/config.h>
7
#include <asm/arch/hardware.h>
8
 
9
static inline void arch_idle(void)
10
{
11
        cpu_do_idle();
12
}
13
 
14
#ifdef CONFIG_SA1100_VICTOR
15
 
16
/* power off unconditionally */
17
#define arch_reset(x) machine_power_off()
18
 
19
#else
20
 
21
static inline void arch_reset(char mode)
22
{
23
        if (mode == 's') {
24
                /* Jump into ROM at address 0 */
25
                cpu_reset(0);
26
        } else {
27
                /* Use on-chip reset capability */
28
                RSRR = RSRR_SWR;
29
        }
30
}
31
 
32
#endif

powered by: WebSVN 2.1.0

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