]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: rmobile: kzm9g: enable reset command
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>
Mon, 16 Jul 2012 19:13:12 +0000 (19:13 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 3 Oct 2012 00:04:23 +0000 (02:04 +0200)
Do soft power on reset in U-Boot reset command.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/include/asm/arch-rmobile/sh73a0.h
board/kmc/kzm9g/kzm9g.c

index ada419181411f20998178c7083af703c02f66bae..c0bfb9d7a0c1ea1b8d806b2a6d4dfa77b3ac40fa 100644 (file)
 #define SRESCR (CPG_BASE + 0x1018)
 #define PCLKCR (CPG_BASE + 0x1020)
 
+/* SYSC */
+#define SYSC_BASE   (0xE6180000)
+#define RESCNT2        (SYSC_BASE + 0x8020)
+
 /* BSC */
 #define BSC_BASE (0xFEC10000)
 
index 497f8278bce832f0fc09ebdb7b606d89b0372c24..525c97aea6f57885b4787fe7b4e90143dfa2395f 100644 (file)
@@ -372,4 +372,6 @@ int board_eth_init(bd_t *bis)
 
 void reset_cpu(ulong addr)
 {
+       /* Soft Power On Reset */
+       writel((1 << 31), RESCNT2);
 }