diff options
Diffstat (limited to 'arch/mips/mips-boards/generic/reset.c')
-rw-r--r-- | arch/mips/mips-boards/generic/reset.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/mips/mips-boards/generic/reset.c b/arch/mips/mips-boards/generic/reset.c index 583d468d98a9..5f73ff6180eb 100644 --- a/arch/mips/mips-boards/generic/reset.c +++ b/arch/mips/mips-boards/generic/reset.c | |||
@@ -27,15 +27,9 @@ | |||
27 | #include <asm/io.h> | 27 | #include <asm/io.h> |
28 | #include <asm/reboot.h> | 28 | #include <asm/reboot.h> |
29 | #include <asm/mips-boards/generic.h> | 29 | #include <asm/mips-boards/generic.h> |
30 | #if defined(CONFIG_MIPS_ATLAS) | ||
31 | #include <asm/mips-boards/atlas.h> | ||
32 | #endif | ||
33 | 30 | ||
34 | static void mips_machine_restart(char *command); | 31 | static void mips_machine_restart(char *command); |
35 | static void mips_machine_halt(void); | 32 | static void mips_machine_halt(void); |
36 | #if defined(CONFIG_MIPS_ATLAS) | ||
37 | static void atlas_machine_power_off(void); | ||
38 | #endif | ||
39 | 33 | ||
40 | static void mips_machine_restart(char *command) | 34 | static void mips_machine_restart(char *command) |
41 | { | 35 | { |
@@ -53,22 +47,11 @@ static void mips_machine_halt(void) | |||
53 | __raw_writel(GORESET, softres_reg); | 47 | __raw_writel(GORESET, softres_reg); |
54 | } | 48 | } |
55 | 49 | ||
56 | #if defined(CONFIG_MIPS_ATLAS) | ||
57 | static void atlas_machine_power_off(void) | ||
58 | { | ||
59 | unsigned int __iomem *psustby_reg = ioremap(ATLAS_PSUSTBY_REG, sizeof(unsigned int)); | ||
60 | |||
61 | writew(ATLAS_GOSTBY, psustby_reg); | ||
62 | } | ||
63 | #endif | ||
64 | 50 | ||
65 | void mips_reboot_setup(void) | 51 | void mips_reboot_setup(void) |
66 | { | 52 | { |
67 | _machine_restart = mips_machine_restart; | 53 | _machine_restart = mips_machine_restart; |
68 | _machine_halt = mips_machine_halt; | 54 | _machine_halt = mips_machine_halt; |
69 | #if defined(CONFIG_MIPS_ATLAS) | ||
70 | pm_power_off = atlas_machine_power_off; | ||
71 | #endif | ||
72 | #if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_SEAD) | 55 | #if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_SEAD) |
73 | pm_power_off = mips_machine_halt; | 56 | pm_power_off = mips_machine_halt; |
74 | #endif | 57 | #endif |