Commit 1efdf563 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Simon Horman

ARM: shmobile: armadillo800eva: enable restart

Cc: Masahiro Nakai <nakai@atmark-techno.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent bd9e2e71
...@@ -1229,6 +1229,13 @@ static void __init eva_add_early_devices(void) ...@@ -1229,6 +1229,13 @@ static void __init eva_add_early_devices(void)
shmobile_timer.init = eva_earlytimer_init; shmobile_timer.init = eva_earlytimer_init;
} }
#define RESCNT2 IOMEM(0xe6188020)
static void eva_restart(char mode, const char *cmd)
{
/* Do soft power on reset */
writel((1 << 31), RESCNT2);
}
static const char *eva_boards_compat_dt[] __initdata = { static const char *eva_boards_compat_dt[] __initdata = {
"renesas,armadillo800eva", "renesas,armadillo800eva",
NULL, NULL,
...@@ -1243,4 +1250,5 @@ DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva") ...@@ -1243,4 +1250,5 @@ DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva")
.init_late = shmobile_init_late, .init_late = shmobile_init_late,
.timer = &shmobile_timer, .timer = &shmobile_timer,
.dt_compat = eva_boards_compat_dt, .dt_compat = eva_boards_compat_dt,
.restart = eva_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