diff options
Diffstat (limited to 'arch/mips/lemote/lm2e/reset.c')
-rw-r--r-- | arch/mips/lemote/lm2e/reset.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c deleted file mode 100644 index 0faa140f4036..000000000000 --- a/arch/mips/lemote/lm2e/reset.c +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify it | ||
3 | * under the terms of the GNU General Public License as published by the | ||
4 | * Free Software Foundation; either version 2 of the License, or (at your | ||
5 | * option) any later version. | ||
6 | * | ||
7 | * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology | ||
8 | * Author: Fuxin Zhang, zhangfx@lemote.com | ||
9 | * Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology | ||
10 | * Author: Zhangjin Wu, wuzj@lemote.com | ||
11 | */ | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/pm.h> | ||
14 | #include <linux/io.h> | ||
15 | |||
16 | #include <asm/reboot.h> | ||
17 | #include <asm/mips-boards/bonito64.h> | ||
18 | |||
19 | static void loongson2e_restart(char *command) | ||
20 | { | ||
21 | /* do preparation for reboot */ | ||
22 | BONITO_BONGENCFG &= ~(1 << 2); | ||
23 | BONITO_BONGENCFG |= (1 << 2); | ||
24 | |||
25 | /* reboot via jumping to boot base address */ | ||
26 | ((void (*)(void))ioremap_nocache(BONITO_BOOT_BASE, 4)) (); | ||
27 | } | ||
28 | |||
29 | static void loongson2e_halt(void) | ||
30 | { | ||
31 | while (1) ; | ||
32 | } | ||
33 | |||
34 | static int __init mips_reboot_setup(void) | ||
35 | { | ||
36 | _machine_restart = loongson2e_restart; | ||
37 | _machine_halt = loongson2e_halt; | ||
38 | pm_power_off = loongson2e_halt; | ||
39 | |||
40 | return 0; | ||
41 | } | ||
42 | |||
43 | arch_initcall(mips_reboot_setup); | ||