ARM: shmobile: armadillo800eva: enable restart
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 12 Oct 2012 01:39:36 +0000 (18:39 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 30 Oct 2012 07:25:49 +0000 (15:25 +0800)
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>
arch/arm/mach-shmobile/board-armadillo800eva.c

index 2912eab3b967bddedb8a42e39747e9612f04d237..fe27d7eda4bb001f612bf668e007d5ca7ba9752f 100644 (file)
@@ -1229,6 +1229,13 @@ static void __init eva_add_early_devices(void)
        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 = {
        "renesas,armadillo800eva",
        NULL,
@@ -1243,4 +1250,5 @@ DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva")
        .init_late      = shmobile_init_late,
        .timer          = &shmobile_timer,
        .dt_compat      = eva_boards_compat_dt,
+       .restart        = eva_restart,
 MACHINE_END