IB/srp: Let srp_abort() return FAST_IO_FAIL if TL offline
[linux/fpc-iii.git] / arch / mips / mti-sead3 / sead3-reset.c
blob20475c5e7b9ce383a2cf0e8ee53af773d387e7a5
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
7 */
8 #include <linux/io.h>
9 #include <linux/pm.h>
11 #include <asm/reboot.h>
12 #include <asm/mips-boards/generic.h>
14 static void mips_machine_restart(char *command)
16 unsigned int __iomem *softres_reg =
17 ioremap(SOFTRES_REG, sizeof(unsigned int));
19 __raw_writel(GORESET, softres_reg);
22 static void mips_machine_halt(void)
24 unsigned int __iomem *softres_reg =
25 ioremap(SOFTRES_REG, sizeof(unsigned int));
27 __raw_writel(GORESET, softres_reg);
30 static int __init mips_reboot_setup(void)
32 _machine_restart = mips_machine_restart;
33 _machine_halt = mips_machine_halt;
34 pm_power_off = mips_machine_halt;
36 return 0;
39 arch_initcall(mips_reboot_setup);