diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-10-11 21:39:36 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-10-30 03:25:49 -0400 |
commit | 1efdf56369eb920aef4c77ad04cfafcc680f92cf (patch) | |
tree | 3fc763722423c1105c2dc6076e759e82ba3fb4eb /arch/arm/mach-shmobile/board-armadillo800eva.c | |
parent | bd9e2e71205e9d2bba94a02e9c3dacb9abf44042 (diff) |
ARM: shmobile: armadillo800eva: enable restart
Cc: Masahiro Nakai <nakai@atmark-techno.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/board-armadillo800eva.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 2912eab3b967..fe27d7eda4bb 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -1229,6 +1229,13 @@ static void __init eva_add_early_devices(void) | |||
1229 | shmobile_timer.init = eva_earlytimer_init; | 1229 | shmobile_timer.init = eva_earlytimer_init; |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | #define RESCNT2 IOMEM(0xe6188020) | ||
1233 | static void eva_restart(char mode, const char *cmd) | ||
1234 | { | ||
1235 | /* Do soft power on reset */ | ||
1236 | writel((1 << 31), RESCNT2); | ||
1237 | } | ||
1238 | |||
1232 | static const char *eva_boards_compat_dt[] __initdata = { | 1239 | static const char *eva_boards_compat_dt[] __initdata = { |
1233 | "renesas,armadillo800eva", | 1240 | "renesas,armadillo800eva", |
1234 | NULL, | 1241 | NULL, |
@@ -1243,4 +1250,5 @@ DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva") | |||
1243 | .init_late = shmobile_init_late, | 1250 | .init_late = shmobile_init_late, |
1244 | .timer = &shmobile_timer, | 1251 | .timer = &shmobile_timer, |
1245 | .dt_compat = eva_boards_compat_dt, | 1252 | .dt_compat = eva_boards_compat_dt, |
1253 | .restart = eva_restart, | ||
1246 | MACHINE_END | 1254 | MACHINE_END |