aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-03 05:56:53 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-05 07:57:10 -0500
commit9eb4859564d6e104f78abde15e7f0ca996b71236 (patch)
tree8f0c5cb6e7e6968b87cc9fc96c850740ed49e9b0 /arch/arm/mach-exynos
parent3275166e0355131aa2349bf614a32591cfe1e118 (diff)
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>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/common.c7
-rw-r--r--arch/arm/mach-exynos/common.h2
-rw-r--r--arch/arm/mach-exynos/mach-armlex4210.c1
-rw-r--r--arch/arm/mach-exynos/mach-nuri.c1
-rw-r--r--arch/arm/mach-exynos/mach-origen.c1
-rw-r--r--arch/arm/mach-exynos/mach-smdk4x12.c2
-rw-r--r--arch/arm/mach-exynos/mach-smdkv310.c2
-rw-r--r--arch/arm/mach-exynos/mach-universal_c210.c1
8 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index eecac125307a..6f567a4d8519 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -32,7 +32,6 @@
32#include <plat/clock.h> 32#include <plat/clock.h>
33#include <plat/devs.h> 33#include <plat/devs.h>
34#include <plat/pm.h> 34#include <plat/pm.h>
35#include <plat/reset.h>
36#include <plat/sdhci.h> 35#include <plat/sdhci.h>
37#include <plat/gpio-cfg.h> 36#include <plat/gpio-cfg.h>
38#include <plat/adc-core.h> 37#include <plat/adc-core.h>
@@ -214,7 +213,7 @@ static void exynos_idle(void)
214 local_irq_enable(); 213 local_irq_enable();
215} 214}
216 215
217static void exynos4_sw_reset(void) 216void exynos4_restart(char mode, const char *cmd)
218{ 217{
219 __raw_writel(0x1, S5P_SWRESET); 218 __raw_writel(0x1, S5P_SWRESET);
220} 219}
@@ -476,10 +475,6 @@ int __init exynos_init(void)
476 /* set idle function */ 475 /* set idle function */
477 pm_idle = exynos_idle; 476 pm_idle = exynos_idle;
478 477
479 /* set sw_reset function */
480 if (soc_is_exynos4210() || soc_is_exynos4212() || soc_is_exynos4412())
481 s5p_reset_hook = exynos4_sw_reset;
482
483 return sysdev_register(&exynos4_sysdev); 478 return sysdev_register(&exynos4_sysdev);
484} 479}
485 480
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h
index 0476c5f08871..1ac49de0f398 100644
--- a/arch/arm/mach-exynos/common.h
+++ b/arch/arm/mach-exynos/common.h
@@ -21,6 +21,8 @@ void exynos4_setup_clocks(void);
21void exynos4210_register_clocks(void); 21void exynos4210_register_clocks(void);
22void exynos4212_register_clocks(void); 22void exynos4212_register_clocks(void);
23 23
24void exynos4_restart(char mode, const char *cmd);
25
24extern struct sys_timer exynos4_timer; 26extern struct sys_timer exynos4_timer;
25 27
26#ifdef CONFIG_ARCH_EXYNOS 28#ifdef CONFIG_ARCH_EXYNOS
diff --git a/arch/arm/mach-exynos/mach-armlex4210.c b/arch/arm/mach-exynos/mach-armlex4210.c
index eeba808625ad..9a2b99646d26 100644
--- a/arch/arm/mach-exynos/mach-armlex4210.c
+++ b/arch/arm/mach-exynos/mach-armlex4210.c
@@ -213,4 +213,5 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210")
213 .map_io = armlex4210_map_io, 213 .map_io = armlex4210_map_io,
214 .init_machine = armlex4210_machine_init, 214 .init_machine = armlex4210_machine_init,
215 .timer = &exynos4_timer, 215 .timer = &exynos4_timer,
216 .restart = exynos4_restart,
216MACHINE_END 217MACHINE_END
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c
index 97cd5af15055..5f6b97f04b70 100644
--- a/arch/arm/mach-exynos/mach-nuri.c
+++ b/arch/arm/mach-exynos/mach-nuri.c
@@ -1337,4 +1337,5 @@ MACHINE_START(NURI, "NURI")
1337 .init_machine = nuri_machine_init, 1337 .init_machine = nuri_machine_init,
1338 .timer = &exynos4_timer, 1338 .timer = &exynos4_timer,
1339 .reserve = &nuri_reserve, 1339 .reserve = &nuri_reserve,
1340 .restart = exynos4_restart,
1340MACHINE_END 1341MACHINE_END
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index cc2c67082769..9536b3356919 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -698,4 +698,5 @@ MACHINE_START(ORIGEN, "ORIGEN")
698 .init_machine = origen_machine_init, 698 .init_machine = origen_machine_init,
699 .timer = &exynos4_timer, 699 .timer = &exynos4_timer,
700 .reserve = &origen_reserve, 700 .reserve = &origen_reserve,
701 .restart = exynos4_restart,
701MACHINE_END 702MACHINE_END
diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c
index 2f4cb89aadbb..375b5aa5e163 100644
--- a/arch/arm/mach-exynos/mach-smdk4x12.c
+++ b/arch/arm/mach-exynos/mach-smdk4x12.c
@@ -290,6 +290,7 @@ MACHINE_START(SMDK4212, "SMDK4212")
290 .map_io = smdk4x12_map_io, 290 .map_io = smdk4x12_map_io,
291 .init_machine = smdk4x12_machine_init, 291 .init_machine = smdk4x12_machine_init,
292 .timer = &exynos4_timer, 292 .timer = &exynos4_timer,
293 .restart = exynos4_restart,
293MACHINE_END 294MACHINE_END
294 295
295MACHINE_START(SMDK4412, "SMDK4412") 296MACHINE_START(SMDK4412, "SMDK4412")
@@ -300,4 +301,5 @@ MACHINE_START(SMDK4412, "SMDK4412")
300 .map_io = smdk4x12_map_io, 301 .map_io = smdk4x12_map_io,
301 .init_machine = smdk4x12_machine_init, 302 .init_machine = smdk4x12_machine_init,
302 .timer = &exynos4_timer, 303 .timer = &exynos4_timer,
304 .restart = exynos4_restart,
303MACHINE_END 305MACHINE_END
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c
index cf21d666d124..f2552ff5ddb0 100644
--- a/arch/arm/mach-exynos/mach-smdkv310.c
+++ b/arch/arm/mach-exynos/mach-smdkv310.c
@@ -379,6 +379,7 @@ MACHINE_START(SMDKV310, "SMDKV310")
379 .init_machine = smdkv310_machine_init, 379 .init_machine = smdkv310_machine_init,
380 .timer = &exynos4_timer, 380 .timer = &exynos4_timer,
381 .reserve = &smdkv310_reserve, 381 .reserve = &smdkv310_reserve,
382 .restart = exynos4_restart,
382MACHINE_END 383MACHINE_END
383 384
384MACHINE_START(SMDKC210, "SMDKC210") 385MACHINE_START(SMDKC210, "SMDKC210")
@@ -388,4 +389,5 @@ MACHINE_START(SMDKC210, "SMDKC210")
388 .map_io = smdkv310_map_io, 389 .map_io = smdkv310_map_io,
389 .init_machine = smdkv310_machine_init, 390 .init_machine = smdkv310_machine_init,
390 .timer = &exynos4_timer, 391 .timer = &exynos4_timer,
392 .restart = exynos4_restart,
391MACHINE_END 393MACHINE_END
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c
index 4826eabf9be6..0078d062616e 100644
--- a/arch/arm/mach-exynos/mach-universal_c210.c
+++ b/arch/arm/mach-exynos/mach-universal_c210.c
@@ -1062,4 +1062,5 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210")
1062 .init_machine = universal_machine_init, 1062 .init_machine = universal_machine_init,
1063 .timer = &exynos4_timer, 1063 .timer = &exynos4_timer,
1064 .reserve = &universal_reserve, 1064 .reserve = &universal_reserve,
1065 .restart = exynos4_restart,
1065MACHINE_END 1066MACHINE_END