linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: kzm9g: enable restarting
@ 2012-07-20  6:16 Tetsuyuki Kobayshi
  2012-07-23  1:21 ` Simon Horman
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Tetsuyuki Kobayshi @ 2012-07-20  6:16 UTC (permalink / raw)
  To: linux-sh

From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Do soft-power-on-reset in sys_reboot system call.

How to test this patch
  Execute "sudo reboot" from command line. The system will start shutdown
  sequence and finally reboot and U-Boot restarts.

Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
---
This patch is based on renesas.git next branch.

 arch/arm/mach-shmobile/board-kzm9g.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index 53b7ea9..fd21fb6 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -763,6 +763,13 @@ static void __init kzm_init(void)
 	platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices));
 }
 
+static void kzm9g_restart(char mode, const char *cmd)
+{
+#define RESCNT2 0xe6188020
+	/* Do soft power on reset */
+	writel((1 << 31), RESCNT2);
+}
+
 static const char *kzm9g_boards_compat_dt[] __initdata = {
 	"renesas,kzm9g",
 	NULL,
@@ -777,5 +784,6 @@ DT_MACHINE_START(KZM9G_DT, "kzm9g")
 	.init_machine	= kzm_init,
 	.init_late	= shmobile_init_late,
 	.timer		= &shmobile_timer,
+	.restart	= kzm9g_restart,
 	.dt_compat	= kzm9g_boards_compat_dt,
 MACHINE_END
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [GIT PULL] Renesas ARM-based SoC: KZM-9A-GT for 3.7
@ 2012-08-28  0:18 Simon Horman
  2012-08-28  0:18 ` [PATCH] ARM: shmobile: kzm9g: enable restarting Simon Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Horman @ 2012-08-28  0:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Olaf, Hi Arnd,

please consider the following enhancement for the KZM-9A-GT board
from Tetsuyuki Kobayashi for inclusion in 3.7.

----------------------------------------------------------------
The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0:

  Linux 3.6-rc3 (2012-08-22 13:29:06 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git kzm9g

for you to fetch changes up to 7952717adb69efc1d2443a1858f96d23c2fb93e0:

  ARM: shmobile: kzm9g: enable restarting (2012-08-25 14:39:44 +0900)

----------------------------------------------------------------
Tetsuyuki Kobayashi (1):
      ARM: shmobile: kzm9g: enable restarting

 arch/arm/mach-shmobile/board-kzm9g.c | 8 ++++++++
 1 file changed, 8 insertions(+)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-28  0:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-20  6:16 [PATCH] ARM: shmobile: kzm9g: enable restarting Tetsuyuki Kobayshi
2012-07-23  1:21 ` Simon Horman
2012-07-23  2:37 ` Tetsuyuki Kobayashi
2012-07-23  8:47 ` Tetsuyuki Kobayashi
2012-07-23  8:57 ` Simon Horman
2012-08-25  6:17 ` Simon Horman
  -- strict thread matches above, loose matches on Subject: below --
2012-08-28  0:18 [GIT PULL] Renesas ARM-based SoC: KZM-9A-GT for 3.7 Simon Horman
2012-08-28  0:18 ` [PATCH] ARM: shmobile: kzm9g: enable restarting Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).