diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-22 17:36:02 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:19 -0500 |
commit | 1f34f0e2fb862b0399b4221a2be8589a4bfb194b (patch) | |
tree | c187dd8f589e4c476e0464ce9d4c3fa28767c21b /arch/arm | |
parent | 5497d2e1d63bfdd707d4b19651c4127545ccd135 (diff) |
ARM: 7252/1: restart: S5PV210: use new restart hook
Hook these platforms restart code into the new restart hook rather
than using arch_reset().
[kgene.kim@samsung.com: according to local header, updated]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s5pv210/common.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-torbreck.c | 1 |
7 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/mach-s5pv210/common.c b/arch/arm/mach-s5pv210/common.c index 2899ee8f0806..a4921bc9f1dc 100644 --- a/arch/arm/mach-s5pv210/common.c +++ b/arch/arm/mach-s5pv210/common.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <plat/cpu.h> | 35 | #include <plat/cpu.h> |
36 | #include <plat/clock.h> | 36 | #include <plat/clock.h> |
37 | #include <plat/devs.h> | 37 | #include <plat/devs.h> |
38 | #include <plat/reset.h> | ||
39 | #include <plat/sdhci.h> | 38 | #include <plat/sdhci.h> |
40 | #include <plat/adc-core.h> | 39 | #include <plat/adc-core.h> |
41 | #include <plat/ata-core.h> | 40 | #include <plat/ata-core.h> |
@@ -151,7 +150,7 @@ static void s5pv210_idle(void) | |||
151 | local_irq_enable(); | 150 | local_irq_enable(); |
152 | } | 151 | } |
153 | 152 | ||
154 | static void s5pv210_sw_reset(void) | 153 | void s5pv210_restart(char mode, const char *cmd) |
155 | { | 154 | { |
156 | __raw_writel(0x1, S5P_SWRESET); | 155 | __raw_writel(0x1, S5P_SWRESET); |
157 | } | 156 | } |
@@ -251,9 +250,6 @@ int __init s5pv210_init(void) | |||
251 | /* set idle function */ | 250 | /* set idle function */ |
252 | pm_idle = s5pv210_idle; | 251 | pm_idle = s5pv210_idle; |
253 | 252 | ||
254 | /* set sw_reset function */ | ||
255 | s5p_reset_hook = s5pv210_sw_reset; | ||
256 | |||
257 | return sysdev_register(&s5pv210_sysdev); | 253 | return sysdev_register(&s5pv210_sysdev); |
258 | } | 254 | } |
259 | 255 | ||
diff --git a/arch/arm/mach-s5pv210/common.h b/arch/arm/mach-s5pv210/common.h index f74ef965bba3..6ed2af5c7518 100644 --- a/arch/arm/mach-s5pv210/common.h +++ b/arch/arm/mach-s5pv210/common.h | |||
@@ -18,6 +18,8 @@ void s5pv210_init_irq(void); | |||
18 | void s5pv210_register_clocks(void); | 18 | void s5pv210_register_clocks(void); |
19 | void s5pv210_setup_clocks(void); | 19 | void s5pv210_setup_clocks(void); |
20 | 20 | ||
21 | void s5pv210_restart(char mode, const char *cmd); | ||
22 | |||
21 | #ifdef CONFIG_CPU_S5PV210 | 23 | #ifdef CONFIG_CPU_S5PV210 |
22 | 24 | ||
23 | extern int s5pv210_init(void); | 25 | extern int s5pv210_init(void); |
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 261373923c17..edc52968315d 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -684,4 +684,5 @@ MACHINE_START(AQUILA, "Aquila") | |||
684 | .map_io = aquila_map_io, | 684 | .map_io = aquila_map_io, |
685 | .init_machine = aquila_machine_init, | 685 | .init_machine = aquila_machine_init, |
686 | .timer = &s5p_timer, | 686 | .timer = &s5p_timer, |
687 | .restart = s5pv210_restart, | ||
687 | MACHINE_END | 688 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index b542f055d0c7..b5a1dc3ed9c1 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -961,4 +961,5 @@ MACHINE_START(GONI, "GONI") | |||
961 | .init_machine = goni_machine_init, | 961 | .init_machine = goni_machine_init, |
962 | .timer = &s5p_timer, | 962 | .timer = &s5p_timer, |
963 | .reserve = &goni_reserve, | 963 | .reserve = &goni_reserve, |
964 | .restart = s5pv210_restart, | ||
964 | MACHINE_END | 965 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index 7f55d94d89e0..553319f70e52 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
@@ -142,4 +142,5 @@ MACHINE_START(SMDKC110, "SMDKC110") | |||
142 | .map_io = smdkc110_map_io, | 142 | .map_io = smdkc110_map_io, |
143 | .init_machine = smdkc110_machine_init, | 143 | .init_machine = smdkc110_machine_init, |
144 | .timer = &s5p_timer, | 144 | .timer = &s5p_timer, |
145 | .restart = s5pv210_restart, | ||
145 | MACHINE_END | 146 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 194c3b0626b5..9c6de5704312 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -320,4 +320,5 @@ MACHINE_START(SMDKV210, "SMDKV210") | |||
320 | .map_io = smdkv210_map_io, | 320 | .map_io = smdkv210_map_io, |
321 | .init_machine = smdkv210_machine_init, | 321 | .init_machine = smdkv210_machine_init, |
322 | .timer = &s5p_timer, | 322 | .timer = &s5p_timer, |
323 | .restart = s5pv210_restart, | ||
323 | MACHINE_END | 324 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-torbreck.c b/arch/arm/mach-s5pv210/mach-torbreck.c index 1669fe607d49..db6409a3abdf 100644 --- a/arch/arm/mach-s5pv210/mach-torbreck.c +++ b/arch/arm/mach-s5pv210/mach-torbreck.c | |||
@@ -131,4 +131,5 @@ MACHINE_START(TORBRECK, "TORBRECK") | |||
131 | .map_io = torbreck_map_io, | 131 | .map_io = torbreck_map_io, |
132 | .init_machine = torbreck_machine_init, | 132 | .init_machine = torbreck_machine_init, |
133 | .timer = &s5p_timer, | 133 | .timer = &s5p_timer, |
134 | .restart = s5pv210_restart, | ||
134 | MACHINE_END | 135 | MACHINE_END |