aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-clps7500/include/mach/system.h
blob: 624fc2830ae0b34ec7ae576bd417b81985ede221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * arch/arm/mach-clps7500/include/mach/system.h
 *
 * Copyright (c) 1999 Nexus Electronics Ltd.
 */
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

#include <asm/hardware/iomd.h>
#include <asm/io.h>

static inline void arch_idle(void)
{
	iomd_writeb(0, IOMD_SUSMODE);
}

#define arch_reset(mode)			\
	do {					\
		iomd_writeb(0, IOMD_ROMCR0);	\
		cpu_reset(0);			\
	} while (0)

#endif