system.h 677 字节
Newer Older
1
/*
2
 * arch/arm/mach-orion5x/include/mach/system.h
3 4 5
 *
 * Tzachi Perelstein <tzachi@marvell.com>
 *
L
Lennert Buytenhek 已提交
6 7
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
8 9 10 11 12 13
 * warranty of any kind, whether express or implied.
 */

#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

14
#include <mach/bridge-regs.h>
15 16 17 18 19 20

static inline void arch_idle(void)
{
	cpu_do_idle();
}

21
static inline void arch_reset(char mode, const char *cmd)
22 23 24 25
{
	/*
	 * Enable and issue soft reset
	 */
26
	orion5x_setbits(RSTOUTn_MASK, (1 << 2));
27
	orion5x_setbits(CPU_SOFT_RESET, 1);
28 29
	mdelay(200);
	orion5x_clrbits(CPU_SOFT_RESET, 1);
30 31
}

L
Lennert Buytenhek 已提交
32

33
#endif