diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-05 04:48:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:20 -0500 |
commit | abea3f2ce05f57e185b080e4a313f9fb519a0ecb (patch) | |
tree | 276a3714bd1b97418b73f46ec0522e0b4a69a584 /arch/arm | |
parent | dd1661e27a7879d3af0024ba94e171522492dd2f (diff) |
ARM: restart: tegra: use new restart hook
Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/board-dt.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-harmony.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-paz00.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-seaboard.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-trimslice.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/common.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/system.h | 6 |
7 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c index 74743ad3d2d3..aaaa17c9d21a 100644 --- a/arch/arm/mach-tegra/board-dt.c +++ b/arch/arm/mach-tegra/board-dt.c | |||
@@ -132,5 +132,6 @@ DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)") | |||
132 | .init_irq = tegra_init_irq, | 132 | .init_irq = tegra_init_irq, |
133 | .timer = &tegra_timer, | 133 | .timer = &tegra_timer, |
134 | .init_machine = tegra_dt_init, | 134 | .init_machine = tegra_dt_init, |
135 | .restart = tegra_assert_system_reset, | ||
135 | .dt_compat = tegra_dt_board_compat, | 136 | .dt_compat = tegra_dt_board_compat, |
136 | MACHINE_END | 137 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c index f0bdc5e3fe52..7eaa52de756c 100644 --- a/arch/arm/mach-tegra/board-harmony.c +++ b/arch/arm/mach-tegra/board-harmony.c | |||
@@ -189,4 +189,5 @@ MACHINE_START(HARMONY, "harmony") | |||
189 | .init_irq = tegra_init_irq, | 189 | .init_irq = tegra_init_irq, |
190 | .timer = &tegra_timer, | 190 | .timer = &tegra_timer, |
191 | .init_machine = tegra_harmony_init, | 191 | .init_machine = tegra_harmony_init, |
192 | .restart = tegra_assert_system_reset, | ||
192 | MACHINE_END | 193 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c index 55c55ba89f1e..28c97e317407 100644 --- a/arch/arm/mach-tegra/board-paz00.c +++ b/arch/arm/mach-tegra/board-paz00.c | |||
@@ -192,4 +192,5 @@ MACHINE_START(PAZ00, "Toshiba AC100 / Dynabook AZ") | |||
192 | .init_irq = tegra_init_irq, | 192 | .init_irq = tegra_init_irq, |
193 | .timer = &tegra_timer, | 193 | .timer = &tegra_timer, |
194 | .init_machine = tegra_paz00_init, | 194 | .init_machine = tegra_paz00_init, |
195 | .restart = tegra_assert_system_reset, | ||
195 | MACHINE_END | 196 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/board-seaboard.c b/arch/arm/mach-tegra/board-seaboard.c index bf13ea355efc..9b2eca1f5283 100644 --- a/arch/arm/mach-tegra/board-seaboard.c +++ b/arch/arm/mach-tegra/board-seaboard.c | |||
@@ -286,6 +286,7 @@ MACHINE_START(SEABOARD, "seaboard") | |||
286 | .init_irq = tegra_init_irq, | 286 | .init_irq = tegra_init_irq, |
287 | .timer = &tegra_timer, | 287 | .timer = &tegra_timer, |
288 | .init_machine = tegra_seaboard_init, | 288 | .init_machine = tegra_seaboard_init, |
289 | .restart = tegra_assert_system_reset, | ||
289 | MACHINE_END | 290 | MACHINE_END |
290 | 291 | ||
291 | MACHINE_START(KAEN, "kaen") | 292 | MACHINE_START(KAEN, "kaen") |
@@ -295,6 +296,7 @@ MACHINE_START(KAEN, "kaen") | |||
295 | .init_irq = tegra_init_irq, | 296 | .init_irq = tegra_init_irq, |
296 | .timer = &tegra_timer, | 297 | .timer = &tegra_timer, |
297 | .init_machine = tegra_kaen_init, | 298 | .init_machine = tegra_kaen_init, |
299 | .restart = tegra_assert_system_reset, | ||
298 | MACHINE_END | 300 | MACHINE_END |
299 | 301 | ||
300 | MACHINE_START(WARIO, "wario") | 302 | MACHINE_START(WARIO, "wario") |
@@ -304,4 +306,5 @@ MACHINE_START(WARIO, "wario") | |||
304 | .init_irq = tegra_init_irq, | 306 | .init_irq = tegra_init_irq, |
305 | .timer = &tegra_timer, | 307 | .timer = &tegra_timer, |
306 | .init_machine = tegra_wario_init, | 308 | .init_machine = tegra_wario_init, |
309 | .restart = tegra_assert_system_reset, | ||
307 | MACHINE_END | 310 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c index 1a6617b7806f..1fa9e48e8ec6 100644 --- a/arch/arm/mach-tegra/board-trimslice.c +++ b/arch/arm/mach-tegra/board-trimslice.c | |||
@@ -178,4 +178,5 @@ MACHINE_START(TRIMSLICE, "trimslice") | |||
178 | .init_irq = tegra_init_irq, | 178 | .init_irq = tegra_init_irq, |
179 | .timer = &tegra_timer, | 179 | .timer = &tegra_timer, |
180 | .init_machine = tegra_trimslice_init, | 180 | .init_machine = tegra_trimslice_init, |
181 | .restart = tegra_assert_system_reset, | ||
181 | MACHINE_END | 182 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 690b888be506..20f396d740fa 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c | |||
@@ -31,8 +31,6 @@ | |||
31 | #include "clock.h" | 31 | #include "clock.h" |
32 | #include "fuse.h" | 32 | #include "fuse.h" |
33 | 33 | ||
34 | void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset; | ||
35 | |||
36 | void tegra_assert_system_reset(char mode, const char *cmd) | 34 | void tegra_assert_system_reset(char mode, const char *cmd) |
37 | { | 35 | { |
38 | void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04); | 36 | void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04); |
diff --git a/arch/arm/mach-tegra/include/mach/system.h b/arch/arm/mach-tegra/include/mach/system.h index 027c4215d313..b87b8a4bc30a 100644 --- a/arch/arm/mach-tegra/include/mach/system.h +++ b/arch/arm/mach-tegra/include/mach/system.h | |||
@@ -21,9 +21,9 @@ | |||
21 | #ifndef __MACH_TEGRA_SYSTEM_H | 21 | #ifndef __MACH_TEGRA_SYSTEM_H |
22 | #define __MACH_TEGRA_SYSTEM_H | 22 | #define __MACH_TEGRA_SYSTEM_H |
23 | 23 | ||
24 | #include <mach/iomap.h> | 24 | static inline void arch_reset(char mode, const char *cmd) |
25 | 25 | { | |
26 | extern void (*arch_reset)(char mode, const char *cmd); | 26 | } |
27 | 27 | ||
28 | static inline void arch_idle(void) | 28 | static inline void arch_idle(void) |
29 | { | 29 | { |