Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-rpc/include/mach/system.h |
| 3 | * |
| 4 | * Copyright (C) 1996-1999 Russell King. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 10 | #include <linux/io.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 11 | #include <mach/hardware.h> |
| 12 | #include <asm/hardware/iomd.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 13 | |
| 14 | static inline void arch_idle(void) |
| 15 | { |
| 16 | cpu_do_idle(); |
| 17 | } |
| 18 | |
Russell King | be093be | 2009-03-19 16:20:24 +0000 | [diff] [blame] | 19 | static inline void arch_reset(char mode, const char *cmd) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | { |
| 21 | iomd_writeb(0, IOMD_ROMCR0); |
| 22 | |
| 23 | /* |
| 24 | * Jump into the ROM |
| 25 | */ |
Russell King | e879c86 | 2011-11-01 13:16:26 +0000 | [diff] [blame^] | 26 | soft_restart(0); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | } |