blob: 0f0612f79b2b0924476c0433add323028aa0372e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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>
Russell King674c0452005-10-28 14:25:28 +01007#include <asm/hardware.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9static inline void arch_idle(void)
10{
11 cpu_do_idle();
12}
13
14static inline void arch_reset(char mode)
15{
16 if (mode == 's') {
17 /* Jump into ROM at address 0 */
18 cpu_reset(0);
19 } else {
20 /* Use on-chip reset capability */
21 RSRR = RSRR_SWR;
22 }
23}