Commit 9eb4859564d6e104f78abde15e7f0ca996b71236

Authored by Russell King
1 parent 3275166e03

ARM: 7262/1: restart: EXYNOS: 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>

Showing 8 changed files with 11 additions and 6 deletions Side-by-side Diff

arch/arm/mach-exynos/common.c
... ... @@ -32,7 +32,6 @@
32 32 #include <plat/clock.h>
33 33 #include <plat/devs.h>
34 34 #include <plat/pm.h>
35   -#include <plat/reset.h>
36 35 #include <plat/sdhci.h>
37 36 #include <plat/gpio-cfg.h>
38 37 #include <plat/adc-core.h>
... ... @@ -214,7 +213,7 @@
214 213 local_irq_enable();
215 214 }
216 215  
217   -static void exynos4_sw_reset(void)
  216 +void exynos4_restart(char mode, const char *cmd)
218 217 {
219 218 __raw_writel(0x1, S5P_SWRESET);
220 219 }
... ... @@ -475,10 +474,6 @@
475 474  
476 475 /* set idle function */
477 476 pm_idle = exynos_idle;
478   -
479   - /* set sw_reset function */
480   - if (soc_is_exynos4210() || soc_is_exynos4212() || soc_is_exynos4412())
481   - s5p_reset_hook = exynos4_sw_reset;
482 477  
483 478 return sysdev_register(&exynos4_sysdev);
484 479 }
arch/arm/mach-exynos/common.h
... ... @@ -21,6 +21,8 @@
21 21 void exynos4210_register_clocks(void);
22 22 void exynos4212_register_clocks(void);
23 23  
  24 +void exynos4_restart(char mode, const char *cmd);
  25 +
24 26 extern struct sys_timer exynos4_timer;
25 27  
26 28 #ifdef CONFIG_ARCH_EXYNOS
arch/arm/mach-exynos/mach-armlex4210.c
... ... @@ -213,5 +213,6 @@
213 213 .map_io = armlex4210_map_io,
214 214 .init_machine = armlex4210_machine_init,
215 215 .timer = &exynos4_timer,
  216 + .restart = exynos4_restart,
216 217 MACHINE_END
arch/arm/mach-exynos/mach-nuri.c
... ... @@ -1337,5 +1337,6 @@
1337 1337 .init_machine = nuri_machine_init,
1338 1338 .timer = &exynos4_timer,
1339 1339 .reserve = &nuri_reserve,
  1340 + .restart = exynos4_restart,
1340 1341 MACHINE_END
arch/arm/mach-exynos/mach-origen.c
... ... @@ -698,5 +698,6 @@
698 698 .init_machine = origen_machine_init,
699 699 .timer = &exynos4_timer,
700 700 .reserve = &origen_reserve,
  701 + .restart = exynos4_restart,
701 702 MACHINE_END
arch/arm/mach-exynos/mach-smdk4x12.c
... ... @@ -290,6 +290,7 @@
290 290 .map_io = smdk4x12_map_io,
291 291 .init_machine = smdk4x12_machine_init,
292 292 .timer = &exynos4_timer,
  293 + .restart = exynos4_restart,
293 294 MACHINE_END
294 295  
295 296 MACHINE_START(SMDK4412, "SMDK4412")
... ... @@ -300,5 +301,6 @@
300 301 .map_io = smdk4x12_map_io,
301 302 .init_machine = smdk4x12_machine_init,
302 303 .timer = &exynos4_timer,
  304 + .restart = exynos4_restart,
303 305 MACHINE_END
arch/arm/mach-exynos/mach-smdkv310.c
... ... @@ -379,6 +379,7 @@
379 379 .init_machine = smdkv310_machine_init,
380 380 .timer = &exynos4_timer,
381 381 .reserve = &smdkv310_reserve,
  382 + .restart = exynos4_restart,
382 383 MACHINE_END
383 384  
384 385 MACHINE_START(SMDKC210, "SMDKC210")
... ... @@ -388,5 +389,6 @@
388 389 .map_io = smdkv310_map_io,
389 390 .init_machine = smdkv310_machine_init,
390 391 .timer = &exynos4_timer,
  392 + .restart = exynos4_restart,
391 393 MACHINE_END
arch/arm/mach-exynos/mach-universal_c210.c
... ... @@ -1062,5 +1062,6 @@
1062 1062 .init_machine = universal_machine_init,
1063 1063 .timer = &exynos4_timer,
1064 1064 .reserve = &universal_reserve,
  1065 + .restart = exynos4_restart,
1065 1066 MACHINE_END