blob: 653f992bbe6017e8c2a6a60a169d4f923eb51125 [file] [log] [blame]
Tzachi Perelstein585cf172007-10-23 15:14:41 -04001/*
2 * include/asm-arm/arch-orion/system.h
3 *
4 * Tzachi Perelstein <tzachi@marvell.com>
5 *
Lennert Buytenhek159ffb32008-03-27 14:51:41 -04006 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
Tzachi Perelstein585cf172007-10-23 15:14:41 -04008 * warranty of any kind, whether express or implied.
9 */
10
11#ifndef __ASM_ARCH_SYSTEM_H
12#define __ASM_ARCH_SYSTEM_H
13
14#include <asm/arch/hardware.h>
15#include <asm/arch/orion.h>
16
17static inline void arch_idle(void)
18{
19 cpu_do_idle();
20}
21
22static inline void arch_reset(char mode)
23{
24 /*
25 * Enable and issue soft reset
26 */
27 orion_setbits(CPU_RESET_MASK, (1 << 2));
28 orion_setbits(CPU_SOFT_RESET, 1);
29}
30
Lennert Buytenhek159ffb32008-03-27 14:51:41 -040031
Tzachi Perelstein585cf172007-10-23 15:14:41 -040032#endif