ARM: dts: bcm: Add missing UARTs for bcm11351 (bcm281xx)
[linux-2.6.git] / arch / mips / mti-malta / malta-reset.c
blobd627d4b2b47f4f456addef452e77c16513238bd7
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 * Carsten Langgaard, carstenl@mips.com
7 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
8 */
9 #include <linux/io.h>
10 #include <linux/pm.h>
12 #include <asm/reboot.h>
14 #define SOFTRES_REG 0x1f000500
15 #define GORESET 0x42
17 static void mips_machine_restart(char *command)
19 unsigned int __iomem *softres_reg =
20 ioremap(SOFTRES_REG, sizeof(unsigned int));
22 __raw_writel(GORESET, softres_reg);
25 static void mips_machine_halt(void)
27 unsigned int __iomem *softres_reg =
28 ioremap(SOFTRES_REG, sizeof(unsigned int));
30 __raw_writel(GORESET, softres_reg);
33 static int __init mips_reboot_setup(void)
35 _machine_restart = mips_machine_restart;
36 _machine_halt = mips_machine_halt;
37 pm_power_off = mips_machine_halt;
39 return 0;
41 arch_initcall(mips_reboot_setup);