blob: a354f4d092c8b55dcfe536d1950f9f79da4efb25 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
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 Kingfced80c2008-09-06 12:10:45 +010010#include <linux/io.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010011#include <mach/hardware.h>
12#include <asm/hardware/iomd.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010013
14static inline void arch_idle(void)
15{
16 cpu_do_idle();
17}
18
Russell Kingbe093be2009-03-19 16:20:24 +000019static inline void arch_reset(char mode, const char *cmd)
Russell Kinga09e64f2008-08-05 16:14:15 +010020{
21 iomd_writeb(0, IOMD_ROMCR0);
22
23 /*
24 * Jump into the ROM
25 */
Russell Kinge879c862011-11-01 13:16:26 +000026 soft_restart(0);
Russell Kinga09e64f2008-08-05 16:14:15 +010027}