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
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
11 #include <asm/reboot.h>
13 #define SOFTRES_REG 0x1f000050
16 static void mips_machine_halt(void)
18 unsigned int __iomem *softres_reg =
19 ioremap(SOFTRES_REG, sizeof(unsigned int));
21 __raw_writel(GORESET, softres_reg);
24 static int __init mips_reboot_setup(void)
26 _machine_halt = mips_machine_halt;
27 pm_power_off = mips_machine_halt;
31 arch_initcall(mips_reboot_setup);