Commit d9ca5839fd4b0c820c19401b72962a1d099cb99e
1 parent
1f34f0e2fb
Exists in
master
and in
6 other branches
ARM: restart: sa1100: 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>
Showing 16 changed files with 25 additions and 9 deletions Side-by-side Diff
- arch/arm/mach-sa1100/assabet.c
- arch/arm/mach-sa1100/badge4.c
- arch/arm/mach-sa1100/cerf.c
- arch/arm/mach-sa1100/collie.c
- arch/arm/mach-sa1100/generic.c
- arch/arm/mach-sa1100/generic.h
- arch/arm/mach-sa1100/h3100.c
- arch/arm/mach-sa1100/h3600.c
- arch/arm/mach-sa1100/hackkit.c
- arch/arm/mach-sa1100/include/mach/system.h
- arch/arm/mach-sa1100/jornada720.c
- arch/arm/mach-sa1100/lart.c
- arch/arm/mach-sa1100/nanoengine.c
- arch/arm/mach-sa1100/pleb.c
- arch/arm/mach-sa1100/shannon.c
- arch/arm/mach-sa1100/simpad.c
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/badge4.c
arch/arm/mach-sa1100/cerf.c
arch/arm/mach-sa1100/collie.c
arch/arm/mach-sa1100/generic.c
... | ... | @@ -126,6 +126,17 @@ |
126 | 126 | PMCR = PMCR_SF; |
127 | 127 | } |
128 | 128 | |
129 | +void sa11x0_restart(char mode, const char *cmd) | |
130 | +{ | |
131 | + if (mode == 's') { | |
132 | + /* Jump into ROM at address 0 */ | |
133 | + soft_restart(0); | |
134 | + } else { | |
135 | + /* Use on-chip reset capability */ | |
136 | + RSRR = RSRR_SWR; | |
137 | + } | |
138 | +} | |
139 | + | |
129 | 140 | static void sa11x0_register_device(struct platform_device *dev, void *data) |
130 | 141 | { |
131 | 142 | int err; |
arch/arm/mach-sa1100/generic.h
... | ... | @@ -10,6 +10,7 @@ |
10 | 10 | extern void __init sa1100_map_io(void); |
11 | 11 | extern void __init sa1100_init_irq(void); |
12 | 12 | extern void __init sa1100_init_gpio(void); |
13 | +extern void sa11x0_restart(char, const char *); | |
13 | 14 | |
14 | 15 | #define SET_BANK(__nr,__start,__size) \ |
15 | 16 | mi->bank[__nr].start = (__start), \ |
arch/arm/mach-sa1100/h3100.c
arch/arm/mach-sa1100/h3600.c
arch/arm/mach-sa1100/hackkit.c
arch/arm/mach-sa1100/include/mach/system.h
... | ... | @@ -3,8 +3,6 @@ |
3 | 3 | * |
4 | 4 | * Copyright (c) 1999 Nicolas Pitre <nico@fluxnic.net> |
5 | 5 | */ |
6 | -#include <mach/hardware.h> | |
7 | - | |
8 | 6 | static inline void arch_idle(void) |
9 | 7 | { |
10 | 8 | cpu_do_idle(); |
... | ... | @@ -12,12 +10,5 @@ |
12 | 10 | |
13 | 11 | static inline void arch_reset(char mode, const char *cmd) |
14 | 12 | { |
15 | - if (mode == 's') { | |
16 | - /* Jump into ROM at address 0 */ | |
17 | - soft_restart(0); | |
18 | - } else { | |
19 | - /* Use on-chip reset capability */ | |
20 | - RSRR = RSRR_SWR; | |
21 | - } | |
22 | 13 | } |
arch/arm/mach-sa1100/jornada720.c
arch/arm/mach-sa1100/lart.c
arch/arm/mach-sa1100/nanoengine.c
arch/arm/mach-sa1100/pleb.c
arch/arm/mach-sa1100/shannon.c