diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-03 05:56:53 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:10 -0500 |
commit | 9eb4859564d6e104f78abde15e7f0ca996b71236 (patch) | |
tree | 8f0c5cb6e7e6968b87cc9fc96c850740ed49e9b0 /arch/arm | |
parent | 3275166e0355131aa2349bf614a32591cfe1e118 (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')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-armlex4210.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-origen.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdk4x12.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdkv310.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 1 |
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 | ||
217 | static void exynos4_sw_reset(void) | 216 | void 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); | |||
21 | void exynos4210_register_clocks(void); | 21 | void exynos4210_register_clocks(void); |
22 | void exynos4212_register_clocks(void); | 22 | void exynos4212_register_clocks(void); |
23 | 23 | ||
24 | void exynos4_restart(char mode, const char *cmd); | ||
25 | |||
24 | extern struct sys_timer exynos4_timer; | 26 | extern 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, | ||
216 | MACHINE_END | 217 | MACHINE_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, | ||
1340 | MACHINE_END | 1341 | MACHINE_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, | ||
701 | MACHINE_END | 702 | MACHINE_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, | ||
293 | MACHINE_END | 294 | MACHINE_END |
294 | 295 | ||
295 | MACHINE_START(SMDK4412, "SMDK4412") | 296 | MACHINE_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, | ||
303 | MACHINE_END | 305 | MACHINE_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, | ||
382 | MACHINE_END | 383 | MACHINE_END |
383 | 384 | ||
384 | MACHINE_START(SMDKC210, "SMDKC210") | 385 | MACHINE_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, | ||
391 | MACHINE_END | 393 | MACHINE_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, | ||
1065 | MACHINE_END | 1066 | MACHINE_END |