Commit 9eb48595 authored by Russell King's avatar Russell King

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: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 3275166e
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <plat/clock.h> #include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/pm.h> #include <plat/pm.h>
#include <plat/reset.h>
#include <plat/sdhci.h> #include <plat/sdhci.h>
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include <plat/adc-core.h> #include <plat/adc-core.h>
...@@ -214,7 +213,7 @@ static void exynos_idle(void) ...@@ -214,7 +213,7 @@ static void exynos_idle(void)
local_irq_enable(); local_irq_enable();
} }
static void exynos4_sw_reset(void) void exynos4_restart(char mode, const char *cmd)
{ {
__raw_writel(0x1, S5P_SWRESET); __raw_writel(0x1, S5P_SWRESET);
} }
...@@ -476,10 +475,6 @@ int __init exynos_init(void) ...@@ -476,10 +475,6 @@ int __init exynos_init(void)
/* set idle function */ /* set idle function */
pm_idle = exynos_idle; pm_idle = exynos_idle;
/* set sw_reset function */
if (soc_is_exynos4210() || soc_is_exynos4212() || soc_is_exynos4412())
s5p_reset_hook = exynos4_sw_reset;
return sysdev_register(&exynos4_sysdev); return sysdev_register(&exynos4_sysdev);
} }
......
...@@ -21,6 +21,8 @@ void exynos4_setup_clocks(void); ...@@ -21,6 +21,8 @@ void exynos4_setup_clocks(void);
void exynos4210_register_clocks(void); void exynos4210_register_clocks(void);
void exynos4212_register_clocks(void); void exynos4212_register_clocks(void);
void exynos4_restart(char mode, const char *cmd);
extern struct sys_timer exynos4_timer; extern struct sys_timer exynos4_timer;
#ifdef CONFIG_ARCH_EXYNOS #ifdef CONFIG_ARCH_EXYNOS
......
...@@ -213,4 +213,5 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210") ...@@ -213,4 +213,5 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210")
.map_io = armlex4210_map_io, .map_io = armlex4210_map_io,
.init_machine = armlex4210_machine_init, .init_machine = armlex4210_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
...@@ -1337,4 +1337,5 @@ MACHINE_START(NURI, "NURI") ...@@ -1337,4 +1337,5 @@ MACHINE_START(NURI, "NURI")
.init_machine = nuri_machine_init, .init_machine = nuri_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.reserve = &nuri_reserve, .reserve = &nuri_reserve,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
...@@ -698,4 +698,5 @@ MACHINE_START(ORIGEN, "ORIGEN") ...@@ -698,4 +698,5 @@ MACHINE_START(ORIGEN, "ORIGEN")
.init_machine = origen_machine_init, .init_machine = origen_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.reserve = &origen_reserve, .reserve = &origen_reserve,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
...@@ -290,6 +290,7 @@ MACHINE_START(SMDK4212, "SMDK4212") ...@@ -290,6 +290,7 @@ MACHINE_START(SMDK4212, "SMDK4212")
.map_io = smdk4x12_map_io, .map_io = smdk4x12_map_io,
.init_machine = smdk4x12_machine_init, .init_machine = smdk4x12_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
MACHINE_START(SMDK4412, "SMDK4412") MACHINE_START(SMDK4412, "SMDK4412")
...@@ -300,4 +301,5 @@ MACHINE_START(SMDK4412, "SMDK4412") ...@@ -300,4 +301,5 @@ MACHINE_START(SMDK4412, "SMDK4412")
.map_io = smdk4x12_map_io, .map_io = smdk4x12_map_io,
.init_machine = smdk4x12_machine_init, .init_machine = smdk4x12_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
...@@ -379,6 +379,7 @@ MACHINE_START(SMDKV310, "SMDKV310") ...@@ -379,6 +379,7 @@ MACHINE_START(SMDKV310, "SMDKV310")
.init_machine = smdkv310_machine_init, .init_machine = smdkv310_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.reserve = &smdkv310_reserve, .reserve = &smdkv310_reserve,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
MACHINE_START(SMDKC210, "SMDKC210") MACHINE_START(SMDKC210, "SMDKC210")
...@@ -388,4 +389,5 @@ MACHINE_START(SMDKC210, "SMDKC210") ...@@ -388,4 +389,5 @@ MACHINE_START(SMDKC210, "SMDKC210")
.map_io = smdkv310_map_io, .map_io = smdkv310_map_io,
.init_machine = smdkv310_machine_init, .init_machine = smdkv310_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
...@@ -1062,4 +1062,5 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") ...@@ -1062,4 +1062,5 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210")
.init_machine = universal_machine_init, .init_machine = universal_machine_init,
.timer = &exynos4_timer, .timer = &exynos4_timer,
.reserve = &universal_reserve, .reserve = &universal_reserve,
.restart = exynos4_restart,
MACHINE_END MACHINE_END
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment