Merge branch 'linus' into perfcounters/core
[linux-2.6-block.git] / arch / arm / mach-orion5x / include / mach / system.h
CommitLineData
585cf175 1/*
a09e64fb 2 * arch/arm/mach-orion5x/include/mach/system.h
585cf175
TP
3 *
4 * Tzachi Perelstein <tzachi@marvell.com>
5 *
159ffb3a
LB
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
585cf175
TP
8 * warranty of any kind, whether express or implied.
9 */
10
11#ifndef __ASM_ARCH_SYSTEM_H
12#define __ASM_ARCH_SYSTEM_H
13
fdd8b079 14#include <mach/bridge-regs.h>
585cf175
TP
15
16static inline void arch_idle(void)
17{
18 cpu_do_idle();
19}
20
be093beb 21static inline void arch_reset(char mode, const char *cmd)
585cf175
TP
22{
23 /*
24 * Enable and issue soft reset
25 */
9dd0b194
LB
26 orion5x_setbits(CPU_RESET_MASK, (1 << 2));
27 orion5x_setbits(CPU_SOFT_RESET, 1);
585cf175
TP
28}
29
159ffb3a 30
585cf175 31#endif