diff options
-rw-r--r-- | arch/arm/mach-mvebu/kirkwood.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c index 6e754a38f418..4c7bbec11b1a 100644 --- a/arch/arm/mach-mvebu/kirkwood.c +++ b/arch/arm/mach-mvebu/kirkwood.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <plat/common.h> | 27 | #include <plat/common.h> |
28 | #include <plat/pcie.h> | 28 | #include <plat/pcie.h> |
29 | #include "kirkwood-pm.h" | 29 | #include "kirkwood-pm.h" |
30 | #include "common.h" | ||
30 | 31 | ||
31 | static struct resource kirkwood_cpufreq_resources[] = { | 32 | static struct resource kirkwood_cpufreq_resources[] = { |
32 | [0] = { | 33 | [0] = { |
@@ -68,23 +69,6 @@ static void __init kirkwood_cpuidle_init(void) | |||
68 | platform_device_register(&kirkwood_cpuidle); | 69 | platform_device_register(&kirkwood_cpuidle); |
69 | } | 70 | } |
70 | 71 | ||
71 | /* Temporary here since mach-mvebu has a function we can use */ | ||
72 | static void kirkwood_restart(enum reboot_mode mode, const char *cmd) | ||
73 | { | ||
74 | /* | ||
75 | * Enable soft reset to assert RSTOUTn. | ||
76 | */ | ||
77 | writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK); | ||
78 | |||
79 | /* | ||
80 | * Assert soft reset. | ||
81 | */ | ||
82 | writel(SOFT_RESET, SYSTEM_SOFT_RESET); | ||
83 | |||
84 | while (1) | ||
85 | ; | ||
86 | } | ||
87 | |||
88 | #define MV643XX_ETH_MAC_ADDR_LOW 0x0414 | 72 | #define MV643XX_ETH_MAC_ADDR_LOW 0x0414 |
89 | #define MV643XX_ETH_MAC_ADDR_HIGH 0x0418 | 73 | #define MV643XX_ETH_MAC_ADDR_HIGH 0x0418 |
90 | 74 | ||
@@ -204,6 +188,6 @@ static const char * const kirkwood_dt_board_compat[] = { | |||
204 | DT_MACHINE_START(KIRKWOOD_DT, "Marvell Kirkwood (Flattened Device Tree)") | 188 | DT_MACHINE_START(KIRKWOOD_DT, "Marvell Kirkwood (Flattened Device Tree)") |
205 | /* Maintainer: Jason Cooper <jason@lakedaemon.net> */ | 189 | /* Maintainer: Jason Cooper <jason@lakedaemon.net> */ |
206 | .init_machine = kirkwood_dt_init, | 190 | .init_machine = kirkwood_dt_init, |
207 | .restart = kirkwood_restart, | 191 | .restart = mvebu_restart, |
208 | .dt_compat = kirkwood_dt_board_compat, | 192 | .dt_compat = kirkwood_dt_board_compat, |
209 | MACHINE_END | 193 | MACHINE_END |