summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>2012-07-16 19:13:12 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-10-03 02:04:23 +0200
commit4306abda0076d10b2d2b37227b5549df64289733 (patch)
tree3d21c3d65f4972dc329bd1de96f989505aaf93fe
parentd95a96a072d1ae2c8c14217caf52a7864f18b0e3 (diff)
downloadu-boot-imx-4306abda0076d10b2d2b37227b5549df64289733.zip
u-boot-imx-4306abda0076d10b2d2b37227b5549df64289733.tar.gz
u-boot-imx-4306abda0076d10b2d2b37227b5549df64289733.tar.bz2
arm: rmobile: kzm9g: enable reset command
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>
-rw-r--r--arch/arm/include/asm/arch-rmobile/sh73a0.h4
-rw-r--r--board/kmc/kzm9g/kzm9g.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h
index ada4191..c0bfb9d 100644
--- a/arch/arm/include/asm/arch-rmobile/sh73a0.h
+++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h
@@ -40,6 +40,10 @@
#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)
diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
index 497f827..525c97a 100644
--- a/board/kmc/kzm9g/kzm9g.c
+++ b/board/kmc/kzm9g/kzm9g.c
@@ -372,4 +372,6 @@ int board_eth_init(bd_t *bis)
void reset_cpu(ulong addr)
{
+ /* Soft Power On Reset */
+ writel((1 << 31), RESCNT2);
}